/* Styles communs à toutes les pages : police, lien d'évitement, menu mobile.
   Les styles des maquettes sont dans accueil.css et realisation.css. */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/roboto-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/roboto-latin-900-normal.woff2") format("woff2"); }

body { margin: 0; background: #ffffff; }
[hidden] { display: none !important; }
img { max-width: 100%; }

.pp-skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: #111111; color: #ffffff; font-family: Roboto, Arial, sans-serif; }
.pp-skip:focus { top: 16px; }

/* Menu mobile : caché par défaut, ouvert par main.js */
.pp-menu { display: flex; }
.pp-menu[hidden] { display: none; }
body.pp-menu-ouvert { overflow: hidden; }

/* Pages de texte (Esprit PP, mentions légales…) */
.pp-texte h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; margin: 2em 0 .6em; }
.pp-texte p { margin: 0 0 1em; }
.pp-texte a { text-decoration: underline; }


/* Carte dessinée de la page Contact (partials/carte.njk, assets/js/carte.js) */
.pp-carte { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #E8E8E5; }
.pp-carte[data-palette="sombre"] { background: #1E1E1E; }
.pp-carte canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
.pp-carte canvas.pp-carte-prise { cursor: grabbing; }
.pp-carte canvas:focus-visible { box-shadow: inset 0 0 0 3px #FAB001; }
.pp-carte-boutons { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.pp-carte-boutons button { min-width: 36px; height: 36px; padding: 0 10px; border: 2px solid #111111; border-radius: 999px; background: #FFFFFF; color: #111111; font: 500 18px/1 Roboto, Arial, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pp-carte-boutons .pp-carte-paris { font-size: 13px; }
.pp-carte-boutons button:hover { background: #FAB001; }
.pp-carte-boutons button:focus-visible, .pp-carte a:focus-visible { outline: 3px solid #FAB001; outline-offset: 2px; }
.pp-carte[data-palette="sombre"] .pp-carte-boutons button { background: #111111; color: #FFFFFF; border-color: #FAB001; }
.pp-carte[data-palette="sombre"] .pp-carte-boutons button:hover { background: #FAB001; color: #111111; }
.pp-carte-itineraire { position: absolute; left: 12px; bottom: 12px; padding: 9px 16px; border-radius: 999px; background: #FAB001; color: #111111; font-size: 14px; font-weight: 500; }
.pp-carte-credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: 2px 8px; font-size: 11px; background: rgba(255,255,255,.8); }
.pp-carte-credit a { color: #111111; }
.pp-carte[data-palette="sombre"] .pp-carte-credit { background: rgba(17,17,17,.8); }
.pp-carte[data-palette="sombre"] .pp-carte-credit a { color: #FFFFFF; }
.pp-carte-aide { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 10px 16px; border-radius: 6px; background: rgba(17,17,17,.85); color: #FFFFFF; font-size: 14px; pointer-events: none; }
.pp-carte-aide[hidden] { display: none; }
.pp-carte-sans-js { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #111111; text-decoration: underline; }
@media (max-width: 700px) { .pp-carte { aspect-ratio: 1 / 1; } }
@media (max-width: 700px) { .pp-carte-boutons { top: 10px; right: 10px; flex-direction: row; } }
