/* Solinquest — feuille de style commune
   Palette : violet #351476 · nuit #2A0F61 · corail #F7665C · soleil #FFC65A · lavande #EEE6F6 · crème #FAF7F1
   Typo : Space Grotesk (titres) · Inter (texte)
   La mise en page de chaque bloc est décrite dans les attributs style des gabarits (template-parts/pages). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FAF7F1; font-family: Inter, system-ui, sans-serif; color: #1E1433; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: #351476; }
a:hover { color: #C2410C; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #FFC65A; outline-offset: 2px; }

/* Conteneur de page : les règles @container s'appuient dessus */
.sq { container-type: inline-size; width: 100%; font-family: Inter, system-ui, sans-serif; color: #1E1433; background: #FAF7F1; overflow-x: clip; }

/* En-tête collant */
.sq-header { position: sticky; top: 0; z-index: 20; background: rgba(250,247,241,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #E8E1D4; padding: 14px 56px; }
.admin-bar .sq-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sq-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .sq-header { top: 0; } }

/* Les ancres ne passent pas sous l'en-tête collant */
main [id] { scroll-margin-top: 84px; }

/* Lien d'évitement */
.sq-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #351476; color: #FAF7F1; font-weight: 600; text-decoration: none; }
.sq-skip:focus { left: 8px; color: #FAF7F1; }

/* Tracé d'itinéraire animé */
.route { stroke-dasharray: 2 10; stroke-linecap: round; animation: dash 24s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -480; } }

/* Apparitions */
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.rise2 { animation: rise .9s .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.pop { animation: pop .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* Cartes qui se soulèvent au survol */
.lift { transition: transform .2s ease; }
.lift:hover { transform: translateY(-4px); }

/* FAQ */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.plus { transition: transform .2s; }
details[open] .plus { transform: rotate(45deg); }

/* Champs du formulaire */
.fld { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #D6CCE6; border-radius: 14px; background: #FFFFFF; font: inherit; font-size: 16px; color: #1E1433; }
.fld:focus { outline: 3px solid #FFC65A; outline-offset: 1px; border-color: #351476; }
.fld.err { border-color: #B23A2E; background: #FFF6F4; }
.form-error { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 12px; background: #FFE4DF; color: #8A2A20; font-size: 14px; font-weight: 600; }
#contact-form button[type="submit"][disabled] { opacity: .6; cursor: progress; }
/* Champ piège anti-robot : hors écran, jamais rempli par un humain */
.sq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Menu mobile : bouton (le panneau est plus bas) */
.burger { cursor: pointer; }

/* Pages de contenu (texte WordPress : mentions légales, confidentialité…) */
.sq-contenu { padding: 72px 56px 104px; }
.sq-contenu-in { max-width: 820px; margin: 0 auto; font-size: 17px; line-height: 1.65; color: #4A4060; }
.sq-contenu-in h1 { margin: 0 0 28px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(34px, 4.2cqi, 58px); line-height: 1.02; letter-spacing: -.02em; color: #351476; }
.sq-contenu-in h2 { margin: 44px 0 12px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px; line-height: 1.15; color: #1E1433; }
.sq-contenu-in h3 { margin: 32px 0 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 20px; color: #1E1433; }
.sq-contenu-in p, .sq-contenu-in ul, .sq-contenu-in ol { margin: 0 0 18px; }

/* Responsive : tablette et mobile */
@container (max-width: 820px) {
  .navl { display: none !important; }
  .burger { display: flex !important; }
  .hide-m { display: none !important; }
  .pad { padding-left: 20px !important; padding-right: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Blocs dentro de Elementor: el contenedor no agrega nada (ni márgenes ni separación) y los enlaces sin estilo
   propio se ven como en la maqueta (Elementor les quita el subrayado). */
.sq .e-con.sq-bloc { --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; --gap: 0px; --row-gap: 0px; --column-gap: 0px; --margin-top: 0px; --margin-bottom: 0px; }
.sq .e-con.sq-bloc > .elementor-widget { width: 100%; max-width: 100%; margin: 0; }
.sq .elementor [class*="elementor-widget-sq_"] a { text-decoration: underline; }

/* ------------------------------------------------------------------ Menú móvil: panel a la izquierda que EMPUJA la página
   El panel (.sq-drawer) está fuera de .sq; al abrir, .sq se desplaza su ancho. Lógica en assets/js/site.js. */
.sq { transition: transform .34s cubic-bezier(.2,.7,.2,1); }
.sq-drawer { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(84vw, 330px); display: flex; flex-direction: column; padding: 20px 22px 26px; background: #1A0842; color: #FAF7F1; transform: translateX(-100%); visibility: hidden; transition: transform .34s cubic-bezier(.2,.7,.2,1), visibility 0s .34s; overflow-y: auto; overscroll-behavior: contain; }
.sq-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sq-drawer-top a { display: flex; }
.sq-drawer-close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #4E2F92; background: transparent; color: #FAF7F1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, transform .2s; }
.sq-drawer-close:hover { background: #36206A; transform: rotate(90deg); }
.sq-drawer-nav { display: flex; flex-direction: column; border-top: 1px solid #36206A; }
.sq-drawer-nav a { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 18px 4px 18px 16px; border-bottom: 1px solid #36206A; color: #FAF7F1; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 22px; line-height: 1.15; opacity: 0; transform: translateX(-16px); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), color .2s; }
.sq-drawer-nav a span { font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: #FFC65A; }
.sq-drawer-nav a::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 0; border-radius: 2px; background: #F7665C; transform: translateY(-50%); transition: height .25s ease; }
.sq-drawer-nav a:hover, .sq-drawer-nav a.on { color: #FFC65A; }
.sq-drawer-nav a:hover::before, .sq-drawer-nav a.on::before { height: 56%; }
.sq-drawer-cta { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 999px; background: #F7665C; color: #240B52; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .2s ease; }
.sq-drawer-cta:hover { color: #240B52; transform: translateY(-3px); }
.sq-drawer-note { margin: auto 0 0; padding-top: 28px; font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: #FFC65A; }
html.sq-menu-open, html.sq-menu-open body { overflow: hidden; }
/* se guarda el hueco de la barra de scroll: si no, al abrir el menú el contenedor se ensancha y cerca de 820 px el header cambia de modo */
html.sq-menu-open { scrollbar-gutter: stable; }
html.sq-menu-open .sq-drawer { transform: none; visibility: visible; transition-delay: 0s; }
html.sq-menu-open .sq { position: relative; transform: translateX(min(84vw, 330px)); }
html.sq-menu-open .sq::after { content: ""; position: absolute; inset: 0; z-index: 30; background: rgba(26,8,66,.45); }
html.sq-menu-open .sq-drawer-nav a { opacity: 1; transform: none; }
html.sq-menu-open .sq-drawer-nav a:nth-child(1) { transition-delay: .10s, .10s, 0s; }
html.sq-menu-open .sq-drawer-nav a:nth-child(2) { transition-delay: .15s, .15s, 0s; }
html.sq-menu-open .sq-drawer-nav a:nth-child(3) { transition-delay: .20s, .20s, 0s; }
html.sq-menu-open .sq-drawer-nav a:nth-child(4) { transition-delay: .25s, .25s, 0s; }
html.sq-menu-open .sq-drawer-nav a:nth-child(5) { transition-delay: .30s, .30s, 0s; }
/* Las 4 fichas de aventura, bajo « Les aventures » */
.sq-drawer-nav > a:has(+ .sq-drawer-sub) { border-bottom: 0; padding-bottom: 8px; }
.sq-drawer-sub { display: flex; flex-direction: column; padding: 0 4px 12px 46px; border-bottom: 1px solid #36206A; }
.sq-drawer-nav .sq-drawer-sub a { padding: 9px 0; border-bottom: 0; font-family: Inter, system-ui, sans-serif; font-weight: 500; font-size: 16px; color: #D9CFEA; }
.sq-drawer-nav .sq-drawer-sub a::before { content: none; }
.sq-drawer-nav .sq-drawer-sub a:hover, .sq-drawer-nav .sq-drawer-sub a.on { color: #FFC65A; }
/* Sin @media de ventana acá: el botón ☰ aparece por el ancho del CONTENEDOR (@container 820px, que no cuenta la barra
   de scroll) y una regla por ancho de VENTANA dejaba una franja (821-837 px) con botón y sin menú. Si la ventana se
   agranda con el menú abierto, lo cierra site.js cuando el botón deja de verse. */

/* ------------------------------------------------------------------ Mejoras de interacción
   No cambian el diseño en reposo (el banco tools/t_pixel.py compara ese estado con la maqueta): sólo movimiento
   al pasar el cursor, al abrir y al entrar en pantalla. Con « reducir movimiento » del sistema no hay ninguna. */
.sq-header { transition: box-shadow .25s ease; }
html.sq-scrolled .sq-header { box-shadow: 0 10px 30px rgba(42,15,97,.10); }
.sq-header nav.navl a { background: linear-gradient(#F7665C, #F7665C) no-repeat 0 100% / 0 2px; transition: background-size .25s ease, color .2s; }
.sq-header nav.navl a:hover, .sq-header nav.navl a[aria-current] { background-size: 100% 2px; }

/* ------------------------------------------------------------------ Megamenú « Les aventures » (header, escritorio)
   Una tarjeta con foto por aventura. Se abre al pasar el mouse o con el teclado (foco), con un pequeño rebote; el
   panel se centra en el header. En móvil las fichas están en el panel lateral. Idea: navegación con panel « spring »
   y tarjetas con imagen (21st.dev: paceui « Motion Navigation Menu », bundui « Shop Navigation Menu »). */
.sq-header > div { position: relative; }
.sq-sub { display: flex; align-items: center; }
.sq-sub-top { display: inline-flex; align-items: center; gap: 6px; }
.sq-sub-top svg { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.sq-sub:hover .sq-sub-top svg, .sq-sub:focus-within .sq-sub-top svg { transform: rotate(180deg); }
.sq-sub-menu { position: absolute; top: calc(100% + 16px); left: 50%; z-index: 50; width: min(860px, calc(100% + 24px)); padding: 14px; border: 1px solid #E7DFF3; border-radius: 22px; background: #FFFFFF; box-shadow: 0 30px 60px -28px rgba(53,20,118,.45), 0 2px 6px rgba(53,20,118,.06); opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.97); transform-origin: 50% 0; transition: opacity .2s ease .08s, transform .2s ease .08s, visibility 0s .28s; }
.sq-sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -44px; height: 44px; } /* puente: el mouse no pierde el menú al bajar */
.sq-sub:hover .sq-sub-menu, .sq-sub:focus-within .sq-sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .22s ease, transform .42s cubic-bezier(.2,1.25,.35,1), visibility 0s; }
.sq-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sq-header nav.navl .sq-mega-card { display: flex; flex-direction: column; gap: 4px; padding: 8px 8px 14px; border-radius: 16px; background: none; color: #1E1433; text-decoration: none; transition: background-color .2s ease; }
.sq-mega-img { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 8px; border-radius: 12px; overflow: hidden; background: #EEE6F6; }
.sq-mega-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.sq-mega-num { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(26,8,66,.72); color: #FFC65A; font-size: 11px; font-weight: 700; letter-spacing: .08em; backdrop-filter: blur(4px); }
.sq-mega-nom { padding: 0 4px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.2; color: #1E1433; transition: color .2s; }
.sq-mega-txt { padding: 0 4px; font-size: 13px; line-height: 1.4; color: #5B5270; }
.sq-header nav.navl .sq-mega-card:hover, .sq-header nav.navl .sq-mega-card:focus-visible { background: #F6F1FC; }
.sq-mega-card:hover .sq-mega-img img, .sq-mega-card:focus-visible .sq-mega-img img { transform: scale(1.09); }
.sq-mega-card:hover .sq-mega-nom, .sq-mega-card.on .sq-mega-nom { color: #C2410C; }
.sq-mega-grid:hover .sq-mega-card:not(:hover) { opacity: .78; }
.sq-mega-card { transition: background-color .2s ease, opacity .2s ease; }
/* las tarjetas entran escalonadas cuando se abre el panel */
.sq-sub:hover .sq-mega-card, .sq-sub:focus-within .sq-mega-card { animation: sq-mega-in .45s cubic-bezier(.2,.7,.2,1) both; }
.sq-sub:hover .sq-mega-card:nth-child(2), .sq-sub:focus-within .sq-mega-card:nth-child(2) { animation-delay: .04s; }
.sq-sub:hover .sq-mega-card:nth-child(3), .sq-sub:focus-within .sq-mega-card:nth-child(3) { animation-delay: .08s; }
.sq-sub:hover .sq-mega-card:nth-child(4), .sq-sub:focus-within .sq-mega-card:nth-child(4) { animation-delay: .12s; }
@keyframes sq-mega-in { from { opacity: 0; transform: translateY(10px); } }
.sq-mega-pie { display: flex; justify-content: space-between; gap: 16px; margin: 6px 4px 0; padding: 12px 6px 2px; border-top: 1px solid #EFE8F7; font-size: 14px; }
.sq-header nav.navl .sq-mega-pie a { background: none; color: #351476; font-weight: 600; text-decoration: none; }
.sq-header nav.navl .sq-mega-pie a:last-child { color: #5B5270; font-weight: 500; }
.sq-header nav.navl .sq-mega-pie a:hover { color: #C2410C; }
.sq-mega-pie a span { display: inline-block; transition: transform .2s ease; }
.sq-mega-pie a:hover span { transform: translateX(4px); }
/* píldora que se desliza entre los enlaces del header (la pone site.js, medida contra el header: así el megamenú
   también se ubica contra el header y no contra el botón) */
.sq-header nav.navl > a, .sq-header nav.navl .sq-sub-top { position: relative; z-index: 1; }
.sq-nav-pill { position: absolute; z-index: 0; top: 50%; left: 0; height: 38px; width: 0; border-radius: 999px; background: #EFE8FA; opacity: 0; transform: translate(var(--x, 0), -50%); transition: transform .35s cubic-bezier(.2,.9,.3,1.1), width .35s cubic-bezier(.2,.9,.3,1.1), opacity .2s ease; pointer-events: none; }
.sq-nav-pill.on { opacity: 1; }
/* el subrayado queda para la página actual; al pasar el mouse manda la píldora */
.sq-header nav.navl a:hover:not([aria-current]) { background-size: 0 2px; }

/* fotos de las tarjetas: se acercan despacio */
.sq main a.lift img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.sq main a.lift:hover img { transform: scale(1.06); }
/* en una grilla de tarjetas, la que se mira destaca y las demás se apagan un poco */
.sq main .sq-cards > a.lift { transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease; }
.sq main .sq-cards:hover > a.lift:not(:hover) { opacity: .72; }
.sq main .sq-cards > a.lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(42,15,97,.18); }
/* la flecha de los botones avanza */
.sq main a > svg:last-child { transition: transform .2s ease; }
.sq main a:hover > svg:last-child { transform: translateX(4px); }
/* preguntas frecuentes: se abren con recorrido, y el « + » responde al cursor */
.sq main summary .plus { transition: transform .2s, background .2s, color .2s; }
.sq main summary:hover .plus { background: #351476 !important; color: #FAF7F1 !important; }
@supports (interpolate-size: allow-keywords) {
  .sq main details { interpolate-size: allow-keywords; }
  .sq main details::details-content { block-size: 0; overflow: clip; transition: block-size .32s ease, content-visibility .32s allow-discrete; }
  .sq main details[open]::details-content { block-size: auto; }
}
/* aparición al entrar en pantalla (la clase la pone el JS sólo a lo que está más abajo de la ventana) */
.sq-rv { opacity: 0; transform: translateY(22px); }
.sq-rv.sq-in { opacity: 1; transform: none; transition: opacity .6s ease var(--sq-d, 0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--sq-d, 0s); }

/* ------------------------------------------------------------------ Entrada de los héroes (al cargar)
   Cada elemento sube en cascada y el título sale de una máscara (21st.dev: cnippet « Text Reveal »). Termina en el
   diseño de la maqueta. No corre en el editor de Elementor ni con « reducir movimiento ». */
@media (prefers-reduced-motion: no-preference) {
  body:not(.elementor-editor-active) .sq .rise { animation: none; }
  body:not(.elementor-editor-active) .sq .rise > *,
  body:not(.elementor-editor-active) .elementor-widget-sq_aventure_hero section > div > div:last-child > div:first-child > *,
  body:not(.elementor-editor-active) .elementor-widget-sq_ecoles_hero section > div > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  body:not(.elementor-editor-active) .sq .rise > h1,
  body:not(.elementor-editor-active) .elementor-widget-sq_aventure_hero h1,
  body:not(.elementor-editor-active) .elementor-widget-sq_ecoles_hero h1 { animation-name: sq-titre; animation-duration: 1s; }
  body:not(.elementor-editor-active) .sq .rise > :nth-child(2),
  body:not(.elementor-editor-active) .elementor-widget-sq_aventure_hero section > div > div:last-child > div:first-child > :nth-child(2),
  body:not(.elementor-editor-active) .elementor-widget-sq_ecoles_hero section > div > :nth-child(2) { animation-delay: .08s; }
  body:not(.elementor-editor-active) .sq .rise > :nth-child(3),
  body:not(.elementor-editor-active) .elementor-widget-sq_aventure_hero section > div > div:last-child > div:first-child > :nth-child(3),
  body:not(.elementor-editor-active) .elementor-widget-sq_ecoles_hero section > div > :nth-child(3) { animation-delay: .2s; }
  body:not(.elementor-editor-active) .sq .rise > :nth-child(4),
  body:not(.elementor-editor-active) .elementor-widget-sq_aventure_hero section > div > div:last-child > div:first-child > :nth-child(4),
  body:not(.elementor-editor-active) .elementor-widget-sq_ecoles_hero section > div > :nth-child(4) { animation-delay: .3s; }
  body:not(.elementor-editor-active) .sq .rise > :nth-child(n+5),
  body:not(.elementor-editor-active) .elementor-widget-sq_aventure_hero section > div > div:last-child > div:first-child > :nth-child(n+5) { animation-delay: .4s; }
  /* la foto del héroe de cada aventura entra y la imagen se asienta */
  body:not(.elementor-editor-active) .elementor-widget-sq_aventure_hero section > div > div:last-child > div:last-child { animation: pop 1s .15s cubic-bezier(.2,.7,.2,1) both; }
  body:not(.elementor-editor-active) .elementor-widget-sq_aventure_hero section > div > div:last-child > div:last-child > img,
  body:not(.elementor-editor-active) .sq .rise2 > div:first-child > img { animation: sq-asiento 1.6s .1s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes sq-titre { from { opacity: 0; transform: translateY(.45em); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20% 0); } }
@keyframes sq-asiento { from { transform: scale(1.1); } }

/* foco de luz que sigue al mouse en las tarjetas con foto (21st.dev: « Spotlight Card »). site.js pone --mx/--my. */
.sq main .sq-cards > a.lift { position: relative; isolation: isolate; }
.sq main .sq-cards > a.lift::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,236,200,.22), transparent 60%); opacity: 0; transition: opacity .3s ease; }
.sq main .sq-cards > a.lift:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sq-sub-menu, .sq-mega-card, .sq-nav-pill { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ « Visuel retouché par IA »
   Mention sur les photos du contenu, posée par site.js, comme sur solingua.be (même badge). Les coins vont en ligne. */
span.ia-badge.ia-badge { position: absolute; inset: auto; z-index: 4; display: block; width: auto; height: auto; max-width: none; margin: 0; padding: 2px 6px; border: 0; border-radius: 4px; box-shadow: none; background: rgba(0, 0, 0, .42); color: rgba(255, 255, 255, .92); font: 500 10px/1.3 Inter, system-ui, sans-serif; letter-spacing: .02em; text-transform: none; white-space: nowrap; pointer-events: none; user-select: none; }
