/* Page d'accueil : design A « plein cadre » */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--green-dk); color: var(--cream); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- HERO ----------
   Tout est proportionnel à la largeur ET à la hauteur de la fenêtre (min(vw, svh)) :
   le bloc garde ses proportions en 16/9, 16/10, 4/3 ou 21/9, et suit le redimensionnement en direct.
   Le texte est dans le flux (flex) : si l'écran est très bas, le hero s'agrandit au lieu de déborder. */
.hero {
    --hdr-h: 88px;                                               /* hauteur du header fixe */
    --mnt-h: clamp(64px, min(14vw, 20svh), 220px);               /* hauteur des montagnes */
    --title: clamp(48px, min(10.5vw, 14.5svh), 190px);           /* taille du titre */
    --tag: clamp(92px, min(10vw, 17svh), 168px);                 /* diamètre de la pastille prix */
    --pad-x: max(var(--gutter), calc((100vw - 1640px) / 2));     /* marge latérale, centrée sur très grands écrans */
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--hdr-h) + 1svh) var(--pad-x) calc(var(--mnt-h) * .85 + 2svh);
}
/* .hero-media = parallaxe au scroll ; .hero-img = dézoom de l'intro (scale 1.3 -> 1.08, puis reste à 1.08) */
.hero-media, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { will-change: transform; }
.hero-img { object-fit: cover; object-position: 68% 50%; transform: scale(1.08); will-change: transform; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(10, 30, 28, .9) 0%, rgba(10, 30, 28, .6) 36%, rgba(10, 30, 28, 0) 68%),
        linear-gradient(0deg, rgba(10, 30, 28, .7) 0%, rgba(10, 30, 28, 0) 40%),
        linear-gradient(180deg, rgba(10, 30, 28, .55) 0%, rgba(10, 30, 28, 0) 18%);
}
.hero-content { position: relative; z-index: 3; width: min(100%, calc(var(--title) * 5.2)); }
.kicker {
    display: inline-flex; align-items: center; gap: .7em; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
    font-size: clamp(11px, min(1.05vw, 1.8svh), 15px); color: var(--beige); margin-bottom: clamp(10px, 2svh, 20px);
}
.flag { width: 1.3em; height: 1.3em; background: var(--red); position: relative; border-radius: 2px; flex: none; }
.flag::before, .flag::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.flag::before { width: 56%; height: 17%; }
.flag::after { width: 17%; height: 56%; }
/* interligne .94 : en dessous, les points du « Ö » de RÖSTIS touchent la ligne du dessus */
.hero h1 { font-size: var(--title); line-height: .94; letter-spacing: .005em; }
.hero h1 .line { display: block; overflow: hidden; padding: .12em 0 .04em; margin-top: -.12em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .accent { color: var(--beige); }
.lead {
    font-size: clamp(16px, min(1.5vw, 2.6svh), 23px); line-height: 1.4; color: #efe8dc;
    margin: clamp(12px, 2.6svh, 26px) 0 clamp(16px, 3.4svh, 34px); max-width: 32em;
}
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.ctas .btn { font-size: clamp(15px, min(1.25vw, 2.1svh), 18px); padding: 1em 1.6em; }

.status {
    position: absolute; z-index: 3; right: var(--pad-x); top: calc(var(--hdr-h) + 12px); margin: 0;
    background: var(--cream); color: var(--green-dk); padding: 12px 18px; border-radius: 14px;
    font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.status:not(.closed)::before { animation: pulse 2s infinite; box-shadow: 0 0 0 0 rgba(63, 191, 99, .6); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63, 191, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 99, 0); } }

/* pastille : tout est en em, donc elle se redimensionne d'un bloc avec --tag.
   .price-wrap = position + parallaxe au scroll ; .price-tag = apparition (intro).
   Deux éléments distincts pour que les deux animations ne se marchent jamais dessus. */
.price-wrap {
    position: absolute; z-index: 3;
    right: calc(var(--pad-x) + 2vw); bottom: calc(var(--mnt-h) * .75 + 4svh);
    width: var(--tag); height: var(--tag); will-change: transform;
}
.price-tag {
    width: 100%; height: 100%; font-size: calc(var(--tag) / 9.4);
    border-radius: 50%; background: var(--red); color: #fff; text-decoration: none;
    display: grid; place-items: center; text-align: center; transform: rotate(-10deg); box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    transition: scale .25s; /* « scale » est indépendant de « transform » : le survol ne touche pas aux animations GSAP */
}
.price-tag:hover { scale: 1.06; }
.price-tag b { font-family: var(--display); font-weight: 400; font-size: 2.6em; line-height: 1; display: block; }
.price-tag small { font-weight: 800; font-size: .78em; letter-spacing: .06em; text-transform: uppercase; display: block; }

/* overflow visible : les tracés descendent sous le SVG, il ne se crée jamais de vide quand une couche monte */
.mountains { position: absolute; z-index: 2; left: 0; right: 0; bottom: -2px; width: 100%; height: var(--mnt-h); pointer-events: none; overflow: visible; }
.scroll-hint {
    position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%);
    font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.scroll-hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: var(--muted); transform-origin: top; animation: drip 1.6s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* écrans bas (portables 13", fenêtres réduites en hauteur) */
@media (max-height: 720px) and (min-width: 701px) {
    .scroll-hint { display: none; }
    .status { padding: 9px 14px; font-size: 14px; }
}
/* tablettes / fenêtres étroites : le texte passe devant le burger, on renforce le voile */
@media (max-width: 1000px) and (min-width: 701px) {
    .hero::before { background: linear-gradient(90deg, rgba(10, 30, 28, .92) 0%, rgba(10, 30, 28, .65) 50%, rgba(10, 30, 28, .2) 85%), linear-gradient(0deg, rgba(10, 30, 28, .7) 0%, rgba(10, 30, 28, 0) 40%); }
    .status { display: none; }
}
/* mobile : texte en bas, photo en haut */
@media (max-width: 700px) {
    .hero {
        --hdr-h: 76px;
        --title: clamp(46px, min(15.5vw, 10.5svh), 96px);
        --tag: clamp(86px, 26vw, 112px);
        --mnt-h: clamp(56px, 18vw, 110px);
        align-items: flex-end;
        padding-bottom: calc(var(--mnt-h) * .5 + 28px);
    }
    .hero::before { background: linear-gradient(0deg, rgba(10, 30, 28, .95) 0%, rgba(10, 30, 28, .6) 45%, rgba(10, 30, 28, .15) 75%, rgba(10, 30, 28, .5) 100%); }
    .hero-img { object-position: 50% 30%; }
    .lead { font-size: 16px; }
    .status, .scroll-hint { display: none; }
    .price-wrap { top: calc(var(--hdr-h) + 22px); bottom: auto; right: 18px; } /* marge franche sous le header : jamais rognée */
}

/* ---------- TRANSITION « LIGNE DE CRÊTES » ----------
   Remplace l'ancienne bannière défilante. Une crête fine se dessine de gauche à droite au scroll,
   et chaque sommet s'allume avec un engagement de la maison. Reprend les montagnes du hero. */
.ridge { padding: clamp(56px, 7vw, 96px) var(--gutter) 0; }
.ridge-inner { position: relative; max-width: 1400px; margin: 0 auto; height: clamp(110px, 15vw, 210px); }
.ridge-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ridge-marks { list-style: none; margin: 0; padding: 0; }
.ridge-mark { position: absolute; left: var(--x); top: var(--y); }
.ridge-dot {
    position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
    background: var(--red); box-shadow: 0 0 0 4px var(--green-dk), 0 0 0 5px rgba(231, 220, 203, .5);
}
.ridge-mark.last .ridge-dot { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.ridge-label {
    position: absolute; left: 0; bottom: 18px; transform: translateX(-50%); white-space: nowrap;
    font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(15px, 1.7vw, 24px); color: var(--cream);
}
/* petit drapeau suisse planté sur le dernier sommet */
.ridge-mark.last .ridge-label::after {
    content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .35em; vertical-align: .05em; border-radius: 2px;
    background:
        linear-gradient(#fff, #fff) center / 56% 18% no-repeat,
        linear-gradient(#fff, #fff) center / 18% 56% no-repeat,
        var(--red);
}
@media (max-width: 700px) {
    /* mobile : libellés plus petits, sur 2 lignes si besoin (largeur fixe = jamais de chevauchement) */
    .ridge-label { white-space: normal; width: 18vw; text-align: center; font-size: 12px; line-height: 1.05; }
    .ridge-mark:first-child .ridge-label { transform: translateX(-25%); }
    .ridge-mark.last .ridge-label { transform: translateX(-70%); }
}

/* ---------- SECTIONS ---------- */
.block { padding: clamp(64px, 10vw, 120px) var(--gutter); max-width: 1500px; margin: 0 auto; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(44px, 6vw, 84px); overflow-wrap: anywhere; }
/* « @alpenstreetkitchen » = un seul mot très long : sans ça il dépasse sur mobile
   et le navigateur élargit toute la page (le header et la croix du menu sortent de l'écran) */
.insta .sec-head h2 { font-size: clamp(30px, 8.6vw, 84px); }
.sec-head p { max-width: 380px; color: var(--muted); font-size: 18px; line-height: 1.45; }
.link-arrow { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--cream); text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 3px; }

/* coups de cœur */
.stars { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.dish {
    position: relative; border-radius: 22px; overflow: hidden; background: var(--green); min-height: 440px;
    display: flex; flex-direction: column; justify-content: flex-end; color: #fff; text-decoration: none;
}
.dish img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.dish::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, 0) 55%); }
.dish:hover img { transform: scale(1.06); }
.dish .body { position: relative; z-index: 2; padding: 24px; display: block; }
.dish .badge { display: inline-block; background: var(--beige); color: var(--green-dk); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; margin-bottom: 12px; }
.dish .name { display: block; font-size: 34px; line-height: 1; }
.dish .desc { display: block; margin-top: 8px; color: #e6e0d6; line-height: 1.35; max-width: 380px; }
.dish .price { position: absolute; z-index: 2; top: 18px; right: 18px; background: var(--cream); color: var(--green-dk); font-family: var(--display); font-size: 24px; padding: 8px 14px; border-radius: 12px; }
.dish.big { grid-row: span 2; min-height: 640px; }
.dish.big .name { font-size: clamp(40px, 4vw, 56px); }
.dish.no-photo { background: var(--green) url("/assets/logo_nobg_beige.svg") center 30% / 40% no-repeat; }
.stars-4 .dish:nth-child(4) { grid-column: span 2; }
.stars-1 { grid-template-columns: 1fr; }
.stars-2 { grid-template-columns: 1.25fr 1fr; }
.stars-2 .dish.big, .stars-1 .dish.big { grid-row: auto; min-height: 520px; }
@media (max-width: 900px) {
    .stars, .stars-2 { grid-template-columns: 1fr 1fr; }
    .dish.big { grid-column: span 2; grid-row: auto; min-height: 480px; }
}
@media (max-width: 600px) {
    .stars, .stars-2 { grid-template-columns: 1fr; }
    .dish.big, .stars-4 .dish:nth-child(4) { grid-column: auto; }
    .dish { min-height: 380px; }
}

/* saison / actu */
.season { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; max-width: none; background: var(--beige); color: var(--green-dk); }
.season-tx { max-width: 620px; justify-self: end; }
.season h2 { font-size: clamp(44px, 6vw, 88px); }
.season h2 em { font-style: normal; color: var(--red); }
.season p { font-size: 19px; line-height: 1.5; margin: 20px 0 28px; max-width: 520px; }
.season .eyebrow { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--red); margin: 0 0 12px; }
.season-photos { position: relative; height: 520px; max-width: 620px; width: 100%; }
.season-photos img { position: absolute; border-radius: 18px; object-fit: cover; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); border: 6px solid var(--cream); }
.season-photos img:nth-child(1) { width: 62%; height: 78%; left: 0; top: 0; transform: rotate(-3deg); }
.season-photos img:nth-child(2) { width: 52%; height: 60%; right: 0; bottom: 0; transform: rotate(4deg); }
@media (max-width: 860px) { .season { grid-template-columns: 1fr; } .season-tx { justify-self: start; } .season-photos { height: 380px; } }

/* instagram */
/* Dégradé officiel Instagram (le même que dans l'icône de l'ancien footer) */
.insta { --ig: linear-gradient(90deg, #833ab4 0%, #c13584 22%, #fd1d1d 45%, #f77737 68%, #fcb045 85%, #833ab4 100%); }

/* titre : texte fantôme + calque dégradé révélé de gauche à droite */
.insta-title { position: relative; display: inline-block; max-width: 100%; padding-bottom: .12em; }
.insta-title a { position: relative; display: block; color: inherit; text-decoration: none; }
.insta-base { display: block; color: rgba(246, 243, 238, .14); }
.insta-grad {
    position: absolute; inset: 0;
    background: var(--ig); background-size: 200% 100%; background-position: var(--gx, 0%) 50%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    clip-path: inset(0 0 0 0); /* état final par défaut : sans JS, le dégradé est visible */
}
.insta-line { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 2px; background: var(--ig); background-size: 200% 100%; background-position: var(--gx, 0%) 50%; transform-origin: left center; }

/* grille : au survol, flou + invitation à voir le compte */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.insta-grid a { position: relative; display: block; overflow: hidden; border-radius: 10px; isolation: isolate; }
.insta-grid img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: filter .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.insta-grid a::after { /* liseré dégradé qui apparaît au survol */
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--ig);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s;
}
.insta-over {
    position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 10px; text-align: center; color: #fff; pointer-events: none;
    opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.insta-over-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ig); background-size: 200% 100%; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.insta-over-ico svg { width: 24px; height: 24px; }
.insta-over-tx { font-weight: 800; font-size: clamp(12px, 1.05vw, 15px); line-height: 1.2; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.insta-grid a:hover img, .insta-grid a:focus-visible img { filter: blur(6px) brightness(.55) saturate(1.15); transform: scale(1.08); }
.insta-grid a:hover .insta-over, .insta-grid a:focus-visible .insta-over { opacity: 1; transform: none; }
.insta-grid a:hover::after, .insta-grid a:focus-visible::after { opacity: 1; }
.insta-grid a:focus-visible { outline: none; }
@media (hover: none) { .insta-over { display: none; } } /* sur écran tactile : un tap ouvre directement Instagram */
@media (max-width: 700px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
