/* alpha : gestionnaire de favoris. Thèmes clair et sombre par classe sur body. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--fond);
  background-image: var(--texture, none);
  color: var(--texte);
}

body, body.theme-clair {
  --fond: #ffffff;
  --carte: #ffffff;
  --texte: #3a3a3a;
  --texte-doux: #8a97a0;
  --bord: #e4e8ec;
  --accent: #2f6f94;
  --accent-doux: #e3edf3;
  --danger: #a94442;
  --entete-fond: #2b3f5c;
  --entete-bord: #3a4f6a;
  --titre: #5b8497;
  --surligne: #eef3c8;
}

body.theme-sombre {
  --fond: #1d242b;
  --carte: #273038;
  --texte: #dde5eb;
  --texte-doux: #93a1ac;
  --bord: #39444d;
  --accent: #6aa5c4;
  --accent-doux: #2e3d47;
  --danger: #d08886;
}

body.theme-ocean {
  --fond: #eaf1f6;
  --carte: #ffffff;
  --texte: #163040;
  --texte-doux: #4d6b7d;
  --bord: #cbdce6;
  --accent: #0f7a9c;
  --accent-doux: #d5eaf1;
  --danger: #a94442;
}

body.theme-foret {
  --fond: #eef2ec;
  --carte: #ffffff;
  --texte: #22301f;
  --texte-doux: #566b52;
  --bord: #d2ddcd;
  --accent: #3f7d4e;
  --accent-doux: #e0ede0;
  --danger: #a94442;
}

body.theme-sepia {
  --fond: #f2ece1;
  --carte: #fbf7ef;
  --texte: #3a2f22;
  --texte-doux: #7a6a54;
  --bord: #e0d5c2;
  --accent: #9a6a3a;
  --accent-doux: #ece1cf;
  --danger: #a94442;
}

body.theme-ardoise {
  --fond: #2b2f36;
  --carte: #353b44;
  --texte: #e4e8ee;
  --texte-doux: #9aa4b0;
  --bord: #454c56;
  --accent: #8fa9c4;
  --accent-doux: #3c434d;
  --danger: #d08886;
}

body.theme-contraste {
  --fond: #000000;
  --carte: #0b0b0b;
  --texte: #ffffff;
  --texte-doux: #d0d0d0;
  --bord: #4a4a4a;
  --accent: #ffd21f;
  --accent-doux: #1c1c00;
  --danger: #ff6b6b;
}

/* Thèmes sombres : titre plus clair, surlignage discret */
body.theme-sombre, body.theme-ardoise, body.theme-contraste {
  --titre: #8fb0c4;
  --surligne: rgba(255, 255, 255, .07);
}
body.theme-ardoise, body.theme-contraste { --entete-fond: #1b2431; --entete-bord: #2d3a4a; }

/* Thème « Contour » : identique au minimaliste clair, mais chaque boîte est
   entourée d'une fine ligne grise pâle pour bien marquer son contour. */
body.theme-contour .box {
  border: 1px solid var(--bord);
  border-radius: 6px;
  background: var(--carte);
  padding: 4px 7px 6px;
}
body.theme-contour .box-tete { border-bottom-color: var(--bord); }

/* ============ Page d'accueil (présentation) ============ */
.lp {
  --lp-navy: #2b3f5c; --lp-bleu: #2f6f94; --lp-titre: #5b8497;
  --lp-txt: #34404a; --lp-doux: #6b7a85; --lp-bord: #e4e8ec; --lp-fond2: #f5f7f9;
  margin: 0; color: var(--lp-txt); background: var(--lp-fond, #fff);
  font: 15px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Les illustrations du produit (tableau de démonstration) gardent leur apparence d'origine, quel que soit le thème. */
.lp-hero-vis, .lp-board, .lp-vis-board, .lp-feat-vis {
  --lp-navy: #2b3f5c; --lp-bleu: #2f6f94; --lp-titre: #5b8497;
  --lp-txt: #34404a; --lp-doux: #6b7a85; --lp-bord: #e4e8ec; --lp-fond2: #f5f7f9;
}
.lp-bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center;
  justify-content: space-between; padding: 12px 22px; background: color-mix(in srgb, var(--lp-fond, #fff) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--lp-bord);
}
.lp-marque { font-weight: 800; font-size: 19px; letter-spacing: .5px; color: var(--lp-navy); }
.lp-nav { display: flex; align-items: center; gap: 14px; }
.lp-lang { color: var(--lp-doux); text-decoration: none; font-size: 13px; font-weight: 600; }
.lp-lang.actif { color: var(--lp-bleu); }
.lp-btn, .lp-btn-ghost {
  display: inline-block; padding: 9px 18px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.lp-btn { background: var(--lp-navy); color: var(--btn-texte, #fff); box-shadow: 0 3px 12px rgba(43,63,92,.25); }
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43,63,92,.32); }
.lp-btn-ghost { border: 1px solid var(--lp-bord); color: var(--lp-navy); background: var(--lp-carte, #fff); }
.lp-btn-ghost:hover { border-color: var(--lp-bleu); color: var(--lp-bleu); }

.lp-hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 46px; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 64px 24px 40px;
}
.lp-hero h1 { font-size: 40px; line-height: 1.12; margin: 0 0 16px; color: var(--lp-navy); letter-spacing: -.5px; }
.lp-lead { font-size: 18px; color: var(--lp-doux); margin: 0 0 26px; max-width: 30em; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-valeurs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 26px 0 0; }
.lp-valeurs li { font-size: 12.5px; color: var(--lp-doux); background: var(--lp-fond2); border: 1px solid var(--lp-bord); border-radius: 14px; padding: 5px 12px; }
.lp-hero-vis svg, .lp-feat-vis svg { width: 100%; height: auto; display: block; }
.lp-hero-vis { border-radius: 14px; box-shadow: 0 18px 50px rgba(43,63,92,.16); border: 1px solid var(--lp-bord); overflow: hidden; }

.lp-feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center;
  max-width: 1000px; margin: 0 auto; padding: 46px 24px;
}
.lp-feat + .lp-feat { border-top: 1px solid var(--lp-bord); }
.lp-feat h2 { font-size: 25px; margin: 0 0 12px; color: var(--lp-navy); }
.lp-feat p { color: var(--lp-doux); font-size: 16px; margin: 0 0 16px; }
.lp-inv .lp-feat-txt { order: 2; }
.lp-feat-vis { border-radius: 14px; overflow: hidden; }
.lp-vis-board, .lp-feat-vis:not(.lp-vis-phone) { border: 1px solid var(--lp-bord); box-shadow: 0 10px 34px rgba(43,63,92,.12); background: #fff; }
.lp-vis-phone { display: flex; justify-content: center; box-shadow: none; border: 0; }
.lp-vis-phone svg { max-width: 230px; }
.lp-vis-calme svg { opacity: .96; }
.lp .raccourci {
  display: inline-block; padding: 9px 18px; border-radius: 8px; cursor: grab;
  background: var(--lp-bleu); color: var(--sur-accent, #fff); text-decoration: none; font-weight: 600;
  box-shadow: 0 3px 10px rgba(47,111,148,.25);
}

.lp-login { display: flex; justify-content: center; padding: 56px 24px 30px; background: var(--lp-fond2); border-top: 1px solid var(--lp-bord); }
.lp-login .login-carte { box-shadow: 0 14px 44px rgba(43,63,92,.14); }
.lp-foot { text-align: center; color: var(--lp-doux); font-size: 13px; padding: 26px 24px 40px; background: var(--lp-fond2); }

/* Hero centre (sans visuel a droite) */
.lp-hero-centre { grid-template-columns: 1fr; text-align: center; max-width: 760px; padding-bottom: 8px; }
.lp-hero-centre .lp-lead { margin-left: auto; margin-right: auto; }
.lp-hero-centre .lp-cta, .lp-hero-centre .lp-valeurs { justify-content: center; }

/* Tableau demo vivant */
.lp-demo { max-width: 1120px; margin: 0 auto; padding: 26px 20px 46px; }
.lp-demo-tete { text-align: center; margin-bottom: 20px; }
.lp-demo-tete h2 { font-size: 26px; color: var(--lp-navy); margin: 0 0 8px; }
.lp-demo-tete p { color: var(--lp-doux); font-size: 16px; margin: 0 auto; max-width: 46em; }
.lp-board { border: 1px solid var(--lp-bord); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(43,63,92,.15); background: #fff; }
.lp-board-bar { display: flex; align-items: center; gap: 12px; padding: 7px 14px; background: var(--lp-navy); }
.lp-board-marque { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .5px; opacity: .92; }
.lp-board-tabs { display: flex; gap: 3px; align-items: center; flex: 1; }
.lp-board-tabs b { background: #fff; color: var(--lp-navy); font-weight: 600; font-size: 12px; padding: 4px 11px; border-radius: 4px 4px 0 0; }
.lp-board-tabs i { color: #b9c6d6; font-style: normal; font-size: 12px; padding: 4px 8px; }
.lp-board-menu { color: #b9c6d6; letter-spacing: 1px; }
.lp-board-cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px 16px; padding: 16px; align-items: start; }
.lp-b h4 { margin: 0 0 3px; font: 600 13px Georgia, "Times New Roman", serif; color: var(--lp-titre); border-bottom: 1px solid var(--lp-bord); padding-bottom: 3px; }
.lp-b ul { list-style: none; margin: 0; padding: 0; }
.lp-b li { border-right: 3px solid transparent; }
.lp-b li a { display: flex; align-items: center; gap: 6px; padding: 3px 5px; color: var(--lp-txt); text-decoration: none; font-size: 12px; border-radius: 2px; }
.lp-b li a:hover { background: #eef3c8; }
.lp-b li img { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 2px; }
.lp-b li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-b li.c1 { border-right-color: #636363; } .lp-b li.c2 { border-right-color: #0bb573; }
.lp-b li.c3 { border-right-color: #079bd9; } .lp-b li.c4 { border-right-color: #c707c5; } .lp-b li.c5 { border-right-color: #e38e08; }
.lp-demo-note { text-align: center; color: var(--lp-doux); margin: 20px 0 0; font-size: 15px; }
.lp-lien-fort { color: var(--lp-bleu); font-weight: 600; text-decoration: none; white-space: nowrap; }
.lp-lien-fort:hover { text-decoration: underline; }
@media (max-width: 900px) { .lp-board-cols { grid-template-columns: repeat(3, 1fr); } }

/* ---- Mobile : lisibilité et confort tactile ---- */
@media (max-width: 560px) {
  .lp-bar { padding: 10px 14px; }
  .lp-hero { padding: 28px 18px 4px; }
  .lp-hero h1 { font-size: 25px; line-height: 1.16; }
  .lp-lead { font-size: 16px; margin-bottom: 20px; }
  .lp-cta { flex-direction: column; }
  .lp-cta .lp-btn, .lp-cta .lp-btn-ghost { width: 100%; text-align: center; }
  .lp-valeurs { gap: 6px; }
  .lp-valeurs li { font-size: 12px; padding: 4px 10px; }

  /* Tableau démo : une seule colonne, liens lisibles et cliquables au doigt */
  .lp-demo { padding: 18px 14px 32px; }
  .lp-demo-tete h2 { font-size: 22px; }
  .lp-demo-tete p { font-size: 15px; }
  .lp-board-bar { padding: 8px 12px; }
  .lp-board-tabs i { display: none; }
  .lp-board-cols { grid-template-columns: 1fr; gap: 0; padding: 6px 10px 10px; }
  .lp-b { border-bottom: 1px solid var(--lp-bord); padding: 10px 0 8px; }
  .lp-b:last-child { border-bottom: 0; }
  .lp-b h4 { font-size: 14px; }
  .lp-b li a { font-size: 14px; padding: 9px 6px; gap: 9px; }
  .lp-b li img { width: 18px; height: 18px; flex-basis: 18px; }

  /* Sections : texte lisible, maquettes décoratives illisibles masquées */
  .lp-feat { padding: 26px 18px; gap: 16px; }
  .lp-feat h2 { font-size: 21px; }
  .lp-feat p { font-size: 15px; }
  .lp-feat-ico { width: 46px; height: 46px; }
  .lp-vis-calme { display: none; }
  .lp-feat-vis:not(.lp-vis-phone):not(.lp-vis-calme) { max-width: 320px; margin: 0 auto; }
  .lp-vis-phone svg { max-width: 172px; }
  .lp-eng-bg { display: none; }

  .lp-login { padding: 34px 16px 22px; }
  .lp-login .login-carte { width: 100%; max-width: 340px; padding: 26px 22px; }
}

/* Habillage gravure des sections fonctionnalités */
.lp-feats { position: relative; overflow: hidden; }
.lp-eng-bg { position: absolute; inset: -10% 0; width: 100%; height: 120%; color: var(--lp-navy); opacity: .05; pointer-events: none; z-index: 0; }
.lp-feats .lp-feat { position: relative; z-index: 1; }
.lp-feat-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin-bottom: 14px; color: var(--lp-bleu);
  border: 1px solid var(--lp-bord); border-radius: 14px; background: var(--lp-carte, #fff);
  box-shadow: 0 3px 12px rgba(43,63,92,.07);
}
.lp-inv .lp-feat-ico { color: var(--lp-navy); }
.lp-eng { width: 30px; height: 30px; }
@media (max-width: 820px) { .lp-feat-ico { margin-left: auto; margin-right: auto; } }

@media (max-width: 820px) {
  .lp-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; text-align: center; }
  .lp-hero h1 { font-size: 32px; }
  .lp-lead { margin-left: auto; margin-right: auto; }
  .lp-cta, .lp-valeurs { justify-content: center; }
  .lp-hero-vis { order: -1; }
  .lp-feat { grid-template-columns: 1fr; gap: 22px; padding: 34px 24px; text-align: center; }
  .lp-inv .lp-feat-txt { order: 0; }
  .lp-feat-vis { max-width: 460px; margin: 0 auto; }
}

/* Connexion */
.page-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-carte {
  background: var(--carte); border: 1px solid var(--bord); border-radius: 10px;
  padding: 32px 36px; width: 340px; box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.login-carte h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: 1px; }
.login-sous { margin: 0 0 18px; color: var(--texte-doux); }
.login-carte label { display: block; margin-bottom: 12px; color: var(--texte-doux); font-size: 13px; }
.login-carte input {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px;
  border: 1px solid var(--bord); border-radius: 6px; background: var(--fond); color: var(--texte);
}
.login-carte button {
  width: 100%; padding: 9px; margin-top: 6px; border: 0; border-radius: 6px;
  background: var(--accent); color: var(--sur-accent, #fff); font-size: 14px; cursor: pointer;
}
.login-erreur { color: var(--danger); margin: 0 0 12px; }
.login-ok { color: var(--succes, #2e7d52); margin: 0 0 12px; line-height: 1.5; }
.login-note { color: var(--texte-doux); font-size: 12px; margin: 14px 0 0; }

/* Accueil public bilingue */
.page-accueil { min-height: 100vh; }
.accueil-langues { display: flex; gap: 14px; justify-content: flex-end; padding: 12px 20px; }
.accueil-langues a { color: var(--texte-doux); text-decoration: none; font-size: 13px; }
.accueil-langues a.actif { color: var(--accent); font-weight: 600; }
.accueil {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start;
  max-width: 960px; margin: 4vh auto; padding: 0 24px;
}
.accueil-texte h1 { font-size: 40px; letter-spacing: 1px; margin: 0; color: var(--accent); }
.accueil-slogan { color: var(--texte-doux); margin: 2px 0 24px; font-size: 15px; }
.accueil-texte h2 { font-size: 20px; margin: 0 0 10px; }
.accueil-texte p { line-height: 1.55; margin: 0 0 12px; }
.accueil-raccourci {
  margin-top: 22px; padding: 16px 18px; background: var(--carte);
  border: 1px solid var(--bord); border-radius: 10px;
}
.accueil-raccourci > p { margin: 0 0 12px; }
.raccourci {
  display: inline-block; padding: 8px 18px; border-radius: 8px; cursor: grab;
  background: var(--accent); color: var(--sur-accent, #fff); text-decoration: none; font-weight: 600;
  border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.raccourci:active { cursor: grabbing; }
.accueil-aide { color: var(--texte-doux); font-size: 12.5px; margin: 12px 0 0; }
.accueil-login { align-self: start; }
.accueil-login h2 { margin: 0 0 14px; font-size: 18px; }
@media (max-width: 760px) { .accueil { grid-template-columns: 1fr; gap: 26px; margin-top: 2vh; } }

/* Popup du raccourci */
.page-popup { background: var(--fond); }
.popup { max-width: 520px; margin: 0 auto; padding: 18px 20px; }
.popup-carte { margin: 24px auto; }
.popup-tete { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.popup-url { color: var(--texte-doux); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popup-titre { display: block; font-size: 13px; color: var(--texte-doux); margin-bottom: 14px; }
.popup-titre input {
  display: block; width: 100%; margin-top: 5px; padding: 8px 10px;
  border: 1px solid var(--bord); border-radius: 6px; background: var(--carte); color: var(--texte);
}
.popup-consigne { font-weight: 600; margin: 0 0 10px; }
.popup-boites h2 { font-size: 13px; color: var(--texte-doux); margin: 14px 0 6px; font-weight: 600; }
.popup-groupe { display: flex; flex-wrap: wrap; gap: 6px; }
.popup-boite {
  padding: 7px 12px; border: 1px solid var(--bord); border-radius: 16px;
  background: var(--carte); color: var(--texte); cursor: pointer; font-size: 13px;
}
.popup-boite:hover { border-color: var(--accent); color: var(--accent); }
.popup-fait { margin-top: 18px; color: var(--succes, #2e7d52); font-weight: 600; }

.reglages-raccourci { color: var(--texte-doux); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.raccourci-mini { padding: 4px 12px; font-size: 12px; box-shadow: none; }

/* Entête minimaliste : barre fine bleu marine, onglets de page, menu ··· */
.entete {
  display: flex; align-items: center; gap: 14px;
  padding: 5px 12px; background: var(--entete-fond); border-bottom: 1px solid var(--entete-bord);
  position: sticky; top: 0; z-index: 5;
}
.marque { font-weight: 700; font-size: 15px; letter-spacing: .5px; color: #fff; opacity: .9; }
.onglets { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; align-items: center; }
.onglet {
  padding: 4px 11px; border: 0; border-radius: 3px 3px 0 0;
  background: transparent; color: #ccd6e0; cursor: pointer; font-size: 12.5px;
}
.onglet:hover { color: #fff; }
.onglet.actif { background: var(--fond); color: var(--accent); }
.onglet-plus { color: #9fb2c6; font-size: 14px; padding: 4px 9px; }
.entete-droite { display: flex; align-items: center; gap: 8px; }
.qui { color: #9fb2c6; font-size: 12px; }
.recherche {
  padding: 3px 9px; border: 1px solid var(--entete-bord); border-radius: 12px;
  background: rgba(255,255,255,.12); color: #fff; font-size: 12px; width: 120px;
}
.recherche::placeholder { color: #9fb2c6; }
.recherche:focus { outline: none; background: rgba(255,255,255,.2); width: 150px; }

/* Menu déroulant */
.menu { position: relative; }
.menu-bouton {
  border: 0; background: transparent; color: #ccd6e0; cursor: pointer;
  font-size: 18px; line-height: 1; padding: 2px 8px; border-radius: 4px; letter-spacing: 1px;
}
.menu-bouton:hover { color: #fff; background: rgba(255,255,255,.12); }
.menu-liste {
  position: absolute; right: 0; top: 30px; min-width: 200px; z-index: 10;
  background: var(--carte); border: 1px solid var(--bord); border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 5px; display: flex; flex-direction: column;
}
.menu-liste[hidden] { display: none; }
.menu-item {
  text-align: left; border: 0; background: transparent; color: var(--texte);
  cursor: pointer; font-size: 13px; padding: 7px 10px; border-radius: 5px; text-decoration: none;
}
.menu-item:hover { background: var(--accent-doux); color: var(--accent); }
.menu-sep { height: 1px; background: var(--bord); margin: 4px 2px; }

/* Dialogue modal (édition de lien) */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .38); padding: 16px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--carte); color: var(--texte); border: 1px solid var(--bord);
  border-radius: 10px; padding: 22px 24px; width: 380px; max-width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
.modal h2 { margin: 0 0 16px; font-size: 17px; }
.modal label { display: block; margin-bottom: 14px; color: var(--texte-doux); font-size: 13px; }
.modal input {
  display: block; width: 100%; margin-top: 5px; padding: 8px 10px;
  border: 1px solid var(--bord); border-radius: 6px; background: var(--fond); color: var(--texte); font-size: 14px;
}
.modal input:focus { outline: none; border-color: var(--accent); }
.modal-boutons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* Invitation à monter d'étage (refus d'une fonction Premium/Pro) */
.upgrade-texte { margin: 0 0 18px; color: var(--texte-doux); font-size: 14px; line-height: 1.5; }
.upgrade-boutons { flex-wrap: wrap; }
.upgrade-boutons .bouton { text-decoration: none; }
.upgrade-carte {
  border: 1px solid var(--bord); border-radius: 10px; padding: 18px 20px; margin: 0 0 16px;
  background: var(--fond);
}
.upgrade-carte h3 { margin: 0 0 8px; font-size: 16px; }
.upgrade-carte p { margin: 0 0 12px; color: var(--texte-doux); font-size: 14px; line-height: 1.5; }
.upgrade-carte .upgrade-boutons { display: flex; gap: 8px; margin: 0; }

/* Étages et tarifs */
.tarifs-wrap { max-width: 960px; }
.tarifs-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 18px; }
.tarifs-carte {
  border: 1px solid var(--bord); border-radius: 12px; padding: 22px 22px 18px; background: var(--carte);
  display: flex; flex-direction: column;
}
.tarifs-mise { border-color: var(--accent); box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.tarifs-actuel { background: var(--fond); }
.tarifs-carte h2 { margin: 0 0 6px; font-size: 18px; }
.tarifs-prix { margin: 0; font-size: 30px; font-weight: 600; }
.tarifs-prix span { font-size: 14px; font-weight: 400; color: var(--texte-doux); }
.tarifs-prix-an { margin: 2px 0 0; font-size: 13px; color: var(--texte-doux); }
.tarifs-lignes { list-style: none; padding: 0; margin: 16px 0 18px; flex: 1; }
.tarifs-lignes li { padding: 5px 0 5px 20px; position: relative; font-size: 14px; line-height: 1.4; }
.tarifs-lignes li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 5px;
  border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg);
}
.tarifs-actions { display: flex; flex-direction: column; gap: 8px; }
.tarifs-actions .bouton { text-align: center; }
.tarifs-actions form { margin: 0; }
.tarifs-actions form .bouton { width: 100%; }
.tarifs-badge { font-size: 13px; color: var(--texte-doux); text-align: center; padding: 6px 0; }
.tarifs-notes { line-height: 1.6; }
.tarifs-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--texte-doux); }
/* Deux étages (Gratuit, Pro) depuis le 6 décembre 2026 : deux colonnes, pas trois. */
.tarifs-grille { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (max-width: 760px) { .tarifs-grille { grid-template-columns: 1fr; } }

/* Réglages */
.reglages[hidden] { display: none; }
.reglages {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 8px 14px; background: var(--accent-doux); border-bottom: 1px solid var(--bord);
}
.reglages label { color: var(--texte-doux); font-size: 13px; }
.reglages select { margin-left: 6px; padding: 4px 6px; border: 1px solid var(--bord); border-radius: 5px; background: var(--carte); color: var(--texte); }
.reglages-page { display: flex; gap: 8px; }
.bouton { padding: 6px 12px; border: 1px solid var(--bord); border-radius: 6px; background: var(--carte); color: var(--texte); cursor: pointer; font-size: 13px; text-decoration: none; }
.bouton:hover { border-color: var(--accent); }
.bouton-accent { background: var(--accent); color: var(--sur-accent, #fff); border-color: var(--accent); }

/* Colonnes et boîtes : dense, sans cadre, comme l'original */
#app { padding: 10px 12px; }
.colonnes { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px 16px; align-items: start; }
.colonne { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.box { background: transparent; }
.box.drag-en-cours { opacity: .4; }
.box-poignee { cursor: grab; color: var(--texte-doux); font-size: 11px; user-select: none; opacity: 0; margin-right: 2px; }
.box:hover .box-poignee { opacity: .5; }
.box-poignee:active { cursor: grabbing; }
.box-tete { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--bord); padding-bottom: 2px; margin-bottom: 2px; }
.box-titre {
  flex: 1; text-align: left; border: 0; background: transparent; color: var(--titre);
  font-weight: 600; font-size: 13px; padding: 2px 2px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.box-outils, .lien-outils { display: none; gap: 0; }
.box:hover .box-outils, .lien:hover .lien-outils { display: inline-flex; }
.ico {
  border: 0; background: transparent; color: var(--texte-doux); cursor: pointer;
  padding: 2px; border-radius: 3px; display: inline-flex; align-items: center;
}
.ico:hover { color: var(--accent); }

.box-liens { list-style: none; margin: 0; padding: 0; }
.box.repliee .box-liens { display: none; }
.lien { display: flex; align-items: center; border-right: 3px solid transparent; }
.lien a {
  flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0;
  color: var(--texte); text-decoration: none; font-size: 12px; padding: 2px 4px;
}
.lien:hover { background: var(--surligne); }
.lien-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lien-fav { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 2px; }
.vide { color: var(--texte-doux); font-style: italic; padding: 2px 4px; font-size: 11px; }

/* Codage couleur des liens : fine barre à droite (comme l'original) */
.lien.c1 { border-right-color: #636363; background: rgba(99,99,99,.06); }
.lien.c2 { border-right-color: #0bb573; background: rgba(11,181,115,.07); }
.lien.c3 { border-right-color: #079bd9; background: rgba(7,155,217,.07); }
.lien.c4 { border-right-color: #c707c5; background: rgba(199,7,197,.06); }
.lien.c5 { border-right-color: #e38e08; background: rgba(227,142,8,.08); }
/* Sous-lien (format alpha) : en retrait sous son lien, avec un fin trait de rappel. */
.lien.lien-sous a { padding-left: 16px; position: relative; }
.lien.lien-sous a::before { content: ""; position: absolute; left: 7px; top: 3px; bottom: 3px; border-left: 1px solid var(--bord); }

.box-ajout {
  border: 0; background: transparent; text-align: left;
  color: var(--texte-doux); padding: 2px 4px; cursor: pointer; font-size: 11px; opacity: 0;
}
.colonne:hover .box-ajout { opacity: .6; }
.box-ajout:hover { color: var(--accent); opacity: 1; }

@media (max-width: 900px) { .colonnes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .colonnes { grid-template-columns: 1fr; } }

/* Page publique d'une boîte partagée */
.page-partage { background: var(--fond); min-height: 100vh; }
.partage-wrap { max-width: 460px; margin: 0 auto; padding: 26px 18px 50px; }
.partage-tete { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.partage-auteur { color: var(--texte-doux); font-size: 13px; }
.box-publique { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.box-publique .box-titre { padding: 10px 12px; font-weight: 600; }
.partage-pied { text-align: center; margin-top: 22px; }
.partage-pied a { color: var(--accent); text-decoration: none; font-size: 13px; }

/* Boîtes reçues en partage (lecture seule) */
.partage-de { font-size: 15px; color: var(--texte-doux); margin: 18px 0 8px; }
.partage-recus { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; align-items: start; }

/* Page de compte */
.compte { background: var(--fond); }
.compte-wrap { max-width: 560px; margin: 0 auto; padding: 22px 20px 60px; }
.compte h1 { font-size: 22px; margin: 0 0 18px; }
.compte-carte {
  background: var(--carte); border: 1px solid var(--bord); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 18px;
}
.compte-carte h2 { font-size: 16px; margin: 0 0 14px; }
.compte-carte label { display: block; margin-bottom: 12px; color: var(--texte-doux); font-size: 13px; }
.compte-carte input[type=text], .compte-carte input[type=email],
.compte-carte input[type=password], .compte-carte select {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px;
  border: 1px solid var(--bord); border-radius: 6px; background: var(--fond); color: var(--texte);
}
.compte-check { display: flex; align-items: center; gap: 8px; }
.compte-check input { margin: 0; }
.compte-carte button {
  padding: 9px 18px; border: 0; border-radius: 6px; background: var(--accent);
  color: var(--sur-accent, #fff); font-size: 14px; cursor: pointer;
}

/* Bandeau d'installation iOS */
.ios-install {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
  background: var(--carte); border: 1px solid var(--bord); border-radius: 10px;
  padding: 12px 40px 12px 16px; font-size: 13px; color: var(--texte);
  box-shadow: 0 6px 24px rgba(0,0,0,.18); max-width: 460px; margin: 0 auto;
}
.ios-install-x {
  position: absolute; top: 6px; right: 8px; border: 0; background: transparent;
  color: var(--texte-doux); font-size: 20px; cursor: pointer; line-height: 1;
}

/* Espace d'administration */
.admin { background: var(--fond); }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 22px 20px 60px; }
.admin-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin h1 { margin: 0 0 4px; font-size: 22px; }
.admin-sous { color: var(--texte-doux); font-size: 13px; margin: 4px 0 18px; }
.admin-fil { margin: 0 0 10px; }
.admin-fil a, .admin-table a { color: var(--accent); text-decoration: none; }
.admin-ok { color: var(--succes, #2e7d52); font-weight: 600; margin: 8px 0; }
.admin-vide { color: var(--texte-doux); font-style: italic; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--carte); border: 1px solid var(--bord); border-radius: 8px; overflow: hidden; margin-bottom: 26px; }
.admin-table th, .admin-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--bord); font-size: 13px; }
.admin-table thead th { background: var(--accent-doux); color: var(--texte-doux); font-weight: 600; white-space: nowrap; }
.admin-table th.num, .admin-table td.num { text-align: right; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tr.cliquable { cursor: pointer; }
.admin-table tr.cliquable:hover { background: var(--accent-doux); }
.admin-table.tri thead a { color: var(--texte-doux); }
.admin-url { color: var(--texte-doux); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-admin { display: inline-block; padding: 1px 7px; border-radius: 10px; background: var(--neutre, #5a6a75); color: var(--sur-accent, #fff); font-size: 11px; }

.i18n-table td { vertical-align: top; }
.i18n-table textarea { width: 100%; border: 1px solid var(--bord); border-radius: 5px; background: var(--fond); color: var(--texte); padding: 5px 7px; font: inherit; resize: vertical; }
.i18n-cle code { font-size: 12px; color: var(--accent); }
.i18n-ctx { font-size: 11px; color: var(--texte-doux); }
.i18n-barre { position: sticky; bottom: 0; padding: 12px 0; background: var(--fond); }

.admin-tuiles { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 26px; }
.tuile { background: var(--carte); border: 1px solid var(--bord); border-radius: 8px; padding: 12px 18px; min-width: 92px; }
.tuile-val { display: block; font-size: 22px; font-weight: 700; color: var(--accent); }
.tuile-lib { display: block; font-size: 12px; color: var(--texte-doux); margin-top: 2px; }

/* ================= Chrome APPLICATION mobile (app connectée) ================= */
.tabbar { display: none; }

@media (max-width: 600px) {
  body { -webkit-tap-highlight-color: transparent; }

  /* Barre d'app : titre + menu, onglets de page en bande défilante dessous */
  .entete { padding: 8px 12px 6px; gap: 8px; flex-wrap: wrap; }
  .entete .recherche { display: none; }
  .marque { font-size: 16px; }
  .entete-droite { margin-left: auto; }
  .onglets { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: none; }
  .onglets::-webkit-scrollbar { display: none; }
  .onglet { flex: 0 0 auto; padding: 7px 15px; }

  /* Contenu : cartes, place pour la barre du bas */
  #app { padding: 12px 12px calc(80px + env(safe-area-inset-bottom)); }
  .colonnes { grid-template-columns: 1fr !important; gap: 12px; }
  .box { background: var(--carte); border: 1px solid var(--bord); border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.05); overflow: hidden; }
  .box.drag-en-cours { opacity: .5; }
  .box-poignee { display: none; }
  .box-tete { padding: 13px 12px 11px; border-bottom: 1px solid var(--bord); margin: 0; background: transparent; }
  .box-titre { font-size: 15.5px; padding: 0; }
  .box-outils { display: inline-flex; }
  .box-liens { padding: 2px 0 4px; }
  .lien { border-right: 0; }
  .lien.c1 { box-shadow: inset 4px 0 0 #636363; } .lien.c2 { box-shadow: inset 4px 0 0 #0bb573; }
  .lien.c3 { box-shadow: inset 4px 0 0 #079bd9; } .lien.c4 { box-shadow: inset 4px 0 0 #c707c5; } .lien.c5 { box-shadow: inset 4px 0 0 #e38e08; }
  .lien a { font-size: 15px; padding: 13px 12px; gap: 10px; }
  .lien.lien-sous a { padding-left: 30px; }
  .lien.lien-sous a::before { left: 16px; top: 8px; bottom: 8px; }
  .lien-fav { width: 20px; height: 20px; flex-basis: 20px; }
  .lien-outils { display: inline-flex; }
  .lien-outils .ico, .box-outils .ico { padding: 9px 7px; }
  .lien:active, .onglet:active { background: var(--surligne); }
  .box-ajout { opacity: 1; padding: 13px 12px; font-size: 14px; border-top: 1px solid var(--bord); text-align: center; }
  .colonne { gap: 12px; }

  /* Barre d'onglets fixe en bas (le marqueur "app") */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--carte); border-top: 1px solid var(--bord);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 14px rgba(0,0,0,.07);
  }
  .tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    border: 0; background: transparent; color: var(--texte-doux); cursor: pointer;
    font-size: 11px; padding: 4px 0; transition: transform .12s ease, color .12s ease;
  }
  .tab svg { width: 24px; height: 24px; }
  .tab.actif { color: var(--accent); }
  .tab:active { transform: scale(.9); }
  .tab-plus { justify-content: flex-start; }
  .tab-plus-rond {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-top: -16px; margin-bottom: 1px; border-radius: 50%;
    background: var(--accent); color: var(--sur-accent, #fff); box-shadow: 0 5px 14px rgba(47,111,148,.45);
  }
  .tab-plus-rond svg { width: 24px; height: 24px; }

  /* Menu et réglages en feuille du bas */
  .menu-liste {
    position: fixed !important; left: 0; right: 0; bottom: 0; top: auto;
    border-radius: 18px 18px 0 0; min-width: 0;
    padding: 12px 12px calc(84px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 34px rgba(0,0,0,.22);
    animation: sheetUp .22s ease;
  }
  .menu-item { padding: 14px 14px; font-size: 15px; }
  .menu-sep { margin: 6px 4px; }
  @keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

  .reglages { position: fixed; left: 8px; right: 8px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 45; border: 1px solid var(--bord); border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
}

/* ============ Panneau de navigation mobile (boîte -> liens) ============ */
#panneau {
  position: fixed; inset: 0; z-index: 60; background: var(--fond);
  display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1); pointer-events: none;
}
#panneau.ouvert { transform: translateX(0); pointer-events: auto; }
@media (min-width: 601px) { #panneau { display: none; } }
@media (max-width: 600px) { html, body { overflow-x: hidden; } }
.panneau-bar {
  display: flex; align-items: center; gap: 4px; background: var(--entete-fond); color: #fff;
  padding: 10px 8px; padding-top: calc(10px + env(safe-area-inset-top)); flex: 0 0 auto;
}
.panneau-retour { border: 0; background: transparent; color: #fff; padding: 6px 6px; display: inline-flex; cursor: pointer; }
.panneau-retour svg { width: 26px; height: 26px; }
.panneau-retour:active { opacity: .6; }
.panneau-titre { margin: 0; font-size: 17px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panneau-liens { list-style: none; margin: 0; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.panneau-lien { border-bottom: 1px solid var(--bord); }
.panneau-lien a { display: flex; align-items: center; gap: 12px; padding: 16px; color: var(--texte); text-decoration: none; font-size: 16px; }
.panneau-lien .lien-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panneau-lien .lien-fav { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 4px; }
.panneau-lien .chev { width: 20px; height: 20px; flex: 0 0 20px; color: var(--texte-doux); }
.panneau-lien:active { background: var(--surligne); }
.panneau-lien.c1 { box-shadow: inset 4px 0 0 #636363; } .panneau-lien.c2 { box-shadow: inset 4px 0 0 #0bb573; }
.panneau-lien.c3 { box-shadow: inset 4px 0 0 #079bd9; } .panneau-lien.c4 { box-shadow: inset 4px 0 0 #c707c5; } .panneau-lien.c5 { box-shadow: inset 4px 0 0 #e38e08; }
.panneau-vide { padding: 22px 16px; color: var(--texte-doux); font-style: italic; }

/* ============ Écran-lanceur mobile : incontournables ============ */
.incontournables { display: none; }
@media (max-width: 600px) {
  .incontournables { display: block; margin: 2px 0 16px; }
  .incont-titre { font-size: 11px; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .6px; margin: 0 4px 9px; }
  .incont-strip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .incont-strip::-webkit-scrollbar { display: none; }
  .incont-chip { flex: 0 0 auto; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
  .incont-chip:active { transform: scale(.94); }
  .incont-tuile {
    width: 52px; height: 52px; border-radius: 16px; background: var(--carte);
    border: 1px solid var(--bord); box-shadow: 0 2px 10px rgba(0,0,0,.06);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
  }
  .incont-tuile img { width: 30px; height: 30px; object-fit: contain; }
  .incont-pastille { font-weight: 700; color: var(--accent); font-size: 20px; }
  .incont-nom { font-size: 11px; text-align: center; color: var(--texte-doux); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ============ Bouton « i » sur les liens (bulle et feuille : assets/info.css) ============ */
/* Un petit « i » gris pâle, toujours visible, dans tous les affichages (Simple compris) : c'est une information,
   pas un outil d'édition. Au doigt, info.css lui donne une zone tactile de 44 px sans grossir l'icône. */
.lien .info-i { width: 20px; height: 20px; margin: 0 2px 0 0; }
.lien .info-i .ico-info { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .lien .info-i { width: 28px; height: 28px; margin-right: 0; }
  .panneau-lien { display: flex; align-items: center; }
  .panneau-lien a { flex: 1; min-width: 0; }
  .panneau-lien .info-i { width: 32px; height: 32px; margin: 0 6px 0 0; }
  .panneau-lien .info-i .ico-info { width: 15px; height: 15px; }
}

/* ============ Boîte à la volée ============ */
.volee-wrap { max-width: 760px; }
.volee-quota { color: var(--texte-doux); font-size: 13px; margin: 0 0 14px; }
.volee-form label { display: block; margin-bottom: 12px; color: var(--texte-doux); font-size: 13px; }
.volee-form textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; min-height: 76px;
  border: 1px solid var(--bord); border-radius: 8px; background: var(--fond); color: var(--texte);
  font: inherit; font-size: 15px; resize: vertical;
}
.volee-form select {
  display: block; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--bord); border-radius: 6px;
  background: var(--fond); color: var(--texte);
}
.volee-form textarea:focus-visible, .volee-form select:focus-visible, .volee-ex:focus-visible,
.volee-form button:focus-visible, .volee-ajout button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.volee-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.volee-form fieldset:disabled { opacity: .55; }
.volee-exemples { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.volee-ex {
  border: 1px solid var(--bord); border-radius: 999px; background: var(--carte); color: var(--texte);
  padding: 7px 13px; font-size: 13px; cursor: pointer;
}
.volee-ex:hover { border-color: var(--accent); color: var(--accent); }
.volee-note { color: var(--neutre, #5a6a75); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.volee-etat { border: 1px solid var(--bord); border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; background: var(--fond); }
.volee-etat b { display: block; margin-bottom: 4px; color: var(--neutre, #5a6a75); }
.volee-etat p { margin: 0; color: var(--texte-doux); font-size: 14px; line-height: 1.5; }
.volee-demande { color: var(--texte-doux); font-size: 14px; margin: 0 0 16px; }
.volee-demande q { color: var(--texte); }
.volee-attente { display: flex; align-items: center; gap: 12px; }
.volee-rond {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--bord); border-top-color: var(--accent); animation: voleeTour .9s linear infinite;
}
@keyframes voleeTour { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .volee-rond { animation: none; border-top-color: var(--bord); } }
.volee-mention { color: var(--texte-doux); font-size: 13px; margin: 6px 0 14px; }
.volee-ajout { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.volee-ok { color: var(--succes, #2e7d52); font-weight: 600; margin: 0 0 12px; }
.volee-section h3 { font-size: 14px; margin: 16px 0 6px; color: var(--titre); }
.volee-liens { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bord); border-radius: 10px; background: var(--carte); overflow: hidden; }
.volee-lien { display: flex; align-items: center; border-bottom: 1px solid var(--bord); }
.volee-lien:last-child { border-bottom: 0; }
.volee-lien a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--texte); text-decoration: none; }
.volee-lien a:hover { background: var(--surligne); }
.volee-lien a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.volee-lien .lien-fav { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 3px; }
.volee-lien-txt { min-width: 0; display: flex; flex-direction: column; }
.volee-lien-titre { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.volee-lien-dom { font-size: 12px; color: var(--texte-doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.volee-lien .info-i { width: 36px; height: 36px; margin: 0 4px 0 0; }
.volee-hist { list-style: none; margin: 0; padding: 0; }
.volee-hist li { border-bottom: 1px solid var(--bord); }
.volee-hist li:last-child { border-bottom: 0; }
.volee-hist a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; color: var(--texte); text-decoration: none; }
.volee-hist a:hover { color: var(--accent); }
.volee-hist small { color: var(--texte-doux); white-space: nowrap; }
.volee-wrap .bouton, .volee-wrap button.bouton { text-decoration: none; }
.volee-carte { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.volee-carte h2 { font-size: 16px; margin: 0 0 12px; }
@media (max-width: 600px) { .volee-carte { padding: 16px 14px; } }

/* Barre d'accueil publique : quatre boutons tiennent sur une ligne au téléphone */
@media (max-width: 600px) {
  .lp-bar { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .lp-nav { flex-wrap: wrap; gap: 8px 10px; justify-content: flex-end; }
  .lp-nav .lp-btn-ghost { padding: 7px 12px; font-size: 13px; }
}

/* Onglets des envies (sujets choisis sur la page Découverte) dans l'en-tête */
.onglet-envie { text-decoration: none; border: 1px solid rgba(255,255,255,.28); }
.onglet-envie:hover { border-color: rgba(255,255,255,.6); }

/* Page sans aucune boîte */
.colonnes-cachees { display: none; }
.page-vide { max-width: 560px; margin: 48px auto; padding: 0 16px; text-align: center; }
.page-vide h1 { margin: 0 0 10px; font-size: 22px; }
.page-vide p { margin: 0 0 18px; line-height: 1.55; color: var(--texte-doux, #4d5d68); }
.page-vide-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.page-vide .bouton { min-height: 44px; padding: 10px 18px; display: inline-flex; align-items: center; text-decoration: none; }

/* Partage (docs/PARTAGE.md) : le bouton « Partager » de l'en-tête et les onglets des pages suivies. */
.entete-partager {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px; color: #eef3f7; font-size: 12px; text-decoration: none; white-space: nowrap;
}
.entete-partager:hover { background: rgba(255,255,255,.12); color: #fff; }
.entete-partager .pt-ico { width: 13px; height: 13px; }
.onglet-suivi { border-style: dashed; }
@media (max-width: 600px) { .entete-partager { padding: 6px 12px; font-size: 13px; } }

/* Partager une boîte : un clic dans tous les affichages (hors des outils d'édition, que Simple masque). */
.box-partager { display: none; }
.box:hover .box-partager, .box:focus-within .box-partager, body.aff-complet .box-partager { display: inline-flex; }
@media (hover: none) { .box-partager { display: inline-flex; } }

/* ============ Bandeau du tableau : clair par défaut (blanc et gris), comme l'accueil ============
   L'ancien bandeau bleu marine donnait l'impression d'un thème sombre à la connexion. Il ne revient
   qu'avec un thème sombre choisi explicitement (theme-sombre, ardoise, contraste ou data-scheme="dark"). */
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) {
  --entete-fond: #ffffff;
  --entete-bord: #e4e8ec;
}
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .marque { color: #1f2a33; opacity: 1; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .onglet { color: #5b6b77; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .onglet:hover { color: #1f2a33; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .onglet.actif { background: transparent; color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .onglet-plus,
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .qui { color: #8a97a0; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .recherche { background: #f4f6f8; color: #1f2a33; border-color: #e4e8ec; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .recherche::placeholder { color: #8a97a0; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .recherche:focus { background: #ffffff; border-color: var(--accent); }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .menu-bouton { color: #5b6b77; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .menu-bouton:hover { color: #1f2a33; background: #f0f2f4; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .panneau-bar { border-bottom: 1px solid #e4e8ec; color: #1f2a33; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .panneau-bar,
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .panneau-retour,
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .panneau-titre { color: #1f2a33; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .onglet-envie { border-color: #e4e8ec; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .onglet-envie:hover { border-color: #b8c4cc; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .entete-partager { color: #3a4a56; border-color: #d5dce2; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .entete-partager:hover { color: #1f2a33; background: #f0f2f4; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .palette--entete .palette__bouton { color: #5b6b77; border-color: #d5dce2; }
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .palette--entete .palette__bouton:hover,
html:not([data-scheme="dark"]) body:not(.theme-sombre):not(.theme-ardoise):not(.theme-contraste) .palette--entete .palette__bouton[aria-expanded="true"] { color: #1f2a33; border-color: #b8c4cc; background: #f0f2f4; }

/* Textes juridiques (src/juridique.php) : phrase d'acceptation à la création de compte, liens en pied de page
   (connexion, inscription, compte). */
.jur-accord a { color: #2f6f94; }
.cx-pied, .login-pied, .compte-jur { max-width: 440px; margin: 14px auto 28px; padding: 0 16px; text-align: center; color: #5a6a75;
  font-size: 12.5px; line-height: 1.7; }
.cx-pied a, .login-pied a, .compte-jur a { color: #5a6a75; }

/* Pour commencer : page ou onglet sans boîte (src/menu_alpha.php). Petit, dense, sans gros bouton. */
.pour-commencer { max-width: 760px; margin: 28px auto; text-align: left; }
.pour-commencer h1 { font-size: 18px; margin: 0 0 4px; }
.pour-commencer h2 { font-size: 13px; margin: 18px 0 6px; color: var(--texte-doux, #4d5d68); font-weight: 600; text-transform: none; }
.pour-commencer > p { margin: 0 0 12px; font-size: 13px; line-height: 1.45; }
.pc-tuiles, .pc-boites { list-style: none; margin: 0; padding: 0; }
.pc-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.pc-tuiles a { display: block; padding: 8px 10px; border: 1px solid #dfe4e8; border-radius: 6px; background: #fff; color: inherit; text-decoration: none; }
.pc-tuiles a:hover { border-color: #3d5a80; }
.pc-tuiles strong { display: block; font-size: 13px; color: #1f2a33; }
.pc-tuiles span { display: block; font-size: 12px; color: #5a6a75; margin-top: 2px; }
.pc-creer { margin: 8px 0 0 !important; }
.pc-creer button { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: #3d5a80; cursor: pointer; text-decoration: underline; }
.pc-boites { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 8px; }
.pc-boites li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 8px; padding: 6px 8px; border: 1px solid #e3e6ea; border-radius: 6px; background: #fff; font-size: 13px; }
.pc-nom { font-weight: 600; color: #1f2a33; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-nb { grid-column: 1; font-size: 12px; color: #5a6a75; }
.pc-boites .pn-ajout { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.pc-boites .pc-ajout { min-height: 0; padding: 3px 9px; font: inherit; font-size: 12px; border: 1px solid #3d5a80; background: #fff; color: #3d5a80; border-radius: 5px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.pc-boites .pc-ajout:hover { background: #3d5a80; color: #fff; }
.pc-boites .pc-ajout svg { width: 11px; height: 11px; }
.page-vide[hidden] { display: none; }

/* ---------- Mode « Ranger » (ranger.js) : déplacer ses liens d'une boîte à l'autre ---------- */
.rg-barre {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 46;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 24px);
  padding: 8px 8px 8px 14px; border: 1px solid var(--bord); border-radius: 12px; background: var(--carte); box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.rg-barre[hidden] { display: none; }
.rg-barre p { margin: 0; font-size: 13.5px; color: var(--texte-doux); }
.rg-barre .bouton { flex: none; min-height: 40px; padding: 8px 18px; font-size: 14px; white-space: nowrap; }
body.rg-actif #app { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.rg-actif .box[draggable] { outline: 1px dashed var(--bord); outline-offset: 2px; }
body.rg-actif .box[draggable]:hover { outline-color: var(--accent); }
body.rg-actif .box[draggable] .lien { cursor: grab; }
body.rg-actif .box[draggable] .lien a { pointer-events: none; }
body.rg-actif .lien-outils, body.rg-actif .box-outils, body.rg-actif .box-poignee { display: none !important; }
body.rg-actif .lien.rg-tire { opacity: .45; }
body.rg-actif .lien.rg-choisi { background: var(--surligne); box-shadow: inset 3px 0 0 var(--accent); }
body.rg-a-choisi .box[draggable] { cursor: copy; }

/* Mode d'édition d'une boîte du tableau (crayon, masquer.js) : ses outils restent affichés et chaque lien a sa poignée
   pour le déplacer dans la boîte ou vers une autre (glisser.js, enregistré par l'API lien_deplacer). */
.box-tete .pn-editer { width: 22px; height: 20px; margin-left: 2px; }
.box[data-edition] .box-outils, .box[data-edition] .lien-outils { display: inline-flex; }
.box[data-edition] .box-poignee { visibility: hidden; }
.box[data-edition] .lien .pn-glisser { margin: 0 0 0 -2px; }
.box .lien.pn-tire { border-right-color: transparent; }
body.rg-actif .pn-editer, body.rg-actif .pn-glisser { display: none !important; }
@media (max-width: 600px) {
  .box-tete .pn-editer { width: 40px; height: 40px; margin: -10px -6px -10px 0; }
  .box[data-edition] .lien .pn-glisser { width: 40px; height: 40px; margin: 0; }
}

/* Boîtes privées (src/prive.php) : cadenas discret dans l'en-tête, annonce brève, bloc de la promesse. */
.box-prive { display: inline-flex; align-items: center; color: var(--texte-doux); margin: 0 3px; flex: none; }
.box-prive .ico-cadenas, .js-box-prive .ico-cadenas { display: block; }
.box-privee-masquee .box-titre { cursor: default; display: inline-flex; gap: 4px; align-items: center; }
.box-privee-masquee .vide { display: flex; gap: 6px; align-items: center; color: var(--texte-doux); }
.annonce-tableau {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; max-width: min(560px, 92vw);
  background: var(--carte, #fff); color: var(--texte, #3a3a3a); border: 1px solid var(--bord, #e4e8ec);
  border-radius: 8px; padding: 9px 14px; font-size: 13px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.prive-bloc h2 { display: flex; align-items: center; gap: 7px; }
.prive-bloc ul { margin: 6px 0 10px; padding-left: 20px; }
.prive-bloc li { margin: 3px 0; }
.prive-limites { color: var(--texte-doux); font-size: 13px; }
