/* Media5 – nouveau design (maquette) : sobre, lisible, orienté patient. Couleurs reprises du thème actuel (vert d'eau + jaune). */
.m5 {
  --vert: #0E7C7B;
  --vert-fonce: #0A5453;
  --vert-clair: #E8F5F3;
  --jaune: #F5C542;
  --texte: #1C2B2D;
  --gris: #56656A;
  --bord: #DCE8E6;
  --fond: #F7FAF9;
  --rouge: #B42318;
  --nuit: #22305A;
  --rayon: 16px;
  --ombre: 0 10px 30px rgba(10, 84, 83, .08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texte);
  background: #fff;
  font-size: 17px;
  line-height: 1.6;
}
.m5 *, .m5 *::before, .m5 *::after { box-sizing: border-box; }
.m5 h1, .m5 h2, .m5 h3 { font-family: inherit; color: var(--texte); line-height: 1.2; margin: 0; }
.m5 a { color: var(--vert); }
.m5-conteneur { width: min(1180px, 100% - 40px); margin-inline: auto; }
.m5-ic { width: 22px; height: 22px; fill: currentColor; flex: none; }
.m5-evitement { position: absolute; left: -9999px; }
.m5-evitement:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.m5 :focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }

/* Boutons */
.m5-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none !important; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.m5-btn .m5-ic { width: 20px; height: 20px; }
.m5-btn--plein { background: var(--vert); color: #fff !important; }
.m5-btn--plein:hover { background: var(--vert-fonce); }
.m5-btn--contour { border-color: var(--vert); color: var(--vert) !important; background: #fff; }
.m5-btn--contour:hover { background: var(--vert-clair); }
.m5-btn--blanc { background: #fff; color: var(--vert-fonce) !important; }
.m5-btn--blanc:hover { background: var(--vert-clair); }
.m5-btn--accent { background: var(--jaune); color: var(--texte) !important; }
.m5-btn--accent:hover { background: #ffd666; }
.m5-btn--transparent { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.m5-btn--transparent:hover { background: rgba(255, 255, 255, .12); }

/* En-tête */
.m5-entete { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bord); }
.m5-entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.m5-marque { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--texte) !important; }
.m5-marque strong { display: block; font-size: 18px; line-height: 1.1; }
.m5-marque small { display: block; color: var(--gris); font-size: 13px; }
.m5-marque__croix { width: 38px; height: 38px; border-radius: 10px; background: var(--vert); position: relative; flex: none; }
.m5-marque__croix::before, .m5-marque__croix::after { content: ""; position: absolute; background: #fff; border-radius: 2px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.m5-marque__croix::before { width: 20px; height: 6px; }
.m5-marque__croix::after { width: 6px; height: 20px; }
.m5-nav { display: flex; align-items: center; gap: 18px; }
.m5-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.m5-nav li a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--texte) !important; text-decoration: none !important; font-weight: 500; font-size: 15px; white-space: nowrap; }
.m5-nav li a:hover { background: var(--vert-clair); color: var(--vert-fonce) !important; }
.m5-nav__actions { display: flex; gap: 8px; }
.m5-nav__actions .m5-btn { min-height: 42px; padding: 8px 16px; font-size: 15px; }
.m5-menu-bouton { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 2px solid var(--bord); border-radius: 999px; background: #fff; color: var(--texte); font: 600 15px system-ui, sans-serif; cursor: pointer; }
.m5-barres, .m5-barres::before, .m5-barres::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.m5-barres::before, .m5-barres::after { content: ""; position: absolute; left: 0; }
.m5-barres::before { top: -6px; } .m5-barres::after { top: 6px; }

/* Héro */
.m5-hero { background: linear-gradient(135deg, var(--vert-fonce), var(--vert) 60%, #14a39f); color: #fff; padding: 64px 0 72px; }
.m5-hero__grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.m5-surtitre { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--vert); }
.m5-hero .m5-surtitre { color: #BDEDE8; }
.m5-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.01em; }
.m5-hero__statut { margin: 18px 0; }
.m5-statut { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #fff; color: var(--texte); font-weight: 600; font-size: 16px; min-height: 40px; }
.m5-statut::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gris); }
.m5-statut--ouvert::before { background: #12A150; box-shadow: 0 0 0 4px rgba(18, 161, 80, .2); }
.m5-statut--bientot::before { background: #E8A100; }
.m5-statut--ferme::before { background: var(--rouge); }
.m5-hero__intro, .m5-hero__mot { font-size: 18px; max-width: 560px; color: rgba(255, 255, 255, .92); margin: 0 0 26px; }
.m5-hero__mot { font-weight: 600; margin-bottom: 8px; }
.m5-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.m5-hero__carte { background: #fff; color: var(--texte); border-radius: 22px; padding: 26px 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.m5-hero__carte-titre { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 700; font-size: 18px; color: var(--vert-fonce); }

/* Horaires */
.m5-horaires { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.m5-horaires th, .m5-horaires td { padding: 9px 8px; text-align: left; border: 0; border-bottom: 1px solid var(--bord); background: transparent; vertical-align: top; }
.m5-horaires tr:last-child th, .m5-horaires tr:last-child td { border-bottom: 0; }
.m5-horaires th { font-weight: 600; width: 34%; }
.m5-horaires td { color: var(--gris); font-variant-numeric: tabular-nums; }
.m5-horaires tr.m5-aujourdhui th, .m5-horaires tr.m5-aujourdhui td { background: var(--vert-clair); color: var(--vert-fonce); font-weight: 700; }
.m5-horaires tr.m5-aujourdhui th { border-radius: 10px 0 0 10px; } .m5-horaires tr.m5-aujourdhui td { border-radius: 0 10px 10px 0; }
.m5-sep { margin: 0 6px; color: var(--bord); }
.m5-ferme { color: var(--rouge); font-weight: 600; }
.m5-ferme a { color: inherit; }

/* Sections */
.m5-section { padding: 72px 0; }
.m5-section h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-bottom: 28px; letter-spacing: -.01em; }
.m5-centre { text-align: center; margin-top: 28px; }
.m5-lien-fleche { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none !important; color: var(--vert) !important; }
.m5-lien-fleche .m5-ic { width: 18px; height: 18px; transition: transform .15s; }
.m5-lien-fleche:hover .m5-ic { transform: translateX(3px); }

/* Réponses rapides */
.m5-reponses { background: var(--fond); }
.m5-tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.m5-tuile {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px; border-radius: var(--rayon); background: #fff; border: 1px solid var(--bord);
  color: var(--texte) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.m5-tuile:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: var(--vert); }
.m5-tuile .m5-ic { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--vert-clair); color: var(--vert); margin-bottom: 8px; }
.m5-tuile strong { font-size: 19px; }
.m5-tuile span { color: var(--gris); font-size: 15px; }
.m5-tuile--nuit { background: var(--nuit); border-color: var(--nuit); }
.m5-tuile--nuit strong, .m5-tuile--nuit span { color: #fff; }
.m5-tuile--nuit .m5-ic { background: rgba(255, 255, 255, .12); color: var(--jaune); }
.m5-tuile--urgence .m5-ic { background: #FDECEA; color: var(--rouge); }

/* Services */
.m5-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.m5-carte { padding: 26px; border-radius: var(--rayon); background: #fff; border: 1px solid var(--bord); }
.m5-carte .m5-ic { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--jaune); color: var(--texte); margin-bottom: 14px; }
.m5-carte h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.m5-carte p { margin: 0; color: var(--gris); font-size: 15.5px; }

/* Conseils + pavés */
.m5-conseils { background: var(--fond); }
.m5-conseils__grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.m5-vide { padding: 24px; border: 2px dashed var(--bord); border-radius: var(--rayon); color: var(--gris); background: #fff; }
.m5-actus { margin-bottom: 18px; }
.m5-actus img { border-radius: 12px; max-width: 100%; height: auto; }
.m5-trousse { margin-top: 28px; padding: 24px; border-radius: var(--rayon); background: #fff; border-left: 6px solid var(--jaune); }
.m5-trousse h3 { font-size: 20px; margin-bottom: 6px; }
.m5-trousse p { margin: 0 0 10px; color: var(--gris); }
.m5-pavés { display: flex; flex-direction: column; gap: 22px; }
.m5-pub { position: relative; text-align: center; }
.m5-pub__mention { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin-bottom: 4px; }
.m5-pub img, .m5-pub iframe { max-width: 100%; height: auto; border-radius: 12px; }
.m5-pub--video iframe { aspect-ratio: 16 / 9; height: auto; }
.m5-pub--bandeau { padding: 32px 0 0; }
.m5-pub--bandeau img { max-height: 120px; width: auto; }

/* Marques (sortie de [getPharmaLabs]) */
.m5-marques__grille > div { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px !important; }
.m5-marques__grille > div > div { width: auto !important; display: flex; align-items: center; justify-content: center; padding: 14px; border: 1px solid var(--bord); border-radius: 14px; background: #fff; aspect-ratio: 3 / 2; }
.m5-marques__grille img { max-width: 100%; max-height: 64px; object-fit: contain; filter: grayscale(.2); }
.m5-marques__grille a:hover img { filter: none; }

/* Accès */
.m5-acces__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: center; }
.m5-acces__adresse { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 12px; }
.m5-acces__adresse .m5-ic { color: var(--vert); }
.m5-acces__boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.m5-acces__carte { border-radius: 22px; overflow: hidden; box-shadow: var(--ombre); min-height: 320px; }
.m5-acces__carte #mapid { height: 380px !important; }

/* Pied de page */
.m5-pied { background: var(--vert-fonce); color: rgba(255, 255, 255, .85); padding: 56px 0 24px; font-size: 15px; }
.m5-pied a { color: #fff !important; text-decoration: none !important; }
.m5-pied a:hover { text-decoration: underline !important; }
.m5-pied__grille { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.m5-pied__nom { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 8px; }
.m5-pied__titre { color: var(--jaune); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0 0 12px; }
.m5-pied ul { list-style: none; margin: 0; padding: 0; }
.m5-pied li { margin-bottom: 8px; }
.m5-pied__urgences strong { color: var(--jaune); }
.m5-pied__reseaux .m5-ic { width: 26px; height: 26px; }
.m5-pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; }
.m5-pied__bas p { margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .m5-menu-bouton { display: inline-flex; }
  .m5-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 22px; background: #fff; border-bottom: 1px solid var(--bord); box-shadow: var(--ombre); }
  .m5-entete.is-ouvert .m5-nav { display: flex; }
  .m5-nav ul { flex-direction: column; }
  .m5-nav li a { padding: 14px 12px; font-size: 17px; }
  .m5-nav__actions { flex-direction: column; }
  .m5-nav__actions .m5-btn { justify-content: center; min-height: 50px; }
}
@media (max-width: 900px) {
  .m5-hero { padding: 40px 0 48px; }
  .m5-hero__grille, .m5-conseils__grille, .m5-acces__grille { grid-template-columns: 1fr; gap: 28px; }
  .m5-tuiles, .m5-cartes { grid-template-columns: 1fr 1fr; }
  .m5-marques__grille > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m5-pied__grille { grid-template-columns: 1fr 1fr; }
  .m5-section { padding: 52px 0; }
}
@media (max-width: 600px) {
  .m5 { font-size: 16px; }
  .m5-tuiles, .m5-cartes, .m5-pied__grille { grid-template-columns: 1fr; }
  .m5-hero__actions .m5-btn { flex: 1 1 100%; justify-content: center; }
  .m5-hero__carte { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .m5 * { transition: none !important; } }

/* Corrections en-tête : priorité sur les styles de boutons du thème, éléments sur une ligne */
.m5 .m5-menu-bouton { display: none !important; }
.m5-marque strong, .m5-btn { white-space: nowrap; }
.m5 .m5-btn { line-height: 1.2; }
@media (max-width: 1320px) {
  .m5-nav__actions .m5-btn--contour { font-size: 0; gap: 0; padding: 8px 12px; }
  .m5-nav__actions .m5-btn--contour .m5-ic { width: 20px; height: 20px; }
}
@media (max-width: 1100px) {
  .m5 .m5-menu-bouton { display: inline-flex !important; }
  .m5-nav__actions .m5-btn--contour { font-size: 15px; gap: 8px; padding: 8px 16px; }
}
.m5 .m5-menu-bouton, .m5 .m5-menu-bouton:hover, .m5 .m5-menu-bouton:focus { color: var(--texte) !important; border-color: var(--bord) !important; background: #fff !important; }

/* ------------------------------------------------------------------ En-tête et pied de page communs à tout le site */
.m5-site-entete { position: sticky; top: 0; z-index: 60; }
.m5-site-entete .m5-entete { position: relative; }
.m5-annonce { margin: 0; background: var(--jaune); color: var(--texte); font-size: 14px; font-weight: 600; text-align: center; padding: 8px 0; }
.m5-annonce p { margin: 0; }
.m5 .m5-nav a[aria-current="page"] { background: var(--vert-clair); color: var(--vert-fonce) !important; }
.m5-pub--entete, .m5-pub--pied { padding: 16px 0; }
.m5-pied__horaires li { display: flex; gap: 10px; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.m5-pied__horaires span { width: 36px; color: #fff; font-weight: 600; }
.m5-pied__lien-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; }
.m5-pied__lien-btn:hover { background: rgba(255, 255, 255, .1); text-decoration: none !important; }
.m5-pied__lien-btn .m5-ic { width: 18px; height: 18px; }
/* Les sections Elementor des pages intérieures gardent leur largeur ; on neutralise les marges des widgets autour de l'en-tête et du pied */
.elementor-location-header .elementor-widget-shortcode, .elementor-location-footer .elementor-widget-shortcode { margin: 0 !important; }
.elementor-location-header .e-con:has(.m5-site-entete), .elementor-location-footer .e-con:has(.m5-site-pied) { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; padding: 0 !important; }
@media (max-width: 900px) { .m5-pied__grille { grid-template-columns: 1fr 1fr; } }
/* En-tête fixe au défilement : c'est l'emplacement d'en-tête Elementor qui colle en haut */
.elementor-location-header { position: sticky; top: 0; z-index: 60; }
.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .elementor-location-header { top: 46px; } }
.m5-site-entete { position: static; }
.m5-pied__grille { grid-template-columns: 1.1fr 1.4fr 1fr 1fr; }
.m5-pied__horaires li { white-space: nowrap; }
@media (max-width: 900px) { .m5-pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .m5-pied__grille { grid-template-columns: 1fr; } }
/* Emplacements 300 × 250 */
.m5-pub .pubmedia { display: flex; justify-content: center; }
/* Seule la barre de menu reste fixe (l'emplacement P1 et l'annonce défilent avec la page) :
   les conteneurs Elementor de l'en-tête deviennent « transparents » pour que la barre colle au défilement de la page entière */
.elementor-location-header { position: static !important; }
.elementor-location-header,
.elementor-location-header > .elementor { display: contents; }
/* Ancien en-tête d'un seul bloc [m5_entete] (retour arrière) */
.elementor-location-header .e-con:has(> .elementor-widget-shortcode .m5-site-entete),
.elementor-location-header .e-con:has(> .elementor-widget-shortcode .m5-site-entete) .elementor-widget-shortcode,
.elementor-location-header .e-con:has(> .elementor-widget-shortcode .m5-site-entete) .elementor-widget-container,
.elementor-location-header .e-con:has(> .elementor-widget-shortcode .m5-site-entete) .elementor-shortcode,
.m5-site-entete { display: contents; }
.m5-site-entete .m5-entete { position: sticky; top: 0; z-index: 60; }
.admin-bar .m5-site-entete .m5-entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .m5-site-entete .m5-entete { top: 46px; } }

/* ================================================================== En-tête v2 : barre supérieure + navigation flottante */
/* Barre supérieure (défile avec la page) */
.m5-topbar { background: var(--vert-fonce); color: rgba(255, 255, 255, .9); font-size: 14px; }
.m5-topbar__int { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.m5-topbar__infos, .m5-topbar__actions { display: flex; align-items: center; gap: 18px; min-width: 0; }
.m5-topbar__jour { color: rgba(255, 255, 255, .8); white-space: nowrap; }
.m5-topbar__mot { color: var(--jaune); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m5-topbar__mot p { display: inline; margin: 0; }
.m5 .m5-statut--mini { min-height: 0; padding: 3px 10px; font-size: 13px; background: rgba(255, 255, 255, .12); color: #fff; }
.m5 .m5-statut--mini::before { width: 8px; height: 8px; }
.m5 .m5-statut--mini strong { font-weight: 700; }
.m5-topbar__lien { display: inline-flex; align-items: center; gap: 6px; color: #fff !important; text-decoration: none !important; font-weight: 500; white-space: nowrap; }
.m5-topbar__lien .m5-ic { width: 16px; height: 16px; opacity: .85; }
.m5-topbar__lien:hover span { text-decoration: underline; }
.m5-topbar__garde strong { color: var(--jaune); }
.m5-topbar__ordo {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--jaune);
  color: var(--texte) !important; font-weight: 700; font-size: 13.5px; text-decoration: none !important; white-space: nowrap; transition: transform .15s;
}
.m5-topbar__ordo .m5-ic { width: 16px; height: 16px; }
.m5-topbar__ordo:hover { transform: translateY(-1px); }

/* Navigation flottante : capsule blanche, détachée du bord, translucide au défilement */
.m5-site-entete .m5-entete { background: transparent; border: 0; backdrop-filter: none; padding: 12px 0; pointer-events: none; }
.m5-capsule {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 8px 10px 8px 14px;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(10, 84, 83, .08); border-radius: 999px; box-shadow: 0 8px 30px rgba(10, 84, 83, .10); position: relative;
}
.m5-capsule .m5-marque__croix { width: 40px; height: 40px; border-radius: 50%; }
.m5-capsule .m5-nav { gap: 0; }
.m5-capsule .m5-nav ul { gap: 4px; }
.m5-capsule .m5-nav li a { position: relative; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--texte) !important; }
.m5-capsule .m5-nav li a:hover { background: var(--vert-clair); }
.m5 .m5-capsule .m5-nav a[aria-current="page"] { background: var(--vert); color: #fff !important; }
/* Les anciens boutons de la barre ne sont plus utilisés */
.m5-capsule .m5-nav__actions { display: none; }

@media (max-width: 1100px) {
  .m5-capsule { border-radius: 26px; }
  .m5-capsule .m5-nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 10px; border-radius: 22px; background: #fff; border: 1px solid var(--bord); box-shadow: 0 16px 40px rgba(10, 84, 83, .16); }
  .m5-entete.is-ouvert .m5-capsule .m5-nav { display: flex; }
  .m5-capsule .m5-nav ul { width: 100%; }
  .m5-capsule .m5-nav li a { border-radius: 14px; padding: 14px 16px; font-size: 17px; }
  .m5 .m5-menu-bouton { border-radius: 999px; }
}
@media (max-width: 760px) {
  .m5-topbar__jour, .m5-topbar__mot, .m5-topbar__lien span, .m5-topbar__ordo span { display: none; }
  .m5-topbar__garde span { display: inline; }
  .m5-topbar__lien .m5-ic { width: 20px; height: 20px; }
  .m5-topbar__ordo { padding: 7px; }
  .m5-topbar__ordo .m5-ic { width: 18px; height: 18px; }
  .m5-topbar__actions { gap: 14px; }
  .m5-capsule { min-height: 58px; }
  .m5-capsule .m5-marque small { display: none; }
  .m5-menu-bouton__txt { display: none; }
  .m5 .m5-menu-bouton { padding: 10px 12px; }
}
.m5-topbar__int { flex-wrap: nowrap; }
.m5 .m5-statut--mini { white-space: nowrap; }
@media (max-width: 760px) {
  .m5-topbar .m5-statut__detail { display: none; }
  .m5-topbar__infos, .m5-topbar__actions { gap: 12px; }
  .m5-topbar__garde span { font-size: 13px; }
}

/* ================================================================== ACCUEIL v2 – couleurs et dégradés du site, blocs modernisés */
.m5-accueil { --degrade: linear-gradient(135deg, #0A5453 0%, #0E7C7B 55%, #14A39F 100%); --degrade-jaune: linear-gradient(135deg, #F5C542, #FFD978); --degrade-nuit: linear-gradient(135deg, #1B2550, #2D3F7A); }

/* Bandeau */
.m5-heros { position: relative; overflow: hidden; background: var(--degrade); color: #fff; padding: 72px 0 140px; }
.m5-heros__deco span { position: absolute; border-radius: 50%; filter: blur(2px); }
.m5-heros__deco span:first-child { width: 520px; height: 520px; right: -120px; top: -180px; background: radial-gradient(circle, rgba(245, 197, 66, .28), transparent 65%); }
.m5-heros__deco span:last-child { width: 420px; height: 420px; left: -140px; bottom: -200px; background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%); }
.m5-heros__grille { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.m5-heros__lieu { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 14px; font-weight: 600; }
.m5-heros__lieu .m5-ic { width: 18px; height: 18px; color: var(--jaune); }
.m5-heros h1 { color: #fff; font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
.m5-heros h1 span { display: block; background: var(--degrade-jaune); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m5-heros__statut { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 18px; }
.m5-heros__jour { font-size: 15px; color: rgba(255, 255, 255, .85); }
.m5-heros__intro { font-size: 19px; max-width: 540px; color: rgba(255, 255, 255, .9); margin: 0 0 30px; }
.m5-heros__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.m5-btn--verre { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff !important; backdrop-filter: blur(6px); }
.m5-btn--verre:hover { background: rgba(255, 255, 255, .22); }
.m5-accueil .m5-btn--accent { background: var(--degrade-jaune); box-shadow: 0 10px 24px rgba(245, 197, 66, .35); }
.m5-heros__visuel { position: relative; justify-self: end; width: min(520px, 100%); }
.m5-heros__photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 36px 36px 36px 120px; box-shadow: 0 30px 70px rgba(0, 0, 0, .25); }
.m5-heros__pub {
  position: absolute; left: -64px; bottom: -48px; padding: 10px 10px 12px; border-radius: 22px; text-align: center;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 20px 50px rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .6);
}
.m5-heros__pub .m5-pub__mention { color: var(--gris); }
.m5-heros__pub img { display: block; width: 300px; max-width: 100%; height: auto; border-radius: 14px; }
.m5-heros__pub .pubmedia { display: block; }

/* Grille « l'essentiel » à cheval sur le bandeau */
.m5-bento-zone { position: relative; margin-top: -96px; z-index: 2; }
.m5-bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.m5-bloc { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 26px; background: #fff; border: 1px solid var(--bord); box-shadow: 0 16px 40px rgba(10, 84, 83, .10); color: var(--texte) !important; text-decoration: none !important; overflow: hidden; }
a.m5-bloc { transition: transform .2s, box-shadow .2s; }
a.m5-bloc:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(10, 84, 83, .18); }
.m5-bloc__titre { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; font-size: 16px; color: var(--vert-fonce); }
.m5-bloc__titre .m5-ic { width: 20px; height: 20px; color: var(--vert); }
.m5-bloc strong { font-size: 21px; line-height: 1.2; }
.m5-bloc > span:not(.m5-bloc__icone):not(.m5-bloc__fleche):not(.m5-bloc__numero) { color: inherit; opacity: .82; font-size: 15px; }
.m5-bloc__icone { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px; background: rgba(255, 255, 255, .22); }
.m5-bloc__icone .m5-ic { width: 26px; height: 26px; }
.m5-bloc__fleche { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(28, 43, 45, .1); transition: transform .2s; }
a.m5-bloc:hover .m5-bloc__fleche { transform: translateX(4px); }
.m5-bloc--horaires { grid-row: span 2; }
.m5-semaine { list-style: none; margin: 0; padding: 0; }
.m5-semaine li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.m5-semaine li span:first-child { font-weight: 600; }
.m5-semaine li span:last-child { color: var(--gris); text-align: right; }
.m5-semaine li em { color: var(--rouge); font-style: normal; font-weight: 600; }
.m5-semaine li.m5-aujourdhui { background: var(--degrade); color: #fff; }
.m5-semaine li.m5-aujourdhui span:last-child { color: #fff; }
.m5-bloc--ordo { background: var(--degrade-jaune); border: 0; color: var(--texte) !important; }
.m5-bloc--ordo .m5-bloc__icone { background: rgba(255, 255, 255, .55); }
.m5-bloc--garde { background: var(--degrade-nuit); border: 0; color: #fff !important; }
.m5-bloc--garde .m5-bloc__icone { color: var(--jaune); background: rgba(255, 255, 255, .1); }
.m5-bloc__numero { position: absolute; right: 22px; bottom: 14px; font-size: 54px; font-weight: 800; letter-spacing: -.02em; color: var(--jaune); line-height: 1; }
.m5-bloc__adresse { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.m5-bloc__liens { display: flex; gap: 10px; margin: auto 0 0; }
.m5-bloc__liens a { padding: 8px 14px; border-radius: 999px; background: var(--vert-clair); color: var(--vert-fonce) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.m5-bloc__liens a:hover { background: var(--vert); color: #fff !important; }
.m5-bloc--urgences .m5-bloc__titre, .m5-bloc--urgences .m5-bloc__titre .m5-ic { color: var(--rouge); }
.m5-urgences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.m5-urgences > span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; background: #FDF1EF; font-size: 12px; color: var(--gris); opacity: 1 !important; }
.m5-urgences b { font-size: 22px; color: var(--rouge); line-height: 1.1; }

/* En-têtes de section */
.m5-entete-section { margin-bottom: 30px; }
.m5-entete-section h2 { margin: 0 !important; }
.m5-entete-section--ligne { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.m5-accueil .m5-surtitre { display: inline-flex; align-items: center; gap: 8px; }
.m5-accueil .m5-surtitre::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--degrade); }

/* Services */
.m5-services2__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.m5-service {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--bord);
  color: var(--texte) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s, background .2s; overflow: hidden;
}
.m5-service::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--degrade); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.m5-service:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(10, 84, 83, .12); }
.m5-service:hover::after { transform: scaleX(1); }
.m5-service__icone { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--degrade); color: #fff; box-shadow: 0 10px 22px rgba(14, 124, 123, .3); margin-bottom: 10px; }
.m5-service__icone .m5-ic { width: 26px; height: 26px; }
.m5-service__num { position: absolute; top: 22px; right: 24px; font-size: 40px; font-weight: 800; color: var(--vert-clair); line-height: 1; }
.m5-service strong { font-size: 20px; }
.m5-service > span:last-child { color: var(--gris); font-size: 15.5px; }

/* Conseils */
.m5-conseils2 { background: linear-gradient(180deg, var(--fond), #fff); }
.m5-conseils2__grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.m5-trousse2 {
  display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 22px 24px; border-radius: 24px; background: var(--degrade); color: #fff !important; text-decoration: none !important;
  box-shadow: 0 16px 36px rgba(14, 124, 123, .25); transition: transform .2s;
}
.m5-trousse2:hover { transform: translateY(-3px); }
.m5-trousse2 > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.m5-trousse2 strong { font-size: 19px; }
.m5-trousse2 > span:nth-child(2) > span { opacity: .85; font-size: 15px; }
.m5-trousse2__icone { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: none; }
.m5-trousse2 > .m5-ic { width: 26px; height: 26px; }
.m5-video { margin-top: 28px; }
.m5-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 20px; }

/* Marques */
.m5-marques2 .m5-marques__grille > div > div { border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.m5-marques2 .m5-marques__grille > div > div:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 84, 83, .1); }

/* Accès : carte pleine largeur + panneau dégradé */
.m5-acces2 { position: relative; min-height: 520px; display: flex; align-items: center; }
.m5-acces2__carte { position: absolute; inset: 0; }
.m5-acces2__carte #mapid { height: 100% !important; min-height: 520px; }
.m5-acces2__cadre { position: relative; z-index: 2; pointer-events: none; padding: 48px 0; }
.m5-acces2__panneau { pointer-events: auto; width: min(440px, 100%); padding: 36px; border-radius: 30px; background: var(--degrade); color: #fff; box-shadow: 0 30px 70px rgba(10, 84, 83, .35); }
.m5-acces2__panneau .m5-surtitre { color: #BDEDE8; }
.m5-acces2__panneau .m5-surtitre::before { background: var(--jaune); }
.m5-acces2__panneau h2 { color: #fff; font-size: 30px; font-weight: 800; margin: 0 0 18px; }
.m5-acces2__panneau p { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 17px; }
.m5-acces2__panneau p a { color: #fff !important; }
.m5-acces2__panneau .m5-ic { color: var(--jaune); }
.m5-acces2__statut { margin-top: 16px !important; }

@media (max-width: 1000px) {
  .m5-heros { padding: 48px 0 120px; }
  .m5-heros__grille { grid-template-columns: 1fr; gap: 40px; }
  .m5-heros__visuel { justify-self: center; width: min(440px, 100%); }
  .m5-heros__pub { left: 50%; transform: translateX(-50%); bottom: -60px; }
  .m5-bento-zone { margin-top: -40px; }
  .m5-heros { padding-bottom: 110px; }
  .m5-bento { grid-template-columns: 1fr 1fr; }
  .m5-bloc--horaires { grid-row: auto; grid-column: 1 / -1; }
  .m5-services2__grille { grid-template-columns: 1fr 1fr; }
  .m5-conseils2__grille { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .m5-bento, .m5-services2__grille { grid-template-columns: 1fr; }
  .m5-heros__visuel { width: 100%; }
  .m5-heros__photo { border-radius: 28px 28px 28px 80px; }
  .m5-heros__pub { position: relative; left: auto; bottom: auto; transform: none; margin: -60px auto 0; width: fit-content; }
  .m5-heros { padding-bottom: 80px; }
  .m5-acces2 { flex-direction: column; min-height: 0; }
  .m5-acces2__carte { position: relative; width: 100%; height: 320px; }
  .m5-acces2__carte #mapid { min-height: 320px; }
  .m5-acces2__cadre { padding: 0; margin-top: -40px; }
  .m5-acces2__panneau { border-radius: 26px; padding: 26px; }
}
/* Corrections de placement */
.m5-heros__pub { left: -72px; bottom: 28px; }
.m5-bloc--ordo { padding-right: 84px; }
.m5-bloc__numero { position: static; margin-top: auto; padding-top: 8px; font-size: 46px; }
.m5-bloc--garde { padding-bottom: 20px; }
@media (max-width: 1000px) { .m5-heros__pub { left: 50%; bottom: -70px; } .m5-heros { padding-bottom: 150px; } .m5-bento-zone { margin-top: -50px; } }
@media (max-width: 640px) { .m5-heros__pub { left: auto; bottom: auto; } .m5-heros { padding-bottom: 80px; } }
@media (min-width: 1001px) { .m5-heros__pub { left: auto; right: -64px; bottom: 24px; } .m5-heros__visuel { margin-right: 64px; } }
@media (min-width: 1001px) {
  .m5-heros__visuel { width: min(480px, 100%); margin-right: 120px; }
  .m5-heros__pub { right: -150px; bottom: -36px; }
  .m5-heros { padding-bottom: 150px; }
}
.m5-acces2__carte { z-index: 0; isolation: isolate; }
.m5-acces2__cadre { z-index: 5; }
/* Mention « Contenu sponsorisé » des codes courts bann_* : sous la publicité, pas en position absolue */
.m5 .pubmedia { position: relative; }
.m5 .pubmedia p { position: static !important; margin: 6px 0 0; font-size: 11px; color: var(--gris); text-align: center; }
.m5-video { position: relative; }

/* Conseils santé : articles du flux RSS izipharma */
.m5-articles { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.m5-article { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--bord); color: var(--texte) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.m5-article:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(10, 84, 83, .14); }
.m5-article--une { grid-row: span 2; }
.m5-article__image { display: block; aspect-ratio: 16 / 9; background: var(--vert-clair) center / cover no-repeat; }
.m5-article:not(.m5-article--une) { flex-direction: row; }
.m5-article:not(.m5-article--une) .m5-article__image { width: 38%; aspect-ratio: auto; min-height: 130px; flex: none; }
.m5-article__corps { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; flex: 1; }
.m5-article__date { font-size: 13px; color: var(--vert); font-weight: 600; }
.m5-article strong { font-size: 17px; line-height: 1.3; }
.m5-article--une strong { font-size: 22px; }
.m5-article__extrait { color: var(--gris); font-size: 15px; }
.m5-article__lire { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--vert); font-weight: 700; font-size: 14px; }
.m5-article__lire .m5-ic { width: 16px; height: 16px; transition: transform .15s; }
.m5-article:hover .m5-article__lire .m5-ic { transform: translateX(3px); }
@media (max-width: 760px) {
  .m5-articles { grid-template-columns: 1fr; }
  .m5-article--une { grid-row: auto; }
}

/* ================================================================== Publicités intégrées aux grilles de l'accueil */
.m5-pubcarte {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px;
  border-radius: 26px; background: linear-gradient(160deg, #fff, var(--vert-clair)); border: 1px solid var(--bord);
}
.m5-pubcarte .m5-pub__mention { align-self: stretch; text-align: left; margin: 0; }
.m5-pubcarte img { display: block; width: 300px; max-width: 100%; height: auto; border-radius: 16px; }
.m5-pubcarte .pubmedia { display: block; width: 100%; text-align: center; }
.m5-pubcarte .pubmedia p { margin-top: 8px; }

/* L'essentiel : P4 en 4e colonne, sur deux rangées */
.m5-bento--pub { grid-template-columns: 1.15fr 1fr 1fr 336px; }
.m5-pubcarte--bento { grid-column: 4; grid-row: 1 / span 2; box-shadow: 0 16px 40px rgba(10, 84, 83, .10); background: #fff; }

/* Services : P2 en 4e colonne, sur deux rangées */
.m5-services2__grille--pub { grid-template-columns: repeat(3, minmax(0, 1fr)) 336px; }
.m5-pubcarte--services { grid-column: 4; grid-row: 1 / span 2; }

/* Conseils : P3 à droite des articles, sur deux rangées */
.m5-articles--pub { grid-template-columns: 1.25fr 1fr 336px; }
.m5-pubcarte--articles { grid-column: 3; grid-row: 1 / span 2; }

/* Trousse de secours + vidéo côte à côte */
.m5-duo { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
.m5-duo--video { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.m5-duo .m5-trousse2 { margin-top: 0; }
.m5-duo--video .m5-trousse2 { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 30px; }
.m5-duo--video .m5-trousse2 strong { font-size: 24px; }
.m5-duo .m5-video { margin-top: 0; padding: 14px; border-radius: 26px; background: #fff; border: 1px solid var(--bord); }
.m5-duo .m5-video iframe { border-radius: 16px; display: block; }
.m5-conseils2 .m5-conteneur > div { min-width: 0; }

/* Bandeau partenaire (A1 / offre de la pharmacie) */
.m5-partenaire { padding-top: 40px; }
.m5-partenaire__cadre {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(14, 124, 123, .08), rgba(245, 197, 66, .14)); border: 1px solid var(--bord);
}
.m5-partenaire__label { align-self: flex-start; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); font-weight: 600; }
.m5-partenaire img { display: block; max-width: 100%; height: auto; border-radius: 16px; }
.m5-partenaire .pubmedia { width: 100%; text-align: center; }

@media (max-width: 1180px) {
  .m5-bento--pub { grid-template-columns: 1fr 1fr 1fr; }
  .m5-pubcarte--bento { grid-column: 3; grid-row: 1 / span 2; }
  .m5-bento--pub .m5-bloc--urgences { grid-column: 2; }
  .m5-services2__grille--pub { grid-template-columns: repeat(2, minmax(0, 1fr)) 316px; }
  .m5-pubcarte--services { grid-column: 3; grid-row: 1 / span 3; }
}
@media (max-width: 1000px) {
  .m5-bento--pub, .m5-services2__grille--pub { grid-template-columns: 1fr 1fr; }
  .m5-pubcarte--bento, .m5-pubcarte--services, .m5-pubcarte--articles { grid-column: 1 / -1; grid-row: auto; }
  .m5-bento--pub .m5-bloc--urgences { grid-column: auto; }
  .m5-articles--pub { grid-template-columns: 1fr 1fr; }
  .m5-duo--video { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .m5-bento--pub, .m5-services2__grille--pub, .m5-articles--pub { grid-template-columns: 1fr; }
}
/* Grille « l'essentiel » avec P4 : 3 colonnes et zones nommées */
.m5-bento--pub { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 332px; grid-template-areas: "h o p" "h g p" "a u u"; }
.m5-bento--pub .m5-bloc--horaires { grid-area: h; grid-row: auto; }
.m5-bento--pub .m5-bloc--ordo { grid-area: o; }
.m5-bento--pub .m5-bloc--garde { grid-area: g; }
.m5-bento--pub .m5-bloc--acces { grid-area: a; }
.m5-bento--pub .m5-bloc--urgences { grid-area: u; grid-column: auto; }
.m5-bento--pub .m5-pubcarte--bento { grid-area: p; grid-column: auto; grid-row: auto; }
.m5-partenaire__cadre .pubmedia img, .m5-partenaire__cadre > img { max-width: min(820px, 100%); margin-inline: auto; }
@media (max-width: 1180px) {
  .m5-bento--pub { grid-template-columns: 1fr 1fr; grid-template-areas: "h p" "o g" "a u"; }
}
@media (max-width: 640px) {
  .m5-bento--pub { grid-template-columns: 1fr; grid-template-areas: "h" "o" "g" "p" "a" "u"; }
}
/* Placement par zones (déclaré en dernier pour l'emporter sur les « grid-row/grid-column » précédents) */
.m5-bento--pub > .m5-bloc--horaires { grid-area: h; }
.m5-bento--pub > .m5-bloc--ordo { grid-area: o; }
.m5-bento--pub > .m5-bloc--garde { grid-area: g; }
.m5-bento--pub > .m5-bloc--acces { grid-area: a; }
.m5-bento--pub > .m5-bloc--urgences { grid-area: u; }
.m5-bento--pub > .m5-pubcarte--bento { grid-area: p; }

/* ================================================================== Pied de page : P4 à cheval sur le pied, logos officiels */
.m5-site-pied--pub { margin-top: 56px; }
.m5-pied-pub { position: relative; z-index: 2; display: flex; justify-content: center; margin-bottom: -170px; }
.m5-pubcarte--pied { width: 360px; max-width: 100%; background: #fff; box-shadow: 0 24px 60px rgba(10, 84, 83, .22); }
.m5-site-pied--pub .m5-pied { padding-top: 210px; }
.m5-pied__officiels { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 40px; padding-top: 28px; }
.m5-pied__officiels ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.m5-pied__officiels a { display: flex; align-items: center; justify-content: center; height: 84px; padding: 10px 16px; background: #fff; border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.m5-pied__officiels a:hover, .m5-pied__officiels a:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.m5-pied__officiels img { display: block; max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 760px) {
  .m5-pied__officiels ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m5-pied-pub { margin-bottom: -150px; }
  .m5-site-pied--pub .m5-pied { padding-top: 180px; }
}
@media (max-width: 440px) { .m5-pied__officiels ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m5-site-pied--pub { margin-top: 16px; }
.m5-pied__officiels a { height: 96px; padding: 4px 10px; }
.m5-pied__officiels img { max-height: 88px; }

/* ================================================================== Haut du pied : liens santé officiels + P4 au même niveau */
.m5-site-pied--pub { margin-top: 150px; }
.m5-site-pied--pub .m5-pied { padding-top: 40px; }
.m5-pied__haut { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; padding-bottom: 36px; margin-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.m5-site-pied--pub .m5-pied__haut { grid-template-columns: minmax(0, 1fr) 360px; }
.m5-pied__haut .m5-pied__officiels { border-top: 0; margin-top: 0; padding-top: 0; }
.m5-pied__haut .m5-pubcarte--pied { width: 100%; margin-top: -170px; align-self: start; }
@media (max-width: 1000px) {
  .m5-site-pied--pub .m5-pied__haut { grid-template-columns: minmax(0, 1fr); }
  .m5-pied__haut .m5-pubcarte--pied { order: -1; width: 360px; max-width: 100%; justify-self: center; margin-top: -150px; }
  .m5-site-pied--pub .m5-pied { padding-top: 40px; }
}
.m5-site-pied--pub { margin-top: 110px; }
@media (max-width: 1000px) { .m5-site-pied--pub { margin-top: 130px; } }

/* ================================================================== PAGES INTÉRIEURES */
.m5 { --degrade: linear-gradient(135deg, #0A5453 0%, #0E7C7B 55%, #14A39F 100%); --degrade-nuit: linear-gradient(135deg, #1B2550, #2D3F7A); }

/* Bandeau de titre */
.m5-titre-page { position: relative; overflow: hidden; background: var(--degrade); color: #fff; padding: 48px 0 92px; }
.m5-titre-page::after { content: ""; position: absolute; right: -120px; top: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 197, 66, .28), transparent 65%); pointer-events: none; }
.m5-titre-page .m5-conteneur { position: relative; z-index: 1; }
.m5-titre-page h1 { color: #fff !important; font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.02em; max-width: 820px; }
.m5-titre-page .m5-surtitre { color: var(--jaune); display: inline-flex; align-items: center; gap: 8px; }
.m5-titre-page .m5-surtitre::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--jaune); }
.m5-titre-page__intro { margin: 14px 0 0; max-width: 640px; font-size: 18px; color: rgba(255, 255, 255, .9); }
.m5-fil { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 22px; color: rgba(255, 255, 255, .75); }
.m5-fil a { color: #fff !important; text-decoration: none; }
.m5-fil a:hover { text-decoration: underline; }

/* Mise en page Elementor : contenu + colonne de bannières, remontée sur le bandeau */
.e-con.m5-el-hero, .e-con.m5-el-plein { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; padding: 0 !important; gap: 0 !important; max-width: none !important; }
.e-con.m5-el-page {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 336px; gap: 32px !important; align-items: start;
  width: min(1180px, 100% - 40px) !important; max-width: none !important; margin: -56px auto 0 !important; padding: 0 0 64px !important;
  position: relative; z-index: 2; background: transparent !important;
}
.e-con.m5-el-page--seul { grid-template-columns: minmax(0, 1fr); }
.e-con.m5-el-principal { display: flex !important; flex-direction: column; gap: 24px !important; padding: 0 !important; width: auto !important; min-width: 0; }
.e-con.m5-el-cote { padding: 0 !important; width: auto !important; position: sticky; top: 110px; }
.m5-el-page .elementor-widget { margin: 0 !important; width: 100%; }
.m5-el-page .elementor-widget-container { padding: 0 !important; }

/* Cartes de contenu (textes Elementor d'origine) */
.e-con.m5-el-carte {
  display: flex !important; flex-direction: column; gap: 14px !important; padding: 34px !important; width: auto !important;
  background: #fff !important; border: 1px solid var(--bord); border-radius: 26px; box-shadow: var(--ombre); color: var(--texte); font-size: 17px; line-height: 1.65;
}
.m5-el-carte h2, .m5-el-carte h3, .m5-el-carte .elementor-heading-title { font-family: inherit !important; color: var(--texte) !important; font-size: 22px !important; font-weight: 800 !important; line-height: 1.25 !important; margin: 0 0 10px !important; letter-spacing: -.01em; text-transform: none !important; }
.m5-el-carte h2.elementor-heading-title { font-size: 26px !important; }
.m5-el-carte p { margin: 0 0 12px; color: var(--texte); }
.m5-el-carte p:last-child { margin-bottom: 0; }
.m5-el-carte a { color: var(--vert); font-weight: 600; }
.m5-el-carte strong { color: var(--vert-fonce); }
.m5-el-carte .wpb_wrapper, .m5-el-carte .wpb_text_column { margin: 0; }
.e-con.m5-el-carte--intro { background: linear-gradient(160deg, #fff 40%, var(--vert-clair)) !important; border-left: 6px solid var(--vert); font-size: 18px; }
.e-con.m5-el-carte--note { background: var(--fond) !important; box-shadow: none; font-size: 15px; }
.m5-el-carte--note p { color: var(--gris); }
.e-con.m5-el-carte--alerte { background: linear-gradient(160deg, #fff 50%, #FFF6DB) !important; border-left: 6px solid var(--jaune); }
.e-con.m5-el-carte--nuit { background: var(--degrade-nuit) !important; border: 0; color: #fff; }
.m5-el-carte--nuit .elementor-heading-title, .m5-el-carte--nuit p, .m5-el-carte--nuit strong { color: #fff !important; }
.m5-el-carte--nuit strong { color: var(--jaune) !important; font-size: 22px; }

/* Grille de cartes (services de la pharmacie) */
.e-con.m5-el-grille { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px !important; padding: 0 !important; width: auto !important; }
.m5-el-grille > .e-con.m5-el-carte { padding: 28px !important; transition: transform .2s, box-shadow .2s; }
.m5-el-grille > .e-con.m5-el-carte:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10, 84, 83, .12); }
.m5-el-grille > .m5-el-carte::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 6px; background: var(--degrade); margin-bottom: 4px; }

/* Listes (trousse de secours…) en cases cochées */
.m5-el-carte--liste ul { list-style: none; margin: 6px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m5-el-carte--liste li { position: relative; padding: 12px 14px 12px 44px; background: var(--fond); border: 1px solid var(--bord); border-radius: 14px; font-size: 16px; line-height: 1.45; }
.m5-el-carte--liste li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 6px; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.m5-el-carte--liste p strong { font-size: 19px; }

/* Textes légaux */
.m5-el-carte--legal { font-size: 16px; }
.m5-el-carte--legal .elementor-widget-text-editor + .elementor-widget-text-editor { border-top: 1px solid var(--bord); padding-top: 22px !important; }
.m5-el-carte--legal p > strong:first-child, .m5-el-carte--legal h3 { display: block; font-size: 19px; color: var(--vert-fonce); }

/* Bouton Elementor dans une carte */
.m5-el-carte .elementor-button { background: var(--vert) !important; color: #fff !important; border-radius: 999px !important; padding: 14px 24px !important; font-weight: 700 !important; font-family: inherit !important; }
.m5-el-carte .elementor-button:hover { background: var(--vert-fonce) !important; }

/* Formulaire de contact du thème */
.m5-el-carte input[type=text], .m5-el-carte input[type=email], .m5-el-carte input[type=tel], .m5-el-carte input[type=file], .m5-el-carte textarea, .m5-el-carte select {
  width: 100%; border: 1px solid var(--bord) !important; border-radius: 14px !important; padding: 12px 14px !important; background: var(--fond) !important; font: inherit; font-size: 16px;
}
.m5-el-carte input:focus, .m5-el-carte textarea:focus { outline: 3px solid rgba(14, 124, 123, .25); border-color: var(--vert) !important; background: #fff !important; }
.m5-el-carte input[type=submit], .m5-el-carte button[type=submit] { background: var(--vert) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 14px 28px !important; font-weight: 700; cursor: pointer; }

/* Colonne de bannières */
.m5-pubs-colonne { display: flex; flex-direction: column; gap: 20px; background: transparent; }
.m5-pubcarte--colonne, .m5-pubcarte--video { background: #fff; box-shadow: var(--ombre); }
.m5-pubcarte--video { align-items: stretch; padding: 14px; }
.m5-pubcarte--video iframe, .m5-pubcarte--video video { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 14px; display: block; }
.m5-partenaire--page { padding: 0 0 56px; }

/* Numéros utiles */
.m5-numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: transparent; }
.m5-numero { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--bord); box-shadow: var(--ombre); text-decoration: none !important; color: var(--texte) !important; transition: transform .2s, box-shadow .2s; }
.m5-numero:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10, 84, 83, .12); }
.m5-numero__num { flex: none; display: grid; place-items: center; min-width: 76px; height: 76px; padding: 0 10px; border-radius: 20px; font-size: 30px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.m5-numero--rouge .m5-numero__num { background: linear-gradient(135deg, #B42318, #E0493B); }
.m5-numero--nuit .m5-numero__num { background: var(--degrade-nuit); }
.m5-numero__corps { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--gris); line-height: 1.45; }
.m5-numero__corps strong { font-size: 18px; color: var(--texte); }
.m5-numero > .m5-ic { color: var(--vert); }

/* Contact */
.m5-contact { display: flex; flex-direction: column; gap: 20px; background: transparent; }
.m5-contact__cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.m5-contact__carte { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--bord); box-shadow: var(--ombre); }
.m5-contact__carte--horaires { grid-column: 1 / -1; }
.m5-contact__carte--horaires .m5-bloc__titre { width: 100%; }
.m5-contact__carte--horaires .m5-statut--mini { margin-left: auto; background: var(--vert-clair); color: var(--texte); }
.m5-contact__carte--horaires .m5-semaine { width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.m5-contact__carte--horaires .m5-semaine li.m5-aujourdhui { background: var(--vert); }
.m5-contact__carte--horaires .m5-semaine li.m5-aujourdhui span { color: #fff; }
.m5-contact__valeur { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.35; }
.m5-contact__valeur a { color: var(--texte) !important; text-decoration: none; }
.m5-btn--petit { min-height: 40px; padding: 8px 16px; font-size: 15px; background: var(--vert-clair); color: var(--vert-fonce) !important; margin-top: auto; }
.m5-btn--petit:hover { background: var(--vert); color: #fff !important; }
.m5-contact__plan { border-radius: 24px; overflow: hidden; border: 1px solid var(--bord); box-shadow: var(--ombre); line-height: 0; }
.m5-contact__plan iframe { width: 100% !important; height: 320px !important; border: 0; display: block; }

@media (max-width: 1000px) {
  .e-con.m5-el-page { grid-template-columns: minmax(0, 1fr); }
  .e-con.m5-el-cote { position: static; }
  .m5-pubs-colonne { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .m5-pubs-colonne > * { flex: 1 1 300px; max-width: 360px; }
}
@media (max-width: 700px) {
  .m5-titre-page { padding: 32px 0 80px; }
  .e-con.m5-el-page { width: calc(100% - 24px) !important; }
  .e-con.m5-el-carte { padding: 24px !important; border-radius: 22px; }
  .e-con.m5-el-grille, .m5-numeros, .m5-contact__cartes, .m5-el-carte--liste ul, .m5-contact__carte--horaires .m5-semaine { grid-template-columns: minmax(0, 1fr); }
}
/* P1 dans le bandeau de titre */
.m5-titre-page__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.m5-titre-page--pub .m5-titre-page__grille { grid-template-columns: minmax(0, 1fr) 336px; }
.m5-titre-page--pub { padding-bottom: 104px; }
.m5-pubcarte--titre { background: rgba(255, 255, 255, .96); box-shadow: 0 24px 60px rgba(0, 0, 0, .18); border: 0; }
@media (max-width: 860px) {
  .m5-titre-page--pub .m5-titre-page__grille { grid-template-columns: minmax(0, 1fr); }
  .m5-pubcarte--titre { justify-self: center; width: 100%; max-width: 360px; }
}
/* Variables du design aussi sur les conteneurs Elementor des pages intérieures */
.m5-el-page, .m5-el-plein, .m5-el-hero {
  --vert: #0E7C7B; --vert-fonce: #0A5453; --vert-clair: #E8F5F3; --jaune: #F5C542; --texte: #1C2B2D; --gris: #56656A; --bord: #DCE8E6; --fond: #F7FAF9;
  --rouge: #B42318; --nuit: #22305A; --ombre: 0 10px 30px rgba(10, 84, 83, .08);
  --degrade: linear-gradient(135deg, #0A5453 0%, #0E7C7B 55%, #14A39F 100%); --degrade-nuit: linear-gradient(135deg, #1B2550, #2D3F7A);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.e-con.m5-el-carte { border: 1px solid var(--bord); }
.m5-titre-page { padding-top: 40px; }
.m5-el-grille > .m5-el-carte::before { content: none !important; display: none; }
.e-con.m5-el-grille > .e-con.m5-el-carte { border-top: 5px solid var(--vert); }
.m5-el-carte--legal p > strong:first-child { display: inline; font-size: inherit; color: var(--vert-fonce); }
.m5-el-carte--legal h3, .m5-el-carte--legal h3 strong { display: block; font-size: 20px !important; color: var(--vert-fonce) !important; margin: 6px 0 8px !important; }
.m5-el-carte--legal p:first-child > strong:only-child { display: block; font-size: 19px; }
.m5-el-carte--liste li { white-space: normal; }
body:has(.m5-titre-page) .page-header { display: none; }
.e-con.m5-el-carte, .e-con.m5-el-principal { overflow-wrap: anywhere; min-width: 0; }
.m5-contact__carte--horaires .m5-bloc__titre { flex-wrap: wrap; }
@media (max-width: 700px) { .m5-contact__carte--horaires .m5-statut--mini { margin-left: 0; white-space: normal; } }
/* Logo de la pharmacie (croix + feuille aux couleurs du thème) */
.m5 .m5-marque__logo { display: block; width: 44px; height: auto; flex: none; }
@media (max-width: 700px) { .m5 .m5-marque__logo { width: 38px; } }

/* ================================================================== Bandeau de titre compact, P1 en tête de la colonne de droite */
.m5-titre-page, .m5-titre-page--pub { padding: 26px 0 78px; }
.m5-titre-page h1 { font-size: clamp(26px, 3.2vw, 38px); }
.m5-fil { margin-bottom: 12px; }
.m5-titre-page .m5-surtitre { margin-bottom: 4px; font-size: 13px; }
@media (min-width: 1001px) {
  .m5-titre-page__grille { padding-right: 368px; }
  .e-con.m5-el-cote { margin-top: -150px !important; top: 96px; }
}
.m5-pubcarte--p1 { box-shadow: 0 24px 60px rgba(0, 0, 0, .16); }

/* Spécialités illustrées (page La pharmacie) */
.e-con.m5-el-grille > .e-con.m5-el-carte--photo { padding: 0 !important; gap: 0 !important; overflow: hidden; border-top: 1px solid var(--bord); }
.m5-el-carte--photo .elementor-widget-image { line-height: 0; }
.m5-el-carte--photo .elementor-widget-image img { display: block; width: 100% !important; height: 190px !important; max-width: none !important; object-fit: cover; border-radius: 0 !important; transition: transform .4s; }
.m5-el-carte--photo:hover .elementor-widget-image img { transform: scale(1.04); }
.m5-el-carte--photo .elementor-widget-image .elementor-widget-container { overflow: hidden; }
.m5-el-page .m5-el-carte--photo .elementor-widget-text-editor > .elementor-widget-container, .m5-el-page .m5-el-carte--photo .elementor-widget-text-editor { padding: 22px 26px 26px !important; }
.m5-el-carte--photo .elementor-widget-text-editor h2, .m5-el-carte--photo .elementor-widget-text-editor h3 { display: flex; align-items: center; gap: 10px; }
.m5-el-carte--photo .elementor-widget-text-editor h2::before, .m5-el-carte--photo .elementor-widget-text-editor h3::before { content: ""; width: 6px; height: 22px; border-radius: 4px; background: var(--degrade); flex: none; }

/* ================================================================== Groupement de la pharmacie (en-tête et pied) */
.m5-gpt { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none !important; }
.m5-gpt__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.m5-gpt__marque { display: inline-flex; align-items: center; gap: 10px; }
.m5-gpt__logo { display: block; width: auto; object-fit: contain; }
.m5-gpt__nom { font-weight: 700; line-height: 1.2; }
/* En-tête : dans la capsule, après le nom de la pharmacie, séparé par un trait */
.m5-gpt--entete { flex-direction: row; align-items: center; gap: 10px; padding-left: 16px; margin-left: 4px; border-left: 1px solid var(--bord); color: var(--texte) !important; flex: none; }
.m5-gpt--entete .m5-gpt__label { color: var(--gris); font-size: 10px; writing-mode: horizontal-tb; }
.m5-gpt--entete .m5-gpt__logo { height: 30px; max-width: 90px; }
.m5-gpt--entete .m5-gpt__nom { font-size: 14px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m5-gpt--entete .m5-gpt__logo + .m5-gpt__nom { display: none; }
a.m5-gpt--entete:hover .m5-gpt__nom { text-decoration: underline; }
@media (max-width: 1240px) { .m5-gpt--entete .m5-gpt__label { display: none; } }
@media (max-width: 1100px) { .m5-gpt--entete { display: none; } }
/* Pied : carte blanche (les logos sont prévus pour un fond clair) */
.m5-gpt--pied { margin-top: 18px; padding: 14px 18px; border-radius: 18px; background: #fff; color: var(--texte) !important; max-width: 300px; transition: transform .2s, box-shadow .2s; }
a.m5-gpt--pied:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.m5-gpt--pied .m5-gpt__label { color: var(--vert); }
.m5-gpt--pied .m5-gpt__logo { height: 44px; max-width: 120px; }
.m5-gpt--pied .m5-gpt__nom { font-size: 16px; color: var(--texte); }
.m5-gpt--entete .m5-gpt__logo { height: 38px; max-width: 130px; }
.m5-gpt--pied { gap: 10px; padding: 16px 20px; }
.m5-gpt--pied .m5-gpt__marque { flex-direction: column; align-items: flex-start; gap: 8px; }
.m5-gpt--pied .m5-gpt__logo { height: 56px; max-width: 210px; }

/* ================================================================== Noms et villes longs dans la capsule */
.m5 .m5-marque { min-width: 0; flex: 0 1 auto; }
.m5 .m5-marque > span { min-width: 0; }
.m5 .m5-marque strong { white-space: normal; text-wrap: balance; }
.m5 .m5-marque small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1240px) { .m5 .m5-marque strong { max-width: 250px; font-size: 17px; } }
@media (max-width: 700px) {
  .m5 .m5-marque strong { max-width: none; font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .m5 .m5-marque small { font-size: 12px; }
}
@media (min-width: 1241px) { .m5 .m5-marque { flex: none; } .m5 .m5-marque strong { white-space: nowrap; } }
/* Barre du haut sur tablette : on retire « Aujourd'hui… » puis le texte du bouton ordonnance */
@media (max-width: 1000px) { .m5-topbar__jour { display: none; } }
@media (max-width: 920px) { .m5-topbar__ordo span { display: none; } .m5-topbar__ordo { padding-inline: 10px; } }

/* ===== Accueil : bandeau allégé (statut et horaires du jour déjà dans la barre du haut) ===== */
.m5-heros { padding-top: 56px; }
.m5-heros h1 { margin-bottom: 20px; }
.m5-heros__intro { margin-bottom: 26px; }
@media (max-width: 1000px) { .m5-heros { padding-top: 40px; } }

/* ===== Page Contact : formulaire [fun_contact] (HTML et styles fournis par pub.mediapharma.fr) ===== */
.m5-el-carte--formulaire .form-container { max-width: none !important; padding: 0 !important; margin-top: 18px; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
.m5-el-carte--formulaire form { display: grid !important; gap: 18px !important; }
.m5-el-carte--formulaire .form-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 18px !important; }
.m5-el-carte--formulaire .form-group { display: flex; flex-direction: column; min-width: 0; }
.m5-el-carte--formulaire label { font-family: inherit; font-size: 14px !important; font-weight: 700 !important; color: var(--texte) !important; margin: 0 0 6px !important; }
.m5-el-carte--formulaire input:not([type="checkbox"]):not([type="file"]), .m5-el-carte--formulaire textarea {
  width: 100%; font-family: inherit; font-size: 16px !important; color: var(--texte); padding: 12px 14px !important;
  background: var(--fond) !important; border: 1.5px solid var(--bord) !important; border-radius: 12px !important; box-shadow: none !important; transition: border-color .2s, background .2s, box-shadow .2s;
}
.m5-el-carte--formulaire textarea { min-height: 140px; resize: vertical; }
.m5-el-carte--formulaire input:hover, .m5-el-carte--formulaire textarea:hover { background: #fff !important; }
.m5-el-carte--formulaire input:focus, .m5-el-carte--formulaire textarea:focus { background: #fff !important; border-color: var(--vert) !important; box-shadow: 0 0 0 4px rgba(14, 124, 123, .15) !important; outline: none; }
.m5-el-carte--formulaire input::placeholder, .m5-el-carte--formulaire textarea::placeholder { color: #8A9A9E; }
.m5-el-carte--formulaire .file-upload input[type="file"] { width: 100%; font-family: inherit; font-size: 14px; color: var(--gris); padding: 14px !important; border: 1.5px dashed var(--vert) !important; border-radius: 12px !important; background: var(--vert-clair) !important; box-shadow: none !important; cursor: pointer; }
.m5-el-carte--formulaire input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--vert); color: #fff; font: 700 14px/1.2 inherit; font-family: inherit; cursor: pointer; }
.m5-el-carte--formulaire .note { margin: 8px 0 0 !important; font-size: 13px !important; color: var(--gris) !important; }
.m5-el-carte--formulaire .form-group:has(#captchaResponse) { max-width: 260px; }
.m5-el-carte--formulaire .checkbox { flex-direction: row !important; align-items: flex-start !important; gap: 10px !important; }
.m5-el-carte--formulaire .checkbox input { flex: none; width: 20px !important; height: 20px !important; margin: 1px 0 0; accent-color: var(--vert); }
.m5-el-carte--formulaire .checkbox label { margin: 0 !important; font-weight: 500 !important; font-size: 14px !important; }
.m5-el-carte--formulaire button[type="submit"] {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px !important; font-family: inherit; font-size: 16px !important; font-weight: 700 !important;
  color: #fff !important; background: var(--vert) !important; border: 0 !important; border-radius: 999px !important; box-shadow: 0 8px 20px rgba(14, 124, 123, .25) !important; transform: none !important; transition: background .2s, box-shadow .2s;
}
.m5-el-carte--formulaire button[type="submit"]:hover { background: var(--vert-fonce) !important; box-shadow: 0 10px 26px rgba(10, 84, 83, .3) !important; }
.m5-el-carte--formulaire #formMessage { margin: 16px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--vert-clair); color: var(--vert-fonce); font-weight: 700; }
@media (max-width: 640px) {
  .m5-el-carte--formulaire .form-row { grid-template-columns: 1fr; }
  .m5-el-carte--formulaire .form-container { max-width: none !important; }
  .m5-el-carte--formulaire .form-group:has(#captchaResponse) { max-width: none; }
  .m5-el-carte--formulaire button[type="submit"] { justify-self: stretch; justify-content: center; }
}
.m5-el-carte--formulaire .checkbox a { color: var(--vert) !important; text-decoration: underline; }
/* Les styles du formulaire distant visent tous les « button » de la page : on les neutralise pour l'en-tête, le pied, etc. */
body:has(#contactForm) button:not(#contactForm button) { box-shadow: none; transform: none; }

/* Pharmacie de garde : lien vers pharmacie-de-garde.ameli.fr (au lieu du 3237) */
.m5-bloc__numero--lien { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: auto; padding: 10px 18px; font-size: 16px !important; letter-spacing: 0; border-radius: 999px; background: var(--jaune); color: var(--nuit) !important; }
.m5-bloc__numero--lien::after { content: "↗"; font-weight: 700; }
.m5-el-carte--nuit a { color: var(--jaune) !important; text-decoration: underline; text-underline-offset: 3px; }

/* ================================================================== En-tête en widgets Elementor (gabarit 744)
   Contenus, liens, icônes et couleurs se règlent dans Elementor ; ici seulement ce qu'Elementor ne sait pas faire. */
.e-con.m5-el-topbar, .e-con.m5-el-annonce, .e-con.m5-el-nav, .e-con.m5-el-pub { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --vert: #0E7C7B; --vert-fonce: #0A5453; --vert-clair: #E8F5F3; --jaune: #F5C542; --texte: #1C2B2D; --gris: #56656A; --bord: #DCE8E6; --rouge: #B42318; }
.m5-el-topbar .elementor-widget, .m5-el-annonce .elementor-widget, .m5-el-nav .elementor-widget { margin: 0 !important; }
/* Barre du haut */
.e-con.m5-el-topbar { color: rgba(255, 255, 255, .9); font-size: 14px; }
.m5-el-evitement { position: absolute !important; width: auto !important; }
.m5-el-statut .elementor-shortcode { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.m5-el-statut .m5-statut--mini { display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .12); color: #fff; }
.m5-el-statut .m5-statut--mini::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9AA; }
.m5-el-statut .m5-statut--ouvert::before { background: #12A150; box-shadow: 0 0 0 4px rgba(18, 161, 80, .2); }
.m5-el-statut .m5-statut--bientot::before { background: #E8A100; }
.m5-el-statut .m5-statut--ferme::before { background: #B42318; }
.m5-el-topbar-bouton .elementor-button { white-space: nowrap; line-height: 1.2; transition: transform .15s; }
.m5-el-topbar-bouton:not(.m5-el-ordo) .elementor-button:hover .elementor-button-text { text-decoration: underline; }
.m5-el-ordo .elementor-button:hover { transform: translateY(-1px); }
.m5-el-topbar-bouton .elementor-button-icon svg { width: 14px; height: 14px; }
@media (max-width: 1000px) { .m5-el-statut .m5-topbar__jour { display: none; } }
@media (max-width: 920px) { .m5-el-ordo .elementor-button-text { display: none; } .m5-el-ordo .elementor-button-content-wrapper { gap: 0; } }
@media (max-width: 760px) {
  .m5-el-statut .m5-statut__detail, .m5-el-tel .elementor-button-text { display: none; }
  .m5-el-tel .elementor-button-icon svg, .m5-el-garde .elementor-button-icon svg { width: 18px; height: 18px; }
  .e-con.m5-el-topbar-actions { --gap: 12px; }
  .m5-el-garde .elementor-button { font-size: 13px; }
}
/* Message du pharmacien : le texte passe à la ligne, quelle que soit sa longueur, sur toutes les tailles d'écran */
.e-con.m5-el-annonce:not(:has(.elementor-widget)) { display: none; }
.m5-el-message { max-width: 960px; min-width: 0; }
.m5-el-message, .m5-el-message * { overflow-wrap: anywhere; word-break: normal; white-space: normal !important; }
.m5-el-message p { margin: 0; }
.m5-el-message p + p { margin-top: 4px; }
.m5-el-message a { color: #0A5453; text-decoration: underline; }
.m5-el-message img { max-width: 100%; height: auto; }
@media (max-width: 760px) { .m5-el-message { font-size: 13px !important; } }
/* Navigation : reste en haut de l'écran au défilement */
.e-con.m5-el-nav { position: sticky; top: 0; z-index: 60; pointer-events: none; background: transparent; }
.admin-bar .e-con.m5-el-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .e-con.m5-el-nav { top: 46px; } }
.e-con.m5-el-capsule {
  pointer-events: auto; position: relative; border-radius: 999px;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(10, 84, 83, .08); box-shadow: 0 8px 30px rgba(10, 84, 83, .10);
}
.e-con.m5-el-marque { min-width: 0; flex: 0 1 auto; }
.m5-el-logo { flex: none; line-height: 0; }
.m5-el-nom { min-width: 0; }
.m5-el-nom p { margin: 0; line-height: 1.1; }
.m5-el-nom a { display: block; color: var(--texte) !important; text-decoration: none !important; }
.m5-el-nom strong { display: block; font-size: 18px; line-height: 1.1; text-wrap: balance; }
.m5-el-nom small { display: block; margin-top: 2px; color: var(--gris); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1241px) { .m5-el-nom strong { white-space: nowrap; } }
@media (max-width: 1240px) { .m5-el-nom strong { max-width: 250px; font-size: 17px; } }
.m5-el-groupement:not(:has(.m5-gpt)) { display: none; }
.m5-el-menu { flex: none; }
.m5-el-menu .elementor-nav-menu--main .elementor-item { white-space: nowrap; }
.m5-el-menu .elementor-nav-menu--main > .elementor-nav-menu { flex-wrap: nowrap; }
@media (max-width: 1024px) {
  .e-con.m5-el-capsule { border-radius: 26px; }
  .m5-el-menu .elementor-menu-toggle { border: 2px solid var(--bord); border-radius: 999px; padding: 10px 12px; }
  .m5-el-menu .elementor-nav-menu--dropdown { position: absolute; left: 0 !important; right: 0; width: auto !important; top: calc(100% + 8px) !important; margin-top: 0 !important; padding: 10px; border-radius: 22px; border: 1px solid var(--bord); background: #fff; box-shadow: 0 16px 40px rgba(10, 84, 83, .16); }
  .m5-el-menu .elementor-nav-menu--dropdown a { border-radius: 14px; padding: 14px 16px !important; font-size: 17px; }
  .m5-el-menu .elementor-nav-menu--dropdown[aria-hidden="true"] { display: none; }
  .m5-el-menu { position: static; }
}
@media (max-width: 700px) {
  .e-con.m5-el-capsule { min-height: 58px; }
  .m5-el-nom small { display: none; }
  .m5-el-nom strong { max-width: none; font-size: 15px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.e-con > .m5-el-statut.elementor-widget, .e-con > .m5-el-menu.elementor-widget { flex: none; }
.e-con > .m5-el-statut.elementor-widget { width: max-content !important; max-width: none !important; }
@media (max-width: 1024px) { .e-con > .m5-el-menu.elementor-widget { position: static; } }
@media (max-width: 760px) {
  .elementor .e-con.m5-el-topbar-actions { --column-gap: 12px; column-gap: 12px; }
  .m5-el-message { text-align: left !important; }
}

/* ================================================================== Pied de page en widgets Elementor (gabarit 811)
   Contenus, liens, logos et couleurs se règlent dans Elementor ; ici seulement la mise en grille et les détails. */
.e-con.m5-el-pied { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.6; --vert: #0E7C7B; --vert-fonce: #0A5453; --vert-clair: #E8F5F3; --jaune: #F5C542; --texte: #1C2B2D; --gris: #56656A; --bord: #DCE8E6; }
.m5-el-pied .elementor-widget { margin: 0 !important; }
.m5-el-pied p { margin: 0 0 8px; }
.m5-el-pied p:last-child { margin-bottom: 0; }
.m5-el-pied a { color: #fff; text-decoration: none; }
.m5-el-pied a:hover { text-decoration: underline; }
.m5-el-pied-titre .elementor-heading-title { margin: 0 0 4px !important; }
/* Haut : logos officiels sur cartes blanches, publicité P4 à droite (masquée si aucune) */
.e-con.m5-el-pied-haut { padding-bottom: 36px !important; margin-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); align-items: flex-end; }
.e-con.m5-el-officiels { flex: 1 1 0; min-width: 0; }
.elementor .e-con.m5-el-officiels-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.m5-el-officiel { width: auto !important; }
.m5-el-officiel, .m5-el-officiel .elementor-widget-container { display: block; width: 100% !important; }
.m5-el-officiel a { width: 100%; display: flex; align-items: center; justify-content: center; height: 96px; padding: 4px 10px; background: #fff; border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.m5-el-officiel a:hover, .m5-el-officiel a:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.m5-el-officiel img { display: block; max-width: 100% !important; max-height: 88px; width: auto !important; height: auto !important; object-fit: contain; }
/* Colonnes */
.elementor .e-con.m5-el-pied-grille { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr 1fr; gap: 32px; }
.e-con.m5-el-pied-col { min-width: 0; width: auto !important; }
.m5-el-pied .m5-pied__nom { font-size: 20px; font-weight: 800; color: #fff; }
.m5-el-pied .elementor-button:hover { background: rgba(255, 255, 255, .1) !important; }
.m5-el-reseaux:not(:has(a)), .m5-el-groupement-pied:not(:has(.m5-gpt)) { display: none; }
.m5-el-reseaux .m5-pied__reseaux { display: flex; align-items: center; gap: 14px; }
.m5-el-reseaux .m5-ic { width: 26px; height: 26px; }
.m5-el-groupement-pied .m5-gpt--pied { margin-top: 4px; }
.m5-el-pied .m5-pied__horaires { list-style: none; margin: 0; padding: 0; }
.m5-el-pied .m5-pied__horaires li { display: flex; gap: 10px; margin-bottom: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m5-el-pied .m5-pied__horaires span { width: 36px; color: #fff; font-weight: 600; }
.m5-el-pied-liste .elementor-icon-list-item a:hover .elementor-icon-list-text { text-decoration: underline; }
.m5-el-urgences strong { color: var(--jaune); }
/* Bas */
.e-con.m5-el-pied-bas { margin-top: 40px; padding-top: 20px !important; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; }
@media (max-width: 1000px) {
  .e-con.m5-el-pied-haut { flex-direction: column; align-items: stretch; }
}
@media (max-width: 900px) {
  .elementor .e-con.m5-el-pied-grille { grid-template-columns: 1fr 1fr; }
  .elementor .e-con.m5-el-officiels-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .elementor .e-con.m5-el-pied-grille { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .elementor .e-con.m5-el-officiels-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================================================================== Publicités en widgets « Code court » ([bann_P1], [bann_P2], [bann_P3], [bann_P4], [bann_V1])
   La classe CSS du widget donne la présentation ; un widget sans vraie publicité (ni image, ni vidéo, ni lien) est masqué. */
.elementor-widget.m5-el-pubcarte:not(:has(.pubmedia :is(img, iframe, video, a))),
.elementor-widget.m5-el-pub-bandeau:not(:has(.pubmedia :is(img, iframe, video, a))),
.e-con.m5-el-pub:not(:has(.pubmedia :is(img, iframe, video, a))) { display: none !important; }
.m5-el-pubcarte .elementor-shortcode::before, .m5-el-pub-bandeau .elementor-shortcode::before {
  content: "Publicité"; display: block; margin-bottom: 8px; text-align: left;
  font: 400 11px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #56656A;
}
.m5-el-pubcarte--video .elementor-shortcode::before { content: "Vidéo · Publicité"; }
.elementor-widget.m5-el-pubcarte {
  position: relative; padding: 18px; border-radius: 26px; background: #fff; border: 1px solid #DCE8E6;
  box-shadow: 0 10px 30px rgba(10, 84, 83, .08); text-align: center;
}
.elementor-widget.m5-el-pubcarte--video { padding: 14px; }
.elementor-widget.m5-el-pubcarte--p1 { box-shadow: 0 24px 60px rgba(0, 0, 0, .16); }
.m5-el-pubcarte .pubmedia, .m5-el-pub-bandeau .pubmedia { display: block; width: 100%; text-align: center; }
.m5-el-pubcarte .pubmedia p { margin: 8px 0 0; font-size: 13px; }
.m5-el-pubcarte img { display: block; width: 300px; max-width: 100%; height: auto; margin-inline: auto; border-radius: 16px; }
.m5-el-pubcarte iframe, .m5-el-pubcarte video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
/* P1 de l'en-tête : bandeau centré sous la navigation */
.elementor-widget.m5-el-pub-bandeau { width: min(1180px, 100% - 40px) !important; margin: 0 auto !important; padding: 16px 0; text-align: center; }
.m5-el-pub-bandeau .elementor-shortcode::before { text-align: center; }
.m5-el-pub-bandeau img, .m5-el-pub-bandeau iframe { max-width: 100%; height: auto; border-radius: 12px; }
/* Colonne des pages intérieures : une carte par bannière */
.e-con.m5-el-cote { gap: 20px !important; }
@media (max-width: 1000px) {
  .e-con.m5-el-cote { flex-direction: row !important; flex-wrap: wrap; justify-content: center; }
  .e-con.m5-el-cote > .m5-el-pubcarte { flex: 1 1 300px; max-width: 360px; }
}
/* P4 du pied de page : carte à cheval sur le contenu de la page */
.e-con > .elementor-widget.m5-el-pubcarte--pied { flex: none; width: 360px !important; max-width: 100%; align-self: flex-start; margin-top: -170px !important; box-shadow: 0 24px 60px rgba(10, 84, 83, .22); }
.e-con.m5-el-pied:has(.m5-el-pubcarte--pied .pubmedia :is(img, iframe, video, a)) { margin-top: 110px; }
@media (max-width: 1000px) {
  .e-con > .elementor-widget.m5-el-pubcarte--pied { order: -1; align-self: center; margin-top: -150px !important; }
  .e-con.m5-el-pied:has(.m5-el-pubcarte--pied .pubmedia :is(img, iframe, video, a)) { margin-top: 130px; }
}
