/* Layout and interaction refinements. Widget typography stays editable in Elementor. */
body { font-size: 16px; line-height: 1.7; }
.elementor-widget-heading :is(h1, h2, h3) { text-wrap: balance; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor p + p { margin-top: 1em; }
.e-con > .elementor-element { min-width: 0; }
.pm-need__title .elementor-heading-title a { font-size: inherit; line-height: inherit; }
.pm-need { border: 1px solid #e2eaef; }
.pm-need:focus-within { outline: 3px solid var(--pm-blue); outline-offset: 3px; }
.pm-need__title { padding: 16px 18px 20px; }
.pm-step__body { padding: 4px 22px 24px; }
.pm-feats__grid { gap: 28px; }
.pm-feat .elementor-icon-box-wrapper { text-align: left; }
.pm-know__grid { row-gap: 28px; }
.pm-know__grid > .pm-know__details,
.pm-know__grid > .pm-feats__grid { grid-column: 1 / -1; }
.pm-know__details { display: grid !important; grid-template-columns: 1fr 1.2fr; column-gap: 40px; padding: 0 !important; }
.pm-know__grid > .pm-feats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 0; padding: 0; }
.pm-know .pm-feat { padding: 22px 20px; background: #f3f8fa; border-radius: 14px; }
.pm-know .pm-feat .elementor-icon-box-title { margin-top: 0; margin-bottom: 12px; }
@media (min-width: 768px) and (max-width: 1024px) {
    .pm-know__grid > .pm-feats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .pm-know__details { grid-template-columns: 1fr; gap: 16px; }
    .pm-know__grid > .pm-feats__grid { grid-template-columns: 1fr; gap: 16px; }
}
.pm-hero__text { max-width: 600px; }
.e-con.pm-hero::before { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.94) 36%, rgba(255,255,255,.3) 58%, transparent 74%); }
body .pm-actions { margin-top: 12px; }
body .pm-btn .elementor-button { min-height: 50px; padding: 12px 22px; white-space: normal; }
body .pm-btn--ghost .elementor-button { color: #1d7385; }
body .pm-script, body .pm-script p { color: #1d7385; }
.pm-crumb { font-size: 14px; line-height: 1.6; }
/* Footer: three clearly separated groups, shared by every Elementor page. */
.pm-foot { background: #eff7f8; border-top: 1px solid #d9e8eb; padding-block: 48px 24px !important; }
.pm-foot .pm-foot__grid { grid-template-columns: 1.15fr .9fr 1fr; align-items: start; gap: 64px; }
.pm-foot__brand { max-width: 320px; }
body .pm-foot .pm-foot__logo { width: 180px; max-width: 100%; }
.pm-foot .elementor-widget-text-editor { font-size: 14px; line-height: 1.8; color: var(--pm-muted); }
.pm-foot .elementor-widget-text-editor p { margin: 0 0 12px; }
.pm-foot .pm-foot__heading .elementor-heading-title { margin: 0; font-size: 16px; line-height: 1.4; }
.pm-foot__navigation, .pm-foot__contact { padding-top: 8px; }
.pm-foot .pm-foot__nav { display: grid; grid-template-columns: 1fr; gap: 0; font-size: 14px; line-height: 1.5; }
.pm-foot__nav a { display: flex; align-items: center; min-height: 36px; padding-block: 6px; text-decoration: none; }
.pm-foot__nav a:hover, .pm-foot__access:hover { color: #1d7385; text-decoration: underline; text-underline-offset: 4px; }
.pm-foot .pm-foot__range { color: var(--pm-navy); font-weight: 500; }
.pm-foot__address strong { color: var(--pm-text); font-weight: 500; }
.pm-foot__phone { color: var(--pm-navy); font-size: 18px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.pm-foot__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
body .pm-foot .pm-foot__cta .elementor-button { min-height: 46px; padding: 12px 18px; box-shadow: none; }
.pm-foot__access { color: var(--pm-navy); display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: none; }
.pm-foot .pm-foot__bottom { display: flex; flex-direction: row; justify-content: space-between; gap: 12px 24px; margin-top: 32px; position: relative; padding-top: 20px; }
.pm-foot__bottom::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; width: auto; height: 0; border-top: 1px solid #d9e8eb; }
.pm-foot__bottom > .elementor-widget { width: auto; }
.pm-foot__bottom p { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--pm-muted); }
@media (min-width: 768px) and (max-width: 1024px) {
    .pm-foot .pm-foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
    .pm-foot__brand { grid-column: 1 / -1; max-width: 560px; }
}
.pm-links a { display: inline-block; padding-block: 8px; }
.pm-chip { min-height: 48px; font-size: 15px; }
.pm-wacard__title { line-height: 1.3; text-wrap: balance; }
.pm-how li { line-height: 1.7; }
.pm-wa-float { bottom: max(18px, env(safe-area-inset-bottom)); }
.pm-reassure-item { display: flex; align-items: baseline; gap: 6px; }
.pm-reassure-item i { flex-shrink: 0; }
/* Keep multiline questions in their own column, clear of the toggle icon. */
body .pm-accordion .elementor-tab-title { display: flex; align-items: flex-start; gap: 12px; margin: 0; line-height: 1.5; }
body .pm-accordion .elementor-accordion-title { display: block; flex: 1; min-width: 0; line-height: 1.5; font-size: inherit; font-weight: inherit; }
body .pm-accordion .elementor-tab-title .elementor-accordion-icon { float: none; flex: 0 0 20px; width: 20px; padding: 0; margin: 3px 0 0; font-size: 18px; line-height: 1; color: #1d7385; }
body .pm-accordion .elementor-accordion-icon svg { width: 18px; height: 18px; fill: currentColor; }
body .pm-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon svg { fill: currentColor; }
body .pm-accordion .elementor-tab-content { line-height: 1.7; }
body .pm-accordion .elementor-tab-content p:last-child { margin-bottom: 0; }
/* The theme's dropdown is also used on small tablets. */
@media (max-width: 1024px) {
    .site-header .site-navigation-toggle-holder { padding: 0; }
    .site-header .site-navigation-toggle { width: 44px; height: 44px; border: 1px solid #d9e8eb; border-radius: 12px; background: #f3f8fa; color: var(--pm-navy); }
    .site-header .site-navigation-toggle:hover,
    .site-header .site-navigation-toggle[aria-expanded=true] { background: var(--pm-sky); border-color: #9acbd5; }
    .site-header .site-navigation-dropdown { top: 100%; bottom: auto; margin-top: 0; overflow: hidden; transition: none; }
    .site-header .site-navigation-dropdown ul.menu { position: static; display: grid; gap: 4px; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid #d9e8eb; box-shadow: 0 14px 24px rgba(11,42,91,.1); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
    .site-header .site-navigation-dropdown ul.menu li a { display: flex; align-items: center; min-height: 48px; padding: 12px 16px; border-radius: 10px; background: #fff; color: var(--pm-navy); box-shadow: none; font-size: 15px; font-weight: 500; line-height: 1.5; text-decoration: none; }
    .site-header .site-navigation-dropdown ul.menu li a:hover,
    .site-header .site-navigation-dropdown ul.menu li a:focus-visible { background: #eff7f8; color: #155b69; }
    .site-header .site-navigation-dropdown ul.menu li.pm-menu-cta { margin-top: 8px; border-top: 1px solid #e2eaef; padding-top: 16px; }
    .site-header .site-navigation-dropdown ul.menu li.pm-menu-cta a { justify-content: center; background: var(--pm-green); color: #fff; font-weight: 600; }
    .site-header .site-navigation-dropdown ul.menu li.pm-menu-cta a:hover { background: #08624b; }
}
@media (min-width: 1025px) {
    body .site-navigation ul.menu li a { font-size: 13px; padding: 10px 7px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .pm-hero__text { max-width: 65%; }
    .e-con.pm-hero::before { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.65) 75%, rgba(255,255,255,.15) 100%); }
    .pm-steps__grid { grid-template-columns: 1fr; gap: 24px; }
    .pm-step { display: grid !important; grid-template-columns: .85fr 1.15fr; align-items: stretch; }
    .pm-step__body { padding: 24px; }
    .pm-step__img { min-height: 0; }
    .pm-step__img img { height: 100%; aspect-ratio: auto; object-fit: cover; }
    .pm-alger__side { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .site-header { padding-inline: 20px; }
    .site-header .header-inner { gap: 12px; }
    .site-navigation-toggle-holder .site-navigation-toggle { min-width: 44px; min-height: 44px; }
    .site-navigation-dropdown ul.menu li a { padding: 14px 20px; font-size: 16px; }
    .e-con.pm-hero { padding-top: 32px !important; padding-bottom: 260px !important; }
    .e-con.pm-hero::before { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.97) 65%, rgba(255,255,255,0) 84%); }
    .pm-hero__text { max-width: 100%; }
    body .pm-actions { flex-direction: column !important; align-items: stretch; gap: 12px; }
    body .pm-actions > .elementor-widget { width: 100%; flex-basis: auto; }
    body .pm-btn .elementor-button { width: 100%; min-height: 52px; padding: 13px 18px; }
    .pm-needs__grid { grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
    .pm-need__img img { aspect-ratio: 16 / 9; }
    .pm-need__title { padding: 16px 18px 20px; }
    .pm-know__img { min-height: 0; }
    .pm-pros__banner img { aspect-ratio: 16 / 9; }
    .pm-alger__side { grid-column: auto; }
    .pm-foot { padding-bottom: 96px !important; }
    .pm-foot .pm-foot__grid { grid-template-columns: 1fr; gap: 32px; }
    .pm-foot__brand { max-width: 100%; }
    .pm-foot__contact { order: 1; }
    .pm-foot__navigation { order: 2; border-top: 1px solid #d9e8eb; padding-top: 28px; }
    .pm-foot__nav a { min-height: 44px; }
    .pm-foot .pm-foot__bottom { flex-direction: column; gap: 0; margin-top: 24px; }
    .pm-foot__bottom::before { left: 20px; right: 20px; }
    .pm-foot__bottom p { margin-top: 12px; }
    .pm-cta-xl { padding: 16px 20px; font-size: 17px; text-align: center; }
    body .pm-accordion .elementor-tab-title { padding: 18px 16px; }
    body .pm-accordion .elementor-tab-content { padding: 8px 16px 20px; }
}

/* Passages clés mis en gras dans les paragraphes de contenu */
body .elementor-widget-text-editor:not(.pm-foot__address) strong,
body .pm-accordion .elementor-tab-content strong {
	color: var(--pm-navy);
	font-weight: 600;
}

/* Professionnels : photo pleine largeur, contenus qui remontent sur la photo */
body .e-con.pm-pros { padding-top: 0 !important; overflow-x: clip; background: #eef7f9; }
body .pm-pros__grid { row-gap: 0; align-items: start; }
body .pm-pros__banner {
	grid-column: 1 / -1;
	position: relative;
	width: 100vw !important;
	max-width: none !important;
	margin: 0 calc(50% - 50vw) !important;
}
body .pm-pros__banner img {
	display: block;
	width: 100%;
	height: clamp(340px, 38vw, 560px);
	aspect-ratio: auto;
	object-fit: cover;
	object-position: 70% 30%;
	border-radius: 0;
}
body .pm-pros__banner::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(238,247,249,.6) 0%, rgba(238,247,249,0) 45%),
		linear-gradient(180deg, rgba(238,247,249,0) 50%, rgba(238,247,249,.85) 85%, #eef7f9 100%);
}
body .pm-pros__text,
body .pm-pros__card {
	position: relative;
	z-index: 1;
	margin-top: -170px;
	border-radius: var(--pm-radius);
	box-shadow: 0 18px 50px rgba(11,42,91,.12);
}
body .pm-pros__text {
	background: rgba(255,255,255,.9);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	padding: 40px 44px;
}
body .pm-pros__card { margin-top: -110px; padding: 32px; }
@media (max-width: 767px) {
	body .pm-pros__banner img { height: 260px; object-position: 78% 30%; }
	body .pm-pros__text { margin-top: -70px; padding: 26px 22px; margin-inline: 4px; }
	body .pm-pros__card { margin-top: 20px; padding: 24px 22px; }
}

/* Pied de page : boutons WhatsApp et Itinéraire de même largeur */
body .pm-foot .pm-foot__cta .elementor-button { min-width: 240px; justify-content: center; }

/* Marges : même ligne de départ pour toutes les sections, gouttière plus généreuse */
body .pm-wrap { padding-inline: clamp(20px, 4vw, 48px); }
body .pm-steps > .pm-wrap,
body .pm-steps__head,
body .pm-steps__grid,
body .pm-needs__grid { padding-left: 0 !important; padding-right: 0 !important; }
body .pm-steps > .pm-wrap,
body .pm-needs > .pm-wrap { padding-inline: clamp(20px, 4vw, 48px) !important; }

/* Professionnels : titre posé sur la photo, à gauche du médecin */
@media (min-width: 768px) {
	body .pm-pros__text > .elementor-widget-heading:first-child {
		position: absolute;
		left: 44px;
		bottom: 100%;
		margin: 0 0 64px;
		width: min(520px, 36vw);
	}
	body .pm-pros__text > .elementor-widget-heading:first-child h2 {
		font-size: clamp(2rem, 3.4vw, 3rem);
		line-height: 1.12;
		letter-spacing: -0.01em;
		text-shadow: 0 1px 18px rgba(255,255,255,.7);
	}
	body .pm-pros__banner::after {
		background:
			linear-gradient(90deg, rgba(238,247,249,.8) 0%, rgba(238,247,249,.45) 35%, rgba(238,247,249,0) 55%),
			linear-gradient(180deg, rgba(238,247,249,0) 50%, rgba(238,247,249,.85) 85%, #eef7f9 100%);
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	body .pm-pros__banner img { height: 440px; }
	body .pm-pros__text > .elementor-widget-heading:first-child { width: min(480px, 52vw); margin-bottom: 40px; }
}

/* Pied de page : adresse placée sous les boutons */
body .pm-foot__contact .pm-foot__address { margin-top: 12px; }

/* Haut de page : bandeau, introduction et repères plus sobres */
body .pm-hero .pm-eyebrow,
body .pm-hero .pm-eyebrow p {
	margin: 0;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .02em;
	color: #1d7385;
}
body .pm-hero .pm-eyebrow { margin-bottom: 10px; }
body .pm-hero .pm-intro,
body .pm-hero .pm-intro p {
	margin: 0;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.6;
	color: #3d4f6b;
	max-width: 34em;
}
body .pm-hero .pm-intro { margin: 14px 0 22px; }
body .pm-hero .pm-reassure p { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
body .pm-hero .pm-reassure { margin-top: 18px; font-size: .9rem; }

/* ===== Header : barre d'informations + menu ===== */
.pm-topbar { background: var(--pm-navy); color: #dce7f2; font-size: 13px; line-height: 1.4; }
.pm-topbar__inner { max-width: 1200px; margin-inline: auto; padding: 8px clamp(20px, 4vw, 48px); display: flex; align-items: center; gap: 28px; }
.pm-topbar__item { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pm-topbar__item i { color: #7fc3d0; font-size: 12px; }
.pm-topbar__item--muted { color: #b9c9db; }
.pm-topbar__wa { margin-inline-start: auto; color: #fff; font-weight: 600; text-decoration: none; }
.pm-topbar__wa i { color: #5fd3a5; font-size: 14px; }
.pm-topbar__wa:hover, .pm-topbar__wa:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* Sélecteur de langue (dans la barre d'infos) */
.pm-lang { display: inline-flex; align-items: center; gap: 8px; padding-inline-start: 20px; border-inline-start: 1px solid rgba(255,255,255,.18); }
.pm-lang__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pm-lang__link { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 28px; padding: 2px 9px; border-radius: 4px; color: #dce7f2; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.pm-lang__link:hover, .pm-lang__link:focus-visible { color: #fff; background: rgba(255,255,255,.1); }
.pm-lang__link.is-current { color: #fff; font-weight: 600; background: rgba(255,255,255,.14); }
/* Mobile / tablette : la barre ne garde que le sélecteur de langue */
@media (max-width: 1024px) {
	.pm-topbar__inner { padding-block: 4px; justify-content: flex-end; }
	.pm-topbar__item { display: none; }
	.pm-lang { padding-inline-start: 0; border-inline-start: 0; }
	.pm-lang__link { min-height: 32px; }
	.pm-topbar:not(:has(.pm-lang)) { display: none; }
}

body .site-header { padding-block: 14px; transition: padding .2s ease, box-shadow .2s ease; box-shadow: 0 1px 0 #e6edf2; }
body .site-header .header-inner { max-width: 1200px; padding-inline: clamp(0px, 2vw, 24px); }
body .site-header .custom-logo-link img { max-height: 56px; transition: max-height .2s ease; }
body.pm-scrolled .site-header { padding-block: 8px; box-shadow: 0 6px 20px rgba(11,42,91,.08); }
body.pm-scrolled .site-header .custom-logo-link img { max-height: 44px; }

@media (min-width: 1025px) {
	body .site-navigation ul.menu { gap: 2px; align-items: center; }
	body .site-navigation ul.menu li.pm-menu-home { display: none; }
	body .site-navigation ul.menu li:not(.pm-menu-cta) > a {
		position: relative;
		font-size: 14.5px;
		font-weight: 500;
		padding: 10px 13px;
		border-radius: 0;
		background: transparent;
		color: var(--pm-navy);
	}
	body .site-navigation ul.menu li:not(.pm-menu-cta) > a::after {
		content: "";
		position: absolute;
		left: 13px; right: 13px; bottom: 3px;
		height: 2px;
		background: var(--pm-blue);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .2s ease;
	}
	body .site-navigation ul.menu li:not(.pm-menu-cta) > a:hover { background: transparent; color: #1d7385; }
	body .site-navigation ul.menu li:not(.pm-menu-cta) > a:hover::after,
	body .site-navigation ul.menu li:not(.pm-menu-cta) > a.is-active::after { transform: scaleX(1); }
	body .site-navigation ul.menu li:not(.pm-menu-cta) > a.is-active { color: #1d7385; }
	body .site-navigation ul.menu li.pm-menu-cta > a { font-size: 14.5px; font-weight: 600; padding: 11px 20px; margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	body .site-header, body .site-header .custom-logo-link img, body .site-navigation ul.menu li a::after { transition: none; }
}
.site-header .site-navigation-dropdown ul.menu li.pm-menu-cta > a::before { font-family: "Font Awesome 5 Brands"; content: "\f232"; font-weight: 400; margin-right: .5em; }

/* Rythme vertical : même respiration entre toutes les sections */
body .e-con.pm-steps,
body .e-con.pm-range,
body .e-con.pm-needs,
body .e-con.pm-know,
body .e-con.pm-faq,
body .e-con.pm-alger { padding-top: clamp(56px, 6.5vw, 96px) !important; padding-bottom: clamp(56px, 6.5vw, 96px) !important; }
body .e-con.pm-steps { padding-top: clamp(48px, 5vw, 72px) !important; }
body .e-con.pm-pros { padding-bottom: clamp(56px, 6.5vw, 96px) !important; }

/* Le logo contient déjà la mention : description du site masquée à toutes les largeurs */
body .site-header .site-description { display: none; }

/* Tablette : la carte « Prise de rendez-vous directe » passe sous le texte, pleine largeur */
@media (min-width: 768px) and (max-width: 1024px) {
	body .pm-pros__grid { grid-template-columns: 1fr !important; }
	body .pm-pros__card { margin-top: 24px; }
}

/* Rythme vertical unifié : une seule marge entre deux blocs.
   Fond blanc suivi d'un fond blanc : la marge du haut est supprimée (pas de cumul). */
body .e-con.pm-steps,
body .e-con.pm-range,
body .e-con.pm-needs,
body .e-con.pm-know,
body .e-con.pm-faq,
body .e-con.pm-alger { padding-top: clamp(44px, 5vw, 72px) !important; padding-bottom: clamp(44px, 5vw, 72px) !important; }
body .e-con.pm-pros { padding-bottom: clamp(44px, 5vw, 72px) !important; }
body .e-con.pm-needs + .e-con.pm-know,
body .e-con.pm-faq + .e-con.pm-alger { padding-top: 0 !important; }
body .e-con.pm-steps { padding-top: clamp(36px, 4vw, 56px) !important; }
