/* Mediglotte — sections ajoutées lors de la refonte 2026.
   Chargée après theme.css, ne remplace rien : n'ajoute que les nouveaux blocs. */

:root {
  --mg-plum: #7f2f61;
  --mg-plum-deep: #4a1836;
  --mg-tint: #f9f4f8;
  --mg-border: #e8d5e4;
  --mg-soft: #e8c4dc;
  --mg-ink: #212b35;
  --mg-muted: #5c7893;
}

/* --- Hero --- */
.mg-hero {
  background: linear-gradient(160deg, var(--mg-plum) 0%, var(--mg-plum-deep) 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.mg-hero .mg-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.mg-hero .mg-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--mg-soft);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.mg-hero .app-stores img {
  height: 44px;
  width: auto;
}
.mg-hero-mark {
  max-width: 260px;
  width: 60%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* --- Scénarios d'usage --- */
.mg-cases {
  padding: 4rem 0;
}
.mg-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mg-plum);
  margin-bottom: 1.75rem;
}
.mg-case {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.mg-case-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mg-tint);
  color: var(--mg-plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.mg-case h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--mg-ink);
  margin-bottom: 0.35rem;
}
.mg-case p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mg-muted);
  margin-bottom: 0;
}

/* --- Bandeau de chiffres --- */
.mg-figures {
  background: var(--mg-tint);
  border-top: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
  padding: 2.5rem 0;
}
.mg-figure {
  text-align: center;
  padding: 0.5rem 0;
}
.mg-figure .mg-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--mg-plum);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mg-figure .mg-caption {
  font-size: 0.8125rem;
  color: var(--mg-muted);
  margin-top: 0.35rem;
}

/* --- Nouveautés --- */
.mg-whats-new {
  padding: 4rem 0;
}
.mg-feature {
  height: 100%;
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  padding: 1.5rem;
  background: #fff;
}
.mg-feature .mg-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mg-plum);
  background: var(--mg-tint);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.85rem;
}
.mg-feature h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--mg-ink);
  margin-bottom: 0.4rem;
}
.mg-feature p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mg-muted);
  margin-bottom: 0;
}

/* --- Sélecteur de langue --- */
.mg-lang-switch {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.mg-lang-switch a {
  color: var(--mg-muted);
  text-decoration: none;
  padding: 0 0.25rem;
}
.mg-lang-switch a.is-active {
  color: var(--mg-plum);
  font-weight: 700;
}
.mg-lang-switch a:hover {
  color: var(--mg-plum);
}

/* --- Bandeau d'appel final --- */
.mg-cta {
  background: var(--mg-plum);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.mg-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.mg-cta p {
  color: var(--mg-soft);
  margin-bottom: 1.75rem;
}
.mg-cta .app-stores img {
  height: 44px;
  width: auto;
}

@media (max-width: 767.98px) {
  .mg-hero { padding: 3rem 0 2.5rem; text-align: center; }
  .mg-hero .mg-lead { margin-left: auto; margin-right: auto; }
  .mg-hero-mark { margin: 2rem auto 0; display: block; }
}

/* --- Maquettes de téléphone (démonstration) --- */
.mg-phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 34px;
  background: linear-gradient(150deg, #d8d5d0, #6f6b66 20%, #35322f 48%, #cfccc7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.mg-phone .mg-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 9 / 19;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.35;
  color: var(--mg-ink);
  text-align: left;
}
.mg-phone .mg-island {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  background: #000;
  border-radius: 12px;
  z-index: 4;
}
.mg-phone .mg-nav {
  background: var(--mg-plum);
  color: #fff;
  padding: 34px 10px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  flex: none;
}
.mg-phone .mg-body {
  padding: 8px;
  flex: 1;
  overflow: hidden;
}
.mg-phone .mg-search {
  background: #fff;
  border: 1px solid var(--mg-border);
  border-radius: 8px;
  padding: 6px 8px;
  color: #c8a0bb;
  font-size: 9px;
  margin-bottom: 8px;
}
.mg-phone .mg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mg-phone .mg-tile {
  background: #fff;
  border: 1px solid var(--mg-border);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
}
.mg-phone .mg-tile .mg-globe {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mg-plum);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
  font-size: 12px;
}
.mg-phone .mg-tile strong { display: block; font-size: 10px; }
.mg-phone .mg-tile span { font-size: 8px; color: #888; }
.mg-phone .mg-card {
  background: #fff;
  border: 1px solid var(--mg-border);
  border-radius: 10px;
  overflow: hidden;
}
.mg-phone .mg-row { padding: 7px 9px; }
.mg-phone .mg-row + .mg-row { border-top: 1px solid #f0e4ec; }
.mg-phone .mg-row .mg-src { font-size: 8.5px; color: #888; display: block; }
.mg-phone .mg-row .mg-dst { font-size: 10px; font-weight: 700; }
.mg-phone .mg-tabs {
  flex: none;
  display: flex;
  background: #fff;
  border-top: 1px solid #eaeaea;
  padding: 6px 0 10px;
}
.mg-phone .mg-tabs span { flex: 1; text-align: center; font-size: 12px; color: #b9b9b9; }
.mg-phone .mg-tabs span.on { color: var(--mg-plum); }
.mg-phone .mg-patient {
  position: absolute;
  inset: 0;
  background: var(--mg-plum);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  z-index: 3;
}
.mg-phone .mg-patient .mg-p-src { font-size: 10px; color: var(--mg-soft); }
.mg-phone .mg-patient .mg-p-dst { font-size: 22px; font-weight: 800; line-height: 1.1; margin-top: 8px; }
.mg-phone .mg-patient .mg-p-hint { position: absolute; bottom: 22px; font-size: 8.5px; color: var(--mg-soft); }
.mg-phone .mg-metric {
  background: #fff;
  border: 1px solid var(--mg-border);
  border-radius: 10px;
  padding: 9px;
  text-align: center;
}
.mg-phone .mg-metric b { display: block; font-size: 9px; }
.mg-phone .mg-metric .mg-val { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }

.mg-showcase { padding: 3.5rem 0; }
.mg-showcase .mg-shot-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--mg-muted);
  margin-top: 1rem;
}

/* --- Badges des stores : même hauteur réelle sur les deux plateformes --- */
.app-stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.app-stores li { margin: 0 !important; }
.app-stores img { height: 42px; width: auto; display: block; }

/* --- Logo d'en-tête : la PNG n'a pas de taille intrinsèque utile --- */
.site-logo .logo-icon,
.navbar-brand .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  vertical-align: middle;
  margin-right: 8px;
}
.site-logo .logo-text { font-size: 1.125rem; letter-spacing: 0.06em; }

/* --- Hero : texte à gauche, visuel à droite, sans vide --- */
.mg-hero .row { align-items: center; }
.mg-hero .mg-phone { max-width: 250px; margin-right: 0; }

/* --- Respiration entre les cartes sur petits écrans --- */
.mg-whats-new .row > [class*="col-"] { margin-bottom: 1.5rem; }
.mg-showcase .row > [class*="col-"] { margin-bottom: 1.5rem; }
@media (min-width: 992px) {
  .mg-whats-new .row > [class*="col-"] { margin-bottom: 0; }
}

/* --- Crédit auteur du thème --- */
.mg-credits { font-size: 0.8125rem; color: var(--mg-muted); }
.mg-credits a { color: var(--mg-plum); }

/* --- Alignement de l'en-tête : logo, titre et sélecteur sur une même ligne --- */
.branding .navbar { align-items: center; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.branding .site-logo { margin: 0; display: flex; align-items: center; }
.branding .navbar-brand { display: flex; align-items: center; margin: 0; padding: 0; }
.branding .site-logo .logo-text { top: 0; line-height: 1; }
.mg-lang-switch { display: flex; align-items: center; gap: 2px; line-height: 1; }

/* --- Hero sans visuel : texte centré et aéré --- */
.mg-hero .mg-hero-text { max-width: 46rem; margin: 0 auto; text-align: center; }
.mg-hero .mg-hero-text .mg-lead { margin-left: auto; margin-right: auto; }
.mg-hero .mg-hero-text .app-stores { justify-content: center; }

/* Espace entre le titre du site et le sélecteur de langue */
.branding .mg-lang-switch { margin-left: auto; padding-left: 2rem; }
