/* ============================================================
   MÉTHODE M.I.M.E. — Système de design moderne
   Palette : teal #58ABB7 | corail #ff7070 | anthracite #384554 | clair #f1f5f8
   ============================================================ */

:root {
  --teal:       #58ABB7;
  --teal-dark:  #418f9a;
  --teal-xdark: #2d7480;
  --coral:      #ff7070;
  --coral-dark: #e05050;
  --dark:       #384554;
  --dark-soft:  #4c5867;
  --light:      #f1f5f8;
  --light-mid:  #e0e8ed;
  --white:      #ffffff;
  --text:       #384554;

  --font-body:    'Inter', 'Hind', sans-serif;
  --font-heading: 'Roboto Slab', serif;

  --radius:  10px;
  --radius-lg: 18px;
  --shadow:  0 4px 20px rgba(56,69,84,.10);
  --shadow-lg: 0 8px 40px rgba(56,69,84,.16);
  --transition: .25s ease;
}

/* ── Menu principal — style M.I.M.E. ────────────────────────── */

/* Barre de nav : fond sombre, hauteur généreuse */
#site-header .header-main {
  background: var(--dark) !important;
}
#site-header {
  background: var(--dark) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.25) !important;
  border-bottom: 3px solid var(--teal) !important;
}

/* Logo zone */
#site-header .site-branding {
  padding: 10px 0 !important;
}

/* Liens de premier niveau */
#primary-menu.nav-menu > li > a {
  font-family: 'Roboto Slab', serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: .01em !important;
  color: rgba(255,255,255,.88) !important;
  padding: 22px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
  text-transform: none !important;
  transition: color .2s, background .2s !important;
  border-radius: 0 !important;
  line-height: 1.2 !important;
}
#primary-menu.nav-menu > li > a:hover,
#primary-menu.nav-menu > li.current-menu-item > a,
#primary-menu.nav-menu > li.current-menu-ancestor > a {
  color: var(--teal) !important;
  background: rgba(88,171,183,.10) !important;
}

/* Icône emoji */
.mime-nav-icon {
  font-size: 22px !important;
  line-height: 1 !important;
  display: block !important;
}
.mime-nav-label {
  display: block !important;
  font-size: 13px !important;
  font-family: 'Roboto Slab', serif !important;
  white-space: nowrap !important;
}

/* Sous-menu */
#primary-menu .sub-menu {
  background: var(--dark) !important;
  border: none !important;
  border-top: 3px solid var(--teal) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.3) !important;
  border-radius: 0 0 10px 10px !important;
  min-width: 220px !important;
}
#primary-menu .sub-menu li a {
  font-family: 'Roboto Slab', serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,.82) !important;
  padding: 12px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  transition: color .2s, padding-left .2s !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#primary-menu .sub-menu li a:hover {
  color: var(--teal) !important;
  padding-left: 28px !important;
  background: rgba(88,171,183,.08) !important;
}
.mime-nav-icon--sub {
  font-size: 16px !important;
}

/* Indicateur flèche sur items parents */
#primary-menu.nav-menu > li.menu-item-has-children > a::after {
  content: '▾' !important;
  font-size: 11px !important;
  opacity: .6 !important;
  font-family: sans-serif !important;
  display: block !important;
  line-height: 1 !important;
}

/* Séparateurs verticaux entre items */
#primary-menu.nav-menu > li + li {
  border-left: 1px solid rgba(255,255,255,.08) !important;
}

/* Bouton mobile */
.menu-toggle.dl-trigger {
  color: var(--white) !important;
  background: transparent !important;
  border: 2px solid rgba(255,255,255,.3) !important;
  border-radius: 6px !important;
  padding: 8px 14px !important;
  font-family: 'Roboto Slab', serif !important;
}

/* ── Reset ciblé ───────────────────────────────────────────── */
.mime-page * { box-sizing: border-box; }
.mime-page { font-family: var(--font-body); color: var(--text); line-height: 1.7; }

/* ── Masquer le titre de page standard sur nos templates ───── */
.mime-page .page-heading,
.mime-page .entry-header .entry-title,
.mime-page .breadcrumb-holder { display: none !important; }
.mime-page .entry-content { padding: 0 !important; margin: 0 !important; }
.mime-page .entry-content > p:empty { display: none; }

/* ═══════════════════════════════════════════════════════════
   COMPOSANTS GÉNÉRAUX
   ═══════════════════════════════════════════════════════════ */

/* Conteneur centré */
.m-wrap {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Section de base */
.m-section {
  padding: 80px 0;
}
.m-section--sm { padding: 56px 0; }
.m-section--lg { padding: 110px 0; }

/* Variantes de couleur de fond */
.m-bg-teal    { background: var(--teal);    color: var(--white); }
.m-bg-coral   { background: var(--coral);   color: var(--white); }
.m-bg-dark    { background: var(--dark);    color: var(--white); }
.m-bg-light   { background: var(--light);   color: var(--text);  }
.m-bg-white   { background: var(--white);   color: var(--text);  }

.m-bg-teal  a:not(.m-btn), .m-bg-coral a:not(.m-btn), .m-bg-dark a:not(.m-btn) { color: var(--white); text-decoration: underline; }

/* ── Titres de section ─────────────────────────────────────── */
.m-section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 12px;
}
.m-section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 20px;
}
.m-section-sub {
  font-size: 18px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 0 48px;
  opacity: .85;
}
.m-text-center { text-align: center; }
.m-section-sub.m-text-center { margin-left: auto; margin-right: auto; }

/* Séparateur coloré sous le titre */
.m-title-bar {
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--coral);
  margin: 0 0 32px;
}
.m-text-center .m-title-bar { margin: 0 auto 32px; }
.m-bg-teal .m-title-bar,
.m-bg-dark .m-title-bar { background: rgba(255,255,255,.5); }

/* ── Boutons ───────────────────────────────────────────────── */
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: .3px;
}
.m-btn-coral  { background: var(--coral);    color: var(--white); }
.m-btn-coral:hover  { background: var(--coral-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255,112,112,.35); }
.m-btn-teal   { background: var(--teal);     color: var(--white); }
.m-btn-teal:hover   { background: var(--teal-dark);  color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(88,171,183,.35); }
.m-btn-outline { background: transparent; border: 2px solid currentColor; color: var(--teal); }
.m-btn-outline:hover { background: var(--teal); color: var(--white); }
.m-btn-white  { background: var(--white); color: var(--teal); }
.m-btn-white:hover { background: var(--light); color: var(--teal-dark); transform: translateY(-2px); }

/* ── Cards ─────────────────────────────────────────────────── */
.m-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  transition: var(--transition);
}
.m-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── Grille ────────────────────────────────────────────────── */
.m-grid {
  display: grid;
  gap: 28px;
}
.m-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.m-grid-3 { grid-template-columns: repeat(3, 1fr); }
.m-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ── Pictogrammes / icône block ─────────────────────────────── */
.m-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 32px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.m-icon-sm { width: 52px; height: 52px; font-size: 24px; margin-bottom: 14px; }
.m-icon-teal  { background: rgba(88,171,183,.15); color: var(--teal); }
.m-icon-coral { background: rgba(255,112,112,.15); color: var(--coral); }
.m-icon-dark  { background: rgba(56,69,84,.12);   color: var(--dark); }
.m-icon-white { background: rgba(255,255,255,.2);  color: var(--white); }

/* ── Stat / chiffre clé ────────────────────────────────────── */
.m-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 600;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.m-stat-label {
  font-size: 16px;
  opacity: .85;
  font-weight: 500;
}

/* ── Citation / témoignage ──────────────────────────────────── */
.m-quote {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 32px 28px;
  font-size: 16px;
  line-height: 1.7;
  font-style: italic;
  color: var(--dark-soft);
}
.m-quote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: var(--teal);
  opacity: .3;
  position: absolute;
  top: 8px;
  left: 18px;
}
.m-quote-author {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-dark);
}

/* ── Liste avec icône ───────────────────────────────────────── */
.m-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.m-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 17px;
  line-height: 1.6;
  border-bottom: 1px solid var(--light-mid);
}
.m-list li:last-child { border-bottom: none; }
.m-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.m-list-coral li::before { color: var(--coral); }

/* ── Progress bar ───────────────────────────────────────────── */
.m-progress-wrap { margin-bottom: 32px; }
.m-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.m-progress-track {
  height: 12px;
  background: var(--light);
  border-radius: 6px;
  overflow: hidden;
}
.m-progress-bar {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--teal), var(--teal-xdark));
}

/* ── Accordion / Toggle ─────────────────────────────────────── */
.m-accordion { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.m-accordion-item { border-bottom: 1px solid var(--light); }
.m-accordion-item:last-child { border-bottom: none; }
.m-accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  text-align: left;
  transition: var(--transition);
  gap: 16px;
}
.m-accordion-trigger:hover { background: var(--light); color: var(--teal); }
.m-accordion-trigger.active { background: var(--teal); color: var(--white); }
.m-accordion-arrow { font-size: 20px; transition: transform .25s; flex-shrink: 0; }
.m-accordion-trigger.active .m-accordion-arrow { transform: rotate(45deg); }
.m-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  background: var(--light);
}
.m-accordion-body.open { max-height: 2000px; }
.m-accordion-body-inner {
  padding: 24px 28px;
  font-size: 16px;
  line-height: 1.8;
  columns: 2;
  column-gap: 32px;
}
@media (max-width: 600px) { .m-accordion-body-inner { columns: 1; } }
.m-accordion-body-inner li {
  break-inside: avoid;
  padding: 4px 0;
}

/* ── Hero ───────────────────────────────────────────────────── */
.m-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--teal-xdark) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.m-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.m-hero-content { position: relative; z-index: 1; }
.m-hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.m-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 24px;
  max-width: 700px;
}
.m-hero-sub {
  font-size: 20px;
  line-height: 1.7;
  max-width: 600px;
  opacity: .9;
  margin: 0 0 40px;
}
.m-hero-btns { display: flex; flex-wrap: wrap; gap: 16px; }

/* ── Page intro banner ───────────────────────────────────────── */
.m-page-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 64px 0 60px;
}
.m-page-banner .m-section-title { color: var(--white); margin-bottom: 12px; }
.m-page-banner .m-section-sub   { color: rgba(255,255,255,.9); margin-bottom: 0; }

/* ── Feature card horizontal ────────────────────────────────── */
.m-feature {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.m-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.m-feature-body { flex: 1; }
.m-feature-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--dark);
}
.m-feature-text { font-size: 16px; line-height: 1.65; margin: 0; color: var(--dark-soft); }

/* ── Colored block strip (statistiques) ─────────────────────── */
.m-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.m-strip-item {
  padding: 48px 28px;
  text-align: center;
}
.m-strip-item:nth-child(1) { background: var(--teal); color: var(--white); }
.m-strip-item:nth-child(2) { background: var(--coral); color: var(--white); }
.m-strip-item:nth-child(3) { background: var(--dark);  color: var(--white); }
.m-strip-item:nth-child(4) { background: var(--teal-dark); color: var(--white); }

/* ── Tag / badge ────────────────────────────────────────────── */
.m-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
}
.m-tag-teal  { background: rgba(88,171,183,.15); color: var(--teal-dark); }
.m-tag-coral { background: rgba(255,112,112,.15); color: var(--coral-dark); }

/* ── Team card ──────────────────────────────────────────────── */
.m-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 28px;
}
.m-team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.m-team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.m-team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.m-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.m-team-info { padding: 16px 14px 18px; }
.m-team-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--dark);
  line-height: 1.3;
}
.m-team-role {
  font-size: 12px;
  color: var(--teal-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.m-team-org {
  font-size: 12px;
  color: var(--dark-soft);
  line-height: 1.4;
}
.m-team-card-info { padding: 18px 16px 20px; }
.m-team-card-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--dark);
}
.m-team-card-role {
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 600;
}

/* ── Vidéo embed ─────────────────────────────────────────────── */
.m-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.m-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Two-col layout ─────────────────────────────────────────── */
.m-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.m-two-col.reverse { direction: rtl; }
.m-two-col.reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .m-two-col { grid-template-columns: 1fr; gap: 36px; }
  .m-two-col.reverse { direction: ltr; }
}
.m-two-col img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ── Divider ────────────────────────────────────────────────── */
.m-divider {
  height: 1px;
  background: var(--light-mid);
  margin: 40px 0;
}

/* ── Highlighted box ─────────────────────────────────────────── */
.m-highlight {
  border-left: 5px solid var(--coral);
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  font-size: 17px;
  line-height: 1.7;
}
.m-highlight.teal { border-left-color: var(--teal); }
.m-highlight.dark { border-left-color: var(--dark); background: #fff; }

/* ── Country flags strip ────────────────────────────────────── */
.m-flags { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.m-flags img { height: 40px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .m-section { padding: 60px 0; }
  .m-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .m-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 600px) {
  .m-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .m-section { padding: 44px 0; }
  .m-hero { padding: 72px 0 56px; }
  .m-strip { grid-template-columns: 1fr 1fr; }
  .m-accordion-body-inner { columns: 1; }
  .m-feature { flex-direction: column; }
  .m-team-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
