/* ==========================================================
   COULEURS ET POLICE — change-les ici, ça s'applique partout
   ========================================================== */
:root {
  --fond: #fbf6ee;        /* crème */
  --carte: #ffffff;       /* fond des panneaux */
  --texte: #1d1d1f;
  --texte-doux: #6b5a4a;
  --brun: #7a2e0e;        /* titre "Cambodge" */
  --orange: #b45309;      /* boutons principaux */
  --vert-jungle: #1f4d3d; /* bloc budget */
  --or: #ffd27a;          /* total du budget */
  --beige: #f6ede1;       /* boutons secondaires */
  --trait: #f1e8dc;       /* lignes de séparation */
  --gratuit: #15803d;
  --danger: #b91c1c;
  --rayon: 18px;
  --police: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--police); color: var(--texte); background: var(--fond); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2b6cb0; outline-offset: 2px; }
[hidden] { display: none !important; }
.cache-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== EN-TÊTE ===== */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; }
.entete h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--brun); line-height: 1.1; }
.entete p { margin: 2px 0 0; font-size: 13px; color: var(--texte-doux); }
.commandes { display: flex; align-items: center; gap: 8px; }

/* Compteur − 2 + (personnes, nuits…) */
.compteur { display: flex; align-items: center; gap: 2px; background: var(--carte); border-radius: 980px; padding: 0 4px 0 12px; height: 48px; }
.compteur label, .compteur > span:first-child { font-size: 13px; color: var(--texte-doux); }
.compteur button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--beige); color: var(--brun); font-size: 18px; }
.compteur output { min-width: 26px; text-align: center; font-size: 15px; font-weight: 700; }

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 18px; border-radius: 980px; border: 0; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bouton.clair { background: var(--carte); color: var(--brun); font-weight: 500; }
.bouton.beige { background: var(--beige); color: var(--brun); font-weight: 500; }
.bouton.fonce { background: var(--orange); color: #fff; }
.bouton.petit { height: 36px; padding: 0 14px; font-size: 13px; }
.lien-texte { border: 0; background: none; color: var(--orange); font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 10px; text-decoration: none; display: inline-flex; align-items: center; }
.lien-texte.danger { color: var(--danger); }
.ajouter { width: 100%; min-height: 48px; border: 1.5px dashed #d9c6ad; border-radius: 12px; background: transparent; color: var(--orange); font-size: 14px; font-weight: 600; }

/* ==========================================================
   MODE LECTURE
   ========================================================== */
.app { display: grid; gap: 14px; padding: 0 14px 14px; }
.panneau { background: var(--carte); border-radius: var(--rayon); box-shadow: 0 1px 8px rgba(122, 46, 14, 0.06); }

.liste { padding: 6px; }
.liste h2 { margin: 8px 10px 6px; font-size: 13px; font-weight: 600; color: var(--texte-doux); }
.etape { border-radius: 12px; }
.etape.active { background: var(--teinte); }
.etape-btn { width: 100%; min-height: 46px; padding: 0 10px; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--texte); }
.pastille { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: var(--couleur); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.etape-nom { flex-grow: 1; font-size: 15px; font-weight: 600; }
.etape-dates { font-size: 13px; color: var(--texte-doux); white-space: nowrap; }
.etape-plus { display: none; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 8px 46px; }
.etape-plus span { font-size: 13px; line-height: 1.35; color: #4a3f35; }
.etape-plus button { flex-shrink: 0; height: 36px; padding: 0 14px; border: 0; border-radius: 980px; background: var(--couleur); color: #fff; font-size: 13px; font-weight: 600; }

.carte-zone { position: relative; isolation: isolate; z-index: 0; overflow: hidden; border-radius: var(--rayon); background: #cfe8e4; }
#map { position: absolute; inset: 0; }
.pin { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; color: #fff; font: 700 12px var(--police); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.pin.active { transform: scale(1.3); }

.fiche { display: flex; flex-direction: column; overflow: hidden; background: #fffdf9; }
.fiche-photo { position: relative; height: 190px; flex-shrink: 0; background: var(--couleur); }
.fiche-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fermer { display: none; position: absolute; right: 12px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.35); color: #fff; align-items: center; justify-content: center; }
.poignee { display: none; position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.8); }
.fiche-corps { padding: 16px 20px 0; overflow-y: auto; flex-grow: 1; }
.fiche-etape { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--couleur); }
.fiche h2 { margin: 2px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
.fiche-dates { margin: 2px 0 0; font-size: 14px; color: var(--texte-doux); }
.hotel { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--teinte); display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); }
.hotel-icone { width: 40px; height: 40px; border-radius: 12px; background: var(--couleur); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hotel-infos { flex-grow: 1; min-width: 0; }
.hotel-infos small, .hotel-prix small { display: block; font-size: 12px; color: var(--texte-doux); }
.hotel-infos strong, .hotel-prix strong { font-size: 15px; }
.hotel-prix { text-align: right; }
.hotel-prix small { color: var(--couleur); font-weight: 600; }
.fiche h3 { margin: 16px 0 4px; font-size: 13px; font-weight: 600; color: var(--texte-doux); }
.activites { list-style: none; margin: 0; padding: 2px 14px; background: #fff; border-radius: 16px; box-shadow: 0 1px 6px rgba(122, 46, 14, 0.06); }
.activites li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; border-bottom: 1px solid var(--trait); font-size: 14px; }
.activites li:last-child { border-bottom: 0; }
.activites li.hors { color: #9a8a7a; }
.act-nom { display: flex; align-items: flex-start; gap: 10px; line-height: 1.3; padding: 7px 0; }
.act-nom::before { content: ""; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--couleur); flex-shrink: 0; }
.act-nom small { display: block; font-size: 12px; color: var(--texte-doux); margin-top: 1px; }
.act-droite { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.act-prix { font-weight: 600; }
.act-prix.gratuit { color: var(--gratuit); }
.act-lien { font-size: 13px; font-weight: 600; color: var(--couleur); text-decoration: none; padding: 10px 0; }
.vide { margin: 8px 0; font-size: 14px; color: var(--texte-doux); }
.fiche-nav { display: flex; gap: 8px; padding: 14px 16px 18px; }
.fiche-nav button { flex: 1; height: 48px; border: 0; border-radius: 980px; font-size: 14px; }
.fiche-nav .prec { background: var(--beige); color: var(--brun); font-weight: 500; }
.fiche-nav .suiv { background: var(--couleur); color: #fff; font-weight: 600; }

.budget { background: var(--vert-jungle); color: #f3efe6; border-radius: var(--rayon); padding: 14px 18px; }
.budget-haut { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.budget-haut span { font-size: 13px; color: #b9d3c6; }
.budget-haut strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--or); }
.budget p { margin: 4px 0 0; font-size: 12px; color: #b9d3c6; }

.dock { display: none; }
.voile { display: none; }

/* ==========================================================
   MODE MODIFIER
   ========================================================== */
body.edition .lecture { display: none !important; }
.edition-zone { display: none; }
body.edition .edition-zone { display: flex; }

.ed-entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; background: #fff8ef; border-bottom: 1px solid #f0e2cf; }
.ed-entete .gauche { display: flex; align-items: center; gap: 12px; }
.ed-entete h1 { margin: 0; font-size: 22px; color: var(--brun); letter-spacing: -0.03em; }
.pilule { font-size: 13px; font-weight: 600; color: var(--orange); background: #fbecd9; padding: 6px 12px; border-radius: 980px; }
.ed-entete .droite { display: flex; align-items: center; gap: 8px; }
.depart { display: flex; align-items: center; gap: 8px; background: var(--beige); border-radius: 980px; padding: 0 14px; height: 44px; font-size: 14px; }
.depart label, .depart span { color: var(--texte-doux); }
.depart input { border: 0; background: transparent; font-weight: 600; min-height: 40px; }
.ed-titre-tel { display: none; }

.ed-corps { flex-grow: 1; min-height: 0; display: grid; gap: 14px; padding: 14px; }

/* Liste des étapes à réorganiser */
.ed-liste { background: #fff; border-radius: var(--rayon); padding: 10px 8px; overflow-y: auto; }
.ed-liste > p { margin: 2px 10px 8px; font-size: 13px; font-weight: 600; color: var(--texte-doux); }
.ed-ligne { position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 2px; touch-action: pan-y; }
.ed-ligne.glisse { background: var(--danger); }
.ed-ligne .supprimer-glisse { display: none; position: absolute; right: 0; top: 0; bottom: 0; width: 96px; border: 0; background: var(--danger); color: #fff; font-size: 14px; font-weight: 600; }
.ed-ligne-contenu { position: relative; display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 0 8px; background: #fff; border: 1.5px solid transparent; border-radius: 12px; transition: transform 0.2s; }
.ed-ligne.active .ed-ligne-contenu { background: #fbecd9; border-color: #e9c9a0; }
.ed-ligne.glisse .ed-ligne-contenu { transform: translateX(-96px); }
.ed-ligne.glisse .supprimer-glisse { display: block; }
.suppr-bas { display: none; }
.ed-ligne.deplace .ed-ligne-contenu { box-shadow: 0 6px 18px rgba(122, 46, 14, 0.22); background: #fffaf3; }
.ed-poignee { width: 32px; height: 44px; border: 0; background: transparent; touch-action: none; cursor: grab; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ed-ligne-btn { flex-grow: 1; min-height: 48px; border: 0; background: transparent; text-align: left; display: flex; align-items: center; gap: 10px; }
.ed-ligne-btn span.txt { display: flex; flex-direction: column; flex-grow: 1; }
.ed-ligne-btn strong { font-size: 15px; }
.ed-ligne-btn small { font-size: 12px; color: var(--texte-doux); }
.ed-chevron { display: none; }

/* Formulaire d'une étape */
.ed-form { background: #fff; border-radius: var(--rayon); padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.ed-form-haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ed-form-haut p { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--couleur); }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ > label, .champ > span, .ed-section-titre { font-size: 13px; font-weight: 600; color: var(--texte-doux); }
.saisie { height: 46px; border: 1.5px solid #e8dccb; border-radius: 12px; padding: 0 14px; font-size: 16px; background: #fffdf9; width: 100%; }
.saisie:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px #fbecd9; }
.saisie.grand { font-size: 18px; font-weight: 600; }
.ed-rangee { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.ed-rangee > .champ.flex { flex: 1 1 220px; }
.couleurs { display: flex; gap: 2px; flex-wrap: wrap; }
.couleurs button { width: 32px; height: 44px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.couleurs span { width: 24px; height: 24px; border-radius: 50%; }
.couleurs button[aria-pressed="true"] span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; }
.ed-photo { display: flex; gap: 12px; align-items: center; background: var(--fond); border-radius: 14px; padding: 10px; }
.ed-photo-apercu { width: 96px; height: 64px; border-radius: 10px; background: var(--couleur) center / cover no-repeat; flex-shrink: 0; }
.ed-photo-actions { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ed-photo-actions .boutons { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-boite { border: 1.5px solid #f0e2cf; border-radius: 14px; overflow: hidden; }
.ed-item { display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 52px; border-bottom: 1px solid #f4ebdf; background: #fff; }
.ed-item.off { background: #fbf8f3; color: #9a8a7a; }
.ed-item-btn { flex-grow: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; text-align: left; display: flex; align-items: center; gap: 10px; color: inherit; }
.ed-item-btn .txt { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.ed-item-btn .txt small { font-size: 12px; color: var(--texte-doux); }
.ed-item-btn .prix { font-size: 14px; font-weight: 600; white-space: nowrap; }
.ed-boite .ajouter { border: 0; border-radius: 0; background: #fffaf3; text-align: left; padding: 0 16px; }
.radio { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.radio span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cdbca8; background: #fff; }
.radio[aria-checked="true"] span { border: 6px solid var(--orange); }

/* Interrupteur oui / non */
.interrupteur { width: 50px; height: 30px; border-radius: 15px; border: 0; padding: 3px; background: #d9cfc2; display: flex; justify-content: flex-start; flex-shrink: 0; transition: background 0.2s; }
.interrupteur span { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.interrupteur[aria-checked="true"] { background: var(--gratuit); justify-content: flex-end; }

/* Colonne de droite : aperçu + budget */
.ed-apercu { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; }
.ed-apercu > p { margin: 4px 4px 0; font-size: 13px; font-weight: 600; color: var(--texte-doux); }
.mini { background: #fffdf9; border-radius: var(--rayon); overflow: hidden; box-shadow: 0 1px 8px rgba(122, 46, 14, 0.06); }
.mini-photo { height: 140px; background: var(--couleur) center / cover no-repeat; }
.mini-corps { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.mini-corps .n { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--couleur); }
.mini-corps .t { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.mini-corps .d { margin: 0; font-size: 13px; color: var(--texte-doux); }
.mini-hotel { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--teinte); display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.ed-astuce { background: #fff; border-radius: var(--rayon); padding: 14px 16px; font-size: 13px; line-height: 1.45; color: #4a3f35; }
.ed-astuce p { margin: 0 0 8px; }
.ed-astuce .boutons { display: flex; flex-wrap: wrap; gap: 6px; }

/* Fenêtres (ajouter, activité, hôtel, confirmer) */
.fenetre-voile { position: fixed; inset: 0; z-index: 2000; background: rgba(30, 20, 10, 0.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.fenetre { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); background: var(--fond); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.fenetre-haut { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; height: 56px; padding: 0 6px; flex-shrink: 0; }
.fenetre-haut .lien-texte:first-child { justify-self: start; font-weight: 400; }
.fenetre-haut h2 { justify-self: center; margin: 0; font-size: 16px; white-space: nowrap; }
.fenetre-haut .lien-texte:last-child { justify-self: end; font-weight: 700; }
.fenetre-corps { padding: 2px 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.groupe { background: #fff; border-radius: 14px; overflow: hidden; }
.groupe-ligne { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 52px; border-bottom: 1px solid #f4ebdf; }
.groupe-ligne:last-child { border-bottom: 0; }
.groupe-ligne > label, .groupe-ligne > span.lbl { width: 92px; flex-shrink: 0; font-size: 15px; color: var(--texte-doux); }
.groupe-ligne input, .groupe-ligne textarea { flex-grow: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; font-weight: 600; padding: 12px 0; }
.groupe-ligne input:focus, .groupe-ligne textarea:focus { outline: none; }
.groupe-ligne:focus-within { background: #fffaf3; }
.groupe-ligne textarea { resize: vertical; min-height: 60px; font-weight: 400; line-height: 1.4; }
.segment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: #efe4d5; border-radius: 10px; padding: 2px; flex-grow: 1; }
.segment button { height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 600; }
.segment button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.groupe-titre { margin: 0 6px -6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--texte-doux); }
.bouton-danger { min-height: 50px; border-radius: 14px; border: 0; background: #fff; color: var(--danger); font-size: 15px; font-weight: 600; }
.suggestions button { width: 100%; min-height: 48px; border: 0; border-bottom: 1px solid #f4ebdf; background: #fff; display: flex; align-items: center; gap: 10px; padding: 0 14px; text-align: left; }
.suggestions button[aria-pressed="true"] { background: #f6f0fd; }
.suggestions small { display: block; font-size: 12px; color: var(--texte-doux); }
.places { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
.places button { min-height: 36px; padding: 0 12px; border-radius: 980px; border: 0; background: var(--beige); color: var(--brun); font-size: 13px; font-weight: 600; }
.places button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.info { background: #fbecd9; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.45; color: #4a3f35; }

.confirmer { max-width: 380px; background: transparent; box-shadow: none; gap: 8px; }
.confirmer .carte-blanche { background: rgba(255, 253, 249, 0.98); border-radius: 16px; overflow: hidden; }
.confirmer .msg { padding: 16px 18px 14px; text-align: center; border-bottom: 1px solid #efe4d5; }
.confirmer .msg h2 { margin: 0; font-size: 16px; }
.confirmer .msg p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--texte-doux); }
.confirmer button { width: 100%; min-height: 56px; border: 0; font-size: 17px; }
.confirmer .oui { background: transparent; color: var(--danger); font-weight: 600; }
.confirmer .non { background: #fff; color: var(--orange); font-weight: 700; border-radius: 16px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2100; min-height: 56px; min-width: 300px; max-width: calc(100% - 28px); border-radius: 16px; background: #1f2a24; color: #f3efe6; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 0 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); font-size: 14px; }
.toast button { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--or); font-size: 15px; font-weight: 700; }

/* ==========================================================
   TÉLÉPHONE (moins de 900 px de large)
   ========================================================== */
@media (max-width: 899px) {
  .entete .commandes { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-bottom: 96px; }
  .carte-zone { height: 168px; order: 1; }
  .liste { order: 2; }
  .liste h2 { display: none; }
  .budget { order: 3; }
  .etape.active .etape-plus { display: flex; }

  .dock { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 900; }
  .dock .bouton { flex-grow: 1; padding: 0 10px; }
  .dock .compteur { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }

  .fiche { position: fixed; left: 0; right: 0; bottom: 0; top: 44px; z-index: 1001; border-radius: 26px 26px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18); transform: translateY(105%); visibility: hidden; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.35s; }
  .fiche.ouverte { transform: none; visibility: visible; transition-delay: 0s; }
  .fiche-photo { height: 160px; }
  .fermer, .poignee { display: flex; }
  .fiche-nav { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .voile { display: block; position: fixed; inset: 0; background: rgba(30, 20, 10, 0.4); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .voile.visible { opacity: 1; pointer-events: auto; }

  /* Mode modifier sur téléphone : 2 écrans (la liste, puis une étape) */
  body.edition .edition-zone { flex-direction: column; min-height: 100vh; }
  .ed-entete { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 6px; height: 56px; }
  .ed-entete .gauche, .ed-entete .droite { display: contents; }
  .ed-entete h1, .ed-entete .pilule, .ed-entete .depart, .ed-entete .bouton { display: none; }
  .ed-titre-tel { display: block; justify-self: center; margin: 0; font-size: 16px; font-weight: 700; white-space: nowrap; }
  .ed-entete .tel-gauche { justify-self: start; }
  .ed-entete .tel-droite { justify-self: end; font-weight: 700; }
  .ed-corps { grid-template-columns: minmax(0, 1fr); padding: 12px 14px 24px; }
  .depart-tel { display: flex !important; }
  .ed-liste { overflow: visible; }
  .ed-chevron { display: block; }
  .ed-form { padding: 16px; }
  .ed-form-haut .danger { display: none; }
  .suppr-bas { display: block; }
  .ed-apercu .budget { order: 0; }
  .ed-apercu .mini, .ed-apercu > p { display: none; }
  body.ecran-liste .ed-form { display: none; }
  body.ecran-etape .ed-liste, body.ecran-etape .ed-apercu { display: none; }
  .fenetre-voile { align-items: flex-end; padding: 24px 0 0; }
  .fenetre { max-width: none; max-height: calc(100vh - 24px); border-radius: 22px 22px 0 0; }
  .fenetre-corps { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .confirmer { padding: 0 10px calc(14px + env(safe-area-inset-bottom)); border-radius: 0; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ==========================================================
   ORDINATEUR : tout sur un écran, sans défiler
   ========================================================== */
@media (min-width: 900px) {
  body { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
  .lecture-zone { display: contents; }
  .entete { padding: 10px 20px; background: rgba(255, 255, 255, 0.7); border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
  .entete .compteur, .entete .bouton.clair { background: var(--beige); }
  .entete .compteur button { background: #fff; }
  .app { flex-grow: 1; min-height: 0; padding-top: 14px; grid-template-columns: 300px minmax(0, 1fr) 400px; grid-template-rows: minmax(0, 1fr) auto; }
  .liste { grid-row: 1 / 3; overflow-y: auto; }
  .etape-btn { min-height: 62px; }
  .carte-zone { grid-row: 1 / 3; }
  .fiche { grid-column: 3; grid-row: 1; border-radius: var(--rayon); box-shadow: 0 1px 8px rgba(122, 46, 14, 0.06); }
  .budget { grid-column: 3; grid-row: 2; }

  body.edition .edition-zone { flex-direction: column; flex-grow: 1; min-height: 0; }
  .ed-corps { grid-template-columns: 290px minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr); }
  .tel-gauche, .tel-droite, .depart-tel { display: none !important; }
}

/* ==========================================================
   VOYAMI — nom du site, album photo et commentaires
   ========================================================== */
.marque { margin: 0 0 1px !important; font-size: 12px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange) !important; }

.album { padding-bottom: 18px; }
.album[hidden], .album [hidden] { display: none !important; }
.album-haut { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.album-aide { font-size: 12px; color: var(--texte-doux); }
.album-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.album-grille .vide { grid-column: 1 / -1; }
.photo { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--teinte); }
.photo-btn { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: transparent; display: block; }
.photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.epinglee .photo-btn { box-shadow: 0 0 0 3px var(--orange); }
.photo.epinglee::after { content: ""; position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.5 2.5 4.5-5.5' stroke='%23b45309' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; pointer-events: none; }
.photo.privee .photo-btn img { opacity: 0.55; }
.photo-suppr, .com-suppr { position: absolute; left: -14px; top: -14px; width: 40px; height: 40px; border: 0; padding: 0; background: transparent; display: flex; align-items: center; justify-content: center; z-index: 1; }
.photo-suppr span, .com-suppr span { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; }
.photo-privee { position: absolute; right: 4px; bottom: 4px; height: 26px; min-width: 26px; padding: 0 7px; border: 0; border-radius: 980px; background: rgba(255, 255, 255, 0.92); color: var(--texte); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }
.photo-privee.oui { background: var(--texte); color: #fff; }
.album-orga { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--texte-doux); }
.album-orga label { cursor: pointer; }

.coms { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-direction: column; gap: 12px; }
.com { position: relative; display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 6px rgba(122, 46, 14, 0.06); }
.com-texte { flex-grow: 1; min-width: 0; }
.com-texte p { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.com-texte p + p { margin-top: 4px; }
.com-texte small { font-size: 12px; color: var(--texte-doux); }
.com-photo { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0; display: block; }
.com-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coms .vide { list-style: none; }

.com-form { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.com-epingle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--brun); }
.com-epingle img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.com-epingle span { flex-grow: 1; }
.com-champs { display: flex; gap: 8px; }
.com-champs #comNom { flex: 0 0 120px; }
.com-champs #comTexte { flex: 1 1 auto; min-width: 0; }
.com-form .bouton { width: 100%; }
.com-form .bouton:disabled { opacity: 0.6; }
.com-erreur { margin: 0; font-size: 13px; color: var(--danger); }
.com-erreur:empty { display: none; }

.orga { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--trait); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.orga .lien-texte { padding: 0; font-size: 13px; font-weight: 500; color: var(--texte-doux); }
.orga-form { display: flex; gap: 8px; width: 100%; }
.orga-form .saisie { flex: 1 1 auto; min-width: 0; height: 40px; font-size: 15px; }
.orga-etat { margin: 0; font-size: 13px; color: var(--texte-doux); }
.orga-etat:empty { display: none; }

/* ==========================================================
   VOYAMI — plusieurs voyages, partage, prix cachés, aujourd'hui
   ========================================================== */
a.marque { display: inline-block; text-decoration: none; }
.lien-mes-voyages { margin-left: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brun); text-decoration: none; }

/* Boutons réservés à l'organisateur */
.seul-orga { display: none !important; }
body.organisateur .seul-orga { display: inline-flex !important; }
body.nuage:not(.organisateur) [data-modifier] { display: none !important; }
body.nuage-attente [data-modifier] { visibility: hidden; }

/* Prix cachés pour les visiteurs */
body.sans-prix .budget, body.sans-prix .compteur, body.sans-prix .hotel-prix, body.sans-prix .act-prix { display: none !important; }

/* Voyage introuvable */
.introuvable { max-width: 420px; margin: 60px auto; padding: 0 20px; text-align: center; }
.introuvable h2 { margin: 0 0 6px; font-size: 24px; }
.introuvable p { margin: 0 0 18px; color: var(--texte-doux); }
body.voyage-introuvable .app, body.voyage-introuvable .dock, body.voyage-introuvable .commandes, body.voyage-introuvable #resume { display: none !important; }

/* L'étape d'aujourd'hui */
.aujourdhui { width: calc(100% - 8px); margin: 4px 4px 6px; min-height: 56px; padding: 8px 12px; border: 0; border-radius: 14px; background: var(--vert-jungle); color: #f3efe6; display: flex; align-items: center; gap: 12px; text-align: left; }
.aujourdhui[hidden] { display: none; }
.aujourdhui .pastille { width: 32px; height: 32px; font-size: 13px; border: 2px solid #fff; }
.aj-txt { display: flex; flex-direction: column; }
.aj-txt small { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--or); }
.aj-txt strong { font-size: 15px; }
.etape.du-jour .etape-nom::after { content: "Aujourd'hui"; margin-left: 8px; padding: 2px 8px; border-radius: 980px; background: #e3f3e8; color: var(--gratuit); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.pin.du-jour { box-shadow: 0 0 0 6px rgba(21, 128, 61, 0.3), 0 1px 6px rgba(0, 0, 0, 0.3); }

/* Fenêtre Partager */
.partage .fenetre-corps { gap: 16px; }
.segments { display: flex; gap: 4px; background: var(--beige); border-radius: 14px; padding: 4px; }
.segments button { flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--texte-doux); font-size: 13px; font-weight: 600; }
.segments button[aria-checked="true"] { background: #fff; color: var(--brun); box-shadow: 0 1px 4px rgba(122, 46, 14, 0.15); }
.partage-avec-lien { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; }
.partage-avec-lien[hidden] { display: none; }
.partage-lien { display: flex; gap: 8px; align-items: center; }
.partage-url { flex-grow: 1; min-width: 0; min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--beige); font-size: 13px; color: #4a3f35; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.partage-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; border-top: 1px solid var(--trait); padding-top: 10px; }
.partage-erreur { margin: 0; font-size: 13px; color: var(--danger); }
.partage-erreur:empty { display: none; }
.partage .lien-texte.danger { align-self: flex-start; padding: 0; }

/* ---------- Page d'accueil ---------- */
body.accueil { min-height: 100vh; }
.acc-entete { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: 1100px; margin: 0 auto; }
.acc-logo { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--brun); text-decoration: none; }
.acc-connexion { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; padding: 0 20px 8px; }
.acc-connexion[hidden] { display: none; }
.acc-connexion .saisie { flex: 1 1 auto; min-width: 0; height: 44px; }
.acc-etat { max-width: 1100px; margin: 0 auto; padding: 0 20px; font-size: 13px; color: var(--texte-doux); }
.acc-etat:empty { display: none; }
.acc-corps { max-width: 1100px; margin: 0 auto; padding: 8px 20px 40px; }
.acc-corps h1 { margin: 8px 0 18px; font-size: clamp(30px, 6vw, 44px); line-height: 1.08; letter-spacing: -0.035em; }
.acc-outils { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.acc-outils .saisie { flex: 1 1 220px; height: 48px; }
.acc-nouveau { background: #fff; border-radius: var(--rayon); padding: 18px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 8px rgba(122, 46, 14, 0.06); max-width: 520px; }
.acc-nouveau[hidden] { display: none; }
.acc-nouveau h2 { margin: 0; font-size: 18px; }
.acc-nouveau-boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-nouveau-boutons .bouton { flex: 1 1 auto; }
.acc-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.acc-liste .vide { grid-column: 1 / -1; }
.acc-carte { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--texte); box-shadow: 0 2px 14px rgba(122, 46, 14, 0.08); }
.acc-photo { position: relative; height: 150px; background: var(--orange) center / cover no-repeat; }
.acc-badge { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 980px; background: #fff; color: var(--brun); }
.acc-badge.prive { background: var(--texte); color: #fff; }
.acc-badge.public { background: #e3f3e8; color: #1f4d3d; }
.acc-infos { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.acc-infos strong { font-size: 18px; letter-spacing: -0.02em; }
.acc-infos small { font-size: 13px; color: var(--texte-doux); }
.acc-infos .acc-prix { color: var(--gratuit); font-weight: 600; }
