:root {
  --encre: #17212b;
  --doux: #5d6b78;
  --pale: #8a96a2;
  --fond: #f7f3ec;
  --carte: #ffffff;
  --ligne: #e6e0d5;
  --mer: #0f4c5c;
  --mer-clair: #e3eef0;
  --sable: #e9c46a;
  --corail: #e76f51;
  --vert: #2a9d8f;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(23, 33, 43, .06), 0 4px 14px rgba(23, 33, 43, .06);
  --bas: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--encre);
  background: var(--fond);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--fond); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--mer); }
.chargement { display: grid; place-items: center; height: 100vh; font-size: 28px; font-weight: 700; color: var(--mer); letter-spacing: -.5px; }

/* Structure */
.coquille { max-width: 680px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(88px + var(--bas)); }
.entete { position: sticky; top: 0; z-index: 20; background: rgba(247, 243, 236, .94); backdrop-filter: blur(10px); padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ligne); }
.marque { font-weight: 800; color: var(--mer); font-size: 19px; letter-spacing: -.3px; }
.selecteur { flex: 1; min-width: 0; border: 1px solid var(--ligne); background: var(--carte); border-radius: 10px; padding: 7px 10px; font-weight: 600; text-overflow: ellipsis; }
.icone-btn { border: 0; background: transparent; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--mer); }
.icone-btn:hover { background: var(--mer-clair); }
.icone-btn svg { width: 22px; height: 22px; }
.bandeau-demo { background: var(--sable); color: #4a3a0c; font-size: 13px; padding: 6px 16px; text-align: center; }
main { padding: 16px; }
h1 { font-size: 24px; letter-spacing: -.4px; margin: 4px 0 4px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
.sous { color: var(--doux); margin: 0 0 14px; font-size: 15px; }

/* Navigation du bas */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--carte); border-top: 1px solid var(--ligne); padding: 6px 8px calc(6px + var(--bas)); }
.nav-int { max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 72px 1fr 1fr; align-items: center; }
.onglet { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--pale); padding: 6px 0; border-radius: 10px; }
.onglet svg { width: 23px; height: 23px; }
.onglet[aria-current="page"] { color: var(--mer); font-weight: 700; }
.plus { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--corail); color: white; justify-self: center; margin-top: -26px; box-shadow: 0 6px 18px rgba(231, 111, 81, .45); display: grid; place-items: center; }
.plus svg { width: 28px; height: 28px; }

/* Cartes */
.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px; margin-bottom: 12px; }
.carte.vedette { border-left: 5px solid var(--corail); }
.etiquette { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--doux); }
.titre-res { font-size: 18px; font-weight: 700; margin: 4px 0 2px; }
.ligne-info { color: var(--doux); font-size: 14.5px; margin: 3px 0; display: flex; gap: 8px; align-items: baseline; }
.ligne-info b { color: var(--encre); font-weight: 600; }
.compte { font-size: 30px; font-weight: 800; color: var(--mer); letter-spacing: -.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn { white-space: nowrap; border: 1px solid var(--ligne); background: var(--carte); border-radius: 11px; padding: 9px 14px; font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--encre); }
.btn.primaire { background: var(--mer); border-color: var(--mer); color: white; }
.btn.danger { color: #b3261e; }
.btn.plein { width: 100%; justify-content: center; padding: 12px; }
.btn:disabled { opacity: .55; cursor: default; }
.code { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--mer-clair); padding: 2px 7px; border-radius: 6px; font-size: 14px; color: var(--mer); font-weight: 600; }
.pastille { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--mer-clair); color: var(--mer); }
.pastille.alerte { background: #fde7e1; color: #a1381f; }
.pastille.ok { background: #e0f3f0; color: #1e6f65; }
.vide { text-align: center; padding: 34px 18px; color: var(--doux); }
.vide h1 { color: var(--encre); }

/* Types de réservations */
.ico-type { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ico-type svg { width: 19px; height: 19px; }
.t-vol { background: #e3eef0; color: #0f4c5c; }
.t-hebergement { background: #f3ead2; color: #7a5a12; }
.t-voiture { background: #e6e9f5; color: #34428a; }
.t-golf { background: #e0f3e6; color: #22713a; }
.t-restaurant { background: #fde7e1; color: #a1381f; }
.t-activite { background: #efe4f4; color: #6b2f86; }
.t-train { background: #e6e9f5; color: #34428a; }
.t-autre { background: #eceae6; color: #4c4a45; }

/* Itinéraire */
.jour { margin-top: 18px; }
.jour-titre { font-weight: 800; font-size: 15px; color: var(--mer); margin: 0 0 8px; display: flex; justify-content: space-between; }
.jour-titre span { color: var(--pale); font-weight: 600; }
.jour-libre { color: var(--pale); font-style: italic; font-size: 14px; padding: 4px 2px 6px; }
.element { display: flex; gap: 12px; align-items: flex-start; background: var(--carte); border-radius: 12px; padding: 12px; margin-bottom: 8px; box-shadow: var(--ombre); border: 0; width: 100%; text-align: left; }
.element .heure { font-weight: 700; font-size: 14px; min-width: 46px; color: var(--encre); padding-top: 7px; }
.element .corps { flex: 1; min-width: 0; }
.element .nom { font-weight: 650; }
.element .detail { color: var(--doux); font-size: 13.5px; margin-top: 2px; }
.element.a-verifier { outline: 2px solid var(--sable); }
.carte-geo { height: 260px; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--mer-clair); display: grid; place-items: center; color: var(--doux); font-size: 14px; margin-bottom: 8px; }
.segment { display: flex; background: var(--ligne); border-radius: 11px; padding: 3px; margin-bottom: 12px; }
.segment button { flex: 1; border: 0; background: transparent; padding: 7px; border-radius: 9px; font-weight: 600; color: var(--doux); }
.segment button[aria-pressed="true"] { background: var(--carte); color: var(--encre); box-shadow: var(--ombre); }

/* Documents */
.recherche { width: 100%; border: 1px solid var(--ligne); background: var(--carte); border-radius: 12px; padding: 11px 14px; margin-bottom: 12px; }
.doc { display: flex; align-items: center; gap: 12px; }
.doc .corps { flex: 1; min-width: 0; }
.doc .nom { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Céleste */
.fil { display: flex; flex-direction: column; gap: 10px; padding-bottom: 80px; }
.bulle { max-width: 86%; padding: 10px 14px; border-radius: 16px; line-height: 1.42; font-size: 15px; white-space: pre-wrap; }
.bulle.moi { align-self: flex-end; background: var(--mer); color: white; border-bottom-right-radius: 5px; }
.bulle.elle { align-self: flex-start; background: var(--carte); box-shadow: var(--ombre); border-bottom-left-radius: 5px; }
.bulle .estime { display: inline-block; font-size: 12px; font-weight: 700; background: #fff4d6; color: #7a5a12; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.bulle .ref { display: inline-block; font-size: 12.5px; font-weight: 600; background: var(--mer-clair); color: var(--mer); border: 0; border-radius: 6px; padding: 1px 6px; margin: 2px 2px 0 0; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.suggestions button { border: 1px solid var(--ligne); background: var(--carte); border-radius: 99px; padding: 7px 12px; font-size: 13.5px; }
.saisie { position: fixed; left: 0; right: 0; bottom: calc(68px + var(--bas)); z-index: 25; padding: 8px 16px; background: linear-gradient(to top, var(--fond) 70%, rgba(247,243,236,0)); }
.saisie form { max-width: 648px; margin: 0 auto; display: flex; gap: 8px; }
.saisie input { flex: 1; border: 1px solid var(--ligne); border-radius: 99px; padding: 12px 16px; background: var(--carte); }
.saisie button { border: 0; background: var(--mer); color: white; border-radius: 99px; padding: 0 18px; font-weight: 700; }

/* Feuilles (modales) */
.voile { position: fixed; inset: 0; background: rgba(23, 33, 43, .42); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.feuille { background: var(--fond); width: 100%; max-width: 680px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 18px calc(22px + var(--bas)); }
.feuille h2 { margin-top: 2px; font-size: 20px; }
.poignee { width: 40px; height: 5px; border-radius: 9px; background: var(--ligne); margin: -6px auto 12px; }
.choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 14px; }
.choix button, .choix label { border: 1px solid var(--ligne); background: var(--carte); border-radius: 14px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; text-align: center; cursor: pointer; }
.choix svg { width: 24px; height: 24px; color: var(--mer); }
textarea { width: 100%; min-height: 150px; border: 1px solid var(--ligne); border-radius: 12px; padding: 12px; background: var(--carte); resize: vertical; }
.champ { display: block; margin-bottom: 12px; }
.champ span { display: block; font-size: 13px; font-weight: 700; color: var(--doux); margin-bottom: 4px; }
.champ input, .champ select { width: 100%; border: 1px solid var(--ligne); border-radius: 10px; padding: 10px 12px; background: var(--carte); }
.champ.incertain input, .champ.incertain select { border-color: var(--sable); background: #fffaf0; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { font-size: 13.5px; color: var(--doux); line-height: 1.45; }
.encadre { background: var(--mer-clair); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; margin: 10px 0; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + var(--bas)); background: var(--encre); color: white; padding: 10px 16px; border-radius: 12px; z-index: 60; font-size: 14px; max-width: 90vw; box-shadow: var(--ombre); }
.membres { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.membre { display: inline-flex; align-items: center; gap: 6px; background: var(--carte); border-radius: 99px; padding: 4px 10px 4px 4px; box-shadow: var(--ombre); font-size: 14px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--mer); color: white; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.liste-voyages .carte { display: block; width: 100%; text-align: left; border: 0; }
.chargeur { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tour .8s linear infinite; vertical-align: -3px; }
@keyframes tour { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chargeur { animation: none; } }
