:root{--blue:#101e97;--cyan:#62cbe5;--pale:#a8e3ff;--ink:#141414;--muted:#656565;font-family:Roboto,Arial,Helvetica,sans-serif;color:var(--ink);background:#e8f0f2}
*{box-sizing:border-box}
body{margin:0}
button,select{font:inherit}
button{cursor:pointer}
button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #ed8c19;outline-offset:3px}
.shell{max-width:390px;min-height:100dvh;margin:auto;background:white;position:relative;overflow:hidden;box-shadow:0 10px 45px #193c4833}
.page{min-height:100dvh}
.top{height:94px;display:flex;align-items:center;justify-content:space-between;padding:8px 22px;background:#fff}
.brand{border:0;background:none;padding:0}
.brand img{width:42px;height:68px;object-fit:contain}
.step-counter{color:#999;font-size:25px;font-weight:700}
.menu-button{background:none;border:0;font-size:28px;line-height:1;padding:10px}
.primary{background:var(--blue);color:white;border:0;border-radius:100px;font-weight:700;font-size:23px;padding:13px 34px;min-width:174px;transition:transform .16s,box-shadow .16s}
.primary:active,.choice:active{transform:scale(.95)}
.primary:hover{box-shadow:0 5px 14px #101e9733}
.home{position:relative;min-height:100dvh;background:white}
.home-picture{display:block;width:100%;height:100dvh;object-fit:fill}
.home-start{position:absolute;left:24%;width:52%;height:8%;top:72%;border:0;background:transparent;border-radius:40px}
.home-start:focus-visible{outline:4px solid #ffad28}
.screen-blue{background:var(--pale);min-height:calc(100dvh - 118px);padding:17px 20px 34px;position:relative}
.heading{display:flex;align-items:center;justify-content:center;position:relative;margin:4px 0 19px;font-size:24px}
.back{position:absolute;left:0;background:none;border:0;font-size:32px}
.mode-picks{display:flex;justify-content:center;gap:25px;margin:18px 0 23px}
.mode-picks button{border:0;background:transparent;font-size:31px;padding:8px;border-radius:14px;transition:transform .2s,background .2s}
.mode-picks button[aria-pressed=true]{color:var(--blue);background:#ffffff88;transform:translateY(-3px)}
.choices{display:grid;gap:14px;position:relative}
.choice{border:0;border-radius:22px;background:#fff;padding:16px 14px;font-size:20px;font-weight:700;transition:transform .18s,box-shadow .18s}
.choice[aria-pressed=true]{box-shadow:0 0 0 4px var(--blue)}
.ribbon{position:absolute;z-index:0;top:120px;bottom:45px;left:46%;width:28px;border-left:8px solid #25b6db;border-radius:50%;transform:rotate(-8deg);opacity:.75;pointer-events:none}
.foreground{position:relative;z-index:1}
.details{text-align:center;font-size:15px;margin:18px 0 24px}
.note{font-size:12px;color:#3c4c55;line-height:1.5}
.center{text-align:center}
.bar{background:var(--cyan);color:white;text-align:center;padding:13px 8px;font-weight:700;font-size:21px}
.hero{width:100%;height:250px;object-fit:cover;display:block}
.article{text-align:center;padding:16px 25px 38px}
.article h1{font-size:28px;line-height:1.1;margin:5px 0 12px}
.article p{font-size:14px;line-height:1.45;margin:0 auto 15px;max-width:340px}
.photo-button{display:flex;flex-direction:column;align-items:center;gap:9px;background:transparent;border:0;margin:17px auto 12px;font-weight:600}
.photo-icon{width:150px;height:104px;border-radius:26px;background:#d8d8d8;display:grid;place-items:center;font-size:62px}
.preview{max-width:150px;max-height:150px;border-radius:16px}
.caption{font-size:13px;color:#666;font-style:italic;margin:15px 0 22px}
.map-img{width:100%;height:365px;object-fit:cover;display:block}
.map-actions{text-align:center;margin-top:-30px;position:relative}
.map-bottom{text-align:center;padding:30px 20px;position:relative}
.map-bottom h3{font-size:17px}
.menu-overlay{position:fixed;inset:0;background:#0008;z-index:10;display:flex;justify-content:flex-end;align-items:flex-start}
.menu-panel{background:white;width:min(230px,64%);padding:10px 16px 14px;border-radius:0 0 0 18px;animation:slideIn .25s ease}
.menu-panel button{display:block;width:100%;background:none;border:0;border-bottom:1px solid #ddd;text-align:left;padding:12px 6px;font-size:16px}
.menu-panel button:last-of-type{border-bottom:0}
.disclaimer{font-size:12px;color:#505050;line-height:1.5;margin-top:14px}
.progress{height:5px;background:#d9f4fb}
.progress div{height:100%;background:var(--blue);transition:width .4s}
.fade{animation:pageIn .4s ease}
.missing{height:365px;display:grid;place-items:center;background:#e7f7fc;text-align:center;padding:25px}
.helper{margin:14px auto 0;max-width:300px;font-size:12px;color:#555}
@keyframes pageIn{from{opacity:.2}to{opacity:1}}
@keyframes slideIn{from{transform:translateX(100%)}to{transform:none}}
@media(min-width:500px){.shell{margin:25px auto;min-height:844px;border-radius:20px}.page,.home,.finish{min-height:844px}.home-picture{height:844px}.screen-blue{min-height:726px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Pictogrammes SVG fournis */
.svg-icon{display:inline-block;width:28px;height:28px;object-fit:contain;vertical-align:middle}
.mode-picks button{display:grid;place-items:center;min-width:52px;min-height:52px}
.mode-icon{width:34px;height:34px;object-fit:contain}
.step-counter{display:flex;align-items:center;gap:8px}
.step-counter .mode-icon{width:27px;height:27px}
.bar{display:flex;align-items:center;justify-content:center;gap:9px}
.stop-icon{width:25px;height:25px}
.photo-icon{width:150px;height:104px;border-radius:26px;background:#d8d8d8;display:grid;place-items:center}
.camera-svg{width:62px;height:62px;object-fit:contain}
.next-items span{display:flex;align-items:center;justify-content:center;gap:9px}
.next-items .stop-icon{width:22px;height:22px}
.camera-svg {
  filter: brightness(0);
}
.choix-parcours .mode-icon {
  filter: brightness(0);
}


/* ===== Carte interactive ===== */
.live-map{position:relative;height:365px;background:#d3ecf6;overflow:hidden}
.tm-viewport{position:absolute;inset:0}
.tm-svg{width:100%;height:100%;display:block;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.tm-svg:active{cursor:grabbing}
.tm-svg:focus-visible{outline-offset:-4px}
.tm-land{fill:#f3f6ef}
.tm-sea{fill:#d3ecf6}
.tm-lake{fill:url(#tmLake);stroke:#25b6db;stroke-width:2;vector-effect:non-scaling-stroke}
.tm-oysters{fill:url(#tmOyster);opacity:.6}
.tm-leg{stroke-width:4;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.tm-leg-done{stroke:#9aa7b0}
.tm-leg-next{stroke:var(--blue);stroke-opacity:.45;stroke-dasharray:2 9}
.tm-casing{stroke:#fff;stroke-width:11;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.tm-route{stroke:var(--blue);stroke-width:6;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.tm-place text{font:italic 500 11px Roboto,Arial,sans-serif;fill:#5b6b73;paint-order:stroke;stroke:#fff;stroke-width:3px;pointer-events:none}
.tm-place-lake text{font-size:15px;letter-spacing:.06em;fill:#0b6a89;stroke:none}
.tm-place-sea text{fill:#4a8fa6;stroke:none}
.tm-marker{cursor:pointer;filter:drop-shadow(0 2px 2px #0005)}
.tm-marker:focus-visible{outline:none}
.tm-marker:focus-visible .tm-dot{stroke:#ed8c19;stroke-width:5}
.tm-dot{stroke:#fff;stroke-width:3}
.tm-start .tm-dot{fill:#ed8c19}
.tm-dest .tm-dot{fill:var(--blue)}
.tm-next .tm-dot{fill:var(--cyan)}
.tm-done .tm-dot{fill:#8b97a3}
.tm-badge{fill:#fff;stroke:#141414;stroke-width:1.5}
.tm-badge-t{font:700 11px Roboto,Arial,sans-serif;fill:#141414}
.tm-label{font:700 12px Roboto,Arial,sans-serif;fill:#141414;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round;pointer-events:none}
.tm-pulse{fill:var(--blue);opacity:.3;transform-box:fill-box;transform-origin:center;animation:tmPulse 2.2s ease-out infinite}
.tm-halo{fill:#1a73e8;opacity:.22}
.tm-me{fill:#1a73e8;stroke:#fff;stroke-width:3}
@keyframes tmPulse{from{transform:scale(.9);opacity:.35}to{transform:scale(2.2);opacity:0}}
.tm-info{position:absolute;left:10px;top:10px;max-width:calc(100% - 66px);display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;background:#fff;border-radius:16px;padding:8px 12px;box-shadow:0 2px 10px #0003;font-size:13px;line-height:1.25;pointer-events:none}
.tm-info img{width:22px;height:22px;filter:brightness(0)}
.tm-info strong{color:var(--blue);font-size:17px}
.tm-info small{flex-basis:100%;color:var(--muted);font-size:12px}
.is-guiding .tm-info{box-shadow:0 0 0 3px var(--blue),0 2px 10px #0003}
.tm-controls{position:absolute;right:10px;top:10px;display:grid;gap:6px}
.tm-controls button{width:38px;height:38px;padding:0;border:0;border-radius:12px;background:#fff;color:var(--blue);font-size:21px;font-weight:700;line-height:1;box-shadow:0 2px 8px #0003;display:grid;place-items:center}
.tm-controls button:active{transform:scale(.92)}
.tm-scale{position:absolute;left:12px;bottom:40px;display:flex;flex-direction:column;gap:2px;font-size:11px;font-weight:500;color:#1e3a46;pointer-events:none}
.tm-scale span{display:block;height:5px;min-width:10px;border:2px solid #1e3a46;border-top:0}
.tm-toast{position:absolute;left:50%;bottom:44px;transform:translate(-50%,8px);max-width:calc(100% - 100px);background:#141414e6;color:#fff;font-size:13px;line-height:1.35;text-align:center;padding:9px 14px;border-radius:14px;opacity:0;pointer-events:none;transition:opacity .25s,transform .25s}
.tm-toast.show{opacity:1;transform:translate(-50%,0)}
.map-actions{z-index:3}

/* ===== Étapes suivantes : ruban + bulles ===== */
.next-zone{position:relative;padding:6px 0 26px}
.next-zone::before{content:'';position:absolute;z-index:0;top:-70px;bottom:0;left:50%;width:22px;margin-left:-11px;background:var(--cyan);border-radius:12px;transform:skewX(-5deg)}
.next-zone h3{position:relative;z-index:1;display:inline-block;background:#fff;margin:0 0 6px;padding:2px 12px;border-radius:12px}
.next-items{position:relative;z-index:1;display:grid;gap:14px;max-width:320px;margin:10px auto 0}
.next-items span{display:block;width:158px;background:#fff;border:1.5px solid #a8e3ff;border-radius:42% 58% 52% 48% / 55% 45% 58% 42%;padding:12px 14px;font-size:14px;line-height:1.25}
.next-items span:nth-child(odd){justify-self:start}
.next-items span:nth-child(even){justify-self:end}
.helper a{color:var(--blue);font-weight:700}

/* ===== Page de fin ===== */
.finish{position:relative;min-height:100dvh;background:#fff;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;text-align:center}
.finish-photos{display:flex;justify-content:space-between;width:100%;flex:none}
.finish-photos img{display:block;flex:none;object-fit:cover}
.finish-photos.haut img:nth-child(1){width:21.52%;aspect-ratio:68/131;border-radius:0 0 20px 0}
.finish-photos.haut img:nth-child(2){width:49.37%;aspect-ratio:156/131;border-radius:0 0 20px 20px}
.finish-photos.haut img:nth-child(3){width:20.25%;aspect-ratio:64/131;border-radius:0 0 0 20px}
.finish-photos.bas img:nth-child(1){width:21.52%;aspect-ratio:68/110;border-radius:0 20px 0 0}
.finish-photos.bas img:nth-child(2){width:38.29%;aspect-ratio:121/110;border-radius:20px 20px 0 0}
.finish-photos.bas img:nth-child(3){width:31.33%;aspect-ratio:99/110;border-radius:20px 0 0 0}
.finish-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:18px 20px}
.finish-body h1{margin:0;font-size:30px;line-height:1.15;font-weight:700}
.finish-body p{margin:0 0 6px;font-size:14px}
.finish-logo{width:180px;height:250px;object-fit:contain;margin-bottom:10px}
.finish-body .primary{min-width:205px;height:58px;padding:0 34px}

/* Pictos : blanc sur la bande bleue, gris des numéros en en-tête */
.bar .stop-icon{filter:brightness(0) invert(1)}
.step-counter .mode-icon{filter:brightness(0) invert(.6)}

.tm-info[hidden]{display:none}

/* Le ruban reste derrière tout le contenu (bouton Démarrer compris) */
.screen-blue>*:not(.ribbon){position:relative;z-index:1}

/* Page de fin : cadrage des photos + hauteur identique à l'écran sur ordinateur */
.finish-photos.haut img:nth-child(1){object-position:13% 50%}
.finish-photos.haut img:nth-child(2){object-position:50% 33%}
.finish-photos.haut img:nth-child(3){object-position:53% 50%}
.finish-photos.bas img:nth-child(1){object-position:75% 50%}
.finish-photos.bas img:nth-child(2){object-position:50% 50%}
.finish-photos.bas img:nth-child(3){object-position:30% 50%}
@media(min-width:500px){.finish{min-height:844px}}

/* Accueil : les photos apparaissent une par une, le reste est fixe */
.hp{position:absolute;display:block;object-fit:cover;animation:hpIn .75s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d)}
@keyframes hpIn{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:none}}
.home-go:active{transform:scale(.95)}

/* Bouton réduit */
.primary.small{font-size:18px;padding:10px 26px;min-width:140px}

/* Page de fin : les photos apparaissent une par une */
.fp{animation:hpIn .75s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d)}

/* Zone « étapes suivantes » : hauteur fixe pour que le bouton reste au même endroit */
.next-zone{min-height:231px}

/* Marge blanche en haut des pages avec en-tête */
.top{height:118px;padding-top:32px}


/* ===== Animations discrètes =====
   Les animations d'entrée (.enter) ne jouent qu'au changement d'écran ou d'étape.
   Elles sont désactivées si l'appareil demande de réduire les animations. */
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes pop{from{opacity:0;transform:scale(.5)}60%{transform:scale(1.08)}to{opacity:1;transform:none}}
@keyframes growY{from{transform:var(--t0) scaleY(0)}to{transform:var(--t0) scaleY(1)}}
@keyframes fillBar{from{width:var(--from)}}
@keyframes tmPop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}
@keyframes tmFade{from{opacity:0}to{opacity:1}}

.page.enter{animation:pageIn .3s ease both}

/* Choix du parcours / itinéraire */
.enter .heading{animation:fadeIn .4s .05s backwards}
.enter .mode-picks button{animation:fadeIn .45s backwards}
.enter .mode-picks button:nth-child(1){animation-delay:.1s}
.enter .mode-picks button:nth-child(2){animation-delay:.17s}
.enter .mode-picks button:nth-child(3){animation-delay:.24s}
.enter .choices>.choice{animation:rise .5s cubic-bezier(.2,.8,.2,1) backwards}
.enter .choices>.choice:nth-child(1){animation-delay:.15s}
.enter .choices>.choice:nth-child(2){animation-delay:.22s}
.enter .choices>.choice:nth-child(3){animation-delay:.29s}
.enter .choices>.choice:nth-child(4){animation-delay:.36s}
.enter .choices>.choice:nth-child(5){animation-delay:.43s}
.enter .screen-blue .details,.enter .screen-blue .note,.enter .screen-blue .disclaimer{animation:fadeIn .5s .45s backwards}
.enter .screen-blue>.center .primary{animation:rise .5s .55s backwards}
.enter .ribbon{--t0:rotate(-8deg);transform-origin:top center;animation:growY 1s .2s ease-out backwards}

/* Pages description */
.enter .bar{animation:fadeIn .35s backwards}
.enter .bar .stop-icon{animation:pop .5s .2s backwards}
.enter .progress div{animation:fillBar .7s ease-out backwards}
.enter .article>*{animation:rise .5s cubic-bezier(.2,.8,.2,1) backwards}
.enter .article>:nth-child(1){animation-delay:.15s}
.enter .article>:nth-child(2){animation-delay:.21s}
.enter .article>:nth-child(3){animation-delay:.27s}
.enter .article>:nth-child(4){animation-delay:.33s}
.enter .article>:nth-child(5){animation-delay:.39s}
.enter .article>:nth-child(6){animation-delay:.45s}
.preview{animation:pop .45s cubic-bezier(.3,1.5,.5,1) backwards}
.photo-button{transition:transform .16s}
.photo-button:active{transform:scale(.96)}

/* Page carte */
.enter .live-map{animation:fadeIn .5s backwards}
.enter .map-actions .primary{animation:rise .5s .35s backwards}
.enter .next-zone::before{--t0:skewX(-5deg);transform-origin:top;animation:growY .9s .3s ease-out backwards}
.enter .next-zone h3{animation:fadeIn .4s .5s backwards}
.enter .next-items span{animation:pop .5s backwards}
.enter .next-items span:nth-child(1){animation-delay:.6s}
.enter .next-items span:nth-child(2){animation-delay:.75s}
.enter .next-items span:nth-child(3){animation-delay:.9s}
.enter .map-bottom>.primary{animation:rise .5s 1s backwards}
.tm-marker{animation:tmFade .45s var(--md,0s) backwards}
.tm-dot{transform-box:fill-box;transform-origin:center;animation:tmPop .5s cubic-bezier(.3,1.5,.5,1) var(--md,0s) backwards}
.tm-place{animation:tmFade .8s .4s backwards}

/* Page de fin (les photos gardent leur apparition une par une) */
.enter .finish-body h1{animation:rise .6s .2s backwards}
.enter .finish-body p{animation:rise .6s .35s backwards}
.enter .finish-logo{animation:pop .7s .5s backwards}
.enter .finish-body .primary{animation:rise .6s .8s backwards}

/* Menu */
.menu-overlay{animation:fadeIn .2s ease}
.menu-panel button{animation:rise .35s backwards}
.menu-panel button:nth-child(1){animation-delay:.08s}
.menu-panel button:nth-child(2){animation-delay:.12s}
.menu-panel button:nth-child(3){animation-delay:.16s}
.menu-panel button:nth-child(4){animation-delay:.2s}
.menu-panel button:nth-child(5){animation-delay:.24s}


/* Accueil : logo, texte et bouton empilés, avec des espaces fixes (le logo s'adapte à la hauteur de l'écran) */
.home-center{position:absolute;left:0;right:0;top:33.06%;bottom:calc(18.36% + 29px);display:flex;flex-direction:column;align-items:center}
.home-logo{flex:1 1 0;min-height:0;width:37.18%;object-fit:contain}
.home-text{flex:none;margin:20px 0 0;text-align:center;font-size:14px;line-height:20px;font-weight:700;color:var(--ink)}
.home-go{flex:none;margin-top:20px;width:50.77%;height:52px;border:0;border-radius:100px;background:var(--blue);color:#fff;font-size:22px;font-weight:700;transition:transform .16s}

/* Confort en mode application */
html,body{overscroll-behavior-y:none}
body{-webkit-tap-highlight-color:transparent}

/* Choix du parcours : texte d'explication centré et resserré */
.screen-blue .disclaimer{text-align:center;max-width:280px;margin-left:auto;margin-right:auto}
