/* ==========================================================================
   Simulateur « Ondes » — maquettes 2436:5435 (ordinateur) et 2436:9255 (mobile)
   Interlignes en pixels arrondis comme Figma (Mulish « auto » = 1,255 ; Poppins « auto » = 1,5 ;
   Inter 140 %). Le téléphone reprend WhatsApp en Inter (auto-hébergée, police variable).
   ========================================================================== */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.pm-page-simu :where(p, h1, fieldset, legend) { margin: 0; padding: 0; border: 0; }
.pm-page-simu .pm-cadre { position: relative; margin: 0 auto; }
.pm-page-simu [hidden] { display: none !important; }

/* Accroche (le dégradé est posé par le script : angle = atan(hauteur / largeur)) */
.pm-simu-acc { position: relative; overflow: hidden; color: var(--pm-nuit); background: linear-gradient(30.17deg, #dddb00 0%, #9ec252 50%, #008d36 100%); }
.pm-simu-acc .pm-cadre { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pm-simu-logo { position: absolute; pointer-events: none; }
.pm-simu-logo img { display: block; width: 100%; height: 100%; }
.pm-simu-titre { position: relative; z-index: 1; font-family: var(--pm-police-titre); font-weight: 700; }

/* Carte du formulaire */
.pm-simu-carte { position: relative; z-index: 1; box-sizing: border-box; background: #fff; border-radius: 24px; }
.pm-simu-etape { display: flex; flex-direction: column; gap: 22px; }
.pm-simu-num { font-weight: 700; font-size: 14px; line-height: 18px; color: var(--pm-texte-secondaire); }
.pm-simu-champ { display: flex; flex-direction: column; gap: 8px; }
.pm-simu-lab { font-family: var(--pm-police-titre); font-weight: 600; color: var(--pm-nuit); }
.pm-simu-aide, .pm-simu-erreur { font-size: 14px; line-height: 18px; color: var(--pm-texte-secondaire); }
.pm-simu-erreur { font-weight: 700; color: #b3261e; }
.pm-simu-e-texte { font-size: 16px; line-height: 20px; color: var(--pm-texte-corps); }

.pm-simu-ligne { display: flex; gap: 8px; }
.pm-simu-boite { box-sizing: border-box; height: 52px; padding: 0 14px; background: var(--pm-fond-page); border: 1px solid var(--pm-bordure); border-radius: 12px; font: 400 16px/20px var(--pm-police-texte); color: var(--pm-texte-corps); }
.pm-ondes .pm-simu-saisie { width: 100%; min-width: 0; margin: 0; box-shadow: none; outline: none; }
.pm-simu-saisie::placeholder { color: var(--pm-texte-secondaire); opacity: 1; }
.pm-simu-saisie:focus-visible, .pm-simu-indic:focus-within { border-color: var(--pm-nuit); }
.pm-simu-saisie.is-erreur, .pm-simu-fichier.is-erreur { border-color: #b3261e; }
.pm-simu-indic { position: relative; flex: 0 0 92px; display: flex; align-items: center; color: var(--pm-nuit); }
.pm-simu-indic select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.pm-simu-ligne .pm-simu-saisie { flex: 1 1 auto; color: var(--pm-nuit); }
.pm-ondes .pm-simu-zone { height: 104px; padding: 12px 14px; resize: none; display: block; }

/* Case d'accord et cases à cocher (dessinées, la vraie case reste utilisable au clavier) */
.pm-simu-accord, .pm-simu-coche { position: relative; display: flex; align-items: flex-start; cursor: pointer; }
.pm-simu-accord { gap: 10px; font-size: 14px; line-height: 18px; color: var(--pm-texte-corps); }
.pm-simu-accord input, .pm-simu-coche input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pm-simu-case { box-sizing: border-box; flex: 0 0 20px; height: 20px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--pm-bordure); }
.pm-simu-accord.is-erreur .pm-simu-case { box-shadow: inset 0 0 0 1.5px #b3261e; }
input:checked + .pm-simu-case { background: var(--pm-nuit); box-shadow: none; }
input:checked + .pm-simu-case::after { content: "✓"; display: block; text-align: center; font-weight: 700; font-size: 12px; line-height: 18px; color: var(--pm-jaune); }
input:focus-visible + .pm-simu-case { outline: 2px solid var(--pm-vert-pulse); outline-offset: 2px; }

/* Choix du modèle */
.pm-simu-modeles { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-ondes .pm-simu-modele { box-sizing: border-box; height: 37px; margin: 0; padding: 0 15.5px; border: 0; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--pm-bordure); font: 700 14px/18px var(--pm-police-texte); color: var(--pm-nuit); white-space: nowrap; cursor: pointer; }
.pm-ondes .pm-simu-modele[aria-pressed="true"] { background: var(--pm-nuit); box-shadow: none; color: var(--pm-jaune); }

/* Boutons de fichier */
.pm-ondes .pm-simu-fichier { position: relative; align-self: flex-start; overflow: hidden; cursor: pointer; background: var(--pm-nuit); color: #fff; }
.pm-ondes .pm-simu-fichier:hover { background: var(--pm-nuit-2); }
.pm-simu-fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.pm-ondes .pm-simu-fichier-petit { height: 40px; padding: 0 14px; font-size: 14px; }
.pm-simu-cta { width: 100%; border: 0; cursor: pointer; }

/* Carrousel : 3 cartes */
.pm-simu-cartes { gap: 10px; }
.pm-simu-carte-c { display: flex; flex-direction: column; gap: 8px; padding: 13.5px; border-radius: 14px; /* 12 + trait de 1,5 compté dans la mise en page, comme Figma */ box-shadow: inset 0 0 0 1.5px var(--pm-bordure); }
.pm-simu-carte-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 1.5px 0 0; }
.pm-simu-carte-nom { font-weight: 700; font-size: 15px; line-height: 19px; color: var(--pm-nuit); }

/* Formulaire et lieu */
.pm-simu-groupe { gap: 12px; }
.pm-simu-sous { display: flex; flex-direction: column; gap: 4px; }
.pm-simu-petit { font-weight: 700; font-size: 14px; line-height: 18px; color: var(--pm-texte-corps); }
.pm-simu-coches { gap: 6px; min-width: 0; }
.pm-simu-cases { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.pm-simu-coche { gap: 6px; align-items: center; font-size: 15px; line-height: 19px; color: var(--pm-texte-corps); }
.pm-simu-coche .pm-simu-case { flex-basis: 18px; height: 18px; }
.pm-simu-coche input:checked + .pm-simu-case { flex-basis: 13px; }
.pm-simu-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ------------------------------------------------------------------ Téléphone */
.pm-simu-telzone { z-index: 1; }
.pm-simu-tel { box-sizing: border-box; width: 300px; height: 600px; padding: 8px; border-radius: 42px; background: #1b1d22; display: flex; }
.pm-wa-ecran { flex: 1; position: relative; overflow: hidden; border-radius: 34px; background: #efeae2; font-family: 'Inter', system-ui, sans-serif; color: #111b21; -webkit-font-smoothing: antialiased; }
.pm-wa-ecran b { font-weight: 600; }
.pm-wa-barre { box-sizing: border-box; height: 77px; padding: 36px 12px 9px; display: flex; align-items: center; gap: 8px; background: #075e54; color: #fff; }
.pm-wa-avatar { flex: 0 0 32px; height: 32px; border-radius: 16px; background: #e5f4f2; color: #006234; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; line-height: 17px; }
.pm-wa-nom { display: flex; flex-direction: column; }
.pm-wa-nom b { font-size: 13.5px; line-height: 16px; }
.pm-wa-nom small { font-size: 10px; line-height: 14px; }
.pm-wa-fil { padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.pm-wa-pulse { box-sizing: border-box; width: 240px; padding: 7px 10px; display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 10px; }
.pm-wa-pulse.a-choix { padding-bottom: 0; }
.pm-wa-pulse p, .pm-wa-texte, .pm-wa-client { margin: 0; font-size: 12.5px; line-height: 17px; }
.pm-wa-pulse p { margin-right: -1px; } /* Chrome mesure Inter un peu plus large que Figma (220,26 px pour 220) */
.pm-wa-choix span { box-sizing: border-box; height: 30px; display: flex; align-items: center; justify-content: center; border-top: 1px solid #e9edef; font-weight: 600; font-size: 12.5px; line-height: 15px; color: #027eb5; }
.pm-wa-ligne { display: flex; justify-content: flex-end; width: 264px; }
.pm-wa-client { padding: 7px 10px; display: flex; flex-direction: column; gap: 2px; background: #d9fdd3; border-radius: 10px; }
.pm-wa-bulle { flex: none; width: 264px; overflow: hidden; background: #fff; border-radius: 10px; }
.pm-wa-visuel { position: relative; overflow: hidden; }
.pm-wa-visuel > img:first-child { display: block; width: 100%; height: 100%; object-fit: cover; }
.pm-wa-voile::after, .pm-wa-plaquette::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%); }
.pm-wa-lecture { position: absolute; left: 108px; top: 61px; width: 48px; height: 48px; }
.pm-wa-duree { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: #2b2f36; color: #fff; font-size: 10px; line-height: 14px; }
.pm-wa-plaquette span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; font: 600 21px/24px var(--pm-police-titre); color: #fff; }
.pm-wa-texte { padding: 8px 9px 4px 10px; white-space: pre-line; overflow-wrap: anywhere; }
.pm-wa-heure { padding: 0 10px 6px; font-size: 9.5px; line-height: 13px; color: #667781; text-align: right; }
.pm-wa-bouton { box-sizing: border-box; height: 40px; padding: 11px 0; border-top: 1px solid #e9edef; text-align: center; font-weight: 500; font-size: 12.5px; line-height: 17px; color: #027eb5; }
.pm-wa-doc { box-sizing: border-box; height: 51px; padding: 10px; display: flex; align-items: center; gap: 10px; background: #e7e9ed; }
.pm-wa-doc img { width: 24px; height: 28px; }
.pm-wa-doc span, .pm-wa-adresse { display: flex; flex-direction: column; }
.pm-wa-doc b, .pm-wa-adresse b { font-size: 12px; line-height: 17px; }
.pm-wa-doc small, .pm-wa-adresse small { font-size: 10px; line-height: 14px; color: #667781; }
.pm-wa-plan { height: 124px; background: #e3ebd8; }
.pm-wa-plan img { display: block; width: 264px; height: 124px; }
.pm-wa-adresse { box-sizing: border-box; height: 49px; padding: 9px; background: #e7e9ed; }
.pm-wa-cartes { display: flex; gap: 8px; flex: none; width: 264px; overflow: hidden; }
.pm-wa-carte { flex: 0 0 206px; overflow: hidden; background: #fff; border-radius: 10px; }

/* Formulaire ouvert dans WhatsApp */
.pm-wa-ecran.is-feuille { background: #fff; }
.pm-wa-f-tete { box-sizing: border-box; height: 72px; padding: 36px 14px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e9edef; }
.pm-wa-x { font-size: 18px; line-height: 25px; }
.pm-wa-f-tete b { font-size: 13.5px; line-height: 19px; }
.pm-wa-f-corps { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pm-wa-f-titre { font-weight: 700 !important; font-size: 16px; line-height: 22px; }
.pm-wa-f { display: flex; flex-direction: column; gap: 4px; }
.pm-wa-f-lab { font-size: 11.5px; line-height: 16px; color: #667781; }
.pm-wa-f-saisie { box-sizing: border-box; height: 39px; padding: 10px; border: 1px solid #c7cdd1; border-radius: 8px; font-size: 12.5px; line-height: 17px; }
.pm-wa-radios { display: flex; flex-direction: column; gap: 6px; }
.pm-wa-radios span { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 16px; color: #031a14; }
.pm-wa-radios i { box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #031a14; }
.pm-wa-radios i.is-choisi { background: #031a14; }
.pm-wa-f-espace { height: 29px; }
.pm-wa-f-ok { height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 20px; background: #008069; color: #fff; font-weight: 600; font-size: 13px; line-height: 18px; }
.pm-wa-f-corps small { font-size: 10px; line-height: 12px; color: #52695f; }

/* ORDINATEUR */
@media (min-width: 1024px) {
	.pm-page-simu .pm-cadre { width: 1280px; min-height: 744px; box-sizing: border-box; zoom: var(--pm-zoom, 1); padding: 72px 64px; }
	.pm-simu-logo { left: 800px; top: 10px; width: 528px; height: 528px; }
	.pm-simu-titre { width: 720px; font-size: 64px; line-height: 68px; letter-spacing: -1.28px; }
	.pm-simu-carte { width: 720px; padding: 30px; }
	.pm-simu-lab { font-size: 18px; line-height: 27px; }
	.pm-simu-telzone { position: absolute; left: 880px; top: 72px; }
}

/* MOBILE */
@media (max-width: 1023px) {
	.pm-page-simu .pm-cadre { padding: 44px 20px; }
	.pm-simu-logo { left: 200px; top: 120px; width: 336px; height: 336px; }
	.pm-simu-titre { font-size: 38px; line-height: 40px; letter-spacing: -.76px; }
	.pm-simu-carte { width: 100%; padding: 22px; }
	.pm-simu-lab { font-size: 17px; line-height: 26px; }
	.pm-ondes .pm-simu-zone { height: 128px; }
	.pm-simu-telzone { position: relative; align-self: center; }
}

/* Fichier reçu (recette du 19/11) */
.pm-simu-recu { margin: 0; font-weight: 700; font-size: 14px; line-height: 21px; color: #008d36; overflow-wrap: anywhere; }
.pm-ondes .pm-simu-fichier.is-ok { background: #008d36; }

/* État de la recherche d'adresse (géolocalisation, 26/11) */
.pm-simu-aide.is-ok { color: #008d36; }
.pm-simu-aide.is-approx { color: #8a6d00; }
.pm-simu-aide.is-erreur { color: #b32d2e; }
