/* Les carnets de mes ailleurs : carnet numérique mobile (charte du site v28) */
:root {
  --linen: #fbf6f1; --paper: #fffdfb; --clay: #f6e3df; --clay-2: #e6c9c3;
  --choc: #2d1b20; --ink-2: #6b4e55; --line: #ecd9d3;
  --burnt: #8b1e3f; --burnt-d: #731633; --rose: #f3b8c6; --rose-l: #fbeaee;
  --display: "Gloock", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar: 58px; --tab: 68px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); }
body { margin: 0; background: var(--linen); color: var(--choc); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--burnt); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, .serif { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
.eyebrow { font: 700 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--burnt); }

/* Colonne « téléphone » : plein écran sur mobile, centrée sur ordinateur */
.app { max-width: 480px; margin: 0 auto; background: var(--linen); min-height: 100vh; position: relative; padding-bottom: calc(var(--tab) + 24px); }
@media (min-width: 760px) {
  body { background: #efe3dc radial-gradient(circle at 20% 10%, #f8ece6, transparent 50%); }
  .app { box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(45, 27, 32, .35); }
  .desk-note { position: fixed; left: calc(50% + 270px); top: 120px; width: 230px; font-size: 15px; color: var(--ink-2); }
  .desk-note b { display: block; font: 400 24px/1.15 var(--display); color: var(--choc); margin-bottom: 8px; }
  .desk-note a { display: inline-block; margin-top: 10px; font-weight: 600; }
}
@media (max-width: 1299px) { .desk-note { display: none; } }

/* Barre d'app */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar); display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; background: rgba(251, 246, 241, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar.is-scrolled { border-color: var(--line); }
.bar__brand { font: 700 11px/1.15 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--burnt); text-decoration: none; }
.bar__brand small { display: block; font: 400 13px/1.2 var(--display); letter-spacing: 0; text-transform: none; color: var(--choc); margin-top: 2px; }
.bar__menu { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.bar__menu svg { width: 18px; height: 18px; }
.bar__progress { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--burnt); width: 0; }

/* Couverture */
.cover { position: relative; height: min(92vh, 760px); min-height: 560px; color: #fff; overflow: hidden; margin-top: calc(-1 * var(--bar)); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: cover-in 1.6s ease-out forwards; }
@keyframes cover-in { to { transform: scale(1); } }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45, 27, 32, .45) 0%, rgba(45, 27, 32, 0) 30%, rgba(45, 27, 32, .3) 45%, rgba(45, 27, 32, .9) 100%); }
.cover__in { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 22px 30px; }
.cover .eyebrow { color: var(--rose); }
.cover h1 { margin: 10px 0 4px; font-size: clamp(54px, 16vw, 76px); line-height: .95; }
.cover__sub { font: 400 22px/1.25 var(--display); color: #fbe7ec; }
.cover__lead { margin: 14px 0 18px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.cover__cta { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 8px 8px 22px; border-radius: 99px; background: var(--burnt); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.cover__cta i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--burnt); font-style: normal; }
.cover__cta i svg { width: 18px; height: 18px; }

/* Blocs */
.sec { padding: 40px 18px 8px; }
.sec__head { margin-bottom: 18px; }
.sec__num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--burnt); color: #fff; font: 400 17px/1 var(--display); margin-bottom: 10px; }
.sec h2 { margin: 6px 0 8px; font-size: 36px; line-height: 1.02; }
.sec h2 em { font-style: normal; color: var(--burnt); }
.sec__intro { margin: 0; color: var(--ink-2); font-size: 17.5px; }
.sec h3 { margin: 26px 0 10px; font-size: 24px; line-height: 1.1; }
.prose p { margin: 0 0 12px; }
.prose .big { font: 400 22px/1.3 var(--display); color: var(--choc); }

.letter { background: var(--paper); border-radius: 26px; padding: 22px 20px; border: 1px solid var(--line); }
.letter__who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.letter__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.letter__who b { display: block; font: 400 20px/1.1 var(--display); }
.letter__who small { color: var(--ink-2); font-size: 14px; }
.letter p { margin: 0 0 12px; }
.letter .sign { font: 400 30px/1 var(--display); color: var(--burnt); margin-top: 6px; }
.quote { margin: 18px 0 0; padding: 18px 18px; border-radius: 20px; background: var(--burnt); color: #fff; font: 400 21px/1.3 var(--display); }

/* Sommaire */
.toc { display: grid; gap: 10px; }
.toc a { display: grid; grid-template-columns: 40px 1fr 22px; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--choc); transition: transform .15s; }
.toc a:active { transform: scale(.98); }
.toc .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--clay); color: var(--burnt); font: 400 18px/1 var(--display); }
.toc b { display: block; font-size: 17px; }
.toc small { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.toc .ok { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--clay-2); display: grid; place-items: center; }
.toc .ok svg { width: 12px; height: 12px; opacity: 0; }
.toc a.is-read .ok { background: var(--burnt); border-color: var(--burnt); }
.toc a.is-read .ok svg { opacity: 1; stroke: #fff; }
.toc a.is-read .n { background: var(--burnt); color: #fff; }
.toc-meta { margin: 12px 2px 0; font-size: 14px; color: var(--ink-2); }

/* Carte */
.map { position: relative; border-radius: 26px; overflow: hidden; background: #e8f0ee; border: 1px solid var(--line); }
.map svg { display: block; width: 100%; height: auto; }
.map .pt { cursor: pointer; }
.map .pt circle.dot { fill: var(--burnt); stroke: #fff; stroke-width: 2.5; transition: r .2s; }
.map .pt.on circle.dot { r: 9; }
.map .pt text { font: 600 11.5px var(--sans); fill: var(--choc); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; }
.map__card { position: relative; margin: 0 10px 10px; min-height: 64px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 253, 251, .96); box-shadow: 0 10px 30px -14px rgba(45, 27, 32, .5); font-size: 15px; line-height: 1.4; transform: translateY(4px); opacity: 0; transition: .25s; pointer-events: none; }
.map__card.on { transform: none; opacity: 1; pointer-events: auto; }
.map__card b { display: block; font: 400 19px/1.15 var(--display); }
.map__card a { font-weight: 600; font-size: 14px; }
.map__legend { display: flex; justify-content: space-between; gap: 10px; padding: 10px 4px 0; font-size: 13px; color: var(--ink-2); }

/* Trajet (étapes) */
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; border-left: 2px dashed var(--clay-2); }
.route li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 0 0 18px; }
.route .ico { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--burnt); display: grid; place-items: center; color: var(--burnt); }
.route .ico svg { width: 20px; height: 20px; }
.route b { display: block; font-size: 17px; margin-top: 2px; }
.route p { margin: 2px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.route .meta { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--burnt); background: var(--rose-l); padding: 3px 10px; border-radius: 99px; }

/* Infos dépliables */
.acc { border-radius: 20px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 10px; overflow: hidden; }
.acc summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px 16px; font-weight: 700; font-size: 16.5px; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .em { font-size: 22px; width: 28px; text-align: center; }
.acc summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--burnt); border-bottom: 2px solid var(--burnt); transform: rotate(45deg); transition: transform .2s; flex: none; }
.acc[open] summary::after { transform: rotate(-135deg); }
.acc__body { padding: 0 16px 14px 56px; color: var(--choc); font-size: 16px; }
.acc__body p { margin: 0 0 10px; }
.acc__body ul { margin: 0 0 10px; padding-left: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.lnk { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--clay); color: var(--burnt); font-size: 14px; font-weight: 700; text-decoration: none; }
.lnk svg { width: 14px; height: 14px; }

/* Le conseil de Mandy */
.tip { position: relative; margin: 16px 0; padding: 16px 16px 16px 18px; border-radius: 20px; background: var(--rose-l); border-left: 4px solid var(--burnt); }
.tip__h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font: 400 19px/1.1 var(--display); color: var(--burnt); }
.tip__h img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.tip p { margin: 0; font-size: 16px; }
.note { margin: 14px 0; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px dashed var(--clay-2); color: var(--ink-2); font-size: 14.5px; }

/* Cartes adresses */
.places { display: grid; gap: 14px; }
.place { border-radius: 24px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.place__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.place__img img { width: 100%; height: 100%; object-fit: cover; }
.place__noimg { display: flex; align-items: center; gap: 12px; padding: 16px 16px 0; }
.place__noimg > span:first-child { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--clay); font-size: 22px; }
.place__body { padding: 14px 16px 16px; }
.place__top { display: flex; align-items: flex-start; gap: 10px; }
.place__top h4 { margin: 4px 0 0; font: 400 23px/1.1 var(--display); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--clay); color: var(--burnt); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.badge--fill { background: var(--burnt); color: #fff; }
.place__img .badge { position: absolute; left: 12px; top: 12px; background: rgba(255, 253, 251, .94); }
.place p { margin: 8px 0 0; font-size: 16px; color: var(--choc); }
.place__addr { margin-top: 6px !important; font-size: 14.5px !important; color: var(--ink-2) !important; }
.place__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fav { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--linen); border: 1px solid var(--line); }
.fav svg { width: 20px; height: 20px; fill: none; stroke: var(--burnt); stroke-width: 2; transition: transform .2s; }
.fav.on svg { fill: var(--burnt); transform: scale(1.1); }
.place__img .fav { position: absolute; right: 12px; top: 12px; background: rgba(255, 253, 251, .94); }

/* Annuaire filtrable */
.dir__tools { display: grid; gap: 10px; margin-bottom: 12px; }
.dir__search { width: 100%; padding: 12px 16px; border-radius: 99px; border: 1px solid var(--clay-2); background: var(--paper); font: inherit; font-size: 16px; color: var(--choc); }
.dir__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dir__chips::-webkit-scrollbar { display: none; }
.fchip { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--clay-2); background: var(--paper); font-size: 14px; font-weight: 600; }
.fchip.on { background: var(--choc); border-color: var(--choc); color: #fff; }
.dir__list { list-style: none; margin: 0; padding: 0; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.dir__list li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.dir__list li:first-child { border-top: 0; }
.dir__list li[hidden] { display: none; }
.dir__list b { font-size: 15.5px; }
.dir__list small { display: block; color: var(--ink-2); font-size: 13.5px; }
.dir__list a { margin-left: auto; flex: none; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.dir__count { font-size: 13.5px; color: var(--ink-2); margin: 8px 4px 0; }

/* Galerie photo horizontale */
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -18px; padding: 0 18px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { flex: none; width: 62%; margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.strip figcaption { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* Jour par jour */
.days__tabs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -18px 14px; padding: 2px 18px 4px; scrollbar-width: none; }
.days__tabs::-webkit-scrollbar { display: none; }
.dtab { flex: none; scroll-snap-align: center; min-width: 54px; padding: 8px 10px; border-radius: 16px; border: 1px solid var(--clay-2); background: var(--paper); text-align: center; line-height: 1.1; }
.dtab small { display: block; font-size: 11px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dtab b { font: 400 20px/1.1 var(--display); }
.dtab.on { background: var(--burnt); border-color: var(--burnt); color: #fff; }
.dtab.on small { color: var(--rose); }
.day { border-radius: 26px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; touch-action: pan-y; }
.day__img { aspect-ratio: 16 / 9; overflow: hidden; }
.day__img img { width: 100%; height: 100%; object-fit: cover; }
.day__body { padding: 16px 18px 18px; }
.day__place { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--burnt); }
.day h3 { margin: 4px 0 10px; font-size: 27px; }
.slot { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.slot b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--burnt); padding-top: 3px; }
.day .tip { margin-bottom: 0; }
.day__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.day__nav button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 99px; background: var(--paper); border: 1px solid var(--clay-2); font-weight: 700; font-size: 15px; }
.day__nav button:disabled { visibility: hidden; }
.day__nav svg { width: 16px; height: 16px; }
.day-anim { animation: day-in .35s ease-out; }
@keyframes day-in { from { opacity: 0; transform: translateX(14px); } }

/* Checklist */
.check__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 14px 16px; border-radius: 20px; background: var(--choc); color: #fff; }
.check__head b { font: 400 30px/1 var(--display); }
.check__head span { font-size: 14.5px; color: #e9d6da; }
.check__bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.check__bar i { display: block; height: 100%; width: 0; background: var(--rose); transition: width .35s; }
.checks { display: grid; gap: 8px; }
.ck { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; font-size: 16px; line-height: 1.4; }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck .box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--clay-2); display: grid; place-items: center; transition: .15s; }
.ck .box svg { width: 14px; height: 14px; stroke: #fff; opacity: 0; }
.ck input:checked + .box { background: var(--burnt); border-color: var(--burnt); }
.ck input:checked + .box svg { opacity: 1; }
.ck input:checked ~ span { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--clay-2); }
.ck input:focus-visible + .box { outline: 2px solid var(--burnt); outline-offset: 2px; }

/* Budget */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 99px; background: var(--clay); margin-bottom: 14px; }
.seg button { padding: 10px 6px; border-radius: 99px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.seg button.on { background: var(--paper); color: var(--burnt); box-shadow: 0 4px 12px -6px rgba(45, 27, 32, .35); }
.budget { border-radius: 24px; background: var(--paper); border: 1px solid var(--line); padding: 18px 16px; }
.budget__total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.budget__total b { font: 400 44px/1 var(--display); color: var(--burnt); }
.budget__total small { color: var(--ink-2); font-size: 14px; text-align: right; }
.brow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; font-size: 15px; }
.brow .v { font-weight: 700; }
.brow .track { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--clay); overflow: hidden; }
.brow .track i { display: block; height: 100%; background: var(--burnt); border-radius: 99px; transition: width .45s ease; }
.brow small { grid-column: 1 / -1; color: var(--ink-2); font-size: 13px; }

/* Mot de Mandy (fin) */
.outro { margin: 40px 0 0; position: relative; color: #fff; background: var(--choc); padding: 0 0 30px; overflow: hidden; }
.outro__img { aspect-ratio: 4 / 4.2; overflow: hidden; }
.outro__img img { width: 100%; height: 100%; object-fit: cover; }
.outro__in { padding: 22px 20px 0; }
.outro .eyebrow { color: var(--rose); }
.outro h2 { font-size: 36px; line-height: 1.02; margin: 8px 0 14px; }
.outro p { margin: 0 0 12px; color: #f3e6e9; }
.outro .sign { font: 400 34px/1 var(--display); color: var(--rose); }
.outro .sign small { display: block; font: 600 15px/1.4 var(--sans); color: #f3e6e9; margin-bottom: 6px; }
.more { padding: 26px 18px 10px; }
.more__list { display: grid; gap: 10px; }
.more a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--choc); }
.more img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.more b { display: block; font: 400 19px/1.1 var(--display); }
.more small { color: var(--ink-2); font-size: 13.5px; }
.legal { padding: 18px 20px 0; font-size: 13px; color: var(--ink-2); text-align: center; }

/* Barre d'onglets */
.tabs { position: fixed; z-index: 40; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 253, 251, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabs a, .tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-radius: 14px; }
.tabs svg { width: 22px; height: 22px; }
.tabs .on { color: var(--burnt); }
.tabs .cnt { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--burnt); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.tabs .cnt:empty { display: none; }

/* Tiroir et feuille */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(45, 27, 32, .45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 60; left: 50%; bottom: 0; width: 100%; max-width: 480px; max-height: 86vh; overflow: auto; transform: translate(-50%, 100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); background: var(--linen); border-radius: 26px 26px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom)); }
.sheet.on { transform: translate(-50%, 0); }
.sheet__grab { width: 44px; height: 5px; border-radius: 99px; background: var(--clay-2); margin: 0 auto 12px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet__head h2 { margin: 0; font-size: 28px; }
.sheet__close { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font-size: 20px; }
.sheet .toc a { padding: 11px 12px; }
.empty { text-align: center; color: var(--ink-2); padding: 20px 10px; }
.empty b { display: block; font: 400 22px/1.2 var(--display); color: var(--choc); margin-bottom: 6px; }
.switch { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.switch small { display: block; color: var(--ink-2); font-size: 13px; }
.switch input { display: none; }
.switch i { margin-left: auto; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--clay-2); position: relative; transition: .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + i { background: var(--burnt); }
.switch input:checked + i::after { left: 21px; }

/* Notes de travail (« À compléter ») : visibles uniquement en version de travail */
.todo { display: none; }
body.work .todo { display: block; margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: #fff7d6; border: 1px dashed #c9a227; color: #6b5200; font-size: 14px; line-height: 1.45; }
body.work .todo::before { content: "À compléter · "; font-weight: 800; }
body.work span.todo { display: inline-block; }
.workbar { display: none; }
body.work .workbar { display: block; position: sticky; top: var(--bar); z-index: 25; padding: 6px 14px; background: #fff3c4; color: #6b5200; font-size: 13px; font-weight: 600; text-align: center; border-bottom: 1px solid #ecd789; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .cover img { animation: none; transform: none; } html { scroll-behavior: auto; } }
.dir__more { display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 99px; border: 1.5px solid var(--burnt); color: var(--burnt); font-weight: 700; font-size: 15px; background: var(--paper); }
.dir__more[hidden] { display: none; }
.wide { margin: 16px -18px 0; }
.wide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wide figcaption { padding: 6px 18px 0; font-size: 13px; color: var(--ink-2); }

/* Carte réelle */
.lmap { height: 330px; background: #e8ecef; z-index: 0; }
.map .maplibregl-ctrl-attrib { font-size: 10px; }
.pin { width: 30px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.pin svg { width: 30px; height: 40px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); transition: transform .2s; transform-origin: 50% 100%; }
.pin.is-on svg { transform: scale(1.25); }
.pin span { position: absolute; left: 30px; top: 6px; white-space: nowrap; font: 700 12.5px/1 var(--sans); color: #202124; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.map__card { margin-top: 10px; }

/* =========================================================
   Roadbook by Mandy · octobre 2026 : trois parties, fiches lieux, liens partenaires
   ========================================================= */
.part { margin: 34px 0 0; padding: 0 16px; }
.part__in { padding: 26px 20px 24px; border-radius: 26px; background: var(--choc); color: #fff; }
.part__in .eyebrow { color: var(--rose); }
.part__in h2 { margin: 6px 0 8px; font: 400 34px/1.05 var(--display); color: #fff; }
.part__in h2 em { color: var(--rose); }
.part__in p { margin: 0; color: #f3e6e9; font-size: 16px; line-height: 1.5; }
.toc__part { margin: 14px 0 2px; font: 700 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--burnt); }
.toc__part:first-child { margin-top: 0; }
.fiche { margin: 10px 0 0; display: grid; gap: 8px; }
.fiche div { padding: 9px 12px; border-radius: 14px; background: var(--linen); }
.fiche dt { font: 700 11.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--burnt); }
.fiche dd { margin: 3px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--choc); }
.lnk__ad { margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--paper); color: var(--ink-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.acc__body .links { margin: 10px 0 4px; }
.more-text summary { display: inline-block; margin: 0 0 12px; color: var(--burnt); font-weight: 700; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.more-text summary::-webkit-details-marker { display: none; }
.more-text[open] summary { display: none; }

/* ================= Mini-application (app.js, 20/10) ================= */
.is-app body { overscroll-behavior-y: none; }
.view[hidden] { display: none !important; }
.view-in { animation: view-in .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes view-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 18px)); } }
.is-standalone .bar { padding-top: env(safe-area-inset-top); height: calc(var(--bar) + env(safe-area-inset-top)); }
.is-standalone .cover { margin-top: calc(-1 * (var(--bar) + env(safe-area-inset-top))); }
.is-standalone .desk-note { display: none; }

/* En-têtes des écrans */
.vhead { padding: 26px 18px 6px; }
.vhead h1 { margin: 6px 0 6px; font: 400 40px/1 var(--display); letter-spacing: -.01em; }
.vhead h1 em { font-style: normal; color: var(--burnt); }
.vhead p { margin: 0; color: var(--ink-2); font-size: 16px; }
.vbody { padding: 16px 18px 24px; }

/* Raccourcis du guide vers les écrans */
.teaser { display: flex; align-items: center; gap: 14px; margin: 18px 18px 0; padding: 14px 14px 14px 14px; border-radius: 22px; background: var(--choc); color: #fff; text-decoration: none; box-shadow: 0 18px 30px -24px rgba(45, 27, 32, .7); transition: transform .15s; }
.teaser:active { transform: scale(.98); }
.teaser__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: var(--rose); }
.teaser__ico svg { width: 22px; height: 22px; }
.teaser b { display: block; font: 400 19px/1.15 var(--display); }
.teaser small { display: block; color: #e9d6da; font-size: 13.5px; margin-top: 2px; }
.teaser i { margin-left: auto; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--burnt); }
.teaser i svg { width: 16px; height: 16px; }
.sec .teaser { margin: 18px 0 0; }

/* Barre d'onglets : pastille qui glisse sous l'onglet actif */
.tabs { overflow: hidden; }
.tabs button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); border-radius: 16px; transition: color .2s; }
.tabs button.on { color: var(--burnt); }
.tabs button svg { width: 22px; height: 22px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tabs button.on svg { transform: translateY(-1px) scale(1.08); }
.tabs__pill { position: absolute; z-index: 0; top: 6px; left: 6px; width: calc((100% - 12px) / 5); height: calc(var(--tab) - 12px); border-radius: 16px; background: var(--rose-l); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); pointer-events: none; }

/* Carte en plein écran */
.view--carte #carte { padding: 18px 12px 8px; }
.view--carte #carte .sec__head { padding: 6px 6px 0; margin-bottom: 12px; }
.view--carte #carte .sec__head h2 { font-size: 30px; }
.view--carte .map { border-radius: 24px; }
.view--carte .lmap { height: max(340px, calc(100dvh - var(--bar) - var(--tab) - 250px - env(safe-area-inset-bottom))); }
.view--carte .map__legend { padding: 8px 8px 0; }
.lmap.drop .pin svg { animation: pin-drop .55s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 70ms + .15s); }
.lmap.drop .pin span { animation: pin-label .4s ease backwards; animation-delay: calc(var(--i, 0) * 70ms + .45s); }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-36px) scale(.6); } }
@keyframes pin-label { from { opacity: 0; } }

/* Jours et checklist en écran */
.view--jours #jours { padding-top: 26px; }
.view--checklist .check__head { margin-top: 4px; }

/* Favoris */
.favs { display: grid; gap: 10px; }
.favc { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); animation: view-in .3s ease backwards; }
.favc__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--choc); }
.favc__main img, .favc__ph { flex: none; width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.favc__ph { display: grid; place-items: center; background: var(--clay); color: var(--burnt); }
.favc__ph svg { width: 24px; height: 24px; fill: var(--burnt); }
.favc b { display: block; font: 400 19px/1.15 var(--display); }
.favc small { display: block; color: var(--ink-2); font-size: 13.5px; }
.favc__map { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--burnt); color: #fff; }
.favc__map svg { width: 20px; height: 20px; }
.empty--big { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; border-radius: 24px; background: var(--paper); border: 1px dashed var(--clay-2); }
.empty__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--rose-l); color: var(--burnt); animation: beat 1.6s ease-in-out infinite; }
.empty__ico svg { width: 30px; height: 30px; }
.empty--big .lnk { margin-top: 8px; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } }

/* Petite fête : checklist complète */
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; animation: fall 2.2s cubic-bezier(.25, .6, .4, 1) var(--d) forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(var(--r)); opacity: .9; } }

/* Messages (hors-ligne, installation) */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 12px); width: min(448px, calc(100% - 24px)); transform: translate(-50%, 20px); opacity: 0; transition: .35s cubic-bezier(.2, .8, .2, 1); padding: 14px 16px; border-radius: 20px; background: var(--choc); color: #f3e6e9; font-size: 14.5px; line-height: 1.4; box-shadow: 0 20px 40px -20px rgba(45, 27, 32, .7); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast b { display: block; color: #fff; font: 400 18px/1.2 var(--display); margin-bottom: 2px; }
.toast--install { padding-right: 44px; }
.toast__x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); font-size: 18px; line-height: 1; }
.toast__acts { display: flex; gap: 8px; margin-top: 10px; }
.toast__go { padding: 8px 16px; border-radius: 99px; background: var(--rose); color: var(--choc); font-weight: 700; }
.ios-share { display: inline-block; width: 16px; height: 18px; vertical-align: -3px; margin: 0 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) { .tabs__pill, .tabs button svg { transition: none; } .empty__ico { animation: none; } }

/* 24/10 · infos pratiques d'une adresse (adresse, capacité, note) */
.place__facts { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2, #6b4e55); }
