/*
 Theme Name:   Kadence Child
 Theme URI:    https://example.com/kadence-child/
 Description:  Kadence Child Theme
 Author:       Your Name
 Author URI:   https://example.com
 Template:     kadence
 Version:      1.0.2
 Tags:         customizable, modern, responsive-layout, gutenberg, header builder, footer builder
 Text Domain:  kadencechild
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* =========================================================
   Variables globales
   ========================================================= */

:root {
  --mtm-accent: #1A4D8F;
  --mtm-accent-hover: #4A90E2;
  --mtm-text-strong: #2D3748;
  --mtm-text-main: #4A5568;
  --mtm-text-soft: #718096;
  --mtm-text-faint: #A0AEC0;
  --mtm-bg-body: #F7FAFC;
  --mtm-bg-soft: #EDF2F7;
  --mtm-bg-card: #FFFFFF;
  --mtm-border: #A0AEC0;
  --mtm-success: #38A169;
  --mtm-warning: #C05621;
  --mtm-error: #B83280;
  --mtm-radius: 8px;
  --mtm-shadow: 0 6px 18px rgba(26, 77, 143, 0.08);
}

/* =========================================================
   Easy Table of Contents
   ========================================================= */

.ez-toc-container {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--mtm-bg-soft);
  border: 1px solid rgba(160, 174, 192, 0.35);
  border-radius: var(--mtm-radius);
  box-shadow: none;
  font-family: Nunito, sans-serif;
}

.ez-toc-container .ez-toc-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mtm-text-strong);
}

.ez-toc-container ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ez-toc-container li {
  margin: 0.35rem 0;
}

.ez-toc-container a {
  color: var(--mtm-text-main);
  text-decoration: none;
}

.ez-toc-container a:hover,
.ez-toc-container a:focus {
  color: var(--mtm-accent);
  text-decoration: underline;
}
/* ============================================
   BOUTON "ON VOUS RAPPELLE" — HEADER MOBILE
   ============================================ */

/* Masqué sur desktop */
a.mtm-btn--header-mobile {
  display: none !important;
}

@media (max-width: 768px) {

  /* Affiché dans le header mobile */
  a.mtm-btn--header-mobile {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.72em !important;
    font-weight: 700 !important;
    padding: 0.28em 0.75em !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    max-height: 34px !important;
    background-color: #1A4D8F !important;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border: 2px solid transparent !important;
    transition: background-color 0.2s ease !important;
  }

  a.mtm-btn--header-mobile:hover,
  a.mtm-btn--header-mobile:focus {
    background-color: #4A90E2 !important;
    color: #ffffff !important;
    text-decoration: none !important;
  }

  /* Masquer le bouton nav dans le menu burger
     pour éviter le doublon avec le header mobile */
  li.mtm-btn--nav-rappel > a,
  li.mtm-btn--nav-rappel a {
    display: none !important;
  }

}


/* ============================================
   BOUTON "ON VOUS RAPPELLE" — MENU DESKTOP
   ============================================ */

/* Visible dans le menu principal sur desktop */

li.mtm-btn--nav-rappel > a,
li.mtm-btn--nav-rappel a {
  display: inline-block !important;
  padding: 0.45em 1.2em !important;
  background-color: #1A4D8F !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.9em !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
  border: 2px solid transparent !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
  margin-left: 0.5em !important;
  cursor: pointer !important;
}

li.mtm-btn--nav-rappel > a:hover,
li.mtm-btn--nav-rappel a:hover,
li.mtm-btn--nav-rappel > a:focus,
li.mtm-btn--nav-rappel a:focus {
  background-color: #4A90E2 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(26, 77, 143, 0.30) !important;
  border-color: transparent !important;
}

/* Neutraliser les styles <li> parasites hérités du menu */
li.mtm-btn--nav-rappel {
  background: none !important;
  padding: 0 !important;
  border: none !important;
}

/* ============================================
   BOXZILLA — Modale "On vous rappelle"
   ============================================ */

/* Conteneur de la boîte */
.boxzilla-box {
  border-radius: 12px !important;
  padding: 2rem 1.75rem !important;
  max-width: 92vw !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
  box-sizing: border-box !important;
}

/* Overlay sombre */
.boxzilla-overlay {
  background-color: rgba(0, 0, 0, 0.55) !important;
}

/* En-tête */
.mtm-modal__titre {
  font-size: 1.2em !important;
  font-weight: 700 !important;
  color: #1A4D8F !important;
  margin: 0 0 0.25em 0 !important;
}

.mtm-modal__intro {
  font-size: 0.9em !important;
  color: #555555 !important;
  margin: 0 0 1.25rem 0 !important;
}

/* Lien fermeture dans le contenu */
.boxzilla-box .boxzilla-close {
  display: block !important;
  margin-top: 0.75rem !important;
  font-size: 0.82em !important;
  color: #888888 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  text-align: center !important;
}

.boxzilla-box .boxzilla-close:hover {
  color: #1A4D8F !important;
}

/* Forcer 1 colonne — écrase mtm-form--desktop-2col dans la modale */
.boxzilla-box .mtm-form__grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
}

/* Réduire l'espacement des champs dans la modale */
.boxzilla-box .mtm-form__field {
  margin-bottom: 0 !important;
}	
/* =========================================================
   Hero local Mon Taxi Médical
   Visuel à gauche, contenu éditorial à droite sur desktop
   Empilement vertical sur mobile
   ========================================================= */

.mtm-hero-local {
  margin: 0 0 2rem;
}

.mtm-hero-local__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 2rem;
  align-items: stretch;
}

.mtm-hero-local__media {
  position: relative;
}

.mtm-hero-local__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 38% center;
  border-radius: var(--mtm-radius);
  box-shadow: var(--mtm-shadow);
}

.mtm-hero-local__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.mtm-hero-local__header h1 {
  margin-bottom: 0;
}

.mtm-hero-local__intro {
  color: var(--mtm-text-main);
}

.mtm-hero-local__intro p {
  margin: 0;
}

.mtm-hero-local__intro p + p {
  margin-top: 1rem;
}

.mtm-hero-local .mtm-bloc-cta {
  margin-top: 0.75rem;
  padding: 1.5rem;
}

.mtm-bloc-ctaactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.mtm-bloc-ctalead {
  margin: 0 0 1.1rem 0;
  max-width: none;
  color: var(--mtm-text-main);
  font-size: 1.02rem;
  line-height: 1.65;
}

.mtm-bloc-ctaactions--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.25rem 0 0 0;
  text-align: center;
}

.mtm-bloc-ctaactions--center .mtm-btn {
  flex: 0 0 auto;
}

.mtm-bloc-ctasubtext {
  margin: 0;
  max-width: 52ch;
  color: var(--mtm-text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: center;
}

.mtm-bloc-ctareassurance {
  margin-top: 0.75rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .mtm-hero-local__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mtm-hero-local__image {
    min-height: 300px;
    object-position: center center;
  }

  .mtm-hero-local__content {
    gap: 1rem;
  }

  .mtm-bloc-ctaactions {
    flex-direction: column;
  }

  .mtm-bloc-ctaactions .mtm-btn {
    width: 100%;
    text-align: center;
  }

.mtm-bloc-ctalead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .mtm-bloc-ctaactions--center {
    align-items: stretch;
    text-align: center;
  }

  .mtm-bloc-ctaactions--center .mtm-btn {
    width: 100%;
  }

  .mtm-bloc-ctasubtext {
    max-width: none;
  }
}

/* =========================================================
   Hero établissement Mon Taxi Médical
   Image pleine largeur, contenu + CTA en deux colonnes desktop
   Empilement vertical sur mobile
   ========================================================= */

.mtm-section-etablissement {
  margin: 0 0 2.5rem;
}

.mtm-hero-etablissement {
  margin: 0 0 2.5rem;
}

.mtm-hero-etablissement__media {
  margin-bottom: 1.25rem;
}
.mtm-hero-etablissement__media .mtm-hero-etablissement__eyebrow {
  margin: 0.35rem 0 1.25rem;
}
/* Neutralise les paragraphes vides injectés par WordPress */
.mtm-hero-etablissement__media p:empty {
  display: none;
}

.mtm-hero-etablissement__image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  box-shadow: var(--mtm-shadow);
}

.mtm-hero-etablissement__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: start;
}

.mtm-hero-etablissement__main {
  min-width: 0;
}

.mtm-hero-etablissement__side {
  width: 360px;
  max-width: 360px;
  align-self: start;
}

.mtm-hero-etablissement__cta {
  margin: 0;
  width: 100%;
}

.mtm-hero-etablissement__header {
  margin-bottom: 1.25rem;
}

.mtm-hero-etablissement__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mtm-accent);
}

.mtm-hero-etablissement__header h1 {
  margin-bottom: 1rem;
}

.mtm-hero-etablissement__intro {
  max-width: 72ch;
  color: var(--mtm-text-main);
}

.mtm-hero-etablissement__intro p {
  margin: 0;
}

.mtm-hero-etablissement__intro p + p {
  margin-top: 1rem;
}

.mtm-hero-etablissement__after {
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .mtm-hero-etablissement__layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    display: flex;
    flex-direction: column;
  }

  .mtm-hero-etablissement__side {
    width: 100%;
    max-width: none;
    order: -1;
  }

  .mtm-hero-etablissement__image {
    height: 160px;
  }
}

@media (max-width: 767px) {
  .mtm-hero-etablissement__image {
    height: 140px;
    border-radius: 10px;
  }

  .mtm-hero-etablissement__eyebrow {
    font-size: 0.84rem;
    line-height: 1.2;
  }
}

/* =========================================================
   Encadrés éditoriaux
   ========================================================= */

.mtm-chapo {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 600;
  color: var(--mtm-text-strong);
}

@media (max-width: 767px) {
  .mtm-chapo {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }
}

.mtm-encadre {
  background: var(--mtm-bg-soft);
  border: 1px solid rgba(160, 174, 192, 0.35);
  border-radius: var(--mtm-radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-family: Nunito, sans-serif;
  color: var(--mtm-text-main);
}

.mtm-encadre h2,
.mtm-encadre h3,
.mtm-encadre h4 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  color: var(--mtm-text-strong);
}

.mtm-encadre p:last-child,
.mtm-encadre ul:last-child,
.mtm-encadre ol:last-child {
  margin-bottom: 0;
}

.mtm-encadre--confiance {
  border-color: rgba(26, 77, 143, 0.28);
  background: rgba(26, 77, 143, 0.06);
}

.mtm-encadre--confiance h2,
.mtm-encadre--confiance h3,
.mtm-encadre--confiance h4 {
  color: var(--mtm-accent);
}

.mtm-encadre--important {
  border-left: 4px solid var(--mtm-accent);
}

.mtm-encadre--success {
  border-color: rgba(56, 161, 105, 0.28);
  background: rgba(56, 161, 105, 0.08);
}

.mtm-encadre--success h2,
.mtm-encadre--success h3,
.mtm-encadre--success h4 {
  color: var(--mtm-success);
}

/* =========================================================
   Informations pratiques
   ========================================================= */

.mtm-info-pratique {
  background: var(--mtm-bg-card);
  border: 1px solid rgba(160, 174, 192, 0.25);
  border-left: 4px solid var(--mtm-accent);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-family: Nunito, sans-serif;
  color: var(--mtm-text-main);
}

.mtm-info-pratique h3,
.mtm-info-pratique h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--mtm-accent);
}

.mtm-info-pratique ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.mtm-info-pratique li {
  margin-bottom: 0.45rem;
}

.mtm-info-pratique li:last-child {
  margin-bottom: 0;
}

.mtm-info-trajet {
  border-left-color: var(--mtm-accent);
}

.mtm-info-prise-en-charge {
  border-left-color: var(--mtm-success);
}

.mtm-info-prise-en-charge h3,
.mtm-info-prise-en-charge h4 {
  color: var(--mtm-success);
}

.mtm-info-aidant {
  border-left-color: var(--mtm-accent-hover);
}

.mtm-info-etablissement {
  border-left-color: var(--mtm-text-soft);
}

/* =========================================================
   Bloc Ré assurance
   ========================================================= */

.mtm-section-etablissement--reassurance {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.mtm-reassurance-band {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  border: 1px solid #d9e2ef;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 10px 28px rgba(17, 52, 96, 0.06);
}

.mtm-reassurance-band__intro {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.mtm-reassurance-band__eyebrow {
  margin: 0 0 0.5rem;
  color: #1f5aa6;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mtm-reassurance-band__intro h2 {
  margin: 0 0 0.75rem;
  color: #1d2a3b;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.15;
}

.mtm-reassurance-band__intro p:last-child {
  margin: 0;
  max-width: 70ch;
  color: #526277;
  font-size: 1rem;
  line-height: 1.7;
}

.mtm-reassurance-band__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.mtm-reassurance-band__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.15rem 1.1rem;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(25, 72, 131, 0.05);
}

.mtm-reassurance-band__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #eaf1fb;
  color: #1f5aa6;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid #cfe0f5;
}

.mtm-reassurance-band__content h3 {
  margin: 0 0 0.45rem;
  color: #1d2a3b;
  font-size: 1.08rem;
  line-height: 1.3;
}

.mtm-reassurance-band__content p {
  margin: 0;
  color: #516174;
  font-size: 0.98rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .mtm-reassurance-band {
    padding: 1.4rem;
    border-radius: 16px;
  }

  .mtm-reassurance-band__grid {
    grid-template-columns: 1fr;
  }

  .mtm-reassurance-band__item {
    grid-template-columns: 46px 1fr;
    padding: 1rem;
  }

  .mtm-reassurance-band__badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 0.88rem;
  }

  .mtm-reassurance-band__intro h2 {
    font-size: 1.55rem;
  }
}

/* =========================================================
   Maillage et ressources
   ========================================================= */

.mtm-a-lire-aussi,
.mtm-a-lire-egalement {
  background: var(--mtm-bg-soft);
  border-left: 4px solid var(--mtm-accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 6px;
}

.mtm-a-lire-aussi h3,
.mtm-a-lire-aussi h4,
.mtm-a-lire-egalement h3,
.mtm-a-lire-egalement h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--mtm-text-strong);
}

.mtm-a-lire-aussi ul,
.mtm-a-lire-egalement ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.mtm-a-lire-aussi li,
.mtm-a-lire-egalement li {
  margin-bottom: 0.45rem;
}

.mtm-a-lire-aussi a,
.mtm-a-lire-egalement a {
  color: var(--mtm-accent);
  text-decoration: none;
}

.mtm-a-lire-aussi a:hover,
.mtm-a-lire-aussi a:focus,
.mtm-a-lire-egalement a:hover,
.mtm-a-lire-egalement a:focus {
  color: var(--mtm-accent-hover);
  text-decoration: underline;
}

.mtm-bloc-ressources-officielles {
  background: rgba(26, 77, 143, 0.04);
  border: 1px solid rgba(26, 77, 143, 0.18);
  border-radius: var(--mtm-radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.mtm-bloc-ressources-officielles h3,
.mtm-bloc-ressources-officielles h4 {
  margin-top: 0;
  color: var(--mtm-accent);
}

.mtm-bloc-ressources-officielles a {
  color: var(--mtm-accent);
}

/* =========================================================
   Grille des établissements desservis
   Cartes sobres, responsive, utilisées sur les pages hub locales
   ========================================================= */

.mtm-etablissements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 600px) {
  .mtm-etablissements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .mtm-etablissements-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mtm-etablissement-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--mtm-bg-card);
  border: 1px solid rgba(160, 174, 192, 0.28);
  border-radius: var(--mtm-radius);
  box-shadow: var(--mtm-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mtm-etablissement-card:hover,
.mtm-etablissement-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(26, 77, 143, 0.28);
  box-shadow: 0 10px 22px rgba(26, 77, 143, 0.12);
}

.mtm-etablissement-card__name {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--mtm-text-strong);
}

.mtm-etablissement-card__name a {
  color: var(--mtm-text-strong);
  text-decoration: none;
}

.mtm-etablissement-card__name a:hover,
.mtm-etablissement-card__name a:focus {
  color: var(--mtm-accent);
  text-decoration: underline;
}

.mtm-etablissement-card__locality {
  margin: 0;
  font-size: 0.95rem;
  color: var(--mtm-text-soft);
}

.mtm-etablissement-card__btn {
  align-self: stretch;
  margin-top: 0.5rem;
  text-align: center;
}

/* =========================================================
   Notes éditoriales et citations
   ========================================================= */

.mtm-note-editoriale {
  background: var(--mtm-text-strong);
  color: #ffffff;
  padding: 0.9rem 1rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  font-size: 0.95rem;
}

.mtm-note-editoriale a {
  color: #ffffff;
  text-decoration: underline;
}

.mtm-note-editoriale a:hover,
.mtm-note-editoriale a:focus {
  color: #E2E8F0;
}

.mtm-note-source {
  background: rgba(26, 77, 143, 0.05);
  border-left: 4px solid var(--mtm-accent);
  padding: 0.9rem 1rem;
  margin: 1.5rem 0;
  border-radius: 6px;
  color: var(--mtm-text-main);
  font-size: 0.95rem;
}

.mtm-note-source strong {
  color: var(--mtm-text-strong);
}

blockquote,
.mtm-blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--mtm-accent);
  background: rgba(26, 77, 143, 0.05);
  border-radius: 0 6px 6px 0;
  color: var(--mtm-text-strong);
  font-style: normal;
}

blockquote p:last-child,
.mtm-blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite,
.mtm-blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--mtm-text-soft);
  font-style: normal;
}

/* =========================================================
   CTA éditoriaux
   ========================================================= */

.mtm-bloc-cta {
  background: linear-gradient(180deg, rgba(26, 77, 143, 0.07) 0%, rgba(26, 77, 143, 0.03) 100%);
  border: 1px solid rgba(26, 77, 143, 0.18);
  border-radius: 12px;
  padding: 1.4rem;
  margin: 2rem 0;
  box-shadow: var(--mtm-shadow);
}

.mtm-bloc-ctatitle {
  margin: 0 0 0.85rem 0;
  color: var(--mtm-text-strong);
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 800;
}

.mtm-bloc-ctatext {
  margin: 0 0 1rem 0;
  max-width: 70ch;
  color: var(--mtm-text-main);
  font-size: 1.02rem;
  line-height: 1.65;
}

.mtm-bloc-ctaactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1rem 0;
}

.mtm-bloc-ctareassurance,
.mtm-bloc-ctameta,
.mtm-bloc-ctaconsent {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mtm-text-soft);
}

.mtm-bloc-cta--compact {
  padding: 1rem;
}

.mtm-bloc-cta--compact .mtm-bloc-ctatitle {
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 700;
  max-width: none;
}

.mtm-bloc-cta--compact .mtm-bloc-ctatext {
  font-size: 1rem;
  line-height: 1.6;
}

.mtm-bloc-cta--fort {
  border-color: rgba(26, 77, 143, 0.28);
  padding: 1.6rem;
}

.mtm-bloc-cta--bas-page {
  margin-top: 2.25rem;
}

.mtm-bloc-cta--formulaire .mtm-bloc-ctatitle {
  margin-bottom: 1rem;
}

.mtm-bloc-cta--formulaire .mtm-bloc-ctatext {
  margin-bottom: 1rem;
}

.mtm-bloc-cta--formulaire .mtm-bloc-ctaactions {
  margin: 0 0 1.1rem 0;
  justify-content: flex-start;
}

.mtm-bloc-cta--formulaire .mtm-btn {
  min-height: 48px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
}

.mtm-bloc-cta--formulaire .mtm-bloc-ctaform {
  margin-top: 1.25rem;
}

@media (max-width: 768px) {
  .mtm-bloc-ctatitle {
    font-size: 1.45rem;
    line-height: 1.25;
    max-width: none;
  }

  .mtm-bloc-ctatext {
    font-size: 1rem;
    line-height: 1.6;
  }

  .mtm-bloc-ctaactions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1rem;
  }

  .mtm-btn,
  .mtm-bloc-cta .mtm-btn,
  .mtm-bloc-cta a.mtm-btn {
    width: 100%;
  }

  .mtm-bloc-cta--compact .mtm-bloc-ctatitle {
    font-size: 1.1rem;
  }

  .mtm-bloc-cta--fort {
    padding: 1.2rem;
  }
}

.mtm-bloc-cta--formulaire .mtm-bloc-ctaform {
  margin-top: 1rem;
}

/* =========================================================
   Layout du bloc formulaire MTM
   ========================================================= */

.mtm-bloc-cta--formulaire {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
  gap: 2rem;
  align-items: start;
}

.mtm-bloc-cta--formulaire > .mtm-bloc-ctatitle,
.mtm-bloc-cta--formulaire > .mtm-bloc-ctatext,
.mtm-bloc-cta--formulaire > .mtm-bloc-ctaactions,
.mtm-bloc-cta--formulaire > .mtm-bloc-ctareassurance {
  grid-column: 1;
  min-width: 0;
}

.mtm-bloc-cta--formulaire > .mtm-bloc-ctaform {
  grid-column: 2;
  grid-row: 1 / span 4;
  min-width: 0;
  width: 100%;
  max-width: none;
  align-self: start;
}

@media (max-width: 980px) {
  .mtm-bloc-cta--formulaire {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mtm-bloc-cta--formulaire > .mtm-bloc-ctatitle,
  .mtm-bloc-cta--formulaire > .mtm-bloc-ctatext,
  .mtm-bloc-cta--formulaire > .mtm-bloc-ctaactions,
  .mtm-bloc-cta--formulaire > .mtm-bloc-ctareassurance,
  .mtm-bloc-cta--formulaire > .mtm-bloc-ctaform {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
}

/* =========================================================
   CTA appel + checklist formulaire
   Icônes gérées en CSS
   ========================================================= */

.mtm-btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 15.5rem;
  padding: 0.95rem 1.4rem;
  white-space: nowrap;
}

.mtm-btn-call::before {
  content: "";
  display: block;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.89.33 1.76.63 2.6a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.48-1.2a2 2 0 0 1 2.11-.45c.84.3 1.71.51 2.6.63A2 2 0 0 1 22 16.92z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.89.33 1.76.63 2.6a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.48-1.2a2 2 0 0 1 2.11-.45c.84.3 1.71.51 2.6.63A2 2 0 0 1 22 16.92z'/></svg>") center / contain no-repeat;
}

.mtm-checklist {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 77, 143, 0.12);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.mtm-checklist h3 {
  position: relative;
  margin: 0 0 1rem 0;
  padding-left: 3rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  color: var(--mtm-text-strong);
  font-size: 1.05rem;
  line-height: 1.35;
}

.mtm-checklist h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.15rem;
  height: 2.15rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background-color: rgba(26, 77, 143, 0.08);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A4D8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 11l3 3L22 4'/><path d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.1rem 1.1rem;
}

.mtm-checklist__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mtm-checklist__list li {
  position: relative;
  margin: 0;
  padding: 0.85rem 0 0.85rem 2.5rem;
  color: var(--mtm-text-main);
  line-height: 1.55;
}

.mtm-checklist__list li + li {
  border-top: 1px solid rgba(26, 77, 143, 0.10);
}

.mtm-checklist__list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.95rem;
  width: 1.1rem;
  height: 1.1rem;
  background-color: var(--mtm-accent);
  opacity: 0.92;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 11 12 14 22 4'/><path d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 11 12 14 22 4'/><path d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/></svg>") center / contain no-repeat;
}

.mtm-checklist__list li:nth-child(1)::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 1 1 18 0Z'/><circle cx='12' cy='10' r='3'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 1 1 18 0Z'/><circle cx='12' cy='10' r='3'/></svg>") center / contain no-repeat;
}

.mtm-checklist__list li:nth-child(2)::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18'/><path d='M5 21V7l8-4v18'/><path d='M19 21V11l-6-4'/><path d='M9 9v.01'/><path d='M9 12v.01'/><path d='M9 15v.01'/><path d='M9 18v.01'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18'/><path d='M5 21V7l8-4v18'/><path d='M19 21V11l-6-4'/><path d='M9 9v.01'/><path d='M9 12v.01'/><path d='M9 15v.01'/><path d='M9 18v.01'/></svg>") center / contain no-repeat;
}

.mtm-checklist__list li:nth-child(3)::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 2v4'/><path d='M16 2v4'/><rect width='18' height='18' x='3' y='4' rx='2'/><path d='M3 10h18'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M8 2v4'/><path d='M16 2v4'/><rect width='18' height='18' x='3' y='4' rx='2'/><path d='M3 10h18'/></svg>") center / contain no-repeat;
}

.mtm-checklist__list li:nth-child(4)::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><path d='M14 2v6h6'/><path d='M16 13H8'/><path d='M16 17H8'/><path d='M10 9H8'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><path d='M14 2v6h6'/><path d='M16 13H8'/><path d='M16 17H8'/><path d='M10 9H8'/></svg>") center / contain no-repeat;
}

@media (max-width: 820px) {
  .mtm-bloc-cta__layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mtm-bloc-cta__sideinfo {
    margin-top: 0;
  }

.mtm-btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  line-height: 1;
  min-width: 15.5rem;
  padding: 0.95rem 1.4rem;
  white-space: nowrap;
}

  .mtm-checklist {
    padding: 0.95rem 1rem;
  }

  .mtm-checklist h3 {
    padding-left: 2.6rem;
    font-size: 1rem;
  }

  .mtm-checklist h3::before {
    width: 1.9rem;
    height: 1.9rem;
    background-size: 1rem 1rem;
  }

  .mtm-checklist__list li {
    padding: 0.8rem 0 0.8rem 2.2rem;
  }
}

/* =========================================================
   Boutons
   ========================================================= */

.mtm-btn,
.mtm-bloc-cta .mtm-btn,
.mtm-bloc-cta a.mtm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.78rem 1.1rem;
  border-radius: 8px;
  font-family: Nunito, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.mtm-btn-primary {
  background: var(--mtm-accent);
  color: #ffffff;
  border: 1px solid var(--mtm-accent);
}

.mtm-btn-primary:hover,
.mtm-btn-primary:focus {
  background: var(--mtm-accent-hover);
  border-color: var(--mtm-accent-hover);
  color: #ffffff;
}

.mtm-btn-secondary {
  background: #ffffff;
  color: var(--mtm-accent);
  border: 1px solid var(--mtm-accent);
}

.mtm-btn-secondary:hover,
.mtm-btn-secondary:focus {
  background: rgba(26, 77, 143, 0.06);
  color: var(--mtm-accent-hover);
  border-color: var(--mtm-accent-hover);
}

.mtm-btn-outline {
  background: transparent;
  color: var(--mtm-text-strong);
  border: 1px solid rgba(160, 174, 192, 0.6);
}

.mtm-btn-outline:hover,
.mtm-btn-outline:focus {
  border-color: var(--mtm-accent);
  color: var(--mtm-accent);
}

.mtm-btn-link {
  padding: 0;
  min-height: auto;
  background: none;
  border: none;
  color: var(--mtm-accent);
}

.mtm-btn-link:hover,
.mtm-btn-link:focus {
  color: var(--mtm-accent-hover);
  text-decoration: underline;
}

/* =========================================================
   Formulaires éditoriaux MTM + Contact Form 7
   ========================================================= */

.mtm-form {
  font-family: Nunito, sans-serif;
}

.mtm-form,
.mtm-form .wpcf7,
.mtm-form .wpcf7 form {
  color: var(--mtm-text-main);
}

/* Structure */

.mtm-form__grid {
  display: grid;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.mtm-form__field {
  display: block;
  min-width: 0;
}

.mtm-form__field--full,
.mtm-form__section-title,
.mtm-form__captcha,
.mtm-form__actions,
.mtm-form__consent,
.mtm-form__hint {
  grid-column: 1 / -1;
}

.mtm-form--desktop-1col .mtm-form__grid {
  grid-template-columns: 1fr;
}

.mtm-form--desktop-2col .mtm-form__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mtm-form--desktop-3col .mtm-form__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Intertitres de formulaire */

.mtm-form__section-title {
  grid-column: 1 / -1;
  margin: 0.75rem 0 0;
}

.mtm-form__section-title span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--mtm-border);
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--mtm-text-strong);
}

.mtm-form__section-title span::before {
  content: "";
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background-color: rgba(26, 77, 143, 0.08);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem 1rem;
}

.mtm-form__section-title--coordonnees span::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A4D8F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M18 21a6 6 0 0 0-12 0'/><circle cx='12' cy='8' r='4'/></svg>");
}

.mtm-form__section-title--trajet span::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A4D8F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 1 1 18 0Z'/><circle cx='12' cy='10' r='3'/></svg>");
}

.mtm-form__section-title--precisions span::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A4D8F' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><path d='M14 2v6h6'/><path d='M16 13H8'/><path d='M16 17H8'/><path d='M10 9H8'/></svg>");
}

.mtm-form__section-title:first-child,
.mtm-form__grid > .mtm-form__section-title:first-child {
  margin-top: 0;
}

.mtm-form__section-title:first-child span,
.mtm-form__grid > .mtm-form__section-title:first-child span {
  padding-top: 0;
  border-top: 0;
}

.mtm-form .wpcf7-submit,
.mtm-form__actions input[type="submit"],
.mtm-form__actions button {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.95rem 1.4rem 0.95rem 3rem;
  background-color: var(--mtm-accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m22 2-7 20-4-9-9-4Z'/><path d='M22 2 11 13'/></svg>");
  background-repeat: no-repeat;
  background-position: left 1.1rem center;
  background-size: 1.05rem 1.05rem;
}

/* Labels */

.mtm-form label,
.mtm-form__field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--mtm-text-strong);
}

.mtm-form label .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.35rem;
}

/* Champs */

.mtm-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.mtm-form textarea,
.mtm-form select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(160, 174, 192, 0.6);
  border-radius: 8px;
  background: #ffffff;
  color: var(--mtm-text-main);
  font-size: 1rem;
  line-height: 1.5;
}

.mtm-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.mtm-form textarea:focus,
.mtm-form select:focus {
  border-color: var(--mtm-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 77, 143, 0.12);
}

.mtm-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Aides, consentement, erreurs */

.mtm-form__hint,
.mtm-form__consent,
.mtm-form .wpcf7-not-valid-tip {
  font-size: 0.92rem;
  line-height: 1.45;
}

.mtm-form__hint,
.mtm-form__consent {
  margin-top: 0.75rem;
  color: var(--mtm-text-soft);
}

.mtm-form__hint {
  grid-column: 1 / -1;
}

.mtm-form .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  color: var(--mtm-error);
}

/* Captcha */

.mtm-form__captcha {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
}

/* Consentement */

.mtm-form__consent {
  display: block;
  grid-column: 1 / -1;
  margin-top: 1rem;
  color: var(--mtm-text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mtm-form__consent a {
  color: var(--mtm-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Actions */

.mtm-form__actions {
  grid-column: 1 / -1;
  margin-top: 1.1rem;
}

.mtm-form .wpcf7-submit,
.mtm-form__actions input[type="submit"],
.mtm-form__actions button {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.95rem 1.4rem;
  background-color: var(--mtm-accent) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m22 2-7 20-4-9-9-4Z'/><path d='M22 2 11 13'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: calc(50% - 5.6rem) center !important;
  background-size: 1.05rem 1.05rem !important;
  color: #ffffff !important;
  border: 1px solid var(--mtm-accent) !important;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(26, 77, 143, 0.18);
  font-family: Nunito, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mtm-form .wpcf7-submit:hover,
.mtm-form .wpcf7-submit:focus,
.mtm-form__actions input[type="submit"]:hover,
.mtm-form__actions input[type="submit"]:focus,
.mtm-form__actions button:hover,
.mtm-form__actions button:focus {
  background-color: var(--mtm-accent-hover) !important;
  border-color: var(--mtm-accent-hover) !important;
  box-shadow: 0 10px 22px rgba(26, 77, 143, 0.22);
  transform: translateY(-1px);
}

.mtm-form .wpcf7-submit:focus-visible,
.mtm-form__actions input[type="submit"]:focus-visible,
.mtm-form__actions button:focus-visible {
  outline: 2px solid rgba(26, 77, 143, 0.22);
  outline-offset: 3px;
}

/* Variantes métier */

.mtm-form--lead {
  background: linear-gradient(180deg, rgba(26, 77, 143, 0.05) 0%, rgba(26, 77, 143, 0.02) 100%);
  border: 1px solid rgba(26, 77, 143, 0.14);
  border-radius: 12px;
  padding: 1rem;
}

.mtm-form--reservation {
  border-color: rgba(26, 77, 143, 0.22);
}

.mtm-form--recurrent {
  background: #ffffff;
  border: 1px solid rgba(160, 174, 192, 0.3);
  border-radius: 12px;
  padding: 1rem;
}

.mtm-form--etablissement {
  background: rgba(237, 242, 247, 0.55);
}

/* Messages Contact Form 7 */

.mtm-form .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.mtm-form .sent .wpcf7-response-output {
  border: 1px solid rgba(56, 161, 105, 0.35);
  background: rgba(56, 161, 105, 0.08);
  color: var(--mtm-success);
}

.mtm-form .invalid .wpcf7-response-output,
.mtm-form .failed .wpcf7-response-output,
.mtm-form .unaccepted .wpcf7-response-output {
  border: 1px solid rgba(220, 53, 69, 0.25);
  background: rgba(220, 53, 69, 0.06);
  color: var(--mtm-error);
}

/* Grilles historiques CF7 conservées pour transition */

.mtm-form .form-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.5rem;
  margin-bottom: 1rem;
}

.mtm-form .form-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

/* Responsive */

@media (max-width: 767px) {
  .mtm-form__grid,
  .mtm-form .form-grid-2col,
  .mtm-form .form-grid-3col {
    grid-template-columns: 1fr;
  }

  .mtm-form__section-title span::before {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
    background-size: 0.95rem 0.95rem;
  }

  .mtm-form .wpcf7-submit,
  .mtm-form__actions input[type="submit"],
  .mtm-form__actions button {
    width: 100%;
  }

  .mtm-form__consent {
    font-size: 0.88rem;
  }
}

/* =========================================================
   Bloc FAQ éditorial MTM + Rank Math
   ========================================================= */

.mtm-faq {
  margin: 2.5rem 0 1.75rem;
  padding: 1.35rem;
  border: 1px solid rgba(26, 77, 143, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 253, 0.92) 100%);
  box-shadow: 0 10px 30px rgba(15, 35, 64, 0.05);
}

.mtm-faq__header {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.mtm-faq__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(26, 77, 143, 0.32);
  background-color: rgba(26, 77, 143, 0.04);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><path d='M32 10c-10.493 0-19 7.835-19 17.5 0 4.158 1.607 7.976 4.291 11.017L16 52l12.215-6.043A21.46 21.46 0 0 0 32 45c10.493 0 19-7.835 19-17.5S42.493 10 32 10Z' stroke='%231A4D8F' stroke-width='2.4' stroke-linejoin='round'/><path d='M26.75 25.5a5.25 5.25 0 1 1 8.781 3.899c-1.85 1.637-3.531 2.845-3.531 5.101' stroke='%231A4D8F' stroke-width='2.4' stroke-linecap='round'/><circle cx='32' cy='39.5' r='1.6' fill='%231A4D8F'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 42px 42px;
}

.mtm-faq__heading h2 {
  margin: 0;
  color: var(--mtm-text-strong);
  font-size: clamp(1.45rem, 1.2rem + 0.7vw, 2rem);
  line-height: 1.15;
}

.mtm-faq__heading p {
  margin: 0.55rem 0 0;
  max-width: 62ch;
  color: var(--mtm-text-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

.mtm-faq__body {
  padding-top: 0.35rem;
}

/* Reset wrapper Rank Math dans le bloc */

.mtm-faq .rank-math-rich-snippet-wrapper {
  margin: 0;
}

.mtm-faq .rank-math-rich-snippet-wrapper .rank-math-block {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.mtm-faq .rank-math-rich-snippet-wrapper .rank-math-list {
  margin: 0;
  padding: 0;
}

.mtm-faq .rank-math-rich-snippet-wrapper .rank-math-list-item {
  margin: 0;
  padding: 0.1rem 0 0;
  border-bottom: 1px solid rgba(26, 77, 143, 0.10);
}

.mtm-faq .rank-math-rich-snippet-wrapper .rank-math-list-item:last-child {
  border-bottom: 0;
}

.mtm-faq .rank-math-rich-snippet-wrapper .rank-math-question {
  position: relative;
  margin: 0;
  padding: 1rem 2.6rem 1rem 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--mtm-text-strong);
  font-weight: 700;
}

.mtm-faq .rank-math-rich-snippet-wrapper .rank-math-question::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 0.15rem;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='m5 7.5 5 5 5-5' stroke='%231A4D8F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem 1rem;
  opacity: 0.85;
}

.mtm-faq .rank-math-rich-snippet-wrapper .rank-math-answer,
.mtm-faq .rank-math-rich-snippet-wrapper .rank-math-answer p {
  color: var(--mtm-text-main);
  line-height: 1.7;
  font-size: 0.98rem;
}

.mtm-faq .rank-math-rich-snippet-wrapper .rank-math-answer {
  padding: 0 0 1rem;
}

.mtm-faq .rank-math-rich-snippet-wrapper .rank-math-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .mtm-faq {
    margin: 2rem 0 1.5rem;
    padding: 1.1rem;
    border-radius: 16px;
  }

  .mtm-faq__header {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .mtm-faq__icon {
    width: 60px;
    height: 60px;
    background-size: 36px 36px;
  }

  .mtm-faq .rank-math-rich-snippet-wrapper .rank-math-question {
    padding-right: 2.2rem;
    font-size: 0.98rem;
  }
}
/* =========================================================
   Tableaux responsives
   ========================================================= */

.mtm-tableau-scroll,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.mtm-tableau,
.article-comparison {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--mtm-bg-card);
  font-family: Nunito, sans-serif;
}

.mtm-tableau th,
.mtm-tableau td,
.article-comparison th,
.article-comparison td {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(160, 174, 192, 0.28);
  vertical-align: top;
  text-align: left;
}

.mtm-tableau th,
.article-comparison th {
  background: var(--mtm-bg-soft);
  color: var(--mtm-text-strong);
  font-weight: 700;
}

.mtm-tableau td,
.article-comparison td {
  color: var(--mtm-text-main);
}

/* =========================================================
   Badges et micro-éléments
   ========================================================= */

.mtm-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
}

.mtm-badge--info {
  background: rgba(26, 77, 143, 0.1);
  color: var(--mtm-accent);
}

.mtm-badge--success {
  background: rgba(56, 161, 105, 0.12);
  color: var(--mtm-success);
}

.mtm-badge--attention {
  background: rgba(237, 137, 54, 0.12);
  color: var(--mtm-warning);
}

.mtm-liste-check,
.mtm-liste-points {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.mtm-liste-check li,
.mtm-liste-points li {
  margin-bottom: 0.45rem;
}

.mtm-texte-secondaire,
.mtm-mini-meta {
  color: var(--mtm-text-soft);
  font-size: 0.94rem;
}

/* =========================================================
   Responsive global
   ========================================================= */

@media (max-width: 768px) {
  .wpcf7 form .form-grid-2col,
  .wpcf7 form .form-grid-3col,
  .mtm-form--desktop-1col .mtm-form__grid,
  .mtm-form--desktop-2col .mtm-form__grid,
  .mtm-form--desktop-3col .mtm-form__grid,
  .mtm-form--mobile-1col .mtm-form__grid,
  .mtm-form--mobile-2col .mtm-form__grid {
    grid-template-columns: 1fr;
  }

  .mtm-bloc-ctaactions {
    flex-direction: column;
    align-items: stretch;
  }

  .mtm-btn,
  .mtm-bloc-cta .mtm-btn,
  .mtm-bloc-cta a.mtm-btn,
  .wpcf7 form .wpcf7-submit,
  .mtm-form__actions .wpcf7-submit,
  .mtm-form__actions input[type="submit"],
  .mtm-form__actions button {
    width: 100%;
  }

  .mtm-encadre,
  .mtm-info-pratique,
  .mtm-a-lire-aussi,
  .mtm-a-lire-egalement,
  .mtm-bloc-cta,
  .mtm-note-editoriale,
  .mtm-note-source,
  blockquote,
  .mtm-blockquote {
    padding: 1rem;
  }
}

/* =========================================================
   Tableaux mobiles
   ========================================================= */

@media screen and (max-width: 767px) {
  .mtm-tableau,
  .article-comparison {
    min-width: 100%;
  }

  .mtm-tableau thead,
  .article-comparison thead {
    display: none;
  }

  .mtm-tableau tr,
  .article-comparison tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(160, 174, 192, 0.28);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
  }

  .mtm-tableau td,
  .article-comparison td {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(160, 174, 192, 0.18);
    text-align: right;
    padding-left: 48%;
    position: relative;
  }

  .mtm-tableau td:last-child,
  .article-comparison td:last-child {
    border-bottom: none;
  }

  .mtm-tableau td::before,
  .article-comparison td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.9rem;
    top: 0.85rem;
    width: 42%;
    color: var(--mtm-text-soft);
    font-weight: 700;
    text-align: left;
    white-space: normal;
  }
}