/* =========================================================
   PAGES D'ATTERRISSAGE /go/ — séduire en dix secondes.
   Diaporama plein écran, accroches calligraphiées,
   barre de trois boutons fixée sous le pouce.
   S'appuie sur style-v2.css (variables et composants).
   ========================================================= */

body.go { padding-bottom: 76px; }

/* ---------- En-tête minimal ---------- */
.go-tete { position: absolute; top: 0; left: 0; right: 0; z-index: 20; text-align: center; padding: 14px 16px; }
.go-tete .brand { font-family: var(--plume); font-size: clamp(1.5rem, 5vw, 2rem); color: var(--creme); text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.go-tete .brand small { display: block; font-family: var(--display); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-2); text-shadow: 0 1px 6px rgba(0,0,0,.8); margin-top: 3px; }
/* Le H1 de message match (rapport-3 QG) prend exactement l'habit de l'ancien sous-titre. */
.go-tete .brand h1 { display: block; font-family: var(--display); font-size: .72rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-2); text-shadow: 0 1px 6px rgba(0,0,0,.8); margin: 3px 0 0; }
.go-langue { position: absolute; top: 14px; right: 14px; z-index: 21; font-size: 1.5rem; line-height: 1; padding: 8px; background: rgba(28,24,18,.45); border-radius: 4px; }

/* ---------- Diaporama ---------- */
.diapo { position: relative; height: 74svh; min-height: 420px; overflow: hidden; background: var(--ink); }
.diapo .s { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.diapo .s.on { opacity: 1; }
.diapo .s img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .diapo .s.on img { animation: kenburns 8s ease-out forwards; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
}
.diapo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,10,.42) 0%, transparent 34%, transparent 52%, rgba(20,15,10,.78) 100%); pointer-events: none; }
.diapo .accroche {
  position: absolute; left: 0; right: 0; bottom: 44px; z-index: 5; text-align: center; padding-inline: 18px;
  font-family: var(--plume); font-size: clamp(2.1rem, 8.5vw, 4.2rem); line-height: 1.05; color: var(--creme);
  text-shadow: 0 3px 16px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.9);
}
/* Langues sans calligraphie latine : on repasse en serif élégante */
.diapo .accroche.droite { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 6.5vw, 3rem); }
.diapo .points { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 6; display: flex; gap: 8px; justify-content: center; }
.diapo .points i { width: 8px; height: 8px; border-radius: 50%; background: rgba(250,244,230,.45); transition: background .3s, transform .3s; }
.diapo .points i.on { background: var(--creme); transform: scale(1.3); }

/* ---------- Barre d'actions fixe ---------- */
.barre-actions {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; gap: 1px; background: var(--ink);
  box-shadow: 0 -6px 20px -8px rgba(28,24,18,.5);
}
.barre-actions a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 62px; padding: 8px 4px 10px;
  background: var(--creme); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: clamp(.85rem, 3vw, 1rem);
}
.barre-actions a .ico { display: block; width: 23px; height: 23px; line-height: 0; }
.barre-actions a .ico svg { width: 100%; height: 100%; display: block; }
.barre-actions a.principal { background: var(--vichy); color: var(--creme); }
/* La case Itineraire porte le marcheur anime (Mathieu, 09/08) : il est large, on
   lui donne donc une part et demie de la barre. Le rapport 75/26 colle au viewBox
   180x62 du dessin, sinon le bonhomme s'ecrase. Les animations elles-memes vivent
   dans style-v2.css, que ces pages chargent aussi. */
/* Une part et demie pour la case Itineraire : c'est le seul geste qui compte sur
   une page d'atterrissage, et c'est ce qui donne au marcheur la meme taille que
   sur le reste du site (Mathieu, 09/08, apres avoir valide le rendu de l'accueil).
   Le dessin garde son rapport 180/62 : hauteur automatique, jamais forcee. */
.barre-actions a.principal { flex: 1.5; }
.barre-actions a.principal .ico-iti { width: clamp(92px, 29vw, 128px); height: auto; filter: none; }
.barre-actions a.principal .ico-iti svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ---------- Sections ---------- */
.go-section { padding: clamp(26px, 6vw, 54px) var(--gutter); max-width: 860px; margin: 0 auto; }
.go-section .titre { text-align: center; margin-bottom: 18px; }
.go-section .titre .plume-titre { font-family: var(--plume); font-size: clamp(2rem, 7vw, 3rem); color: var(--wine); line-height: 1.05; }
.go-infos { text-align: center; font-style: italic; color: var(--ink-2); font-size: clamp(1rem, 3vw, 1.2rem); padding: 20px var(--gutter) 4px; }
.go-infos b { color: var(--vichy-fonce); font-weight: 600; }

.go-carte { background: var(--creme); border: 1px solid rgba(28,24,18,.45); padding: 18px 20px; box-shadow: 0 14px 30px -20px rgba(28,24,18,.5); }
.go-carte .plat { padding: 11px 0; }
.go-note-carte { text-align: center; font-style: italic; color: var(--ink-3); font-size: .9rem; margin-top: 10px; }

.go-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.go-grille a { display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(28,24,18,.4); }
.go-grille img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.go-grille a:hover img { transform: scale(1.06); }

.go-avis { text-align: center; }
.go-avis .etoiles { color: var(--vichy); letter-spacing: .2em; font-size: 1.4rem; }
.go-avis .note { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-top: 4px; }
.go-avis blockquote { font-style: italic; color: var(--ink-2); max-width: 520px; margin: 12px auto 0; font-size: 1.02rem; }
.go-avis cite { display: block; font-style: normal; font-family: var(--plume); font-size: 1.3rem; color: var(--vichy-fonce); margin-top: 6px; }

.go-pied { text-align: center; padding: 10px var(--gutter) 40px; }
.go-pied a { font-family: var(--display); font-style: italic; border-bottom: 1px solid var(--brass); padding-bottom: 2px; color: var(--ink-2); }

/* ---------- Portail des langues ---------- */
/* Depuis le 09/08 le portail porte lui aussi la barre d'itineraire : la boite
   doit donc s'arreter AU-DESSUS d'elle. Sans ces 84 px retires, la mention
   « L'abus d'alcool est dangereux pour la sante », qui ferme la boite, passait
   sous la barre — et elle est obligatoire sur toute page evoquant le vin.
   Le fond photo, lui, reste en absolu dans la gate : il ne laisse aucun vide,
   la barre etant opaque. */
.gate { min-height: calc(100svh - 84px); display: grid; place-items: center; position: relative; overflow: hidden; padding: 30px 16px; }
.gate .fond { position: absolute; inset: 0; }
.gate .fond img { width: 100%; height: 100%; object-fit: cover; filter: blur(3px) brightness(.72); transform: scale(1.06); }
.gate .fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,15,10,.55) 0%, rgba(20,15,10,.35) 45%, rgba(20,15,10,.72) 100%); }
.gate .boite {
  position: relative; z-index: 2; text-align: center; width: min(600px, 100%);
  background: rgba(24,18,13,.46);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(250,244,230,.18); border-radius: 20px;
  padding: clamp(24px, 5.5vw, 44px);
  box-shadow: 0 40px 90px -36px rgba(0,0,0,.85);
  animation: gate-entree .8s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes gate-entree { from { opacity: 0; transform: translateY(22px) scale(.985); } to { opacity: 1; transform: none; } }
.gate .enseigne { font-family: var(--plume); font-size: clamp(2rem, 7.5vw, 3.2rem); color: var(--creme); text-shadow: 0 3px 16px rgba(0,0,0,.85); line-height: 1.02; white-space: nowrap; }
@media (max-width: 420px) { .gate .enseigne { white-space: normal; } }
.gate .sous { font-family: var(--display); font-style: italic; color: var(--brass-2); margin: 8px 0 22px; font-size: clamp(.95rem, 2.6vw, 1.08rem); }
.drapeaux { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 18px); }
@media (min-width: 640px) { .drapeaux { grid-template-columns: repeat(5, 1fr); } }
.drapeaux a {
  display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(0,0,0,.35);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.25);
  opacity: 0; transform: translateY(16px);
  animation: drapeau-entree .55s cubic-bezier(.2,.7,.2,1) forwards;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s;
}
@keyframes drapeau-entree { to { opacity: 1; transform: none; } }
.drapeaux a:hover { transform: translateY(-5px) scale(1.04); box-shadow: 0 22px 40px -14px rgba(0,0,0,.75); }
.drapeaux .fl { display: block; width: 100%; height: 100%; }
.drapeaux .fl svg { width: 100%; height: 100%; display: block; }
.drapeaux a.suggere { outline: 3px solid var(--brass-2); outline-offset: 3px; }

/* Drapeau du bouton de langue sur les landings */
.go-langue .fl { display: block; width: 28px; height: 19px; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.go-langue .fl svg { width: 100%; height: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  .gate .boite, .drapeaux a { animation: none; opacity: 1; transform: none; }
}

/* ---------- Story d'ouverture, façon Instagram ---------- */
/* La barre d'actions reste au-dessus de la story : le bouton
   « Y aller » est cliquable dès la première seconde. */
.story { position: fixed; inset: 0; z-index: 200; background: #120e0a; overflow: hidden; transition: opacity .7s ease; }
.barre-actions { z-index: 300; }
.story-marque {
  position: absolute; top: 26px; left: 14px; z-index: 11;
  font-family: var(--plume); font-size: 1.25rem; line-height: 1.1; color: var(--creme);
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
/* Le macaron doré de la note, en superposition sur le diaporama */
.story-note {
  position: absolute; top: 86px; right: 12px; z-index: 12;
  width: 112px; height: 112px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: radial-gradient(circle at 34% 28%, rgba(52,38,22,.78), rgba(18,13,9,.82));
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  box-shadow:
    0 14px 34px -10px rgba(0,0,0,.75),
    inset 0 0 0 2px rgba(224,186,116,.95),
    inset 0 0 0 5px rgba(18,13,9,.65),
    inset 0 0 0 6.5px rgba(224,186,116,.55);
  transform: rotate(6deg) scale(0); opacity: 0;
  animation: note-pop .6s .5s cubic-bezier(.2,1.4,.3,1) forwards;
}
@keyframes note-pop { to { transform: rotate(6deg) scale(1); opacity: 1; } }
.story-note .n {
  font-family: var(--display); font-weight: 600; font-size: 2.05rem; line-height: 1;
  background: linear-gradient(180deg, #f7e3ae 0%, #e0ba74 45%, #b8894a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.story-note .n i { font-style: normal; font-size: .95rem; font-weight: 500; }
.story-note .etoiles { color: #f0c674; font-size: .78rem; letter-spacing: .14em; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.story-note .src {
  font-family: var(--display); font-size: .56rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: rgba(250,244,230,.92); text-align: center; line-height: 1.25; padding-inline: 10px;
}
@media (min-width: 700px) { .story-note { width: 128px; height: 128px; top: 96px; right: 22px; } }
.story.fin { opacity: 0; pointer-events: none; }
body.story-ouverte { overflow: hidden; }
.story .st { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.story .st.on { opacity: 1; pointer-events: auto; }
.story .st img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .story .st.on img { animation: story-zoom 3.6s ease-out forwards; }
  @keyframes story-zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
}
.story .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,11,8,.5) 0%, transparent 30%, transparent 48%, rgba(15,11,8,.82) 100%); }
.story .texte {
  position: absolute; left: 0; right: 0; bottom: clamp(110px, 18svh, 170px);
  padding-inline: clamp(20px, 6vw, 60px); text-align: center;
}
.story .sur {
  display: block; font-family: var(--display); font-weight: 500;
  font-size: clamp(.85rem, 2.8vw, 1.05rem); letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass-2); margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.story .phrase {
  display: block; font-family: var(--plume); font-weight: 400;
  font-size: clamp(2.2rem, 9.5vw, 4.4rem); line-height: 1.08; color: var(--creme);
  text-shadow: 0 4px 22px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(16px);
}
.story .phrase.droite { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 7vw, 3rem); }
.story .st.on .phrase { animation: phrase-entree .8s .25s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes phrase-entree { to { opacity: 1; transform: none; } }
.story .phrase.finale { font-size: clamp(2.4rem, 10.5vw, 5rem); }
.story-entrer {
  margin-top: 22px; padding: 14px 42px; min-height: 52px;
  background: var(--vichy); color: var(--creme); border: none; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: .06em;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(14px);
  transition: transform .25s, box-shadow .25s;
}
.story .st.on .story-entrer { animation: phrase-entree .7s .8s cubic-bezier(.2,.7,.2,1) forwards; }
.story-entrer:hover { transform: translateY(-2px) scale(1.03); }
.story-barres { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 10; display: flex; gap: 5px; }
.story-barres i { flex: 1; height: 3px; border-radius: 2px; background: rgba(250,244,230,.3); overflow: hidden; display: block; }
.story-barres b { display: block; height: 100%; width: 0; background: var(--creme); }
.story-barres b.pleine { width: 100%; }
.story-barres b.encours { width: 100%; transition: width 3.4s linear; }
.story-passer {
  position: absolute; top: 26px; right: 14px; z-index: 11;
  background: rgba(18,14,10,.55); color: rgba(250,244,230,.9);
  border: 1px solid rgba(250,244,230,.3); border-radius: 999px;
  padding: 8px 16px; min-height: 40px;
  font-family: var(--display); font-style: italic; font-size: .9rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: reduce) {
  .story { display: none; }
  body.story-ouverte { overflow: auto; }
}

/* Les <picture> des images responsives ne participent pas a la mise en page. */
picture { display: contents; }
/* width/height d'image = ratio seulement, jamais une hauteur figee (les regles
   de classe height:100% des diapos et grilles gardent la main). */
picture > img { height: auto; }
