/* ==========================================================================
   Charte « Ondes » — Pulse Messaging — socle commun
   Valeurs lues dans Figma (fichier tTAYAKILfzRn5qPCQj73bG, mode « Ondes »).
   Ne s'applique qu'aux pages qui portent la classe body.pm-ondes.
   ========================================================================== */

.pm-ondes {
	/* Couleurs (variables Figma « Pulse – Couleurs », mode Ondes) */
	--pm-nuit: #031a14;            /* color/brand/nuit, brand-sombre */
	--pm-vert-nuit: #06291f;       /* brand-action, text-titre */
	--pm-nuit-2: #0e3f30;          /* color/brand/nuit-2 */
	--pm-vert-pulse: #009379;      /* brand-charte */
	--pm-vert-logo: #6eb249;       /* « Messaging » du logo */
	--pm-jaune: #dddb00;           /* brand-clair */
	--pm-jaune-pale: #f2f19a;      /* brand-pale */
	--pm-vert-leger: #eef6d9;      /* mémo de charte (non résolu en mode Ondes dans Figma) */
	--pm-fossile-fonce: #8f958a;
	--pm-fossile-clair: #cdd1c6;
	--pm-fond-page: #fafcf5;       /* bg-page */
	--pm-fond-carte: #ffffff;      /* bg-carte */
	--pm-texte-titre: #06291f;
	--pm-texte-corps: #22433a;
	--pm-texte-secondaire: #52695f;
	--pm-texte-inverse: #ffffff;
	--pm-bordure: #cfcfcf;         /* border-default */
	--pm-pied-fond: #2d2d2d;       /* pied de page ordinateur (Figma : phone-bezel) */
	--pm-degrade-logo: linear-gradient(90deg, #dddb00 0%, #9ec252 50%, #008d36 100%);

	/* Polices */
	--pm-police-titre: 'Poppins', system-ui, sans-serif;
	--pm-police-texte: 'Mulish', system-ui, sans-serif;

	/* Mesures */
	--pm-rayon-bouton: 20px;
	--pm-gouttiere: 50px;
	--pm-largeur: 1280px;
	--pm-entete-h: 100px;
}

/* --- Remise à zéro légère, limitée aux pages Ondes ----------------------- */
.pm-ondes,
.pm-ondes *,
.pm-ondes *::before,
.pm-ondes *::after { box-sizing: border-box; }

body.pm-ondes {
	margin: 0;
	background: var(--pm-fond-page);
	color: var(--pm-texte-corps);
	font-family: var(--pm-police-texte);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
/* :where() garde la remise à zéro à la spécificité d'une seule classe :
   les composants (.pm-marche-bouton…) passent toujours devant. */
.pm-ondes :where(img) { max-width: 100%; height: auto; }
.pm-ondes :where(a) { color: inherit; }
.pm-ondes :where(h1, h2, h3, p) { margin: 0; }
.pm-ondes :where(ul) { list-style: none; margin: 0; padding: 0; }
.pm-ondes :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.pm-ondes :focus-visible { outline: 3px solid var(--pm-vert-pulse); outline-offset: 3px; }

.pm-invisible {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.pm-evitement { position: absolute; left: -9999px; top: 0; z-index: 1000; }
.pm-evitement:focus { left: 16px; top: 16px; padding: 8px 16px; background: var(--pm-fond-carte); }

/* --- Styles de texte (Figma « Pulse/… ») ---------------------------------- */
.pm-affiche { font-family: var(--pm-police-titre); font-weight: 700; font-size: 112px; line-height: .98; letter-spacing: -3px; color: var(--pm-texte-titre); }
.pm-titre-fort { font-family: var(--pm-police-titre); font-weight: 700; font-size: 64px; line-height: 1.06; letter-spacing: -2px; color: var(--pm-texte-titre); }
.pm-titre-section { font-family: var(--pm-police-titre); font-weight: 600; font-size: 42px; line-height: 1.18; color: var(--pm-texte-titre); }
.pm-titre-carte { font-family: var(--pm-police-titre); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--pm-texte-titre); }
.pm-texte-l { font-size: 20px; line-height: 1.5; }
.pm-texte-m { font-size: 16px; line-height: 1.5; }
.pm-texte-s { font-size: 14px; line-height: 1.5; }
.pm-secondaire { color: var(--pm-texte-secondaire); }
.pm-surtitre { font-weight: 700; font-size: 14px; color: var(--pm-vert-pulse); text-transform: uppercase; letter-spacing: .06em; }

/* --- Bouton principal (composant 2261:594 : hauteur 60, rayon 20) --------- */
.pm-bouton {
	display: inline-flex; align-items: center; justify-content: center;
	height: 60px; padding: 16px 24px; border-radius: var(--pm-rayon-bouton);
	background: var(--pm-jaune); color: var(--pm-nuit);
	font-family: var(--pm-police-titre); font-weight: 600; font-size: 16px; line-height: 1.2;
	text-decoration: none; white-space: nowrap;
	transition: background-color .15s ease, transform .15s ease;
}
.pm-ondes a.pm-bouton { color: var(--pm-nuit); }
.pm-bouton:hover { background: #c9c700; }
.pm-bouton:active { transform: translateY(1px); }
.pm-ondes a.pm-bouton-sombre { background: var(--pm-nuit); color: #fff; }
.pm-ondes a.pm-bouton-sombre:hover { background: var(--pm-nuit-2); }

/* --- Conteneurs ---------------------------------------------------------- */
.pm-conteneur { max-width: var(--pm-largeur); margin: 0 auto; padding: 0 64px; }
.pm-section { padding: 72px 0; }

/* ==========================================================================
   En-tête (2295:1591) — ordinateur : 100 px de haut, marges 50 px
   ========================================================================== */
.pm-entete { position: sticky; top: 0; z-index: 50; background: var(--pm-fond-carte); }
.admin-bar .pm-entete { top: 32px; }
.pm-entete-barre {
	display: flex; align-items: center; gap: 24px;
	max-width: var(--pm-largeur); margin: 0 auto;
	min-height: var(--pm-entete-h); padding: 20px var(--pm-gouttiere);
}

.pm-logo { position: relative; display: block; width: 248px; height: 37.84px; text-decoration: none; flex-shrink: 0; } /* cadre du logo Figma : 248 × 37,84 */
.pm-logo-picto { position: absolute; left: 0; top: 0; width: 46.5px; height: 32.94px; display: block; }
.pm-logo-nom { position: absolute; left: 54.47px; top: 2.04px; font-family: var(--pm-police-titre); font-size: 22.125px; line-height: normal; white-space: nowrap; }
.pm-logo-pulse { font-weight: 800; color: var(--pm-vert-pulse); }
.pm-logo-messaging { font-weight: 400; color: var(--pm-vert-logo); }

.pm-nav { margin-left: auto; }
.pm-nav-liste { display: flex; align-items: center; gap: 24px; }
.pm-nav-liste a {
	font-weight: 700; font-size: 16px; line-height: 1.5; color: var(--pm-nuit);
	text-decoration: none; white-space: nowrap;
}
.pm-nav-liste a:hover,
.pm-nav-liste .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--pm-jaune); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.pm-nav-cta { display: none; }

.pm-entete-droite { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }

/* Sélecteur de marché (2499:7511) */
.pm-marche-bouton {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border: 1.5px solid var(--pm-bordure); border-radius: 99px;
	font-weight: 700; line-height: normal; color: var(--pm-nuit); white-space: nowrap;
	background: var(--pm-fond-carte);
}
.pm-ondes .pm-marche-bouton { color: var(--pm-nuit); }
.pm-marche-bouton { justify-content: center; min-width: 83px; height: 38px; line-height: 19px; }
.pm-marche-libelle { font-size: 15px; line-height: 19px; }
.pm-marche-fleche { font-size: 11px; line-height: 19px; }
.pm-marche-bouton:hover,
.pm-marche-bouton[aria-expanded="true"] { border-color: var(--pm-nuit); }

/* Bouton menu (mobile) */
.pm-burger { display: none; flex-direction: column; gap: 5px; width: 24px; padding: 6px 0; }
.pm-burger > span:not(.pm-invisible) { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--pm-nuit); transition: transform .2s ease, opacity .2s ease; }
.pm-burger[aria-expanded="true"] > span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pm-burger[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.pm-burger[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Menu « Choix du marché » (2499:7517)
   ========================================================================== */
.pm-choix-marche {
	position: fixed; z-index: 120; width: 320px; max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px); overflow-y: auto;
	display: flex; flex-direction: column; gap: 14px; padding: 20px;
	background: var(--pm-fond-carte); border-radius: 20px;
	box-shadow: 0 16px 18px rgba(5, 41, 31, .22);
	font-family: var(--pm-police-texte); color: var(--pm-nuit);
}
.pm-choix-marche[hidden] { display: none; }
.pm-choix-titre { font-weight: 700; font-size: 13px; line-height: normal; color: var(--pm-texte-secondaire); }
.pm-choix-langues { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--pm-vert-leger); }
.pm-choix-langue {
	flex: 1 0 0; display: flex; justify-content: center; padding: 8px 0; border-radius: 99px;
	font-weight: 700; font-size: 14px; line-height: normal; color: var(--pm-nuit); text-decoration: none;
}
.pm-ondes .pm-choix-langue.is-actif { background: var(--pm-nuit); color: var(--pm-jaune); }
.pm-choix-langue.is-indispo { opacity: .45; cursor: not-allowed; }
a.pm-choix-langue:hover { background: rgba(3, 26, 20, .08); }
.pm-choix-pays { display: flex; flex-direction: column; }
.pm-choix-pays-ligne {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px; border-radius: 10px; text-align: left; line-height: normal;
}
.pm-choix-pays-nom { font-weight: 400; font-size: 15px; color: var(--pm-nuit); }
.pm-choix-pays-devise { font-weight: 700; font-size: 14px; color: var(--pm-texte-secondaire); }
.pm-choix-pays-ligne:hover { background: rgba(238, 246, 217, .6); }
.pm-choix-pays-ligne.is-actif { background: var(--pm-vert-leger); }
.pm-choix-pays-ligne.is-actif .pm-choix-pays-nom { font-weight: 700; }
.pm-choix-pays-ligne.is-actif .pm-choix-pays-nom::before { content: "✓\00a0\00a0"; }
.pm-choix-note { font-size: 12px; line-height: normal; color: var(--pm-texte-secondaire); }

/* ==========================================================================
   Pied de page (2295:1728) — ordinateur
   ========================================================================== */
.pm-pied {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	/* même largeur utile que l'en-tête (1 280 px, marges 50 px) */
	padding: 24px max(var(--pm-gouttiere), calc((100% - var(--pm-largeur)) / 2 + var(--pm-gouttiere)));
	background: var(--pm-pied-fond); color: var(--pm-texte-inverse);
	font-size: 14px; line-height: 1.5;
}
.pm-pied-liens { display: flex; align-items: flex-start; gap: 24px; }
.pm-pied-liste { display: flex; gap: 24px; }
.pm-pied a, .pm-ondes .pm-pied-marche { color: var(--pm-texte-inverse); text-decoration: none; white-space: nowrap; }
.pm-pied a:hover, .pm-pied-marche:hover .pm-pied-marche-nom { text-decoration: underline; }
.pm-pied-marche { font-size: 14px; line-height: 21px; display: block; height: 21px; }
.pm-pied-marche [aria-hidden], .pm-pied-liste li, .pm-pied-mention { line-height: 21px; }
.pm-pied-marche [aria-hidden] { font-size: 10px; }

/* ==========================================================================
   Bouton flottant (2332:2652)
   ========================================================================== */
.pm-flottant {
	position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%);
	display: flex; gap: 10px; align-items: flex-start; justify-content: center;
}
.pm-flottant a {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 16px 28px; border: 2px solid #fff; border-radius: 32px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
	font-family: var(--pm-police-titre); font-weight: 600; font-size: 18px; line-height: 1.3;
	text-decoration: none; white-space: nowrap;
	transition: transform .15s ease;
}
/* Le bouton flottant s'efface quand le pied de page arrive, pour ne cacher aucun lien. */
.pm-flottant { transition: opacity .2s ease, visibility .2s; }
.pm-flottant.is-masque { opacity: 0; visibility: hidden; pointer-events: none; }
.pm-flottant a:hover { transform: translateY(-2px); }
.pm-ondes .pm-flottant-demo { background: var(--pm-nuit); color: var(--pm-jaune); }
.pm-ondes .pm-flottant-simu { background: var(--pm-jaune); color: var(--pm-nuit); }

/* --- Page de démonstration du socle ------------------------------------- */
.pm-demo .pm-conteneur > * + * { margin-top: 24px; }
.pm-demo .pm-titre-section { margin-top: 56px; }
.pm-nuancier { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin-top: 40px !important; }
.pm-nuancier li { font-size: 14px; color: var(--pm-texte-secondaire); }
.pm-nuancier span { display: block; height: 64px; border-radius: 12px; margin-bottom: 8px; border: 1px solid rgba(0, 0, 0, .08); }

/* ==========================================================================
   Tablette et mobile — en dessous de 1180 px, le menu passe dans le burger
   ========================================================================== */
@media (max-width: 1179px) {
	.pm-ondes { --pm-gouttiere: 20px; --pm-entete-h: 68px; }
	.pm-entete-barre { justify-content: space-between; padding-top: 0; padding-bottom: 0; }
	.pm-entete-droite { gap: 14px; }
	.pm-entete-cta { display: none; }
	.pm-burger { display: flex; }

	.pm-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		margin: 0; padding: 8px 20px 24px;
		background: var(--pm-fond-carte); box-shadow: 0 16px 18px rgba(5, 41, 31, .12);
		max-height: calc(100vh - var(--pm-entete-h)); overflow-y: auto;
	}
	.pm-nav.is-ouvert { display: block; }
	.pm-nav-liste { flex-direction: column; align-items: stretch; gap: 0; }
	.pm-nav-liste a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--pm-fossile-clair); }
	.pm-nav-cta { display: flex; width: 100%; margin-top: 20px; }
}

@media (max-width: 767px) {
	.pm-entete-barre { min-height: 68px; }
	.pm-logo { width: 203.36px; height: 31.03px; }
	.pm-logo-picto { width: 38.13px; height: 27.01px; }
	.pm-logo-nom { left: 44.67px; top: 1.68px; font-size: 18.142px; }

	.pm-marche-bouton { padding: 6px 10px; min-width: 68px; height: 31px; line-height: 16px; }
	.pm-marche-libelle { font-size: 13px; line-height: 16px; }
	.pm-marche-fleche { font-size: 9px; line-height: 16px; }

	/* Pied de page mobile (2300:2760) : en colonne, fond nuit */
	.pm-pied {
		flex-direction: column; align-items: flex-start; gap: 10px;
		padding: 24px 20px; background: var(--pm-nuit);
	}
	.pm-pied-liens, .pm-pied-liste { flex-direction: column; gap: 10px; }

	/* Bouton flottant mobile (2332:2656) */
	.pm-flottant { bottom: 16px; gap: 8px; width: max-content; max-width: calc(100vw - 24px); }
	.pm-flottant a { padding: 12px 15px; font-size: 14px; }

	.pm-conteneur { padding: 0 20px; }
	.pm-section { padding: 48px 0; }
	.pm-affiche { font-size: 56px; letter-spacing: -1.5px; }
	.pm-titre-fort { font-size: 40px; letter-spacing: -1px; }
	.pm-titre-section { font-size: 30px; }
	.pm-texte-l { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.pm-ondes * { transition: none !important; }
}

/* ==========================================================================
   Blocs communs aux pages Ondes : FAQ (questions) et Contact WhatsApp
   ========================================================================== */
/* FAQ */
.pm-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; font-family: var(--pm-police-titre); font-weight: 600; font-size: 22px; line-height: 29px; color: var(--pm-texte-corps); }
.pm-faq-item summary { min-height: 29px; } /* Figma arrondit la hauteur du texte : 22 × 1,3 = 28,6 → 29 */
.pm-faq-item summary::-webkit-details-marker { display: none; }
.pm-faq-item summary > span:first-child { flex: 1; }
.pm-faq-signe::before { content: "+"; color: var(--pm-vert-nuit); }
.pm-faq-item[open] .pm-faq-signe::before { content: "–"; }
.pm-faq-item p { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--pm-texte-secondaire); }

/* Contact (bouton WhatsApp + QR code) */
.pm-ondes .pm-contact { position: relative; background: var(--pm-vert-nuit); padding: 72px 96px; scroll-margin-top: 100px; }
.pm-contact-bloc { max-width: 1088px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px; border-radius: 24px; background: #fff; }
.pm-contact-coord { display: flex; flex-direction: column; gap: 16px; }
.pm-contact-coord .pm-titre-section { color: var(--pm-texte-titre); }
.pm-contact-mail a { font-weight: 700; color: var(--pm-texte-corps); text-decoration: none; }
.pm-contact-wa { display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.pm-bouton-wa { gap: 10px; align-self: flex-start; }
.pm-qr { display: flex; align-items: center; gap: 16px; }
.pm-qr-code { width: 120px; height: 120px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--pm-bordure); flex-shrink: 0; }
.pm-qr-code svg { display: block; width: 100%; height: 100%; }
.pm-qr p { font-size: 16px; line-height: 1.5; color: var(--pm-texte-corps); max-width: 260px; }


@media (max-width: 1023px) {
	/* 9 · Contact */
	.pm-ondes .pm-contact { padding: 48px 20px; }
	.pm-contact-bloc { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
	.pm-contact-coord .pm-titre-section { font-size: 30px; }
	.pm-bouton-wa { width: 100%; }
	.pm-qr { display: none; }
}

/* Maillage interne : lien posé sur des mots d'un texte (« [mots](page) » dans les champs). Même couleur que le texte, souligné fin. */
.pm-ondes a.pm-lien-texte { color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.pm-ondes a.pm-lien-texte:hover, .pm-ondes a.pm-lien-texte:focus-visible { text-decoration-thickness: 2px; }
.pm-ondes #pm-devis-titre { scroll-margin-top: 110px; }

/* ---------------------------------------------------------------------------
 * Téléphone (composant Figma « Téléphone » 2261:695, refonte du 18/11) :
 * cadre blanc dégradé, bord 0,667 %, marge 3,333 %, rayon 16 % ; écran bordé
 * #15171b (1,167 %), rayon 12,667 % ; 4 boutons latéraux. Tout est proportionnel
 * à --w (largeur du téléphone). L'écran (barre d'état comprise) est une image.
 * ------------------------------------------------------------------------- */
.pm-tel { --w: 246px; position: relative; } /* défauts faibles : chaque page fixe largeur et position (.pm-tel-acc, .pm-cadre > *…) */
.pm-ondes .pm-tel {
	box-sizing: border-box; display: flex;
	width: var(--w); height: calc(var(--w) * 2);
	padding: calc(var(--w) * .033333);
	border: calc(var(--w) * .006667) solid #fff; border-radius: calc(var(--w) * .16);
	background: linear-gradient(123.69deg, #fff 14.286%, #e3e8ec 85.714%);
	box-shadow: 0 calc(var(--w) * .013333) calc(var(--w) * .033333) rgba(0, 0, 0, .1),
		0 calc(var(--w) * .086667) calc(var(--w) * .153333) rgba(5, 41, 31, .2),
		inset 0 calc(var(--w) * -.01) calc(var(--w) * .02) rgba(153, 166, 178, .35);
}
.pm-ondes .pm-tel-ecran {
	flex: 1; display: block; overflow: hidden; background: #efeae2;
	border: calc(var(--w) * .011667) solid #15171b; border-radius: calc(var(--w) * .126667);
}
.pm-ondes .pm-tel-ecran picture { display: block; height: 100%; }
.pm-ondes .pm-tel-ecran img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pm-ondes .pm-tel-bouton { position: absolute; width: calc(var(--w) * .01); background: #d3d9df; border-radius: calc(var(--w) * .005); }
.pm-ondes .pm-tel-bouton-1 { left: calc(var(--w) * -.017); top: 18%; height: 3.67%; }
.pm-ondes .pm-tel-bouton-2 { left: calc(var(--w) * -.017); top: 24.33%; height: 7%; }
.pm-ondes .pm-tel-bouton-3 { left: calc(var(--w) * -.017); top: 33%; height: 7%; }
.pm-ondes .pm-tel-bouton-4 { right: calc(var(--w) * -.017); top: 27.67%; height: 11%; }
.pm-insec { white-space: nowrap; }
