/* Accueil du Groupe SASIE : vidéo plein écran, choix de la société, sections du groupe.
   Chargé uniquement sur index.html, après style.css. */
:root {
  /* couleurs du site (style.css) reprises sous les noms de la maquette */
  --petrol: var(--primary);
  --glace: var(--ice);
  --creme: var(--bg);
  --cyan: var(--accent);
  --titre: var(--font-title);
  --texte: var(--font-body);
  /* couleurs propres à l'accueil (objets dessinés des bulles) */
  --kraft: #EEE5D6;
  --encre: #0F2329;
  --texte-doux: #3D5157;
  --cable: #182326;
  --coffret: #EEF1F2;
  --rail: #DDE3E5;
  --trait: #C8D1D4;
  --trait-clair: #DCD5CC;
  --lumiere: #F7E2A0;
  --ambre: #D9A21B;
  --balcon: #C9683D;
  --blanc: #ffffff;
  --nuit: 10, 26, 31;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --med: clamp(118px, 11vw, 168px);
  --li: min(16rem, 29vw);
}

/* ---------- raccord avec style.css ---------- */
html { scroll-padding-top: 0; }
.page-accueil main :is(h1, h2, h3) { color: inherit; letter-spacing: normal; }
.page-accueil main .wp-block-button__link { display: inline-block; min-height: 0; padding: 13px 20px; font-family: var(--texte); font-size: .8rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-radius: 0; box-shadow: none; }
.page-accueil main .wp-block-button__link:hover { transform: none; box-shadow: none; }
.p1-hero { color: var(--blanc); }
.p1-pop .wp-block-buttons { margin-top: 0; }

/* ---------- fond vidéo ---------- */
.p1-fond { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--encre) url('assets/img/panorama-chamonix.jpg') center / cover no-repeat; }
.p1-fond video { width: 100%; height: 100%; object-fit: cover; }
.p1-fond::after { content: ""; position: absolute; inset: 0; background-color: rgba(var(--nuit), 0); background-image: linear-gradient(180deg, rgba(var(--nuit), .55) 0%, rgba(var(--nuit), .08) 26%, rgba(var(--nuit), .12) 52%, rgba(var(--nuit), .78) 100%); transition: background-color .6s var(--ease); }

/* ---------- écran d'accueil ---------- */
.p1-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.p1-haut { display: flex; justify-content: center; padding: clamp(18px, 3.4vh, 36px) 20px 0; transition: opacity .45s var(--ease); }
.p1-marque { display: block; border-radius: 50%; }
.p1-marque img { width: clamp(104px, 9.4vw, 138px); filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .35)); }
.p1-centre { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(10px, 2vh, 24px) 20px clamp(16px, 3vh, 32px); text-align: center; }
.p1-titre { position: relative; isolation: isolate; }
.p1-titre > * { transition: opacity .45s var(--ease); }
/* flou léger derrière le titre : la neige ou le ciel clair ne gênent plus la lecture */
.p1-titre::before { content: ""; position: absolute; z-index: -1; inset: -40px -8%; pointer-events: none; background: rgba(var(--nuit), .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); --fondu: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent), linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: var(--fondu); -webkit-mask-composite: source-in; mask-image: var(--fondu); mask-composite: intersect; transition: opacity .45s var(--ease); }
.p1-titre h1 { margin: 0; font-family: var(--titre); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .45), 0 0 2px rgba(0, 0, 0, .2); }
.p1-titre h1 > span:last-child { display: block; }
.p1-pre { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 1.5em; font-family: var(--texte); font-size: clamp(.7rem, .9vw, .8rem); line-height: 1.5; letter-spacing: .22em; text-transform: uppercase; color: var(--glace); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.p1-pre::before, .p1-pre::after { content: ""; flex: 0 0 34px; height: 1px; background: currentColor; opacity: .55; }
.p1-lead { margin: 1.15em 0 0; font-size: clamp(1.225rem, 1.44vw, 1.35rem); color: rgba(255, 255, 255, .92); text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.p1-lead a { color: var(--blanc); text-decoration: none; border-bottom: 1px solid var(--cyan); padding-bottom: 1px; white-space: nowrap; }

.p1-socs { --ecart: clamp(16px, 5vw, 84px); position: relative; list-style: none; margin: clamp(30px, 7vh, 76px) 0 0; padding: 0; display: flex; justify-content: center; gap: var(--ecart); }
.p1-soc { position: relative; width: var(--li); display: flex; flex-direction: column; align-items: center; transition: opacity .45s var(--ease); }
.p1-soc__lien { display: block; border-radius: 50%; text-decoration: none; }
.p1-soc__med { position: relative; width: var(--med); aspect-ratio: 1; border-radius: 50%; background: var(--blanc); display: grid; place-items: center; box-shadow: 0 18px 44px rgba(0, 0, 0, .3); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.p1-soc__med::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .42); transition: inset .5s var(--ease), border-color .5s var(--ease); }
.p1-soc__med img { width: 64%; max-height: 62%; object-fit: contain; }
.p1-soc--lpp .p1-soc__med img { width: 56%; max-height: 70%; }
.p1-soc__nom { margin: 24px 0 6px; font-family: var(--titre); font-weight: 400; font-size: clamp(1.15rem, 1.4vw, 1.36rem); line-height: 1.2; white-space: nowrap; text-shadow: 0 1px 16px rgba(0, 0, 0, .6); }
.p1-soc__role { margin: 0; max-width: 13.5rem; font-size: .7rem; line-height: 1.65; letter-spacing: .16em; text-transform: uppercase; color: var(--glace); text-wrap: balance; text-shadow: 0 1px 12px rgba(0, 0, 0, .7); }

.p1-suite { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 20px clamp(14px, 2.6vh, 28px); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .85); transition: opacity .45s var(--ease); }
.p1-suite::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--cyan), var(--cyan)) 0 -14px / 1px 14px no-repeat, rgba(255, 255, 255, .35); }
body:has(.p1-soc.is-open) .p1-suite { opacity: 0; }

/* ---------- bulles : chacune parle de son métier ---------- */
.p1-pop { position: absolute; z-index: 5; bottom: calc(100% + 30px); left: 50%; translate: -50% 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); column-gap: 30px; align-items: center; width: min(47rem, calc(100vw - 32px)); padding: 24px 26px; text-align: left; box-shadow: 0 34px 70px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s linear .5s; }
.p1-pop::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 34px; }
.p1-pop::after { content: ""; position: absolute; top: 100%; left: var(--fil, 50%); width: 2px; height: 30px; translate: -1px 0; background: var(--cyan); }
.p1-pop__titre { margin: 0 0 6px; font-family: var(--titre); font-size: 1.55rem; line-height: 1.15; }
.p1-pop__texte { margin: 0; font-size: .92rem; line-height: 1.5; }
.p1-pop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; }
.p1-pop__actions .wp-block-buttons { display: flex; }
.p1-pop__devis { margin: 0; font-size: .92rem; }
.p1-pop__devis a { text-underline-offset: 4px; }
.p1-pop__fermer { display: none; position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* EMC74 : le tableau électrique, un disjoncteur par métier */
.p1-pop--emc74 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); color: var(--encre); background: var(--coffret); border: 6px solid var(--blanc); border-radius: 14px; }
.p1-tab__certifs { margin: 10px 0 0; font-size: .78rem; color: var(--petrol); }
.p1-tab { list-style: none; margin: 0; padding: 14px 10px 10px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; background: var(--rail); border-radius: 6px; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .14); position: relative; }
.p1-tab::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50px; height: 12px; background: var(--trait); border-radius: 2px; }
.p1-tab a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; text-decoration: none; color: var(--encre); }
.p1-tab__mod { position: relative; display: grid; place-items: center; width: 100%; max-width: 60px; height: 78px; padding-bottom: 14px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 4px; box-shadow: 0 2px 0 var(--trait); transition: border-color .2s; }
/* l'objet de chaque métier, avec sa petite animation à l'ouverture */
.p1-ico { width: 40px; height: 40px; overflow: visible; transition: filter .35s var(--d, 0s); }
.p1-ico__t { fill: none; stroke: var(--cable); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p1-ico__verre { fill: var(--blanc); transition: fill .3s var(--d, 0s); }
.p1-ico__rayons { fill: none; stroke: var(--ambre); stroke-width: 2; stroke-linecap: round; opacity: 0; transition: opacity .3s var(--d, 0s); }
.p1-ico__led { fill: var(--trait); transition: fill .2s; }
.p1-ico__tuyau { stroke-width: 3.2; }
.p1-ico__goutte { fill: var(--cyan); opacity: 0; }
.p1-ico__fin { stroke-width: 1.6; }
.p1-ico__helice { fill: var(--cable); transform-box: view-box; transform-origin: 18px 25.5px; }
.p1-ico__pales { transform-box: view-box; transform-origin: 24px 24px; }
.p1-ico__chaleur { fill: none; stroke: var(--balcon); stroke-width: 2; stroke-linecap: round; opacity: 0; transition: opacity .4s var(--d, 0s); }
.p1-ico__air { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 4; opacity: .35; transition: opacity .3s var(--d, 0s); }
.p1-ico__fen { fill: var(--blanc); stroke: var(--cable); stroke-width: 1.4; transition: fill .3s; }
.p1-soc.is-open .p1-ico--ampoule { filter: drop-shadow(0 0 6px rgba(247, 226, 160, .95)); }
.p1-soc.is-open .p1-ico__verre { fill: var(--lumiere); }
.p1-soc.is-open .p1-ico__rayons { opacity: 1; }
.p1-soc.is-open .p1-ico--knx .p1-ico__led { fill: var(--cyan); }
.p1-ico--knx .p1-ico__led:nth-of-type(1) { transition-delay: .3s; } .p1-ico--knx .p1-ico__led:nth-of-type(2) { transition-delay: .42s; } .p1-ico--knx .p1-ico__led:nth-of-type(3) { transition-delay: .54s; } .p1-ico--knx .p1-ico__led:nth-of-type(4) { transition-delay: .66s; }
.p1-soc.is-open .p1-ico__goutte { animation: p1-goutte 1.4s ease-in var(--d, 0s) infinite; }
.p1-soc.is-open .p1-ico__helice { animation: p1-tourne 1s linear var(--d, 0s) infinite; }
.p1-soc.is-open .p1-ico__pales { animation: p1-tourne 1.6s linear var(--d, 0s) infinite; }
.p1-soc.is-open .p1-ico__pales .p1-ico__t { stroke: var(--cyan); }
.p1-soc.is-open .p1-ico__chaleur { opacity: 1; }
.p1-soc.is-open .p1-ico__air { opacity: 1; animation: p1-air .9s linear var(--d, 0s) infinite; }
/* immeuble : les fenêtres s'allument du rez-de-chaussée vers le haut */
.p1-soc.is-open .p1-ico__fen { fill: var(--lumiere); }
.p1-soc.is-open .p1-ico--immeuble { filter: drop-shadow(0 0 5px rgba(247, 226, 160, .9)); }
.p1-ico__fen:nth-of-type(5), .p1-ico__fen:nth-of-type(6) { transition-delay: .5s; } .p1-ico__fen:nth-of-type(3), .p1-ico__fen:nth-of-type(4) { transition-delay: .7s; } .p1-ico__fen:nth-of-type(1), .p1-ico__fen:nth-of-type(2) { transition-delay: .9s; }
@keyframes p1-goutte { 0% { opacity: 0; transform: translateY(-3px); } 20% { opacity: 1; } 75% { opacity: 1; transform: translateY(6px); } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes p1-tourne { to { transform: rotate(360deg); } }
@keyframes p1-air { to { stroke-dashoffset: 14; } }
.p1-tab__led { position: absolute; left: 50%; bottom: 9px; width: 8px; height: 8px; translate: -50% 0; border-radius: 50%; background: var(--trait); transition: background-color .2s var(--d, 0s), box-shadow .2s var(--d, 0s); }
.p1-tab__nom { min-height: 2.5em; font-size: .76rem; line-height: 1.25; text-align: center; }
.p1-tab a:hover .p1-tab__mod { border-color: var(--cyan); }
.p1-tab a:hover .p1-tab__nom { text-decoration: underline; text-underline-offset: 3px; }
.p1-tab li:nth-child(1) { --d: .12s; } .p1-tab li:nth-child(2) { --d: .2s; } .p1-tab li:nth-child(3) { --d: .28s; } .p1-tab li:nth-child(4) { --d: .36s; } .p1-tab li:nth-child(5) { --d: .44s; } .p1-tab li:nth-child(6) { --d: .52s; }
.p1-soc.is-open .p1-tab__led { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.p1-pop--emc74 .wp-block-button__link { color: var(--blanc); background: var(--cable); border-bottom: 3px solid var(--cyan); }
.p1-pop--emc74 .wp-block-button__link:hover { background: var(--petrol); }

/* La Petite Pieuvriste : la pieuvre et ses câbles repérés */
.p1-pop--lpp { color: var(--encre); background: var(--kraft); border-radius: 6px; }
.p1-pv { display: grid; grid-template-columns: 150px 1fr; align-items: center; }
.p1-pv svg { display: block; width: 150px; height: 184px; overflow: visible; }
.p1-pv path { fill: none; stroke: var(--cable); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset .7s var(--ease) var(--d, 0s); }
.p1-pv path:nth-of-type(1) { --d: .1s; } .p1-pv path:nth-of-type(2) { --d: .2s; } .p1-pv path:nth-of-type(3) { --d: .3s; } .p1-pv path:nth-of-type(4) { --d: .4s; }
.p1-soc.is-open .p1-pv path { stroke-dashoffset: 0; }
.p1-pv ul { list-style: none; margin: 0; padding: 0; }
.p1-pv li { height: 46px; display: flex; align-items: center; }
.p1-pv li span { display: inline-block; padding: 6px 12px 6px 10px; font-size: .84rem; line-height: 1.3; background: var(--blanc); border: 1.5px solid var(--cable); border-left: 9px solid var(--cyan); border-radius: 3px; box-shadow: 0 2px 0 var(--cable); opacity: 0; transform: translateX(-10px); transition: opacity .35s var(--d, 0s), transform .5s var(--ease) var(--d, 0s); }
.p1-pv li:nth-child(1) span { --d: .55s; } .p1-pv li:nth-child(2) span { --d: .65s; border-left-color: var(--glacier); } .p1-pv li:nth-child(3) span { --d: .75s; border-left-color: var(--lumiere); } .p1-pv li:nth-child(4) span { --d: .85s; border-left-color: var(--balcon); }
.p1-soc.is-open .p1-pv li span { opacity: 1; transform: none; }
.p1-pop--lpp .wp-block-button__link { color: var(--blanc); background: var(--cable); border: 1px solid var(--cable); }
.p1-pop--lpp .wp-block-button__link:hover { background: var(--petrol); }

/* ---------- état ouvert (posé par le script : survol, clavier ou toucher) ---------- */
.p1-soc.is-open .p1-soc__med { transform: translateY(-6px); box-shadow: 0 28px 56px rgba(0, 0, 0, .38); }
.p1-soc.is-open .p1-soc__med::after { inset: -14px; border-color: var(--cyan); }
.p1-soc.is-open .p1-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s; }
.p1-socs:has(.is-open) .p1-soc:not(.is-open) { opacity: .4; }
body:has(.p1-soc.is-open) .p1-titre > *, body:has(.p1-soc.is-open) .p1-haut { opacity: .14; }
body:has(.p1-soc.is-open) .p1-titre::before { opacity: 0; }
body:has(.p1-soc.is-open) .p1-fond::after { background-color: rgba(var(--nuit), .18); }

/* deux sociétés : la bulle se centre sur la paire de médaillons (jamais hors de l'écran), son fil pointe vers le médaillon ouvert */
@media (min-width: 861px) {
  .p1-soc { position: static; }
  .p1-soc:first-child .p1-pop { --fil: calc(50% - var(--ecart) / 2 - var(--li) / 2); }
  .p1-soc:last-child .p1-pop { --fil: calc(50% + var(--ecart) / 2 + var(--li) / 2); }
}
@media (min-width: 861px) and (max-height: 700px) {
  .p1-pop__texte { display: none; }
}

/* ---------- sections du groupe ---------- */
.p1-wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }
.p1-sec { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.p1-sec h2 { margin: 0 0 18px; font-family: var(--titre); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; text-wrap: balance; }
.p1-sous { margin: 0; max-width: 60ch; font-size: 1.05rem; }

/* le groupe */
.p1-groupe { color: var(--encre); background: var(--creme); box-shadow: 0 -24px 60px rgba(0, 0, 0, .28); }
.p1-groupe__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.p1-embleme { width: 92px; height: auto; margin-bottom: 24px; }
.p1-groupe__texte p { margin: 0 0 16px; font-size: 1.05rem; color: var(--texte-doux); }
.p1-citation { margin: 30px 0 34px; padding-left: 22px; border-left: 2px solid var(--cyan); font-family: var(--titre); font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.4; color: var(--petrol); }
.p1-groupe figure { margin: 0; }
.p1-groupe figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.p1-groupe figcaption { margin-top: 12px; font-size: .86rem; color: var(--texte-doux); }
.p1-btn-sombre .wp-block-button__link { color: var(--blanc); background: var(--petrol); border: 1px solid var(--petrol); }
.p1-btn-sombre .wp-block-button__link:hover { background: var(--encre); border-color: var(--encre); }

/* les chantiers */
.p1-real { color: var(--blanc); background: var(--petrol); }
.p1-real__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.p1-real__tete .p1-sous { color: rgba(255, 255, 255, .82); }
.p1-real__nav { display: flex; gap: 8px; flex: none; }
.p1-real__btn { width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: var(--blanc); font-size: 1.3rem; cursor: pointer; transition: background-color .25s, color .25s; }
.p1-real__btn:hover { background: var(--blanc); color: var(--petrol); }
.p1-real__piste { list-style: none; margin: 0; padding: 0 max(20px, calc((100% - 1180px) / 2)); display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100% - 1180px) / 2)); scrollbar-width: none; }
.p1-real__piste::-webkit-scrollbar { display: none; }
.p1-real__piste li { flex: none; scroll-snap-align: start; }
.p1-real__piste figure { margin: 0; }
.p1-real__piste img { width: auto; height: clamp(300px, 46vh, 460px); }
.p1-real__piste figcaption { margin-top: 12px; max-width: 30ch; font-size: .88rem; color: rgba(255, 255, 255, .8); }
.p1-real__piste figcaption strong { display: block; margin-bottom: 2px; font-family: var(--titre); font-weight: 400; font-size: 1.05rem; color: var(--blanc); }

/* l'histoire, en ligne de crête */
.p1-histoire { color: var(--encre); background: var(--creme); }
.p1-histoire .p1-sous { color: var(--texte-doux); }
.p1-crete { margin-top: clamp(40px, 6vw, 72px); }
.p1-crete__relief { position: relative; aspect-ratio: 1000 / 170; }
.p1-crete__relief svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.p1-crete__fond { fill: var(--glace); }
.p1-crete__ligne { fill: none; stroke: var(--petrol); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.p1-crete__sommet { position: absolute; width: 16px; height: 16px; translate: -50% -50%; border-radius: 50%; background: var(--creme); border: 2px solid var(--petrol); transform: scale(0); transition: transform .5s var(--ease) var(--d, 0s); }
.p1-crete__sommet:nth-child(2) { left: 12.5%; top: 70.6%; --d: .5s; } .p1-crete__sommet:nth-child(3) { left: 37.5%; top: 54.1%; --d: 1s; } .p1-crete__sommet:nth-child(4) { left: 62.5%; top: 36.5%; --d: 1.5s; } .p1-crete__sommet:nth-child(5) { left: 87.5%; top: 15.3%; --d: 2s; background: var(--cyan); border-color: var(--cyan); }
.p1-crete.is-visible .p1-crete__ligne { stroke-dashoffset: 0; }
.p1-crete.is-visible .p1-crete__sommet { transform: scale(1); }
.p1-crete__dates { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.p1-crete__annee { margin: 0 0 8px; font-family: var(--titre); font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; color: var(--petrol); }
.p1-crete__dates p:last-child { margin: 0; font-size: .95rem; color: var(--texte-doux); }

/* certifications */
.p1-certifs { color: var(--encre); background: var(--blanc); padding-block: clamp(60px, 7vw, 96px); }
.p1-certifs__grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.p1-certifs .p1-sous { color: var(--texte-doux); }
.p1-certifs__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.p1-certifs__liste li { padding-top: 22px; border-top: 1px solid var(--trait); }
.p1-certifs__liste img { height: 60px; width: auto; margin-bottom: 18px; }
.p1-certifs__liste h3 { margin: 0 0 6px; font-family: var(--titre); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.p1-certifs__liste p { margin: 0; font-size: .93rem; color: var(--texte-doux); }

/* le flou derrière le titre (.p1-titre::before, inset -8 %) ne doit pas élargir la page */
.p1-hero { overflow-x: clip; }

/* zone d'intervention : carte en relief 3D (carte-zone.js), image de la vue tant que la carte n'est pas prête */
.p1-carte3d { position: relative; height: clamp(560px, 82vh, 760px); overflow: hidden; background: #E9EFEE; }
.p1-carte3d__carte { position: absolute; inset: 0; }
/* plus précis que .maplibregl-map (position: relative), chargée après cette feuille */
.p1-carte3d .p1-carte3d__gl { position: absolute; inset: 0; }
.p1-carte3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transition: opacity .8s; }
.p1-carte3d.is-prete .p1-carte3d__poster { opacity: 0; pointer-events: none; }
.p1-carte3d__panneau { position: absolute; z-index: 2; top: clamp(20px, 3vw, 40px); left: max(20px, calc((100% - 1180px) / 2)); width: min(380px, calc(100% - 40px)); padding: clamp(22px, 3vw, 32px); background: rgba(255, 255, 255, .94); box-shadow: 0 20px 50px rgba(var(--nuit), .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.p1-carte3d h2 { margin: 0 0 12px; font-family: var(--titre); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.1; color: var(--petrol); }
.p1-carte3d .p1-sous { font-size: .98rem; color: var(--texte-doux); }
.p1-carte3d__lieux { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.p1-carte3d__lieux button, .p1-carte3d__ensemble { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px; border: 1px solid rgba(38, 74, 84, .18); background: var(--blanc); font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.p1-carte3d__lieux button:hover, .p1-carte3d__lieux button.is-actif { border-color: var(--cyan); background: var(--glace); }
.p1-carte3d__lieux strong { font-family: var(--titre); font-weight: 600; font-size: 1.2rem; color: var(--petrol); }
.p1-carte3d__lieux span { font-size: .82rem; line-height: 1.3; color: var(--texte-doux); text-align: right; }
.p1-carte3d__ensemble { margin-top: 10px; justify-content: center; border: 0; background: var(--petrol); color: var(--blanc); font-size: .92rem; }
.p1-carte3d__ensemble:hover { background: var(--encre); }
.p1-carte3d__aide { margin: 10px 0 0; font-size: .76rem; color: var(--texte-doux); }
.p1-aide--doigt { display: none; }
@media (hover: none) { .p1-aide--souris { display: none; } .p1-aide--doigt { display: inline; } }
.p1-carte3d__source { position: absolute; z-index: 2; right: 10px; bottom: 6px; margin: 0; padding: 2px 6px; font-size: .68rem; color: var(--texte-doux); background: rgba(255, 255, 255, .72); }
.p1-carte3d .maplibregl-ctrl-bottom-right { bottom: 26px; }
@media (hover: none) { .p1-carte3d .maplibregl-ctrl-group button { width: 40px; height: 40px; } }
/* étiquettes posées sur le relief */
.p1-m3 { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.p1-m3 b { padding: 2px 7px; background: rgba(255, 255, 255, .92); color: var(--petrol); font: 600 .74rem/1.2 var(--texte); white-space: nowrap; box-shadow: 0 2px 8px rgba(var(--nuit), .18); }
.p1-m3 i { width: 2px; height: 10px; background: var(--petrol); }
.p1-m3--cle b { padding: 6px 12px; background: var(--petrol); color: var(--blanc); font: 600 1.05rem/1.15 var(--titre); text-align: center; }
.p1-m3--cle b small { display: block; font: 400 .66rem/1.3 var(--texte); letter-spacing: .1em; text-transform: uppercase; color: #8FE0F2; }
.p1-m3--cle i { height: 26px; background: var(--cyan); }
.is-loin .p1-m3--simple b { display: none; }
.is-loin .p1-m3--simple i { width: 7px; height: 7px; border: 2px solid var(--blanc); border-radius: 50%; background: var(--petrol); }
.p1-m3--bas { flex-direction: column-reverse; }
.p1-m3--sommet b { background: transparent; box-shadow: none; font: italic 600 .95rem var(--titre); color: var(--blanc); text-shadow: 0 1px 6px rgba(var(--nuit), .8); }
.p1-m3--sommet i { display: none; }

/* contact */
.p1-contact { color: var(--encre); background: var(--creme); }
.p1-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); }
.p1-contact .p1-sous { color: var(--texte-doux); }
.p1-contact__tel { margin: 26px 0 0; }
.p1-contact__tel a { font-family: var(--titre); font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; text-decoration: none; color: var(--petrol); }
.p1-contact__tel a:hover { color: var(--encre); }
.p1-contact__socs { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--trait-clair); }
.p1-contact__socs li { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--trait-clair); }
.p1-contact__socs img { width: 60px; height: 46px; object-fit: contain; }
.p1-contact__socs p { margin: 0; font-size: .95rem; }
.p1-contact__socs strong { display: block; font-family: var(--titre); font-weight: 400; font-size: 1.15rem; }
.p1-contact__socs a { color: var(--texte-doux); text-underline-offset: 3px; }
.p1-contact__adresse { margin: 26px 0 0; color: var(--texte-doux); }
.p1-contact__carte { min-height: 420px; }
.p1-contact__carte iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.35); }

/* pied */
.p1-pied { color: rgba(255, 255, 255, .72); background: var(--encre); padding: 34px 0; font-size: .85rem; }
.p1-pied__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.p1-pied img { width: 58px; }
.p1-pied p { margin: 0; }
.p1-pied a { text-decoration: none; }
.p1-pied a:hover { color: var(--blanc); text-decoration: underline; }


/* ---------- mouvements ---------- */
@media (prefers-reduced-motion: no-preference) {
  .p1-marque, .p1-pre, .p1-titre h1 > span:last-child, .p1-lead, .p1-soc__lien, .p1-soc__nom, .p1-soc__role, .p1-suite { animation: p1-entree 1.1s var(--ease) backwards; }
  .p1-pre { animation-delay: .15s; }
  .p1-titre h1 > span:last-child { animation-delay: .25s; }
  .p1-lead { animation-delay: .4s; }
  .p1-soc:nth-child(1) > * { animation-delay: .55s; }
  .p1-soc:nth-child(2) > * { animation-delay: .67s; }
  .p1-suite { animation-delay: 1.1s; }
  .p1-suite::after { animation: p1-courant 2.2s var(--ease) infinite; }
  @keyframes p1-entree { from { opacity: 0; transform: translateY(18px); } }
  @keyframes p1-courant { to { background-position: 0 44px, 0 0; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .p1-pop *, .p1-pop *::after, .p1-crete * { transition-duration: 0s !important; transition-delay: 0s !important; }
  .p1-ico * { animation: none !important; }
}

/* ---------- tablette étroite et mobile ---------- */
@media (max-width: 860px) {
  :root { --med: 86px; }
  .p1-socs { width: 100%; max-width: 420px; gap: 8px; }
  .p1-titre::before { inset: -30px -16px; --fondu: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
  .p1-soc { width: auto; flex: 1 1 0; }
  .p1-soc__med::after { inset: -6px; }
  .p1-soc__nom { margin-top: 16px; font-size: 1rem; white-space: normal; }
  .p1-soc__role { display: none; }
  /* la bulle devient une fiche en bas d'écran */
  .p1-pop { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; translate: none; display: block; width: auto; max-height: 88svh; overflow-y: auto; padding: 28px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; border-width: 0; transform: translateY(104%); }
  .p1-pop::before, .p1-pop::after { display: none; }
  .p1-pop__fermer { display: grid; }
  .p1-pop__titre { padding-right: 40px; }
  .p1-pop { display: flex; flex-direction: column; align-items: stretch; }
  .p1-pop__col { display: contents; }
  .p1-pop__visuel { order: 2; margin-top: 20px; }
  .p1-pop__actions { order: 3; margin-top: 22px; }
  .p1-pv { grid-template-columns: 132px 1fr; }
  .p1-pv svg { width: 132px; }
  .p1-pv li span { font-size: .8rem; }
  body:has(.p1-soc.is-open)::after { content: ""; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .5); }
  body:has(.p1-soc.is-open) .p1-titre > *, body:has(.p1-soc.is-open) .p1-haut, body:has(.p1-soc.is-open) .p1-titre::before { opacity: 1; }
  /* sections */
  .p1-groupe__grid, .p1-certifs__grid, .p1-contact__grid { grid-template-columns: 1fr; }
  .p1-certifs__liste { grid-template-columns: 1fr; }
  .p1-real__tete { flex-direction: column; align-items: flex-start; }
  .p1-real__piste img { height: 340px; }
  .p1-crete__relief { display: none; }
  .p1-crete__dates { grid-template-columns: 1fr; gap: 0; margin-left: 8px; text-align: left; border-left: 2px solid var(--petrol); }
  .p1-crete__dates li { position: relative; padding: 0 0 30px 28px; }
  .p1-crete__dates li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--creme); border: 2px solid var(--petrol); }
  .p1-crete__dates li:last-child { padding-bottom: 0; }
  .p1-carte3d { height: auto; display: flex; flex-direction: column; }
  .p1-carte3d__carte { position: relative; order: 2; height: 460px; }
  .p1-carte3d__panneau { position: relative; top: 0; left: 0; width: 100%; padding: 40px 20px 28px; box-shadow: none; background: var(--creme); }
  .p1-carte3d__source { position: static; order: 3; padding: 6px 20px; text-align: right; background: var(--creme); }
  .p1-carte3d .maplibregl-ctrl-bottom-right { bottom: 0; }
  .p1-contact__carte, .p1-contact__carte iframe { min-height: 320px; }
}


/* la barre d'appel mobile du site occupe 56 px en bas de l'écran */
@media (max-width: 960px) {
  .p1-hero { min-height: calc(100svh - 56px); }
}
