/* Posalisa en ligne : la charte du site posalisa.com (blanc cassé, encre noire, or, bulles pastel), comme les réglages de l'iPad */
:root {
  --fond: #f6f6f4; --texte: #111111; --or: #a5701c; --champagne: #d9982f; --doux: #6b6b6b;
  --carte: #ffffff; --vert: #2f9e6b; --rouge: #a3454f; --orange: #d98a00;
  --ombre: 0 10px 30px rgba(17, 17, 17, .08);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--texte); background: var(--fond);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background-color: var(--fond);
  /* Les bulles pastel du site : pêche, rose, lavande, bleu brume */
  background-image: radial-gradient(40vmax 40vmax at 8% 4%, #fbe1d2cc, transparent 70%), radial-gradient(38vmax 38vmax at 94% 12%, #f8dfe6cc, transparent 70%),
    radial-gradient(42vmax 42vmax at 14% 96%, #e7e0f6cc, transparent 70%), radial-gradient(40vmax 40vmax at 92% 88%, #dce8f5cc, transparent 70%);
  background-attachment: fixed; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Barre du haut */
.barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid rgba(217, 152, 47, .45); background: var(--fond);
  position: sticky; top: 0; z-index: 5; }
.marque { text-decoration: none; font-weight: 600; letter-spacing: -.035em; font-size: 24px; line-height: 1; white-space: nowrap; }
.marque i { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.16em; letter-spacing: -.01em; margin-left: .1em; position: relative; display: inline-block; }
.marque i svg { position: absolute; left: 8%; width: 88%; bottom: -.2em; height: .2em; overflow: visible; }
.marque i svg path { fill: none; stroke: #d9982f; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.barre nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.barre nav a, .lien { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--doux); font-weight: 600;
  background: none; border: 0; cursor: pointer; }
.barre nav a.actif, .barre nav a:hover, .lien:hover { color: var(--texte); background: rgba(217, 152, 47, .22); }

main { padding: clamp(16px, 4vw, 40px); max-width: 1240px; margin: 0 auto; }
h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 22px; margin: 0 0 14px; }
.sous { color: var(--doux); margin: 0 0 24px; }
.ligne-titre { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; cursor: pointer;
  padding: 12px 22px; font-weight: 700; background: var(--texte); color: #fff; box-shadow: 0 6px 18px rgba(17, 17, 17, .18); }
.bouton:hover { filter: brightness(1.12); }
.bouton.or { background: var(--or); }
.bouton.clair { background: #fff; color: var(--texte); border: 1.5px solid rgba(217, 152, 47, .7); box-shadow: none; }
.bouton.danger { background: #fff; color: var(--rouge); border: 1.5px solid rgba(163, 69, 79, .4); box-shadow: none; }
.bouton:disabled { opacity: .5; cursor: default; }

/* Connexion */
.connexion { max-width: 420px; margin: 8vh auto; background: var(--carte); border-radius: 28px; padding: 36px; box-shadow: var(--ombre); }
.connexion .marque { display: block; text-align: center; margin-bottom: 22px; font-size: 26px; }
.connexion p { color: var(--doux); text-align: center; margin: 0 0 22px; }
label.champ { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; color: var(--doux); }
label.champ input, label.champ select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid rgba(217, 152, 47, .6); background: #fff; font-size: 16px; color: var(--texte); }
input:focus, select:focus { outline: 2px solid var(--champagne); outline-offset: 1px; }
.connexion .bouton { width: 100%; margin-top: 8px; }
.erreur { color: var(--rouge); font-weight: 600; min-height: 22px; margin: 8px 0 0; text-align: center; }

/* Pilules (En ce moment / À venir / Passés, et onglets de l'événement) */
.pilules { display: inline-flex; background: rgba(217, 152, 47, .18); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 22px; flex-wrap: wrap; }
.pilules button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--doux); }
.pilules button.actif { background: #fff; color: var(--texte); box-shadow: 0 2px 8px rgba(17, 17, 17, .1); }
.pilules .nombre { opacity: .6; font-weight: 600; margin-left: 4px; }

/* Grille des événements */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.carte-ev { position: relative; background: var(--carte); border-radius: 22px; box-shadow: var(--ombre); overflow: hidden; cursor: pointer;
  border: 1px solid rgba(217, 152, 47, .35); transition: transform .15s ease, box-shadow .15s ease; }
.carte-ev:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(17, 17, 17, .12); }
.carte-ev .apercu { height: 150px; background: linear-gradient(135deg, #f3ead7, #e9edf3); display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800; color: rgba(135, 103, 47, .55); letter-spacing: .05em; }
.carte-ev .corps { padding: 16px 18px 18px; }
.carte-ev h3 { margin: 0 0 4px; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-ev .date { color: var(--doux); font-size: 14px; }
.carte-ev .chiffres { display: flex; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--doux); }
.carte-ev .chiffres b { color: var(--texte); font-size: 15px; }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.badge.live { background: var(--vert); color: #fff; }
.trois-points { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
  cursor: pointer; font-size: 18px; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.menu { position: absolute; top: 50px; right: 10px; background: #fff; border-radius: 16px; box-shadow: 0 14px 36px rgba(17, 17, 17, .2); padding: 6px; z-index: 3; min-width: 170px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.menu button:hover { background: rgba(217, 152, 47, .2); }
.menu button.danger { color: var(--rouge); }
.vide { text-align: center; color: var(--doux); padding: 60px 20px; background: rgba(255,255,255,.6); border-radius: 22px; border: 1.5px dashed rgba(217, 152, 47, .6); }

/* Page de l'événement */
.retour { display: inline-block; margin-bottom: 10px; color: var(--or); font-weight: 700; text-decoration: none; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tuile { background: var(--carte); border-radius: 24px; padding: 22px; box-shadow: var(--ombre); border: 1px solid rgba(217, 152, 47, .3); }
.tuile .tete { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--or); letter-spacing: .02em; margin-bottom: 10px; }
.tuile .gros { font-size: 40px; font-weight: 800; margin: 4px 0 6px; }
.tuile p { color: var(--doux); margin: 6px 0 0; line-height: 1.45; }
.rail { height: 8px; border-radius: 4px; background: rgba(17, 17, 17, .08); overflow: hidden; margin: 6px 0 10px; }
.rail div { height: 100%; border-radius: 4px; background: var(--vert); }

.preparation { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.menu-parties { position: sticky; top: 90px; background: var(--carte); border-radius: 22px; padding: 10px; box-shadow: var(--ombre); }
.menu-parties button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 12px 14px; border-radius: 14px;
  cursor: pointer; font-weight: 700; color: var(--doux); }
.menu-parties button.actif { background: rgba(217, 152, 47, .25); color: var(--texte); }
.boite { background: var(--carte); border-radius: 24px; padding: 8px 24px; box-shadow: var(--ombre); }
.reglage { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(217, 152, 47, .3); }
.reglage:last-child { border-bottom: 0; }
.reglage b { display: block; }
.reglage small { display: block; color: var(--doux); margin-top: 3px; line-height: 1.4; }
.reglage input[type=text], .reglage input[type=date], .reglage select { padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(217, 152, 47, .6); background: #fff; min-width: 200px; }
.compteur { display: inline-flex; align-items: center; gap: 10px; }
.compteur button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(217, 152, 47, .7); background: #fff; cursor: pointer; font-size: 20px; font-weight: 600; }
.compteur span { min-width: 34px; text-align: center; font-weight: 800; font-size: 18px; }
.interrupteur { position: relative; width: 54px; height: 32px; flex: none; }
.interrupteur input { opacity: 0; width: 0; height: 0; }
.interrupteur span { position: absolute; inset: 0; background: rgba(17, 17, 17, .15); border-radius: 999px; transition: .2s; cursor: pointer; }
.interrupteur span::after { content: ""; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.interrupteur input:checked + span { background: var(--vert); }
.interrupteur input:checked + span::after { transform: translateX(22px); }
.enregistre { color: var(--vert); font-weight: 700; font-size: 14px; min-height: 20px; }

/* Listes (bornes, comptes) */
.liste { background: var(--carte); border-radius: 24px; box-shadow: var(--ombre); padding: 6px 22px; }
.liste .ligne { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(217, 152, 47, .3); flex-wrap: wrap; }
.liste .ligne:last-child { border-bottom: 0; }
.liste small { color: var(--doux); display: block; margin-top: 3px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.code { font-size: 44px; font-weight: 800; letter-spacing: .25em; text-align: center; padding: 18px; background: #fdf1d8; border-radius: 18px; border: 1.5px solid var(--orange); margin: 10px 0; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 700; background: #fdf1d8; padding: 10px 14px; border-radius: 12px; display: inline-block; letter-spacing: .05em; }

/* Fenêtre */
.voile { position: fixed; inset: 0; background: rgba(17, 17, 17, .35); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
.fenetre { background: var(--fond); border-radius: 26px; padding: 28px; width: min(480px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.fenetre .actions { justify-content: flex-end; margin-top: 18px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--texte); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

@media (max-width: 760px) {
  .preparation { grid-template-columns: 1fr; }
  .menu-parties { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .menu-parties button { white-space: nowrap; width: auto; }
  .reglage { flex-direction: column; align-items: flex-start; }
  .reglage input[type=text], .reglage input[type=date], .reglage select { min-width: 0; width: 100%; }
}

/* Préparation : plusieurs cartes à droite, comme sur l'iPad */
#boites { display: grid; gap: 18px; }
.boite { padding: 18px 24px 8px; }
.boite h2 { font-size: 18px; margin: 4px 0 2px; color: var(--or); letter-spacing: .01em; }
.boite .aide { color: var(--doux); margin: 2px 0 6px; line-height: 1.45; font-size: 14px; }
.reglage.large { display: block; }
.segments { display: inline-flex; flex-wrap: wrap; background: rgba(217, 152, 47, .18); border-radius: 14px; padding: 3px; gap: 2px; }
.segments button { border: 0; background: none; padding: 9px 14px; border-radius: 11px; cursor: pointer; font-weight: 700; color: var(--doux); }
.segments button.actif { background: #fff; color: var(--texte); box-shadow: 0 2px 8px rgba(17, 17, 17, .1); }
.cartes-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.cartes-choix button { text-align: left; border: 1.5px solid rgba(217, 152, 47, .6); background: #fff; border-radius: 16px; padding: 14px; cursor: pointer; }
.cartes-choix button.actif { border-color: var(--or); box-shadow: 0 0 0 2px rgba(135, 103, 47, .25); }
.cartes-choix small { display: block; color: var(--doux); margin-top: 4px; line-height: 1.35; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles button { border: 1.5px solid rgba(217, 152, 47, .7); background: #fff; border-radius: 999px; padding: 9px 15px; cursor: pointer; font-weight: 700; color: var(--doux); }
.pastilles button.actif { background: var(--vert); border-color: var(--vert); color: #fff; }
.estompe { opacity: .45; }
.accessoires details { border-bottom: 1px solid rgba(217, 152, 47, .3); padding: 10px 0; }
.accessoires details:last-child { border-bottom: 0; }
.accessoires summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.accessoires summary::-webkit-details-marker { display: none; }
.accessoires .choisir { color: var(--or); font-weight: 700; font-size: 14px; }
.case { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.case input { width: 20px; height: 20px; accent-color: var(--vert); }
.case small { color: var(--doux); }
.accessoires .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; padding: 12px 0 4px 30px; }

/* Images : modèles, décors, accueil */
.modeles { display: grid; gap: 8px; }
.modele { display: grid; grid-template-columns: 28px 84px 1fr auto auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px;
  background: #fff; border: 1px solid rgba(217, 152, 47, .35); }
.modele.tenue { box-shadow: 0 14px 30px rgba(17, 17, 17, .18); opacity: .95; }
.modele img { width: 84px; height: 126px; object-fit: contain; background: #ecebe7; border-radius: 8px; }
.modele .nom small { display: block; color: var(--doux); margin-top: 2px; }
.poignee { cursor: grab; font-size: 22px; color: var(--doux); text-align: center; touch-action: none; user-select: none; }
.petit { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--doux); font-weight: 600; }
.interrupteur.mini { width: 40px; height: 24px; }
.interrupteur.mini span::after { width: 18px; height: 18px; }
.interrupteur.mini input:checked + span::after { transform: translateX(16px); }
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.vignette { position: relative; border: 2px solid rgba(217, 152, 47, .5); background: #fff; border-radius: 16px; padding: 8px; cursor: pointer; text-align: center; }
.vignette img, .vignette .sans { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: #ecebe7; border-radius: 10px; }
.vignette .sans { display: flex; align-items: center; justify-content: center; color: var(--doux); }
.vignette b { display: block; font-size: 13px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vignette.actif { border-color: var(--vert); }
.vignette i { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--vert); color: #fff; font-style: normal; font-weight: 800; line-height: 26px; }
.vignette:not(.actif) img { opacity: .5; }
.vignette.ajouter { display: flex; flex-direction: column; align-items: center; justify-content: center; border-style: dashed; min-height: 180px; color: var(--or); }
.vignette.ajouter span { font-size: 40px; }
.images-accueil { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.image-accueil .cadre-image { aspect-ratio: 4 / 3; background: #ecebe7; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--doux); font-size: 14px; }
.image-accueil img { width: 100%; height: 100%; object-fit: contain; }
.image-accueil b { display: block; margin: 8px 0 6px; }
.bouton.petit { padding: 8px 14px; font-size: 14px; }
@media (max-width: 760px) { .modele { grid-template-columns: 24px 48px 1fr auto; } .modele .petit { grid-column: 3; } }
.reglage > .segments, .reglage > .compteur, .reglage > select { flex-shrink: 0; }
.segments { flex-wrap: nowrap; }
@media (max-width: 760px) { .segments { flex-wrap: wrap; } }

/* Photos de l'événement */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo { position: relative; border: 0; padding: 0; background: #ecebe7; border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 2 / 3; box-shadow: var(--ombre); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.photo:hover img { transform: scale(1.03); }
.photo .lecture { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; line-height: 34px; font-size: 14px; }
.fenetre.large { width: min(760px, 100%); }
.grande img, .grande video { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: 14px; background: #000; }

/* Tuile Remerciement */
.tuile.remerciement b { display: block; margin: 12px 0 4px; }
.tuile.remerciement .lien { background: #fdf1d8; border-radius: 10px; padding: 8px 10px; font-size: 13px; word-break: break-all; }
.tuile.remerciement .actions { margin-top: 8px; }

/* Cartes : l'image d'accueil de l'événement (comme sur l'iPad) */
.carte-ev .apercu { position: relative; height: 190px; overflow: hidden; }
.carte-ev .apercu img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.carte-ev .apercu span { position: relative; }
.carte-ev .apercu img + span { display: none; }
.carte-ev .experiences { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.carte-ev .experiences i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--or); background: rgba(217, 152, 47, .18); border-radius: 999px; padding: 3px 9px; }

/* En ce moment / À venir / Passés : trois boutons séparés, de la même taille */
.pilules.groupes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: none; padding: 0; width: min(620px, 100%); }
.pilules.groupes button { background: #fff; border: 1.5px solid rgba(217, 152, 47, .6); padding: 12px 10px; border-radius: 16px; text-align: center; }
.pilules.groupes button.actif { background: var(--texte); border-color: var(--texte); color: #fff; box-shadow: 0 6px 18px rgba(17, 17, 17, .18); }
.pilules.groupes .nombre { display: inline-block; margin-left: 6px; opacity: .7; }
.actions.ajout { margin-bottom: 6px; }

/* Expériences : le nom en grand, puis les modèles dans la même carte */
.boite h2.grand { font-size: 28px; color: var(--texte); margin: 6px 0 4px; letter-spacing: -.01em; }
.boite .sous-titre { color: var(--or); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 4px 0 4px; }
.boite .sous-titre + small { display: block; color: var(--doux); margin-bottom: 12px; }

/* Expériences : bandeau bleu nuit, textes ivoire */
.boite.experience { padding-top: 0; overflow: hidden; }
.entete-exp { background: var(--texte); color: var(--fond); margin: 0 -24px 14px; padding: 18px 24px 6px; }
.entete-exp h2.grand { color: var(--fond); }
.entete-exp .reglage { border-bottom-color: rgba(250, 247, 240, .18); }
.entete-exp .reglage:last-child { border-bottom: 0; }
.entete-exp small { color: rgba(250, 247, 240, .78); }
.entete-exp .compteur span { color: var(--fond); }
.entete-exp .segments { background: rgba(250, 247, 240, .14); }
.entete-exp .segments button { color: rgba(250, 247, 240, .8); }
.entete-exp .segments button.actif { background: var(--fond); color: var(--texte); }

/* L'interrupteur à côté du nom de l'expérience : allumé = proposée */
.entete-exp .titre-exp { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.entete-exp .titre-exp h2.grand { margin: 0; }
.entete-exp.seul { padding-bottom: 18px; }
.entete-exp .titre-exp + .reglage { border-top: 1px solid rgba(250, 247, 240, .18); margin-top: 12px; }

/* Le titre de chaque partie de la Préparation : icône dans une pastille dorée + filet doré */
.titre-partie { display: flex; align-items: center; gap: 16px; margin: 2px 0 0; }
.titre-partie .pastille { width: 56px; height: 56px; border-radius: 16px; background: rgba(217, 152, 47, .28); display: grid; place-items: center; color: var(--texte); flex: none; }
.titre-partie .pastille svg { width: 28px; height: 28px; }
.titre-partie h1 { margin: 0; font-size: 30px; line-height: 1.15; color: var(--texte); }
.filet-or { width: 70px; height: 3px; border-radius: 2px; background: var(--or); margin: 14px 0 22px; }
.menu-parties button { display: flex; align-items: center; gap: 10px; }
.menu-parties button svg { width: 18px; height: 18px; flex: none; opacity: .8; }

/* Expériences, style 2 : carte blanche, l'icône dans une pastille dorée, le nom, l'interrupteur (plus de bandeau bleu) */
.entete-exp { background: none; color: var(--texte); margin: 0 0 6px; padding: 4px 0 0; }
.entete-exp h2.grand, .entete-exp .compteur span { color: var(--texte); }
.entete-exp .reglage { border-bottom-color: rgba(217, 152, 47, .35); }
.entete-exp small { color: var(--doux); }
.entete-exp .segments { background: rgba(217, 152, 47, .18); }
.entete-exp .segments button { color: var(--texte); }
.entete-exp .segments button.actif { background: var(--texte); color: var(--fond); }
.entete-exp.seul { padding-bottom: 0; }
.entete-exp .titre-exp h2.grand { flex: 1; font-size: 26px; }
.entete-exp .titre-exp + .reglage { border-top: 1px solid rgba(217, 152, 47, .35); }
.titre-exp .pastille { width: 48px; height: 48px; border-radius: 14px; background: rgba(217, 152, 47, .28); display: grid; place-items: center; color: var(--texte); flex: none; }
.titre-exp .pastille svg { width: 24px; height: 24px; }

/* Expériences : un peu d'air au-dessus du nom */
.entete-exp { padding-top: 12px; }
/* Filtres : de vraies vignettes (la photo d'exemple passée dans le filtre) */
.vignettes.filtres .vignette img { aspect-ratio: 1; object-fit: cover; }
/* Accessoires : petits aperçus dans la ligne du thème, puis chaque accessoire en image */
details summary .apercus { display: inline-flex; gap: 6px; margin-left: auto; margin-right: 12px; }
details summary .apercus img { width: 34px; height: 34px; object-fit: contain; }
@media (max-width: 700px) { details summary .apercus { display: none; } }
.items .acc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; padding: 8px 6px; border-radius: 12px;
  border: 1px solid rgba(217, 152, 47, .5); background: #fff; cursor: pointer; font-size: 12px; text-align: center; opacity: .55; }
.items .acc input { position: absolute; opacity: 0; pointer-events: none; }
.items .acc img { width: 64px; height: 64px; object-fit: contain; }
.items .acc i { display: none; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--vert); color: #fff; font-style: normal; font-size: 12px; line-height: 20px; }
.items .acc:has(input:checked) { opacity: 1; border: 2px solid var(--vert); }
.items .acc:has(input:checked) i { display: block; }
.accessoires .items { grid-template-columns: repeat(auto-fill, 96px); gap: 10px; }
.items .acc { width: auto; }
.reglage b.valeur { font-size: 18px; white-space: nowrap; }

/* Vidéo IA : le tableau durée × qualité */
.grille-video { display: grid; grid-template-columns: 70px repeat(4, 1fr); gap: 8px; align-items: center; margin-top: 10px; }
.grille-video > b { text-align: center; color: var(--doux); font-size: 13px; }
.grille-video > b:nth-child(5n+1) { text-align: left; color: var(--texte); font-size: 14px; }
.grille-video button { border: 1px solid rgba(217, 152, 47, .6); background: var(--fond); border-radius: 12px; padding: 14px 4px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--texte); }
.grille-video button.actif { border: 2px solid var(--vert); color: var(--vert); background: rgba(47, 158, 107, .1); font-weight: 700; }

.grille-video.photo-ia { grid-template-columns: 100px repeat(3, 1fr); }
.grille-video.photo-ia > b:nth-child(5n+1) { text-align: center; color: var(--doux); font-size: 13px; }
.grille-video.photo-ia > b:nth-child(4n+1) { text-align: left; color: var(--texte); font-size: 14px; }

/* Les vignettes gardent leur taille pendant que l'image arrive : rien ne bouge quand la page se redessine */
.vignettes .vignette img, .vignettes .vignette .sans { aspect-ratio: 2 / 3; width: 100%; object-fit: contain; }
.vignettes.filtres .vignette img { aspect-ratio: 1; object-fit: cover; }

/* Bornes : arrêts imprévus de la semaine */
.alerte-plantage { display: block; color: var(--rouge); margin-top: 2px; }

/* File d'envoi d'une borne (page Bornes) */
.file-envoi{display:block;margin-top:4px}
.file-envoi .rouge{color:#c0392b}
.file-envoi .vert{color:#2f9e6b;font-weight:600}

/* Veille : les messages */
textarea[data-veille-messages],textarea[data-questions-message]{width:100%;margin-top:8px;font:inherit;font-size:16px;padding:10px 12px;border:1px solid #e3d5b4;border-radius:12px;background:#fffdf8;resize:vertical}

/* Comptes clients (26/11) */
.bas-form{text-align:center;font-size:15px;margin:10px 0 0;color:var(--doux,#6b6b6b)}
.bas-form a{color:var(--or,#a5701c);font-weight:700}
.forfait{display:inline-block;font-size:12px;font-weight:700;padding:2px 10px;border-radius:999px;margin-left:6px;background:#eef3ee;color:#2f7a52}
.forfait-essai{background:#fdf3df;color:#a06a00}.forfait-termine{background:#fbe5e2;color:#b03a2e}.forfait-offert{background:#eef0f6;color:#3d4a68}
#ligne-inscriptions{margin-bottom:16px}

/* CGU et confidentialité (26/11) */
.case-cgu{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;margin:6px 0 14px;color:#3d4a68}
.case-cgu input{margin-top:3px;width:18px;height:18px;flex:none}
.case-cgu a,.liens-legaux a{color:var(--or,#a5701c)}
.liens-legaux{text-align:center;font-size:13px;color:#7a7f88;margin:18px 0}
.liens-legaux.gauche{text-align:left;max-width:440px}

/* Crédits IA (26/11) */
.reglage .droite { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.bouton.petit { padding: 8px 16px; font-size: 14px; }
.annonce { background: #fff6e0; border-radius: 16px; padding: 14px 18px; margin: 0 0 18px; line-height: 1.45; }
.annonce.ok { background: #e6f5ec; color: #1d6b47; font-weight: 600; }
.boite.solde { max-width: 640px; margin: 0 0 26px; }
.reglage b.gros { font-size: 34px; color: var(--or); white-space: nowrap; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; max-width: 760px; margin: 8px 0 12px; }
.pack { position: relative; background: var(--carte); border-radius: 24px; box-shadow: var(--ombre); padding: 24px 20px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px solid transparent; }
.pack.mis-en-avant { border-color: var(--champagne); }
.pack .remise { position: absolute; top: 14px; right: 14px; background: var(--or); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 700; }
.fenetre .pack .remise { top: -12px; right: 50%; transform: translateX(50%); white-space: nowrap; }
.pack .nombre { font-size: 42px; line-height: 1; }
.pack .unite { color: var(--doux); font-weight: 600; }
.pack .equivalent { color: var(--doux); font-size: 13px; line-height: 1.45; margin: 10px 0 6px; flex: 1; }
.pack .prix { font-size: 24px; margin: 4px 0 12px; }
.pack .prix small { font-size: 13px; color: var(--doux); font-weight: 500; }
.pack .bouton { width: 100%; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 980px; margin-top: 22px; }
.deux-colonnes .boite { margin: 0; }
.reglage b.moins { color: var(--doux); white-space: nowrap; }
.reglage b.plus { color: var(--vert); white-space: nowrap; }

/* ---------------- Capacité (administrateur, 27/11) ---------------- */
.pastille-etat { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pastille-etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pastille-etat.ok { color: var(--vert); background: rgba(47, 158, 107, .12); }
.pastille-etat.attention { color: var(--orange); background: rgba(217, 138, 0, .13); }
.pastille-etat.urgent { color: var(--rouge); background: rgba(163, 69, 79, .13); }
.cap-haut { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.cap-clients, .cap-palier, .cap-r, .cap-chiffres > div { background: var(--carte); border-radius: 22px; box-shadow: var(--ombre); padding: 20px 22px; min-width: 0; }
.cap-clients > small, .cap-palier > small { display: block; color: var(--doux); }
.cap-clients > b { display: block; font-size: clamp(44px, 6vw, 64px); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cap-palier > b { display: block; font-size: 30px; margin: 2px 0 10px; }
.cap-palier ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.cap-palier li + li { margin-top: 4px; }
.cap-forfaits { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 14px; font-size: 14px; }
.cap-forfaits span { display: inline-flex; align-items: center; gap: 6px; }
.cap-forfaits i { width: 10px; height: 10px; border-radius: 3px; }
.cap-forfaits .essai { background: var(--champagne); } .cap-forfaits .abonne { background: var(--vert); }
.cap-forfaits .offert { background: #8aa3c4; } .cap-forfaits .termine { background: #c9c3b8; }
.cap-courbe { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-bottom: 10px; }
.cap-courbe i { flex: 1; background: linear-gradient(var(--champagne), var(--or)); border-radius: 3px 3px 0 0; min-height: 3px; }
.cap-chiffres { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.cap-chiffres b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.cap-chiffres small { color: var(--doux); font-size: 13px; }
.cap-chiffres .rouge b { color: var(--rouge); }
.cap-ressources { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 26px; }
.cap-r { border: 2px solid transparent; }
.cap-r.attention { border-color: rgba(217, 138, 0, .45); } .cap-r.urgent { border-color: rgba(163, 69, 79, .55); }
.cap-r-haut { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.cap-r-val { font-size: 15px; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.cap-r-val b { font-size: 24px; }
.cap-r-val em { font-style: normal; font-size: 12px; color: var(--doux); background: rgba(217, 152, 47, .22); padding: 2px 7px; border-radius: 6px; }
.cap-r small { color: var(--doux); font-size: 13px; }
.cap-conseil { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.jauge { height: 8px; border-radius: 99px; background: rgba(17, 17, 17, .08); overflow: hidden; margin: 6px 0 8px; }
.jauge i { display: block; height: 100%; border-radius: 99px; transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.jauge i.ok { background: var(--vert); } .jauge i.attention { background: var(--orange); } .jauge i.urgent { background: var(--rouge); }
@media (max-width: 900px) { .cap-haut { grid-template-columns: 1fr; } .cap-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.liste + h2, .cap-ressources + h2 { margin-top: 30px; }
.cap-connexions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: end; background: var(--carte); border-radius: 22px; box-shadow: var(--ombre); padding: 20px 22px; margin-bottom: 16px; }
.cap-cx-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cap-cx-chiffres b { display: block; font-size: 30px; font-variant-numeric: tabular-nums; }
.cap-cx-chiffres small, .cap-connexions > div > small { color: var(--doux); font-size: 13px; }
.cap-courbe.bleu i { background: linear-gradient(#a9c2e3, #4f75a8); }
.bandeau-capacite { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px clamp(16px, 4vw, 40px); font-size: 14px; }
.bandeau-capacite.attention { background: #fff3d6; color: #6b4a00; }
.bandeau-capacite.urgent { background: #f8dcdf; color: #6e1d26; }
.bandeau-capacite a { font-weight: 700; margin-right: 10px; }
.bandeau-capacite span { opacity: .7; }
@media (max-width: 900px) { .cap-connexions { grid-template-columns: 1fr; } .cap-cx-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.prompt-perso{width:100%;border:1px solid #e3d5b4;border-radius:14px;padding:14px;background:#fffdf8;display:flex;flex-direction:column;gap:10px}
.prompt-perso .entete{display:flex;justify-content:space-between;align-items:center}
.prompt-perso textarea{width:100%;font:inherit;font-size:16px;padding:10px 12px;border:1px solid #e3d5b4;border-radius:12px;background:#fff;resize:vertical;margin-top:6px}
.prompt-perso input[type=text]{width:100%;margin-top:6px}

/* Mon entreprise : le logo du loueur (29/11) */
.logo-entreprise { display: grid; gap: 10px; margin: 6px 0 16px; }
.logo-entreprise .cadre-image { height: 110px; background: #ecebe7; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--doux); font-size: 14px; padding: 14px; }
.logo-entreprise .cadre-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-entreprise .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.logo-entreprise small { color: var(--doux); }
#f-ent .case { margin: 6px 0 2px; }

/* Avant le lancement (29/11) */
.cap-lancement { background: #fff; border-radius: 18px; padding: 6px 20px 16px; margin: 0 0 24px; box-shadow: var(--ombre); }
.cap-lancement summary { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 14px; padding: 14px 0 8px; cursor: pointer; list-style: none; }
.cap-lancement summary::-webkit-details-marker { display: none; }
.cap-lancement summary b { font-size: 18px; }
.cap-lancement summary .jauge { margin: 0; }
.cap-lancement h3 { font-size: 14px; color: var(--doux); font-weight: 600; margin: 18px 0 6px; }
.cap-lancement .etape.faite b { color: var(--doux); }
.cap-lancement .le { color: var(--vert); }
.case-etape { display: flex; align-items: center; gap: 8px; flex: none; }
.case-etape input { width: 22px; height: 22px; accent-color: var(--texte); }
.case-etape em { font-style: normal; font-size: 12px; color: var(--orange); }
.verifie { flex: none; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.verifie.oui { color: var(--vert); background: #2f9e6b14; }
.verifie.non { color: var(--rouge); background: #a3454f12; }
.robot { margin: 4px 0 12px; display: flex; justify-content: center; }
.robot:empty { margin: 0; }
/* La préparation en groupes (30/11/2026) : Visuels, Expériences, Partage & impression */
.menu-parties .groupe-parties { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--doux); padding: 14px 14px 4px; }
.menu-parties button.dans-groupe { padding-left: 14px; }
@media (max-width: 760px) { .menu-parties .groupe-parties { display: none; } .menu-parties button.dans-groupe { padding-left: 14px; } }
/* Visuels (30/11/2026) : les 4 couches d'une photo, celle de la page mise en avant */
.couches { display: grid; gap: 6px; margin: 4px 0; }
.couche { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(17, 17, 17, .15); opacity: .55; }
.couche b { min-width: 92px; }
.couche small { color: var(--doux); }
.couche.ici { opacity: 1; border: 2px solid var(--champagne); background: rgba(217, 152, 47, .12); }
.couche-invites { border-style: solid; background: rgba(17, 17, 17, .03); }
.aide-couches { color: var(--doux); font-size: 13px; margin: 4px 0 0; }
@media (max-width: 760px) { .couche { flex-direction: column; gap: 2px; } }
/* Mon compte (30/11/2026) : une colonne au centre, plus large, en onglets */
.mon-compte { max-width: 760px; margin: 0 auto; }
.mon-compte > h1, .mon-compte > .sous { text-align: center; }
.mon-compte > .pilules { display: flex; width: fit-content; margin: 0 auto 26px; }
.mon-compte .boite, .mon-compte form.connexion { max-width: none; margin: 0 0 20px; }
.mon-compte .liens-legaux { text-align: center; }
.formats { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; }
.format { display: grid; justify-items: center; gap: 4px; padding: 12px 16px; border-radius: 14px; background: rgba(217, 152, 47, .08); min-width: 130px; text-align: center; }
.format .forme { display: block; border: 2px solid var(--champagne); border-radius: 4px; background: #fff; margin: 0 0 4px; }
.format small { color: var(--doux); }
/* L'outil des zones photo (30/11/2026) */
.outil-zones { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.outil-zones canvas { border-radius: 10px; box-shadow: var(--ombre); background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; touch-action: none; cursor: move; max-width: 100%; }
.outil-commandes { display: grid; gap: 8px; flex: 1; min-width: 200px; }
.outil-commandes b { font-size: 13px; margin-top: 6px; }
.etapes-modele { margin: 12px 0 4px; padding-left: 20px; color: var(--doux); font-size: 14px; line-height: 1.5; }
.etapes-modele b { color: var(--texte); }
/* Supprimer un modèle, un overlay ou un décor ; « Décor » sous chaque modèle d'une expérience (30/11/2026) */
.modele .supprimer { border: 0; background: none; color: var(--rouge); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.modele .supprimer:hover { background: rgba(163, 69, 79, .1); }
.modele .supprimer svg, .supprimer-texte svg { width: 18px; height: 18px; }
.vignette-bloc { display: grid; gap: 6px; align-content: start; }
.vignette-bloc .vignette { width: 100%; }
.supprimer-texte { border: 0; background: none; color: var(--rouge); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 4px; border-radius: 8px; }
.supprimer-texte:hover { background: rgba(163, 69, 79, .1); }
.decor-modele { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--doux); }
/* Plus rien ne bouge quand un réglage change (30/11/2026) : la place de la barre de défilement est toujours gardée,
   et les aides qui changent de longueur ont une hauteur fixe */
html { overflow-y: scroll; scrollbar-gutter: stable; }
.reglage.aide-stable small { display: block; min-height: 4.4em; }
.image-accueil .actions { margin-top: 12px; }
.logo-ia { max-width: 280px; margin: 8px auto 0; text-align: center; }
.logo-ia .actions { justify-content: center; }
.aides-superposees { display: grid; }
.aides-superposees > span { grid-area: 1 / 1; }
.aides-superposees > span.cachee { visibility: hidden; }
/* La Préparation (30/11/2026) : la droite garde au moins la hauteur de l'écran (le menu de gauche ne remonte pas),
   le titre a toujours la même forme (grande partie en petit, puis le nom) */
/* (la hauteur de la droite : voir « Préparation façon app » plus bas) */
.titre-partie .groupe-titre { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or); margin-bottom: 2px; }
.menu-parties button svg { width: 18px; height: 18px; }
/* La Préparation façon app (30/11/2026) : le menu et la droite défilent chacun de leur côté, la page ne bouge pas */
@media (min-width: 761px) {
  .preparation { height: var(--hauteur-prep, calc(100vh - 260px)); min-height: 420px; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
  .preparation .menu-parties { position: static; overflow-y: auto; align-self: start; max-height: 100%; }
  .preparation #boites { min-height: 0; grid-auto-rows: max-content; align-content: start; overflow-y: auto; overscroll-behavior: contain; padding: 0 10px 40px; margin: 0 -10px; }
}
label.champ textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(217, 152, 47, .6);
  background: #fff; font: inherit; font-size: 16px; font-weight: 400; color: var(--texte); resize: vertical; }
/* Composer un prompt avec des cases (30/11/2026) */
.composer { border: 1px dashed rgba(217, 152, 47, .7); border-radius: 12px; padding: 10px 14px; background: #fff; }
.composer summary { cursor: pointer; font-weight: 700; color: var(--or); }
.composer .cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.composer .cases label.champ { margin: 0; }
.grand-apercu { text-align: center; } .grand-apercu img { max-width: 100%; max-height: 65vh; border-radius: 8px; box-shadow: var(--ombre); }
