/* Polices des pages libres, servies par le site (licence SIL OFL 1.1, voir polices/LICENCES-polices.txt). Chargées seulement si une page les utilise. */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(polices/playfair-display-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(polices/playfair-display-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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(polices/montserrat-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(polices/montserrat-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; }
@font-face { font-family: 'Lora'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(polices/lora-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(polices/lora-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; }
@font-face { font-family: 'Caveat'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(polices/caveat-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(polices/caveat-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; }
@font-face { font-family: 'Oswald'; font-style: normal; font-display: swap; font-weight: 200 700; src: url(polices/oswald-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-display: swap; font-weight: 200 700; src: url(polices/oswald-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; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(polices/space-grotesk-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(polices/space-grotesk-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; }

/* ===========================================================================
   Pages libres (éditeur libre de la gestion) — même feuille pour le site et pour l'éditeur.
   Chaque bloc a une position et une taille sur une toile de 1200 unités de large
   (--x, --y, --l, --h, taille du texte --t) : la page garde ses proportions sur tout écran large.
   En dessous de 640 px de large, les blocs se rangent en une colonne, dans l'ordre de lecture (--o).
   =========================================================================== */
.pl-page { padding: calc(96px + env(safe-area-inset-top)) 0 64px; }
.pl-page.sans-entete { padding-top: 0; }
.pl-toile { container-type: inline-size; width: min(1200px, 100%); margin: 0 auto; }
.pl-zone { position: relative; height: calc(var(--hauteur, 800) * 100cqw / 1200); }

.pl-bloc {
  position: absolute; box-sizing: border-box;
  left: calc(var(--x) * 100cqw / 1200); top: calc(var(--y) * 100cqw / 1200);
  width: calc(var(--l) * 100cqw / 1200); height: calc(var(--h) * 100cqw / 1200);
  font-size: calc(var(--t, 18) * 100cqw / 1200); line-height: var(--interligne, 1.35);
  border-radius: calc(var(--r, 0) * 100cqw / 1200);
  padding: calc(var(--p, 0) * 100cqw / 1200);
  overflow: hidden; overflow-wrap: anywhere;
}
.pl-bloc > .pl-texte { margin: 0; font: inherit; color: inherit; }
.pl-titre > .pl-texte { letter-spacing: -.02em; line-height: 1.08; }
.pl-texte a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.pl-bouton { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; transition: filter .2s, transform .2s; }
a.pl-bouton:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pl-image img { display: block; width: 100%; height: 100%; object-fit: var(--ajustement, cover); }
.pl-image a { display: block; height: 100%; }
.pl-police-serif { font-family: Georgia, "Times New Roman", serif; }
.pl-police-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.pl-police-inter { font-family: Inter, system-ui, sans-serif; }
.pl-police-playfair { font-family: 'Playfair Display', Georgia, serif; }
.pl-police-montserrat { font-family: Montserrat, system-ui, sans-serif; }
.pl-police-lora { font-family: Lora, Georgia, serif; }
.pl-police-caveat { font-family: Caveat, 'Comic Sans MS', cursive; }
.pl-police-oswald { font-family: Oswald, 'Arial Narrow', sans-serif; }
.pl-police-grotesk { font-family: 'Space Grotesk', system-ui, sans-serif; }

/* Sections : bandes pleine largeur (fond, image, voile) qui contiennent leurs blocs */
.pl-section { left: calc(50cqw - 50vw); width: 100vw; padding: 0; border-radius: 0; overflow: visible;
              background-image: var(--fond-image, var(--degrade, none)); background-size: var(--ajustement, cover); background-position: var(--position, center); background-repeat: no-repeat; }
.pl-section::before { content: ""; position: absolute; inset: 0; background: var(--voile, transparent); pointer-events: none; }
.pl-section-contenu { position: absolute; top: 0; bottom: 0; left: calc(50vw - 50cqw); width: 100cqw; }
.pl-section-contenu > .pl-bloc { z-index: auto; }

/* Ligne de séparation */
.pl-ligne { display: flex; align-items: center; justify-content: center; overflow: visible; }
.pl-trait { display: block; width: 100%; height: 0; border: 0 solid currentColor; border-top-width: calc(var(--epaisseur, 2) * 1px); }
.pl-ligne-v .pl-trait { width: 0; height: 100%; border-top-width: 0; border-left-width: calc(var(--epaisseur, 2) * 1px); }
/* Icône */
.pl-icone { display: grid; place-items: center; overflow: visible; }
.pl-icone svg { width: 100%; height: 100%; display: block; }
/* Vidéo : rien n'est chargé avant le clic */
.pl-video { background: #0d1222; color: #fff; }
.pl-video-lancer { all: unset; box-sizing: border-box; width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: .5em; padding: 1em; text-align: center; cursor: pointer;
                   background: radial-gradient(circle at 50% 40%, #26314f, #0d1222 70%); font: 500 calc(var(--t, 16) * 1px) / 1.3 Inter, system-ui, sans-serif; }
.pl-video-lancer b { font-size: 1.1em; }
.pl-video-lancer small { opacity: .7; font-size: .78em; }
.pl-video-jouer { width: 4.2em; height: 4.2em; border-radius: 50%; background: #fff; position: relative; transition: transform .2s; }
.pl-video-jouer::after { content: ""; position: absolute; left: 39%; top: 30%; border-style: solid; border-width: .85em 0 .85em 1.45em; border-color: transparent transparent transparent #0d1222; }
.pl-video-lancer:hover .pl-video-jouer, .pl-video-lancer:focus-visible .pl-video-jouer { transform: scale(1.08); }
.pl-video-cadre { width: 100%; height: 100%; border: 0; display: block; }
/* Galerie : grille ou carrousel */
.pl-galerie { overflow: visible; }
.pl-galerie-grille { display: grid; grid-template-columns: repeat(var(--colonnes, 3), 1fr); gap: calc(var(--ecart, 12) * 100cqw / 1200); height: 100%; grid-auto-rows: 1fr; }
.pl-galerie-image { margin: 0; overflow: hidden; border-radius: inherit; min-height: 0; }
.pl-galerie-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-carrousel { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: inherit; }
.pl-carrousel::-webkit-scrollbar { display: none; }
.pl-carrousel .pl-galerie-image { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; }
.pl-carrousel-prec, .pl-carrousel-suiv { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #12182b; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.pl-carrousel-prec { left: 12px; } .pl-carrousel-suiv { right: 12px; }
.pl-carrousel-points { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.pl-carrousel-points button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.pl-carrousel-points button[aria-current="true"] { background: #fff; }
/* Listes de jeux et de projets */
.pl-jeux, .pl-projets, .pl-blog { overflow: visible; }
.pl-cartes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--colonnes, 3), 1fr); gap: 14px; }
.pl-cartes a { display: grid; gap: 4px; height: 100%; padding: 18px; border: 1px solid rgba(18,24,43,.12); border-radius: 16px; background: #fff; color: #12182b; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.pl-cartes a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,24,43,.1); }
.pl-cartes small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #5d6273; }
.pl-cartes b { font-size: 20px; font-weight: 600; }
.pl-cartes span { font-size: 15px; color: #5d6273; line-height: 1.45; }
.pl-vide { color: #5d6273; }
/* Formulaire de contact */
.pl-contact { overflow: visible; }
.pl-formulaire { display: grid; gap: 14px; font-size: calc(var(--t, 16) * 1px); }
.pl-champ { display: grid; gap: 6px; }
.pl-champ span { font-size: .85em; font-weight: 500; opacity: .8; }
.pl-champ input, .pl-champ textarea { width: 100%; box-sizing: border-box; padding: .75em .9em; border: 1px solid rgba(18,24,43,.2); border-radius: 12px; background: #fff; color: #12182b; font: inherit; }
.pl-champ input:focus, .pl-champ textarea:focus { outline: 2px solid var(--accent, #12182b); outline-offset: 1px; }
.pl-champ em { font-style: normal; font-size: .85em; color: #c94a4a; }
.pl-formulaire button { justify-self: start; padding: .85em 1.6em; border: 0; border-radius: 999px; background: var(--accent, #12182b); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.pl-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pl-erreur { margin: 0; padding: .7em 1em; border-radius: 12px; background: #fbeaea; color: #8a2b2b; }
.pl-merci { margin: 0; padding: 1.2em 1.4em; border-radius: 16px; background: #e7f4ec; color: #1f6b49; font-size: 18px; }

/* Style : dégradé, ombres, rotation, filtres, texte */
.pl-degrade:not(.pl-section) { background-image: var(--degrade); }
.pl-ombre-douce { box-shadow: 0 6px 18px rgba(18, 24, 43, .10); }
.pl-ombre-moyenne { box-shadow: 0 14px 36px rgba(18, 24, 43, .18); }
.pl-ombre-forte { box-shadow: 0 24px 60px rgba(18, 24, 43, .32); }
.pl-tourne { transform: rotate(var(--rotation, 0deg)); }
.pl-ombre-texte { text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.pl-texte ul, .pl-texte ol { margin: .3em 0; padding-left: 1.3em; }
.pl-texte li + li { margin-top: .25em; }
.pl-image img { object-position: var(--fx, 50%) var(--fy, 50%); transform: scale(var(--zoom, 1)); transform-origin: var(--fx, 50%) var(--fy, 50%); }
.pl-filtre-nb img, .pl-filtre-nb.pl-section { filter: grayscale(1); }
.pl-filtre-sepia img, .pl-filtre-sepia.pl-section { filter: sepia(.75); }
.pl-filtre-sature img, .pl-filtre-sature.pl-section { filter: saturate(1.5) contrast(1.05); }
.pl-filtre-doux img, .pl-filtre-doux.pl-section { filter: brightness(1.08) contrast(.9) saturate(.85); }
.pl-filtre-sombre img, .pl-filtre-sombre.pl-section { filter: brightness(.7); }
.pl-filtre-nb.pl-section .pl-section-contenu, .pl-filtre-sepia.pl-section .pl-section-contenu, .pl-filtre-sature.pl-section .pl-section-contenu,
.pl-filtre-doux.pl-section .pl-section-contenu, .pl-filtre-sombre.pl-section .pl-section-contenu { filter: none; }

/* Animations d'apparition (au défilement ; rien pour qui préfère réduire les animations) */
@media (prefers-reduced-motion: no-preference) {
  .pl-anim { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), translate .8s cubic-bezier(.2, .7, .2, 1), scale .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delai, 0ms); }
  .pl-anim:not(.pl-visible) { opacity: 0; }
  .pl-anim-monter:not(.pl-visible) { translate: 0 40px; }
  .pl-anim-descendre:not(.pl-visible) { translate: 0 -40px; }
  .pl-anim-gauche:not(.pl-visible) { translate: 48px 0; }
  .pl-anim-droite:not(.pl-visible) { translate: -48px 0; }
  .pl-anim-zoom:not(.pl-visible) { scale: .9; }
}

/* Blocs réservés au téléphone : masqués sur la page large */
@container (min-width: 641px) { .pl-bloc[data-mobile="seul"] { display: none; } }

/* Téléphone : une colonne, dans l'ordre de lecture (de haut en bas, puis de gauche à droite) */
@container (max-width: 640px) {
  .pl-zone { height: auto !important; display: flex; flex-direction: column; gap: 14px; padding: 8px 16px 24px; }
  .pl-bloc { position: static; order: var(--o, 0); width: auto; height: auto; max-width: 100%;
             font-size: var(--tm-px, calc(var(--t, 18) * .55px + 6px)); border-radius: min(calc(var(--r, 0) * 1px), 24px);
             padding: calc(var(--p, 0) * .6px); overflow: visible; }
  .pl-bouton { align-self: var(--alignement-mobile, flex-start); padding: .8em 1.4em; min-height: 48px; }
  .pl-image { aspect-ratio: var(--l) / var(--h); width: 100%; height: auto; overflow: hidden; }
  .pl-forme { min-height: calc(var(--h) * .3px); }
  .pl-bloc[data-mobile="masque"] { display: none; }
  .pl-bloc[style*="--tm:"] { --tm-px: calc(var(--tm) * 1px); }
  .pl-tourne { transform: none; }
  .pl-bloc.pl-forme:not([data-mobile="affiche"]) { display: none; }   /* les formes décorent la page large : masquées par défaut */
  .pl-section { position: relative; margin: 0 -16px; padding: 28px 16px; width: auto; max-width: none;
                min-height: calc(var(--h) * .35px); background-image: var(--fond-image-m, var(--fond-image, none)); }
  .pl-section-contenu { position: relative; left: auto; width: auto; display: flex; flex-direction: column; gap: 14px; }
  .pl-section:first-child { margin-top: -8px; }
  .pl-ligne { min-height: 16px; } .pl-ligne-v { display: none; }
  .pl-icone { width: calc(var(--l) * .5px); height: calc(var(--h) * .5px); max-width: 100%; }
  .pl-video { aspect-ratio: var(--l) / var(--h); width: 100%; }
  .pl-galerie { width: 100%; }
  .pl-galerie-grille { grid-template-columns: repeat(min(2, var(--colonnes, 3)), 1fr); gap: 8px; grid-auto-rows: auto; }
  .pl-galerie-grille .pl-galerie-image { aspect-ratio: 4 / 3; }
  .pl-carrousel { aspect-ratio: var(--l) / var(--h); }
  .pl-cartes { grid-template-columns: 1fr; }
}
.pl-bandeau-apercu { position: fixed; z-index: 999; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: #12182b; color: #fff; font: 500 13px/1.4 Inter, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.25); white-space: nowrap; }
/* Retouche (luminosité, contraste, saturation, flou) : remplace le filtre simple, qu'elle reprend */
.pl-retouche img { filter: var(--retouche); }
/* Formulaires sur mesure */
.pl-formlibre { overflow: visible; }
.pl-formulaire select { width: 100%; box-sizing: border-box; padding: .75em .9em; border: 1px solid rgba(18,24,43,.2); border-radius: 12px; background: #fff; color: #12182b; font: inherit; }
.pl-options { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.pl-options legend { margin-bottom: 4px; padding: 0; font-size: .85em; font-weight: 500; opacity: .8; }
.pl-options label, .pl-case { display: flex; align-items: center; gap: .5em; cursor: pointer; }
.pl-options input, .pl-case input { width: auto; accent-color: var(--accent, #12182b); }
.pl-case span { font-size: 1em; opacity: 1; font-weight: 400; }
.pl-requis { color: #c94a4a; font-weight: 600; }
/* Blog : liste des articles */
.pl-liste-articles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--colonnes, 3), 1fr); gap: 18px; }
.pl-article { display: flex; flex-direction: column; height: 100%; border: 1px solid rgba(18,24,43,.12); border-radius: 18px; background: #fff; color: #12182b; text-decoration: none; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.pl-article:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,24,43,.1); }
.pl-article img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.pl-article-texte { display: grid; gap: 6px; padding: 16px 18px 20px; }
.pl-article small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #5d6273; }
.pl-article b { font-size: 19px; font-weight: 600; line-height: 1.3; }
.pl-article-texte > span { font-size: 15px; line-height: 1.5; color: #5d6273; }
@container (max-width: 640px) { .pl-liste-articles { grid-template-columns: 1fr; } }
.pl-insere { position: relative; }
/* Réservation */
.pl-reservation { overflow: visible; }
.pl-creneaux { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.pl-creneaux legend { margin-bottom: 6px; padding: 0; font-size: .85em; font-weight: 500; opacity: .8; }
.pl-creneau { display: flex; align-items: center; gap: 12px; padding: .8em 1em; border: 1px solid rgba(18,24,43,.18); border-radius: 12px; background: #fff; color: #12182b; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pl-creneau:has(input:checked) { border-color: var(--accent, #12182b); box-shadow: 0 0 0 1px var(--accent, #12182b); }
.pl-creneau input { flex: none; width: auto; accent-color: var(--accent, #12182b); }
.pl-creneau span { display: grid; gap: 2px; }
.pl-creneau b { font-weight: 600; }
.pl-creneau small { font-size: .85em; color: #2e7d5b; }
.pl-creneau.complet { opacity: .55; cursor: not-allowed; }
.pl-creneau.complet small { color: #c94a4a; }
.pl-resa-recap { margin: 0; line-height: 1.5; }
.pl-resa-fin a { color: inherit; }

/* ===========================================================================
   Animations et effets supplémentaires
   =========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .pl-anim { transition-property: opacity, translate, scale, rotate, filter, clip-path; }
  .pl-anim-flou:not(.pl-visible) { filter: blur(14px); }
  .pl-anim-rebond { transition-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
  .pl-anim-rebond:not(.pl-visible) { translate: 0 60px; scale: .96; }
  .pl-anim-tourner:not(.pl-visible) { rotate: -6deg; scale: .94; }
  .pl-anim-deplier:not(.pl-visible) { clip-path: inset(0 100% 0 0); opacity: 1; }
  .pl-anim-deplier.pl-visible { clip-path: inset(0 0 0 0); }
  [class*="pl-survol-"] { transition: scale .3s ease, translate .3s ease, box-shadow .3s ease, filter .3s ease, rotate .3s ease; }
  .pl-survol-grossir:hover { scale: 1.04; }
  .pl-survol-soulever:hover { translate: 0 -6px; box-shadow: 0 18px 40px -16px rgba(18, 24, 43, .35); }
  .pl-survol-eclairer:hover { filter: brightness(1.08) saturate(1.1); }
  .pl-survol-tourner:hover { rotate: -2deg; }
}
.pl-section.pl-parallaxe { background-attachment: fixed; }
@media (hover: none) { .pl-section.pl-parallaxe { background-attachment: scroll; } }

/* Galerie en mosaïque : une grande photo, puis des petites */
.pl-galerie-mosaique { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; grid-auto-flow: dense; gap: calc(var(--ecart, 12) * 100cqw / 1200); height: 100%; }
.pl-galerie-mosaique .pl-galerie-image:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.pl-galerie-mosaique .pl-galerie-image:nth-child(6n + 4) { grid-column: span 2; }
.pl-galerie-mosaique .pl-galerie-image { margin: 0; overflow: hidden; border-radius: inherit; min-height: 0; }
.pl-galerie-mosaique img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===========================================================================
   Blocs « plus » (includes/blocs-plus.php)
   =========================================================================== */
.pl-plus { font-size: calc(var(--t, 17) * 100cqw / 1200); color: inherit; line-height: 1.55; }
.pl-plus p { margin: 0 0 .6em; }
.pl-plus.pl-vide { color: #5d6273; }
/* Accordéon */
.pl-plus.pl-accordeon { display: grid; gap: .5em; }
.pl-acc { border: 1px solid #e4e1d8; border-radius: 14px; background: #fff; }
.pl-acc summary { display: flex; justify-content: space-between; gap: 1em; padding: .9em 1.1em; font-weight: 500; cursor: pointer; list-style: none; }
.pl-acc summary::-webkit-details-marker { display: none; }
.pl-acc summary::after { content: "+"; color: var(--accent); font-size: 1.3em; line-height: 1; transition: rotate .2s; }
.pl-acc[open] summary::after { rotate: 45deg; }
.pl-acc-texte { padding: 0 1.1em 1em; color: #5d6273; }
/* Onglets (sans JavaScript) */
.pl-onglets-tetes { display: flex; flex-wrap: wrap; gap: .4em; border-bottom: 1px solid #e4e1d8; }
.pl-onglets-tetes input { position: absolute; opacity: 0; pointer-events: none; }
.pl-onglets-tetes label { padding: .6em 1em; border-bottom: 2px solid transparent; margin-bottom: -1px; color: #5d6273; cursor: pointer; font-weight: 500; }
.pl-onglets-tetes input:checked + label { color: inherit; border-bottom-color: var(--accent); }
.pl-onglets-tetes input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.pl-onglet-texte { display: none; padding-top: 1em; color: #5d6273; }
.pl-onglets-tetes:has(input:nth-of-type(1):checked) + .pl-onglets-corps .pl-onglet-texte:nth-child(1),
.pl-onglets-tetes:has(input:nth-of-type(2):checked) + .pl-onglets-corps .pl-onglet-texte:nth-child(2),
.pl-onglets-tetes:has(input:nth-of-type(3):checked) + .pl-onglets-corps .pl-onglet-texte:nth-child(3),
.pl-onglets-tetes:has(input:nth-of-type(4):checked) + .pl-onglets-corps .pl-onglet-texte:nth-child(4),
.pl-onglets-tetes:has(input:nth-of-type(5):checked) + .pl-onglets-corps .pl-onglet-texte:nth-child(5),
.pl-onglets-tetes:has(input:nth-of-type(6):checked) + .pl-onglets-corps .pl-onglet-texte:nth-child(6),
.pl-onglets-tetes:has(input:nth-of-type(7):checked) + .pl-onglets-corps .pl-onglet-texte:nth-child(7),
.pl-onglets-tetes:has(input:nth-of-type(8):checked) + .pl-onglets-corps .pl-onglet-texte:nth-child(8) { display: block; }
/* Compteurs */
.pl-plus.pl-compteur { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1em; height: 100%; align-content: center; text-align: center; }
.pl-compte b { display: block; font-size: 2.6em; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.pl-compte span { display: block; margin-top: .3em; opacity: .75; }
/* Frise */
.pl-plus.pl-frise { list-style: none; margin: 0; padding: 0 0 0 1.6em; position: relative; }
.pl-plus.pl-frise::before { content: ""; position: absolute; left: .45em; top: .4em; bottom: .4em; width: 2px; background: #e4e1d8; }
.pl-plus.pl-frise li { position: relative; padding: 0 0 1.4em; }
.pl-plus.pl-frise li::before { content: ""; position: absolute; left: -1.6em; top: .35em; width: .9em; height: .9em; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-sizing: border-box; translate: .05em 0; }
.pl-frise-date { display: block; font-size: .78em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #c8913f; }
.pl-plus.pl-frise b { display: block; font-size: 1.15em; font-weight: 500; margin: .1em 0 .2em; }
.pl-plus.pl-frise li > div { color: #5d6273; }
/* Agenda */
.pl-plus.pl-agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: .8em; }
.pl-plus.pl-agenda li { display: grid; grid-template-columns: 4.2em 1fr; gap: 1em; align-items: start; padding-bottom: .8em; border-bottom: 1px solid #e4e1d8; }
.pl-plus.pl-agenda li.passe { opacity: .5; }
.pl-agenda-date { display: grid; place-items: center; padding: .4em 0; border-radius: 12px; background: #f2efe6; font-size: .8em; text-transform: uppercase; letter-spacing: .06em; color: #5d6273; }
.pl-agenda-date b { font-size: 1.9em; line-height: 1.1; color: var(--accent); letter-spacing: -.02em; }
.pl-plus.pl-agenda li > div > b { display: block; font-weight: 500; font-size: 1.1em; }
.pl-plus.pl-agenda small { display: block; color: #5d6273; font-size: .85em; margin: .1em 0 .3em; }
.pl-plus.pl-agenda li > div > div { color: #5d6273; }
/* Citation */
.pl-plus.pl-citation { margin: 0; height: 100%; display: grid; align-content: center; gap: 1em; }
.pl-plus.pl-citation blockquote { margin: 0; font-size: 1.6em; line-height: 1.35; }
.pl-plus.pl-citation blockquote::before { content: "“"; display: block; height: .55em; font-size: 2.2em; line-height: 1; color: var(--accent); }
.pl-plus.pl-citation figcaption { display: flex; align-items: center; gap: .8em; font-family: Inter, system-ui, sans-serif; font-size: .85em; }
.pl-plus.pl-citation figcaption img { width: 3.2em; height: 3.2em; border-radius: 50%; object-fit: cover; }
.pl-plus.pl-citation figcaption b { display: block; font-weight: 600; }
.pl-plus.pl-citation figcaption small { display: block; opacity: .7; }
/* Avant / après */
.pl-plus.pl-avantapres { position: relative; height: 100%; overflow: hidden; border-radius: inherit; user-select: none; }
.pl-plus.pl-avantapres img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-aa-avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pl-aa-ligne { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.pl-aa-ligne::after { content: "⇆"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #12182b; display: grid; place-items: center; font: 600 18px/1 Inter, system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pl-aa-l1, .pl-aa-l2 { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(18,24,43,.65); color: #fff; font: 500 12px/1.4 Inter, system-ui, sans-serif; pointer-events: none; }
.pl-aa-l1 { left: 12px; } .pl-aa-l2 { right: 12px; }
.pl-plus.pl-avantapres input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
/* Carte */
.pl-plus.pl-carte { position: relative; height: 100%; border-radius: inherit; overflow: hidden; background: #e8eef3 repeating-linear-gradient(35deg, transparent 0 46px, rgba(255,255,255,.7) 46px 52px), #dde6ec; }
.pl-plus.pl-carte .pl-video-lancer { background: transparent; color: #12182b; }
.pl-carte-epingle { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: #c94a4a; box-shadow: 0 6px 16px rgba(0,0,0,.25); position: relative; }
.pl-carte-epingle::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.pl-plus.pl-carte .pl-video-lancer small { color: #3b4152; }
.pl-carte-grand { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; color: #12182b; font: 500 12px/1.5 Inter, system-ui, sans-serif; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pl-plus.pl-carte .pl-video-cadre { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Livre d'or */
.pl-plus.pl-livredor { display: grid; gap: 1.2em; }
.pl-livredor-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .8em; }
.pl-livredor-liste li { padding: .9em 1.1em; border-radius: 14px; background: #fff; border: 1px solid #e4e1d8; }
.pl-livredor-liste li p { margin: 0 0 .3em; }
.pl-livredor-liste small { color: #5d6273; }
.pl-livredor-liste .pl-vide { background: none; border-style: dashed; color: #5d6273; }
/* Sondage */
.pl-plus.pl-sondage { display: grid; gap: .7em; }
.pl-sondage-question { font-size: 1.2em; font-weight: 500; margin: 0; }
.pl-sondage-form { display: grid; gap: .5em; }
.pl-sondage-form label { display: flex; gap: .6em; align-items: center; padding: .65em .9em; border: 1px solid #e4e1d8; border-radius: 12px; background: #fff; cursor: pointer; }
.pl-sondage-form label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pl-sondage-form input { accent-color: var(--accent); }
.pl-sondage-form button { justify-self: start; margin-top: .3em; padding: .7em 1.4em; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.pl-sondage-res { display: grid; grid-template-columns: 1fr auto; gap: .2em .8em; align-items: center; }
.pl-sondage-res i { grid-column: 1 / -1; grid-row: 2; height: .55em; border-radius: 99px; background: #f2efe6; position: relative; overflow: hidden; }
.pl-sondage-res i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent); border-radius: inherit; }
.pl-sondage-res.petit { font-size: .85em; opacity: .8; }
.pl-plus.pl-sondage small { color: #5d6273; }
@container (max-width: 640px) {
  .pl-plus { font-size: calc(var(--t, 17) * .95px); }
  .pl-plus.pl-compteur { grid-template-columns: repeat(min(2, var(--n)), 1fr); }
  .pl-galerie-mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; height: auto; }
  .pl-plus.pl-avantapres, .pl-plus.pl-carte { aspect-ratio: 4 / 3; height: auto; }
}

/* Effets de texte (titres, textes, boutons) */
.pl-effet-contour .pl-texte { color: transparent; -webkit-text-stroke: max(1px, .035em) currentColor; }
.pl-effet-contour { -webkit-text-stroke-color: inherit; }
.pl-effet-degrade .pl-texte { background: linear-gradient(90deg, currentColor, var(--effet-c, #e8b26a)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pl-effet-ombre .pl-texte { text-shadow: .06em .06em 0 var(--effet-c, #e8b26a); }
.pl-effet-neon .pl-texte { text-shadow: 0 0 .08em #fff, 0 0 .25em var(--effet-c, #e8b26a), 0 0 .6em var(--effet-c, #e8b26a), 0 0 1.1em var(--effet-c, #e8b26a); }
.pl-effet-surligne .pl-texte { display: inline; background: linear-gradient(transparent 58%, var(--effet-c, #e8b26a) 58%, var(--effet-c, #e8b26a) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Ancres : le repère s'arrête sous le menu fixe */
.pl-ancre { position: absolute; left: 0; width: 1px; height: 1px; top: calc(var(--y) * 100cqw / 1200); scroll-margin-top: 96px; pointer-events: none; }
html:has(.pl-ancre) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.pl-ancre) { scroll-behavior: auto; } }
/* Élément fixé à l'écran (bouton « Réserver » toujours visible…) */
.pl-bloc.pl-epingle { position: fixed; z-index: 60; left: auto; top: auto; right: auto; bottom: auto; width: calc(var(--l) * min(100vw, 1200px) / 1200); height: calc(var(--h) * min(100vw, 1200px) / 1200); font-size: calc(var(--t, 18) * min(100vw, 1200px) / 1200); }
.pl-epingle-bas-droite { right: 20px !important; bottom: calc(20px + env(safe-area-inset-bottom)) !important; }
.pl-epingle-bas-gauche { left: 20px !important; bottom: calc(20px + env(safe-area-inset-bottom)) !important; }
.pl-epingle-bas-centre { left: 50% !important; bottom: calc(20px + env(safe-area-inset-bottom)) !important; translate: -50% 0; }
.pl-epingle-haut-droite { right: 20px !important; top: 90px !important; }
@container (max-width: 640px) { .pl-bloc.pl-epingle { position: fixed; width: auto; min-width: 140px; height: auto; font-size: 16px; } }
/* Vidéo de fond des sections */
.pl-section-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.pl-section:has(.pl-section-video)::before { z-index: 1; }
.pl-section:has(.pl-section-video) > .pl-section-contenu { z-index: 2; }
/* Fenêtre surgissante */
.pl-popup { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 32px); overflow-y: auto; width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 22px; background: #fff; color: #12182b; box-shadow: 0 40px 100px -20px rgba(0,0,0,.45); overflow: hidden; }
.pl-popup::backdrop { background: rgba(12, 16, 30, .5); backdrop-filter: blur(3px); }
.pl-popup[open] { animation: pl-popup-entree .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes pl-popup-entree { from { opacity: 0; translate: 0 16px; scale: .97; } }
.pl-popup img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pl-popup-corps { padding: 26px 28px 28px; font-family: Inter, system-ui, sans-serif; }
.pl-popup h2 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; }
.pl-popup p { margin: 0 0 18px; color: #5d6273; line-height: 1.6; }
.pl-popup-bouton { display: inline-block; padding: .8em 1.5em; border-radius: 999px; background: #12182b; color: #fff; text-decoration: none; font-weight: 500; }
.pl-popup-fermer { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #12182b; font-size: 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
/* Recherche */
.pl-plus.pl-recherche { position: relative; }
.pl-recherche input { width: 100%; box-sizing: border-box; padding: .8em 1.1em .8em 2.6em; border: 1px solid #e4e1d8; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6273' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") .9em center / 1.1em no-repeat; font: inherit; color: #12182b; }
.pl-recherche input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-recherche-res { list-style: none; margin: .5em 0 0; padding: 0; display: grid; gap: .3em; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(18,24,43,.35); }
.pl-recherche-res:empty { display: none; }
.pl-recherche-res a { display: block; padding: .7em 1.1em; border-radius: 12px; text-decoration: none; color: #12182b; }
.pl-recherche-res a:hover, .pl-recherche-res a:focus-visible { background: #f2efe6; }
.pl-recherche-res small { display: block; color: #5d6273; font-size: .82em; }
.pl-recherche-res .vide { padding: .7em 1.1em; color: #5d6273; }
@container (max-width: 640px) { .pl-recherche-res { position: static; } }

/* Collections : cartes ou liste, fiche ouverte en grand */
.pl-plus.pl-collection { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2em; }
.pl-collection-cartes { grid-template-columns: repeat(var(--colonnes, 3), 1fr); }
.pl-collection li > a, .pl-collection li > div { display: grid; height: 100%; border-radius: 18px; background: #fff; border: 1px solid #e4e1d8; overflow: hidden; color: inherit; text-decoration: none; transition: translate .2s, box-shadow .2s; }
.pl-collection li > a:hover { translate: 0 -3px; box-shadow: 0 16px 34px -18px rgba(18,24,43,.4); }
.pl-collection img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pl-col-corps { display: grid; gap: .25em; padding: .9em 1.1em 1.1em; align-content: start; }
.pl-col-corps small { color: #c8913f; font-size: .78em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pl-col-corps b { font-weight: 500; font-size: 1.15em; letter-spacing: -.01em; }
.pl-col-corps > span { color: #5d6273; font-size: .92em; }
.pl-collection-liste li > a, .pl-collection-liste li > div { grid-template-columns: 7em 1fr; align-items: center; }
.pl-collection-liste img { aspect-ratio: 1; height: 100%; }
.pl-fiche-fond { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(12, 16, 30, .55); backdrop-filter: blur(3px); overflow-y: auto; }
.pl-fiche { position: relative; width: min(720px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 22px; background: #fff; color: #12182b; box-shadow: 0 40px 100px -20px rgba(0,0,0,.45); font-family: Inter, system-ui, sans-serif; animation: pl-popup-entree .3s cubic-bezier(.2, .7, .2, 1); }
.pl-fiche > img { display: block; width: 100%; max-height: 50vh; object-fit: cover; }
.pl-fiche-corps { padding: 26px 30px 32px; }
.pl-fiche-corps small { color: #c8913f; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.pl-fiche h2 { margin: 6px 0 8px; font-size: 2rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.pl-fiche-chapeau { margin: 0 0 16px; color: #5d6273; font-size: 1.1rem; }
.pl-fiche-texte p { margin: 0 0 1em; line-height: 1.7; color: #3b4152; }
.pl-fiche-fermer { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: #12182b; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
@container (max-width: 640px) { .pl-collection-cartes { grid-template-columns: 1fr; } }

/* Réglages fins sur téléphone (largeur, alignement, espace au-dessus), choisis dans l'éditeur */
@container (max-width: 640px) {
  .pl-bloc[style*="--ml:"] { width: var(--ml) !important; }
  .pl-bloc[style*="--malign:"] { align-self: var(--malign) !important; }
  .pl-bloc[style*="--malign:center"] { text-align: center; }
  .pl-bloc[style*="--mmarge:"] { margin-top: var(--mmarge); }
  .pl-section-contenu > .pl-bloc[style*="--ml:"] { width: var(--ml) !important; }
}
