/* =========================================================================
   Goralska — mode Noël de l'accueil (film au scroll, neige, respirations)
   ========================================================================= */

/* ---------- Film d'ouverture ---------- */
.gk-noel-film{position:relative;height:520vh;background:#0B1222;color:#F7F4EE}
.gk-noel-film__sticky{position:sticky;top:0;height:100vh;height:100svh;min-height:520px;overflow:hidden}
.gk-noel-film__media{position:absolute;inset:0;background:#0B1222}
.gk-noel-film__media picture{position:absolute;inset:0;display:block}
.gk-noel-film__media img,.gk-noel-film__video{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 50%}
.gk-noel-film__video{opacity:0;transition:opacity .8s ease}
.gk-noel-film.is-ready .gk-noel-film__video{opacity:1}
.gk-noel-film__still{opacity:0}
.gk-noel-film__shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(11,18,34,.78) 0%,rgba(11,18,34,.42) 40%,rgba(11,18,34,0) 70%),linear-gradient(180deg,rgba(11,18,34,.55) 0%,rgba(11,18,34,0) 22%,rgba(11,18,34,0) 62%,rgba(11,18,34,.6) 100%);opacity:1;transition:opacity .3s linear}

/* Textes : ouverture (bas gauche) et fin (gauche, centré verticalement) */
.gk-noel-film__intro,.gk-noel-film__end{position:absolute;z-index:2;left:clamp(20px,6vw,104px);right:clamp(20px,6vw,104px);max-width:min(640px,52vw);display:flex;flex-direction:column;align-items:flex-start;gap:24px}
.gk-noel-film__intro{bottom:clamp(96px,15vh,170px)}
.gk-noel-film__end{top:50%;transform:translateY(-50%);opacity:0;visibility:hidden}
.gk-noel-film__title{margin:0;font-family:'GK Jost','Cormorant Garamond',sans-serif;font-weight:200;font-size:clamp(44px,6.2vw,104px);line-height:1;letter-spacing:.12em;text-transform:uppercase;color:#F7F4EE;text-wrap:balance}
body.gk-noel-home .gk-noel-film h2.gk-noel-film__title{font-family:'GK Jost','Cormorant Garamond',sans-serif!important;font-weight:200!important;font-size:clamp(40px,5.2vw,88px)!important;line-height:1!important;letter-spacing:.12em!important}
.gk-noel-film__text{margin:0;max-width:460px;font-family:'Cormorant Garamond',serif;font-style:italic;font-weight:300;font-size:clamp(19px,1.7vw,25px);line-height:1.4;color:#F7F4EE;text-wrap:pretty}
.gk-noel-film__ctas{display:flex;flex-wrap:wrap;align-items:center;gap:18px 32px;margin-top:6px}

/* Étapes du trajet */
.gk-noel-film__chapter{position:absolute;z-index:2;left:20px;right:20px;top:44%;margin:0;text-align:center;font-family:'GK Jost','Cormorant Garamond',sans-serif;font-weight:200;font-size:clamp(24px,3.2vw,52px);line-height:1.15;letter-spacing:.14em;text-transform:uppercase;color:#F7F4EE;text-shadow:0 0 2px rgba(11,18,34,.45),0 2px 18px rgba(11,18,34,.85),0 0 60px rgba(11,18,34,.6);opacity:0;pointer-events:none;will-change:opacity,transform}

/* Indication de défilement, lien « Passer », progression */
.gk-noel-film__hint{position:absolute;z-index:2;right:clamp(20px,4vw,56px);bottom:84px;display:flex;flex-direction:column;align-items:flex-end;gap:12px;font-size:10.5px;letter-spacing:.3em;text-transform:uppercase;color:#F7F4EE;white-space:nowrap;pointer-events:none}
.gk-noel-film__hint-line{position:relative;display:block;width:1px;height:56px;background:rgba(247,244,238,.25);overflow:hidden}
.gk-noel-film__hint-line::after{content:'';position:absolute;left:0;top:0;width:1px;height:100%;background:#D9BB85;transform:translateY(-100%);animation:gk-noel-hint 2.2s cubic-bezier(.65,0,.35,1) infinite}
@keyframes gk-noel-hint{0%{transform:translateY(-100%)}55%{transform:translateY(0)}100%{transform:translateY(100%)}}
.gk-noel-film__skip,.gk-noel-film__skip:hover{position:absolute;z-index:3;left:clamp(20px,6vw,104px);bottom:28px;font-size:10.5px;letter-spacing:.26em;text-transform:uppercase;color:#F7F4EE;border-bottom:1px solid rgba(247,244,238,.5);padding-bottom:4px}
.gk-noel-film__skip:hover{color:#D9BB85;border-bottom-color:#D9BB85}
.gk-noel-film__progress{position:absolute;z-index:2;left:0;right:0;bottom:0;height:2px;background:rgba(247,244,238,.14)}
.gk-noel-film__progress div{height:100%;background:#D9BB85;transform:scaleX(0);transform-origin:0 50%}

@media (max-width:979.98px){
  .gk-noel-film{height:430vh}
  .gk-noel-film__shade{background:linear-gradient(180deg,rgba(11,18,34,.55) 0%,rgba(11,18,34,0) 26%,rgba(11,18,34,.15) 48%,rgba(11,18,34,.86) 100%)}
  .gk-noel-film__intro,.gk-noel-film__end{max-width:none;gap:18px}
  .gk-noel-film__intro{bottom:max(150px,calc(env(safe-area-inset-bottom) + 136px))}
  .gk-noel-film__end{top:auto;bottom:max(140px,calc(env(safe-area-inset-bottom) + 126px));transform:none}
  .gk-noel-film__title{font-size:clamp(38px,11vw,64px);letter-spacing:.1em}
  body.gk-noel-home .gk-noel-film h2.gk-noel-film__title{font-size:clamp(34px,9.6vw,56px)!important}
  .gk-noel-film__skip,.gk-noel-film__skip:hover{left:auto;right:16px;bottom:auto;top:calc(var(--gk-noel-hdr,calc(var(--gk-ab,0px) + 96px)) + 16px)}
  .gk-noel-film__hint{top:max(124px,16vh,calc(var(--gk-noel-hdr,0px) + 52px));bottom:auto;right:auto;left:50%;transform:translateX(-50%);align-items:center}
  .gk-noel-film__hint-line{height:40px}
}

/* ---------- iPhone Duo uniquement (classe gk-duo posée par l'en-tête de la page) ---------- */
.gk-noel-film__canvas{display:block}
@media (max-width:979.98px){
  /* Écran plus bas : l'indication de défilement passe sous les boutons, à gauche, et le bloc d'ouverture se resserre */
  .gk-duo .gk-noel-film__intro{gap:14px}
  .gk-duo .gk-noel-film__ctas{gap:14px 28px}
  .gk-duo .gk-noel-film__hint{top:auto;bottom:max(102px,calc(env(safe-area-inset-bottom) + 88px));left:clamp(20px,6vw,104px);right:auto;transform:none;flex-direction:row-reverse;align-items:center;gap:12px;letter-spacing:.24em}
  .gk-duo .gk-noel-film__hint-line{height:18px}
}
@media (max-width:979.98px) and (orientation:landscape) and (max-height:480px){
  .gk-duo .gk-noel-film__intro{bottom:max(72px,calc(env(safe-area-inset-bottom) + 60px));max-width:62%}
  .gk-duo .gk-noel-film__end{bottom:max(72px,calc(env(safe-area-inset-bottom) + 60px));max-width:62%}
  .gk-duo .gk-noel-film__title{font-size:clamp(28px,9vh,40px)}
  .gk-duo body.gk-noel-home .gk-noel-film h2.gk-noel-film__title{font-size:clamp(26px,8vh,36px)!important}
  .gk-duo .gk-noel-film__text{display:none}
  .gk-duo .gk-noel-film__hint{display:none}
}

/* Entrée en cascade des textes d'ouverture */
.gk-motion .gk-noel-film [data-hero-in]{opacity:0;transform:translateY(26px)}
.gk-motion .gk-noel-film [data-hero-in].is-in{opacity:1;transform:none;transition:opacity 1.6s cubic-bezier(.2,.7,.2,1),transform 1.6s cubic-bezier(.2,.7,.2,1)}

/* Sans animation : écran fixe avec la dernière image du film et les boutons de fin */
html:not(.gk-motion) .gk-noel-film{height:auto}
html:not(.gk-motion) .gk-noel-film__sticky{position:relative;height:100vh;height:100svh}
html:not(.gk-motion) .gk-noel-film__poster,html:not(.gk-motion) .gk-noel-film__video,html:not(.gk-motion) .gk-noel-film__intro,html:not(.gk-motion) .gk-noel-film__chapter,html:not(.gk-motion) .gk-noel-film__hint,html:not(.gk-motion) .gk-noel-film__skip,html:not(.gk-motion) .gk-noel-film__progress{display:none}
html:not(.gk-motion) .gk-noel-film__still{opacity:1}
html:not(.gk-motion) .gk-noel-film__end{opacity:1;visibility:visible}

/* ---------- Neige ---------- */
.gk-noel-snow{position:fixed;inset:0;z-index:45;width:100%;height:100%;pointer-events:none}

/* ---------- Respirations ---------- */
.gk-noel-r{position:relative;overflow:hidden;background:#0B1222;color:#F7F4EE}
.gk-noel-r__media{position:relative;overflow:hidden}
.gk-noel-r__media picture{position:absolute;inset:0;display:block}
.gk-noel-r__media img{position:absolute;left:0;top:-7%;width:100%;height:114%;max-width:none;object-fit:cover;will-change:transform}
.gk-noel-r__shade{position:absolute;inset:0;pointer-events:none}
.gk-noel-r__text{position:relative;z-index:1;display:flex;flex-direction:column;gap:clamp(18px,2.2vw,26px)}
body.gk-noel-home .gk-noel-r h2{margin:0;font-size:clamp(30px,3.4vw,52px)!important;font-weight:300!important;color:#F7F4EE;text-wrap:balance}
.gk-noel-r__text p{margin:0;max-width:440px;font-family:'Cormorant Garamond',serif;font-style:italic;font-weight:300;font-size:clamp(19px,1.6vw,24px);line-height:1.45;color:rgba(247,244,238,.92)}
.gk-noel-r__text .gk-ulink{align-self:flex-start}

/* 1 : texte à gauche sur bordeaux, photo portrait à droite */
.gk-noel-r--1{display:grid;grid-template-columns:minmax(0,42fr) minmax(0,58fr);min-height:100vh;min-height:100svh;background:#2A0E0E}
.gk-noel-r--1 .gk-noel-r__text{justify-content:center;padding:clamp(80px,10vw,160px) clamp(24px,6vw,104px)}
.gk-noel-r--1 .gk-noel-r__media img{object-position:50% 64%}
.gk-noel-r--1 .gk-noel-r__shade{background:linear-gradient(90deg,rgba(42,14,14,.5) 0%,rgba(42,14,14,0) 22%)}

/* 2 : photo plein écran, texte en bas au centre */
.gk-noel-r--2{height:100vh;height:100svh;min-height:560px}
.gk-noel-r--2 .gk-noel-r__media{position:absolute;inset:0}
.gk-noel-r--2 .gk-noel-r__media img{object-position:50% 62%}
.gk-noel-r--2 .gk-noel-r__shade{background:linear-gradient(90deg,rgba(11,18,34,.72) 0%,rgba(11,18,34,.3) 34%,rgba(11,18,34,0) 55%),linear-gradient(180deg,rgba(11,18,34,.35) 0%,rgba(11,18,34,0) 30%,rgba(11,18,34,0) 60%,rgba(11,18,34,.55) 100%)}
.gk-noel-r--2 .gk-noel-r__text{position:absolute;left:clamp(20px,6vw,104px);bottom:clamp(56px,11vh,130px);max-width:min(560px,40vw)}

@media (max-width:979.98px){
  .gk-noel-r--1{grid-template-columns:1fr;min-height:0}
  .gk-noel-r--1 .gk-noel-r__media{order:-1;height:min(128vw,720px)}
  .gk-noel-r--1 .gk-noel-r__text{padding:48px 20px 80px}
  .gk-noel-r--1 .gk-noel-r__shade{background:linear-gradient(180deg,rgba(42,14,14,0) 70%,rgba(42,14,14,.9) 100%)}
  .gk-noel-r--2 .gk-noel-r__media img{object-position:61% 62%}
  .gk-noel-r--2 .gk-noel-r__shade{background:linear-gradient(180deg,rgba(11,18,34,.8) 0%,rgba(11,18,34,.35) 30%,rgba(11,18,34,0) 50%)}
  .gk-noel-r--2 .gk-noel-r__text{top:max(120px,16vh);bottom:auto;left:20px;right:20px;max-width:none;align-items:center;text-align:center}
  .gk-noel-r--2 .gk-noel-r__text .gk-ulink{align-self:center}
}

/* ---------- Sections de l'accueil adaptées aux photos de Noël ---------- */
/* Pièces uniques : ciel de nuit, texte clair */
body.gk-noel-home .gk-pu,body.gk-noel-home .gk-pu__media{background:#0B1222}
body.gk-noel-home .gk-pu__shade{background:linear-gradient(90deg,rgba(11,18,34,.72) 0%,rgba(11,18,34,.34) 38%,rgba(11,18,34,0) 60%)}
body.gk-noel-home .gk-pu__box h2,body.gk-noel-home .gk-pu .gk-eyebrow{color:#F7F4EE!important}
body.gk-noel-home .gk-pu .gk-eyebrow{color:#D9BB85!important}
body.gk-noel-home .gk-pu .gk-ulink{color:#F7F4EE;border-bottom-color:rgba(247,244,238,.6)}
body.gk-noel-home .gk-pu .gk-ulink:hover{color:#D9BB85;border-bottom-color:#D9BB85;opacity:1}
body.gk-noel-home .gk-pu .gk-btn{background:#F7F4EE;color:#421717}
@media (max-width:979.98px){body.gk-noel-home .gk-pu__shade{opacity:1;background:linear-gradient(180deg,rgba(11,18,34,0) 60%,rgba(11,18,34,.9) 100%)}}

/* ---------- Musique : disque qui tourne ---------- */
.gk-noel-cd{position:fixed;z-index:48;right:clamp(16px,2.4vw,36px);top:calc(var(--gk-ab,0px) + 136px);width:108px;height:108px;padding:0;margin:0;border:0;border-radius:50%;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.gk-noel-cd:hover{transform:scale(1.05)}
.gk-noel-cd:focus{outline:none}
.gk-noel-cd:focus-visible{outline:1px solid #D9BB85;outline-offset:6px}
.gk-noel-cd__disc{position:absolute;inset:0;border-radius:50%;overflow:hidden;background:conic-gradient(from 30deg,#4F0920 0deg,#6E1A33 40deg,#4F0920 95deg,#3A0617 160deg,#5E1229 215deg,#4F0920 270deg,#3A0617 330deg,#4F0920 360deg);box-shadow:0 14px 34px -12px rgba(25,19,20,.7),inset 0 0 0 1px rgba(217,187,133,.55),inset 0 0 0 7px rgba(42,14,14,.35);animation:gk-noel-cd-spin 24s linear infinite}
.gk-noel-cd.is-playing .gk-noel-cd__disc{animation-duration:7s}
.gk-noel-cd__ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.gk-noel-cd__ring text{fill:#D9BB85;font-family:'GK Jost','Gantari',sans-serif;font-size:8.6px;font-weight:500;letter-spacing:.06em}
.gk-noel-cd__sheen{position:absolute;inset:0;border-radius:50%;pointer-events:none;background:conic-gradient(from 0deg,rgba(247,244,238,0) 0deg,rgba(247,244,238,.16) 22deg,rgba(247,244,238,0) 52deg,rgba(247,244,238,0) 180deg,rgba(217,187,133,.14) 205deg,rgba(247,244,238,0) 236deg,rgba(247,244,238,0) 360deg);mix-blend-mode:screen}
.gk-noel-cd__label{position:absolute;left:50%;top:50%;width:34%;height:34%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#2A0E0E 0 13%,#D9BB85 14% 19%,#F7F4EE 20% 100%);box-shadow:0 0 0 1px rgba(217,187,133,.7),inset 0 0 0 4px rgba(217,187,133,.18)}
@keyframes gk-noel-cd-spin{to{transform:rotate(360deg)}}
@media (max-width:979.98px){
  .gk-noel-cd{top:auto;bottom:max(96px,calc(env(safe-area-inset-bottom) + 84px));right:14px;width:76px;height:76px}
  .gk-noel-cd__ring text{font-size:9.4px}
}

/* Mouvement réduit */
@media (prefers-reduced-motion:reduce){
  .gk-noel-film__hint-line::after{animation:none}
  .gk-noel-r__media img{transform:none!important}
  .gk-noel-cd__disc{animation:none}
}
