

.ligne-ordonnable{
  display:flex;align-items:center;gap:10px;
  padding:0;border-bottom:1px solid var(--ligne,#e3e8e5);cursor:default;
}
.ligne-ordonnable:last-child{border-bottom:none}

.ligne-bascule.ligne-ordonnable{padding:0}

.ligne-bascule-corps{
  display:flex;align-items:center;gap:12px;flex:1;min-width:0;
  padding:11px 2px;margin:0;cursor:pointer;
  font-size:14px;color:var(--txt,#20292e);
}

.ordre-fleches{display:flex;flex-direction:column;gap:2px;flex:0 0 auto}
.ordre-fleche{
  width:26px;height:19px;line-height:1;padding:0;
  background:none;border:1px solid var(--ligne,#e3e8e5);border-radius:5px;
  color:var(--gris,#687279);font:inherit;font-size:11px;cursor:pointer;
}
.ordre-fleche:hover:not([disabled]){
  border-color:var(--accent,#34783b);color:var(--accent,#34783b);
  background:var(--accent-clair,#edf6ec);
}

.ordre-fleche[disabled]{opacity:.28;cursor:default}

.btn-ajouter{
  margin:10px 0 0;padding:8px 15px;
  background:none;border:1px dashed var(--ligne,#e3e8e5);border-radius:7px;
  color:var(--gris,#687279);font:inherit;font-size:13px;font-weight:600;cursor:pointer;
}
.btn-ajouter:hover{
  border-color:var(--accent,#34783b);color:var(--accent,#34783b);
  background:var(--accent-clair,#edf6ec);
}
.btn-ajouter[hidden]{display:none}

@media(max-width:560px){
  .ordre-fleches{flex-direction:row;gap:4px}
  .ordre-fleche{width:38px;height:34px;font-size:14px}
}

.sr{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;
}

.ann-actions{width:1%;white-space:nowrap;text-align:right}

.ligne-cliquable .ann-actions{cursor:default}

.mfa-qr{
  display:inline-block;margin:4px 0 14px;padding:10px;
  background:#fff;border:1px solid var(--ligne,#e3e8e5);border-radius:10px;
  line-height:0;
}

.mfa-qr svg,
.mfa-qr img{display:block;max-width:100%;height:auto}

.mfa-manuel{margin:0 0 6px}
.mfa-manuel > summary{
  cursor:pointer;font-size:13.5px;font-weight:600;
  color:var(--gris,#687279);padding:6px 0;
}
.mfa-manuel > summary:hover{color:var(--accent,#34783b)}

.nav-repli{margin:0}
.nav-repli > summary.nav-groupe{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  cursor:pointer;list-style:none;

  -webkit-appearance:none;
}
.nav-repli > summary.nav-groupe::-webkit-details-marker{display:none}
.nav-repli > summary.nav-groupe::marker{content:""}

.nav-fleche{
  flex:0 0 auto;width:7px;height:7px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg);transform-origin:60% 60%;
  opacity:.65;transition:transform .18s ease;
}
.nav-repli[open] > summary .nav-fleche{transform:rotate(-135deg)}

.nav-repli > summary.nav-groupe{padding-top:8px;padding-bottom:6px}
.nav-repli > summary.nav-groupe:hover{opacity:.82}

@media (prefers-reduced-motion: reduce){
  .nav-fleche{transition:none}
}

.login-marque{
  display:block;margin:0 auto 22px;
  max-width:260px;width:100%;height:auto;
}

.crm-vues{
  display:inline-flex;gap:6px;padding:4px;margin:0 0 16px;
  background:var(--bg,#f6f8f7);
  border:1px solid var(--ligne,#e3e8e5);border-radius:9px;
}
.crm-vues a{
  padding:7px 18px;border-radius:6px;
  font-size:.85rem;font-weight:600;line-height:1.2;
  color:var(--gris,#687279);text-decoration:none;
  white-space:nowrap;
}
.crm-vues a:hover{color:var(--txt,#20292e)}
.crm-vues a.actif{
  background:var(--carte,#fff);color:var(--txt,#20292e);
  box-shadow:0 1px 2px rgba(16,24,32,.10);
}

@media (max-width:420px){
  .crm-vues a{padding:7px 12px}
}

.btn-occupe{opacity:.72;cursor:progress}
.btn-occupe::after{
  content:"";display:inline-block;vertical-align:-2px;margin-left:9px;
  width:13px;height:13px;border-radius:50%;
  border:2px solid currentColor;border-top-color:transparent;
  animation:btn-tourne .7s linear infinite;
}
@keyframes btn-tourne{to{transform:rotate(360deg)}}

@media (prefers-reduced-motion: reduce){
  .btn-occupe::after{animation:none;border-top-color:currentColor;opacity:.45}
}

.bandeau-support{margin-left:var(--lat, 0)}

@media (max-width:920px){
  .bandeau-support{margin-left:0}
}

.cloche-solde{
  margin:6px 0 0;padding:8px 10px 2px;
  border-top:1px solid var(--ligne,#e3e8e5);
}
.cloche-solde button{
  width:100%;padding:8px 10px;
  background:none;border:none;border-radius:7px;
  color:var(--gris,#687279);font:inherit;font-size:12.5px;font-weight:600;
  text-align:center;cursor:pointer;
}
.cloche-solde button:hover{
  background:var(--accent-clair,#edf6ec);color:var(--accent,#34783b);
}

.legal-doc{
  padding:14px 0;border-bottom:1px solid var(--ligne,#e3e8e5);
}
.legal-doc:first-child{padding-top:0}
.legal-doc:last-child{border-bottom:none}

.legal-doc-tete{
  display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 9px;
}

.legal-doc-tete input[type="text"]{flex:1;min-width:220px}
.legal-doc-publie{
  display:flex;align-items:center;gap:7px;flex:0 0 auto;
  font-size:13.5px;color:var(--gris,#687279);cursor:pointer;
}
.legal-doc textarea{width:100%;resize:vertical;min-height:110px}
.legal-doc-lien{margin:7px 0 0}

@media (max-width:560px){
  .legal-doc-tete input[type="text"]{min-width:0}
}

.cal-num{
  align-self:flex-start;
  font-size:.78rem;font-weight:700;color:var(--gris,#687279);
  line-height:1.6;
}

.cal-case.aujourdhui{box-shadow:none;background:var(--accent-clair,#edf6ec)}
.cal-case.aujourdhui .cal-num{
  background:var(--accent,#34783b);color:#fff;
  min-width:1.55rem;height:1.55rem;line-height:1.55rem;
  border-radius:50%;text-align:center;
}

.cal-case.weekend{background:color-mix(in srgb, var(--bg,#f6f8f7) 55%, var(--carte,#fff))}
.cal-case.weekend.hors{background:var(--bg,#f6f8f7)}
@supports not (color: color-mix(in srgb, red 50%, white)){
  .cal-case.weekend{background:#fafbfa}
}

.cal-jour-long{display:none}

@media (max-width:820px){
  .cal-grille{display:block;border:0;background:none;border-radius:0}
  .cal-entete{display:none}
  .cal-case.vide{display:none}

  .cal-case{
    min-height:0;margin:0 0 8px;padding:11px 13px;
    border:1px solid var(--ligne,#e3e8e5);border-radius:9px;
    gap:6px;
  }

  .cal-case.hors{display:none}

  .cal-num{display:none}
  .cal-jour-long{
    display:block;font-size:.82rem;font-weight:700;
    text-transform:capitalize;color:var(--txt,#20292e);
  }
  .cal-case.aujourdhui .cal-jour-long{color:var(--accent,#34783b)}

  .cal-rdv{
    font-size:.86rem;padding:8px 10px;
    white-space:normal;overflow:visible;text-overflow:clip;
  }
}

.carte-login h1,
.carte-login .site{text-align:center}

.carte-login button[type="submit"]{
  width:100%;display:block;margin-top:4px;
  background:var(--accent,#34783b);border-color:var(--accent,#34783b);
  padding:12px 26px;font-size:15px;font-weight:600;
}
.carte-login button[type="submit"]:hover{
  background:var(--accent-fonce,#2b6431);border-color:var(--accent-fonce,#2b6431);
}

.ann-fiche{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:18px;align-items:start}
.ann-fiche.sans-photo{grid-template-columns:minmax(0,1fr)}

.ann-fiche-photos{display:flex;flex-direction:column;gap:8px;min-width:0}
.ann-fiche-photos .ann-vignette{display:block;border-radius:8px;overflow:hidden;
  background:var(--bg,#f6f8f7);cursor:zoom-in}
.ann-fiche-photos .ann-vignette img{display:block;width:100%;height:auto;
  aspect-ratio:4/3;object-fit:cover}

.ann-fiche-photos .ann-vignette:not(.principale){
  display:inline-block;width:52px;flex:0 0 auto}
.ann-fiche-photos{flex-wrap:wrap;flex-direction:row}
.ann-fiche-photos .ann-vignette.principale{width:100%;flex:0 0 100%}

@media(max-width:720px){
  .ann-fiche{grid-template-columns:minmax(0,1fr)}
}

.champs-natifs{display:flex;flex-direction:column;gap:2px}
.champ-natif{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;
  gap:14px;align-items:center;
  padding:9px 0;border-bottom:1px solid var(--ligne,#e3e8e5);
}
.champ-natif:last-child{border-bottom:none}

.champ-natif input[type="text"]{
  width:100%;padding:9px 11px;font:inherit;font-size:14px;
  border:1px solid var(--ligne-forte,var(--ligne));border-radius:7px;
  background:#fbfcfb;color:var(--txt);
}
.champ-natif input[type="text"]:focus{
  outline:none;border-color:var(--accent);background:#fff;
}

.champ-natif-nom{display:flex;flex-direction:column;gap:3px;min-width:0}
.champ-natif-origine{font-size:11.5px;color:var(--gris);padding-left:2px}
.champ-natif .case{display:flex;align-items:center;gap:7px;white-space:nowrap;
  font-size:13.5px;color:var(--gris,#687279);cursor:pointer}
.champ-natif .case input{width:auto}
.champ-natif-fixe{white-space:nowrap;font-size:12.5px;opacity:.7}

@media(max-width:640px){
  .champ-natif{grid-template-columns:minmax(0,1fr);gap:8px}
  .champ-natif .case,.champ-natif-fixe{justify-self:start}
}

.ann-photos{
  grid-column:1 / -1;margin:4px 0 16px;padding:16px;
  background:var(--bg);
  border:1px dashed var(--ligne-forte,var(--ligne));
  border-radius:var(--rayon-s,8px);
}
.ann-photos-titre{
  display:flex;align-items:baseline;gap:9px;
  font-size:13px;font-weight:600;margin:0 0 12px;
}
.ann-photos-titre .aide{margin:0}
.ann-photos input[type=file]{font-size:13px;max-width:100%}

.ann-vignettes{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(120px,100%),1fr));
  gap:10px;margin:0 0 14px;
}
.ann-vignette{
  position:relative;display:block;border-radius:9px;overflow:hidden;
  background:#e9edea;border:1px solid var(--ligne-forte,var(--ligne));
  cursor:pointer;margin:0;
}
.ann-vignette img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.ann-principale{
  position:absolute;top:6px;left:6px;
  background:var(--accent);color:#fff;border-radius:999px;
  padding:2px 9px;font-size:10.5px;font-weight:700;
}
.ann-retirer{
  display:flex;align-items:center;gap:6px;justify-content:center;
  padding:7px 4px;font-size:12px;color:var(--gris);background:#fff;
}
.ann-retirer input{width:auto;margin:0}

.ann-vignette:has(input:checked){opacity:.45}
.ann-vignette:has(input:checked) .ann-retirer{color:var(--ko);font-weight:600}

.ch-vignette{
  width:64px;height:48px;object-fit:cover;border-radius:7px;flex:none;
  border:1px solid var(--ligne-forte,var(--ligne));
}

.moteur-embarque .saisie-grille{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));
  gap:12px 16px;margin:0 0 12px;
}
.moteur-embarque .saisie-grille .champ{margin:0}
.moteur-embarque .saisie-grille .champ-large{grid-column:1 / -1}
.moteur-embarque .saisie-grille label{
  display:block;font-size:12.5px;font-weight:600;margin:0 0 4px;
}
.moteur-embarque .saisie-grille input,
.moteur-embarque .saisie-grille select,
.moteur-embarque .saisie-grille textarea{
  width:100%;padding:10px 12px;border:1px solid var(--ligne);border-radius:7px;
  background:#fbfcfb;color:var(--txt);font:inherit;font-size:14px;
}
.moteur-embarque .saisie-grille input:focus,
.moteur-embarque .saisie-grille select:focus,
.moteur-embarque .saisie-grille textarea:focus{
  outline:none;border-color:var(--accent);background:#fff;
}
.moteur-embarque .saisie-grille .case{
  display:flex;align-items:center;gap:8px;font-weight:400;margin:0;
}
.moteur-embarque .saisie-grille .case input{width:auto}

.moteur-embarque .liste-ligne{
  display:flex;align-items:center;gap:12px;padding:12px 0;
  border-bottom:1px solid var(--ligne);
}
.moteur-embarque .liste-ligne:last-child{border-bottom:0}
.moteur-embarque .liste-corps{flex:1;min-width:0}
.moteur-embarque .liste-titre{font-weight:700;font-size:13px}
.moteur-embarque .liste-sous{font-size:11px;color:var(--gris);margin-top:3px}

.moteur-embarque .notice{
  padding:14px 16px;background:var(--bg);border:1px solid var(--ligne);
  border-radius:8px;color:var(--gris);font-size:12px;line-height:1.55;margin:0;
}

.moteur-embarque .crm-corriger{
  margin-top:12px;padding-top:10px;border-top:1px solid var(--ligne);
}
.moteur-embarque .crm-corriger > summary{
  cursor:pointer;font-size:13px;color:var(--gris);list-style:none;
}
.moteur-embarque .crm-corriger > summary::-webkit-details-marker{display:none}
.moteur-embarque .crm-corriger > summary::before{content:"\25B8 ";font-size:11px}
.moteur-embarque .crm-corriger[open] > summary::before{content:"\25BE "}
.moteur-embarque .crm-corriger[open] > summary{margin-bottom:12px}

.moteur-embarque .btn.petit{padding:6px 12px;font-size:12px}

.presta-etat{
  display:inline-block;margin-left:8px;padding:2px 9px;border-radius:999px;
  font-size:10.5px;font-weight:700;vertical-align:middle;
  background:var(--ligne);color:var(--gris);
}
.presta-etat.on{background:var(--ok-bg,#e6f4ea);color:var(--ok,#1D723F)}

.modale-suppr{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin:18px 0 0;padding:14px 0 0;
  border-top:1px solid var(--ligne);
}
.modale-suppr .aide{margin:0;flex:1;min-width:180px}

.legal-doc-tete input[type="text"]{
  padding:9px 11px;font:inherit;font-size:14px;
  border:1px solid var(--ligne-forte,var(--ligne));border-radius:7px;
  background:#fbfcfb;color:var(--txt);
}
.legal-doc-tete input[type="text"]:focus{
  outline:none;border-color:var(--accent);background:#fff;
}

.moteur-embarque{
  --ligne-forte:#dce2df;

  --accent-degrade:linear-gradient(90deg,#347a3b,#4b9147);
  --rayon:9px; --rayon-s:7px;
  --ombre:0 2px 5px rgba(15,30,20,.025);
  --ombre-h:0 6px 18px rgba(15,30,20,.07);
  --warn:#ae751d; --warn-bg:#fff7e6;
  --past-vert:#edf7ee;   --past-vert-txt:#43884b;
  --past-bleu:#edf5fa;   --past-bleu-txt:#3e769d;
  --past-ambre:#fff7e7;  --past-ambre-txt:#b77d20;
  --past-violet:#f3effb; --past-violet-txt:#6c55a8;
  --past-rouge:#fff0ef;  --past-rouge-txt:#ca5149;
}
.moteur-embarque .tableau-crm{width:100%;border-collapse:collapse;font-size:.92rem;display:block;
  overflow-x:auto;white-space:nowrap}
.moteur-embarque .tableau-crm thead th{text-align:left;padding:0 12px 10px;font-size:.72rem;font-weight:600;
  text-transform:uppercase;letter-spacing:.05em;opacity:.6;border-bottom:1px solid #d8dee3}
.moteur-embarque .tableau-crm td{padding:13px 12px;border-bottom:1px solid #e8edf0;vertical-align:top;
  white-space:normal}
.moteur-embarque .tableau-crm tr:last-child td{border-bottom:none}
.moteur-embarque .tableau-crm tr.statut-annule{opacity:.5}
.moteur-embarque .tableau-crm .sous{display:block;font-size:.8rem;opacity:.7;margin-top:2px}
.moteur-embarque .tableau-crm .actions-crm{white-space:nowrap}
.moteur-embarque .tableau-crm .actions-crm .btn{margin:0 4px 4px 0}
.moteur-embarque .crm-resume{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.moteur-embarque .crm-chiffre{flex:1 1 165px;background:var(--carte);border:1px solid var(--ligne);
  border-radius:12px;padding:14px 16px}
.moteur-embarque .crm-chiffre b{display:block;font-size:26px;line-height:1.1;font-family:"Segoe UI",Roboto,sans-serif}
.moteur-embarque .chiffre-txt > span{display:block;font-size:12px;color:var(--gris);margin-top:3px}
.moteur-embarque .crm-chiffre.attente b{color:#8a6100}
.moteur-embarque .crm-chiffre.confirme b{color:var(--ok)}
@media (max-width:560px){
.moteur-embarque .crm-chiffre{flex:1 1 100%}
}
.moteur-embarque .saisie-grille .champ-case{display:flex;align-items:center}
.moteur-embarque .page-actions{display:flex;flex-wrap:wrap;gap:10px}
@media (max-width:920px){
.moteur-embarque .page-actions{width:100%}
.moteur-embarque .page-actions .btn{flex:1 1 auto;text-align:center}
}
.moteur-embarque .ligne-bascule-seule{border-bottom:none;padding:9px 0}
.moteur-embarque .crm-chiffre{display:flex;align-items:center;gap:13px}
.moteur-embarque .chiffre-ico{
  flex:none;width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--bg);color:var(--gris);
}
.moteur-embarque .chiffre-ico .ico{width:21px;height:21px}
.moteur-embarque .chiffre-txt{display:block;min-width:0}
.moteur-embarque .crm-chiffre.attente .chiffre-ico{background:#fff4de;color:#8a6100}
.moteur-embarque .crm-chiffre.confirme .chiffre-ico{background:var(--ok-bg);color:var(--ok)}
.moteur-embarque .bloc-outils,.moteur-embarque .panneau,.moteur-embarque .bloc-liste,.moteur-embarque .crm-tuile,.moteur-embarque .crm-chiffre,.moteur-embarque .crm-carte,.moteur-embarque .dem,.moteur-embarque .demande{
  border-color:var(--ligne);
  border-radius:var(--rayon);
  box-shadow:var(--ombre);
}
.moteur-embarque .crm-resume{gap:14px;margin-bottom:20px}
.moteur-embarque .crm-chiffre{padding:18px 20px;gap:15px;flex:1 1 175px}
.moteur-embarque .crm-chiffre b{font-size:28px;font-weight:700;color:var(--txt);letter-spacing:-.02em}
.moteur-embarque .crm-chiffre.attente b,.moteur-embarque .crm-chiffre.confirme b{color:var(--txt)}
.moteur-embarque .chiffre-txt > span{font-size:13px;color:var(--gris);margin-top:1px}
.moteur-embarque .chiffre-ico{width:44px;height:44px;background:var(--past-vert);color:var(--past-vert-txt)}
.moteur-embarque .crm-chiffre.attente .chiffre-ico{background:var(--past-ambre);color:var(--past-ambre-txt)}
.moteur-embarque .crm-chiffre.confirme .chiffre-ico{background:var(--past-vert);color:var(--past-vert-txt)}
.moteur-embarque .tableau-crm{font-size:13.5px}
.moteur-embarque .tableau-crm thead th{
  padding:0 14px 12px;font-size:11px;letter-spacing:.07em;color:var(--gris);opacity:1;
  border-bottom:1px solid var(--ligne);
}
.moteur-embarque .tableau-crm td{padding:15px 14px;border-bottom:1px solid var(--ligne)}
.moteur-embarque .colonne-cote .bloc-outils{padding:22px}
.moteur-embarque .colonne-cote .bloc-outils h2{font-size:16px}
.moteur-embarque .bloc-outils,.moteur-embarque .panneau,.moteur-embarque .bloc-liste,.moteur-embarque .crm-tuile,.moteur-embarque .crm-chiffre,.moteur-embarque .crm-carte,.moteur-embarque .dem,.moteur-embarque .demande{
  border:1px solid var(--ligne);
  border-radius:var(--rayon);
  box-shadow:var(--ombre);
}
.moteur-embarque .btn.principal,.moteur-embarque .barre-enregistrer .btn.large,.moteur-embarque .page-actions .btn:not(.sec):not(.danger):not(.dgr){
  color:#fff;border-color:var(--accent);background:var(--accent-degrade);
}
.moteur-embarque .btn.principal:hover,.moteur-embarque .barre-enregistrer .btn.large:hover,.moteur-embarque .page-actions .btn:not(.sec):not(.danger):not(.dgr):hover{
  background:linear-gradient(90deg,#2d6a33,#41823e);border-color:var(--accent-fonce);color:#fff;
}
.moteur-embarque .page-actions{gap:10px}
.moteur-embarque .crm-resume{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px;
}
.moteur-embarque .crm-chiffre{padding:16px 18px;gap:14px;min-height:80px;align-items:center;flex:none}
.moteur-embarque .crm-chiffre b{font-size:20px;font-weight:800;color:var(--txt);letter-spacing:0}
.moteur-embarque .crm-chiffre.attente b,.moteur-embarque .crm-chiffre.confirme b{color:var(--txt)}
.moteur-embarque .chiffre-txt > span{font-size:12px;color:var(--gris);margin-top:2px}
.moteur-embarque .chiffre-ico{width:42px;height:42px;background:var(--past-vert);color:var(--past-vert-txt)}
.moteur-embarque .chiffre-ico .ico{width:19px;height:19px}
.moteur-embarque .crm-chiffre.attente .chiffre-ico{background:var(--past-ambre);color:var(--past-ambre-txt)}
.moteur-embarque .crm-chiffre.confirme .chiffre-ico{background:var(--past-vert);color:var(--past-vert-txt)}
@media(max-width:1180px){
.moteur-embarque .crm-resume{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){
.moteur-embarque .crm-resume{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.moteur-embarque .duo-colonnes,.moteur-embarque .grille-crm{
  display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:22px;align-items:start;
}
.moteur-embarque .duo-colonnes > *,.moteur-embarque .grille-crm > *{min-width:0}
@media(max-width:1180px){
.moteur-embarque .duo-colonnes,.moteur-embarque .grille-crm{grid-template-columns:minmax(0,1fr)}
}
.moteur-embarque .crm-filtres-barre{
  display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:12px;
  padding:16px;border-bottom:1px solid #edf0ee;
}
.moteur-embarque .crm-filtres-barre input,.moteur-embarque .crm-filtres-barre select{
  width:100%;border:1px solid var(--ligne-forte);border-radius:7px;
  background:#fbfcfb;padding:10px 12px;color:#374147;font:inherit;font-size:14px;
}
.moteur-embarque .crm-filtres-barre input:focus,.moteur-embarque .crm-filtres-barre select:focus{
  outline:none;border-color:var(--accent);
}
@media(max-width:850px){
.moteur-embarque .crm-filtres-barre{grid-template-columns:1fr}
}
.moteur-embarque .table-defile{position:relative;overflow:auto;padding:0 12px 10px}
.moteur-embarque .tableau-crm{border-collapse:collapse;width:100%;min-width:680px;display:table;white-space:normal}
.moteur-embarque .tableau-crm th{
  text-align:left;color:#69737a;font-size:11px;font-weight:700;
  padding:14px 10px 10px;border-bottom:1px solid var(--ligne);
  text-transform:none;letter-spacing:0;opacity:1;
}
.moteur-embarque .tableau-crm td{padding:12px 10px;border-bottom:1px solid #edf0ee;font-size:12px;color:#3d474c}
.moteur-embarque .tableau-crm tr:last-child td{border-bottom:none}
.moteur-embarque .tableau-crm .sous{font-size:11px;color:var(--gris);margin-top:3px}
.moteur-embarque .colonne-cote .bloc-outils{padding:18px}
.moteur-embarque .colonne-cote .bloc-outils h2{font-size:17px}
.moteur-embarque .detail-liste{margin:0}
.moteur-embarque .detail-ligne{
  display:flex;gap:14px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid #edf0ee;
}
.moteur-embarque .detail-ligne:last-child{border-bottom:none}
.moteur-embarque .detail-ligne dt{flex:0 0 105px;font-size:11px;font-weight:700;color:#59636a}
.moteur-embarque .detail-ligne dd{margin:0;flex:1 1 180px;min-width:0;font-size:13px;color:#3d474c}
.moteur-embarque .detail-ligne dd a{color:var(--accent);text-decoration:none}
.moteur-embarque .detail-ligne dd a:hover{text-decoration:underline}
.moteur-embarque .mini-photo{
  width:64px;height:48px;object-fit:cover;border-radius:6px;
  border:1px solid var(--ligne);display:block;
}
.moteur-embarque .statut-ligne{
  display:grid;grid-template-columns:26px minmax(0,1fr) 190px 110px;
  gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #edf0ee;
}
.moteur-embarque .statut-ligne:last-of-type{border-bottom:none}
.moteur-embarque .statut-rang{
  width:24px;height:24px;border-radius:50%;display:flex;
  align-items:center;justify-content:center;
  background:var(--bg);border:1px solid var(--ligne-forte);
  font-size:11px;font-weight:700;color:var(--gris);
}
.moteur-embarque .statut-ligne input[type=text],.moteur-embarque .statut-ligne select{
  width:100%;border:1px solid var(--ligne-forte);border-radius:7px;
  background:#fbfcfb;padding:9px 11px;font:inherit;font-size:14px;color:#374147;
}
.moteur-embarque .statut-ligne input:focus,.moteur-embarque .statut-ligne select:focus{outline:none;border-color:var(--accent)}
.moteur-embarque .statut-usage{font-size:12px;color:var(--gris);text-align:right}
.moteur-embarque .statut-usage .aide{margin:0;font-size:12px}
@media(max-width:850px){
.moteur-embarque .statut-ligne{grid-template-columns:26px minmax(0,1fr);gap:8px}
.moteur-embarque .statut-usage{grid-column:2;text-align:left}
}
.moteur-embarque .cal-nav{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.moteur-embarque .cal-nav strong{font-size:1rem;text-transform:capitalize;min-width:150px}
.moteur-embarque .cal-nav .mini{line-height:1;padding:5px 11px}
.moteur-embarque .cal-rdv .cal-h{font-weight:700;margin-right:4px}
.moteur-embarque .cal-rdv .cal-qui{opacity:.85}
.moteur-embarque .cal-chambres{border-collapse:collapse;font-size:.8rem;width:100%}
.moteur-embarque .cal-chambres th,.moteur-embarque .cal-chambres td{border:1px solid var(--ligne);padding:0;text-align:center}
.moteur-embarque .cal-chambres thead th{
  background:var(--bg);font-size:.68rem;font-weight:700;color:var(--gris);
  padding:6px 0;min-width:22px;
}
.moteur-embarque .cal-chambres thead th.aujourdhui{background:var(--accent);color:#fff}
.moteur-embarque .cal-ch-nom{
  text-align:left;padding:8px 12px;white-space:nowrap;font-weight:600;
  background:var(--carte);position:sticky;left:0;z-index:1;
  border-right:2px solid var(--ligne-forte);
}
.moteur-embarque .cal-nuit{height:34px;width:22px}
.moteur-embarque .cal-nuit.aujourdhui{box-shadow:inset 0 0 0 2px var(--accent)}
.moteur-embarque .cal-nuit a{display:block;width:100%;height:100%}
.moteur-embarque .cal-nuit a span{display:block;width:100%;height:100%}
.moteur-embarque .cal-nuit.confirmed a span{background:#8fbe95}
.moteur-embarque .cal-nuit.pending   a span{background:#e3c07d}
.moteur-embarque .cal-nuit.paid      a span{background:#a898d3}
.moteur-embarque .cal-nuit.new       a span{background:#8fb2cd}
.moteur-embarque .cal-nuit.cancelled a span{background:#e0a9a4}
@media(max-width:700px){
.moteur-embarque .cal-rdv .cal-h{margin-right:0}
.moteur-embarque .cal-rdv .cal-qui{display:none}
.moteur-embarque .cal-nav strong{min-width:0;font-size:.92rem}
}
.moteur-embarque .gal-photos{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.moteur-embarque .gal-photo{
  display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;align-items:center;
  padding:8px;background:var(--bg);border:1px solid var(--ligne);
  border-radius:var(--rayon-s);
}
.moteur-embarque .gal-photo.couverture{border-color:var(--accent);background:var(--accent-clair)}
.moteur-embarque .gal-photo img{
  width:74px;height:56px;object-fit:cover;display:block;
  border-radius:5px;border:1px solid var(--ligne);
}
.moteur-embarque .gal-photo-corps{display:flex;flex-wrap:wrap;gap:7px;align-items:center;min-width:0}
.moteur-embarque .gal-photo-corps .badge{flex:0 0 auto}
.moteur-embarque .gal-photo-corps input[type=text]{
  flex:1 1 160px;min-width:0;padding:7px 10px;font-size:13px;
  border:1px solid var(--ligne);border-radius:5px;background:var(--carte);color:var(--txt);
}
.moteur-embarque .gal-photo-corps input[type=text]:focus{outline:none;border-color:var(--accent)}
.moteur-embarque .gal-photo-actions{display:flex;gap:4px;flex:0 0 auto}
.moteur-embarque .gal-photo-actions .mini{padding:5px 9px;line-height:1;font-size:13px}
.moteur-embarque .gal-photo-actions .mini[disabled]{opacity:.3;cursor:default}
.moteur-embarque .gal-form-cache{display:none}
@media(max-width:560px){
.moteur-embarque .gal-photo{grid-template-columns:56px minmax(0,1fr)}
.moteur-embarque .gal-photo img{width:56px;height:44px}
.moteur-embarque .gal-photo-corps input[type=text]{flex:1 1 100%}
.moteur-embarque .gal-photo-actions{gap:7px}
.moteur-embarque .gal-photo-actions .mini{padding:10px 14px;font-size:15px}
}
.moteur-embarque .crm-taux{
  margin:-8px 0 18px;padding:9px 14px;
  background:var(--accent-clair);border:1px solid #cfe3cd;border-radius:var(--rayon-s);
  font-size:13.5px;color:var(--txt);
}
.moteur-embarque .crm-taux strong{color:var(--accent);font-size:15px}
.moteur-embarque .crm-taux span{color:var(--gris);margin-left:6px}
.moteur-embarque .champ-ligne{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,120px) minmax(0,1.6fr) auto;
  gap:10px;align-items:center;
  margin:0 0 8px;padding:8px 10px;
  background:var(--bg);border:1px solid var(--ligne);border-radius:var(--rayon-s);
}
.moteur-embarque .champ-ligne:last-of-type{margin-bottom:0}
.moteur-embarque .champ-ligne input[type=text],.moteur-embarque .champ-ligne select{
  min-width:0;width:100%;padding:9px 12px;font:inherit;font-size:13.5px;
  border:1px solid var(--ligne);border-radius:6px;
  background:var(--carte);color:var(--txt);
}
.moteur-embarque .champ-ligne input:focus,.moteur-embarque .champ-ligne select:focus{outline:none;border-color:var(--accent)}
.moteur-embarque .champ-ligne .case{
  display:flex;align-items:center;gap:7px;
  font-size:12.5px;color:var(--gris);white-space:nowrap;
}
.moteur-embarque .champ-ligne .case input{width:auto;margin:0}
@media(max-width:760px){
.moteur-embarque .champ-ligne{grid-template-columns:minmax(0,1fr);gap:8px}
}
.moteur-embarque dialog.modale{
  width:min(660px,calc(100vw - 32px));
  max-height:calc(100vh - 64px);
  padding:0;margin:auto;
  background:var(--carte);color:var(--txt);
  border:1px solid var(--ligne);border-radius:var(--rayon);
  box-shadow:0 24px 60px rgba(15,30,20,.22);
  overflow:hidden;
}
.moteur-embarque dialog.modale::backdrop{background:rgba(18,28,22,.46)}
.moteur-embarque dialog.modale[open]:not(:modal){
  position:fixed;inset:0;z-index:60;
}
.moteur-embarque .modale-tete{
  display:flex;align-items:flex-start;gap:14px;
  padding:18px 20px 14px;border-bottom:1px solid var(--ligne);
  background:var(--bg);
}
.moteur-embarque .modale-tete h2{margin:0;font-size:16px;font-weight:700}
.moteur-embarque .modale-tete .aide{margin:4px 0 0;font-size:12.5px;color:var(--gris)}
.moteur-embarque .modale-tete > div{flex:1;min-width:0}
.moteur-embarque .modale-x{
  flex:0 0 auto;width:34px;height:34px;line-height:1;
  background:none;border:1px solid var(--ligne);border-radius:8px;
  color:var(--gris);font-size:20px;cursor:pointer;
}
.moteur-embarque .modale-x:hover{background:var(--ko-bg);border-color:var(--ko);color:var(--ko)}
.moteur-embarque .modale-corps{
  padding:18px 20px;
  overflow-y:auto;
  max-height:calc(100vh - 64px - 66px - 70px);
}
.moteur-embarque .modale-pied{
  display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;
  padding:14px 20px;border-top:1px solid var(--ligne);background:var(--bg);
}
.moteur-embarque .modale .saisie-grille{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));
  gap:14px;
}
.moteur-embarque .modale .saisie-grille .champ-large{grid-column:1/-1}
.moteur-embarque .modale .champ{margin:0}
.moteur-embarque .modale .champ label{display:block;font-size:12.5px;font-weight:600;margin-bottom:5px}
.moteur-embarque .modale .champ input[type=text],.moteur-embarque .modale .champ input[type=date],.moteur-embarque .modale .champ input[type=time],.moteur-embarque .modale .champ input[type=number],.moteur-embarque .modale .champ input[type=email],.moteur-embarque .modale .champ input[type=tel],.moteur-embarque .modale .champ textarea,.moteur-embarque .modale .champ select{
  width:100%;min-width:0;padding:10px 12px;font:inherit;font-size:14px;
  border:1px solid var(--ligne);border-radius:7px;
  background:var(--carte);color:var(--txt);
}
.moteur-embarque .modale .champ textarea{resize:vertical;min-height:74px}
.moteur-embarque .modale .champ input:focus,.moteur-embarque .modale .champ textarea:focus,.moteur-embarque .modale .champ select:focus{
  outline:none;border-color:var(--accent);
}
@media(max-width:560px){
.moteur-embarque dialog.modale{
    width:100vw;max-width:100vw;height:100vh;max-height:100vh;
    border:none;border-radius:0;
  }
.moteur-embarque .modale-corps{max-height:calc(100vh - 66px - 70px)}
.moteur-embarque .modale-pied .btn{flex:1 1 auto;text-align:center}
}
.moteur-embarque .modale-corps .modale-pied{margin:18px -20px -18px;}

.dev-photos{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(110px,100%),1fr));
  gap:8px;margin:12px 0 0;
}
.dev-photos img{
  width:100%;aspect-ratio:4/3;object-fit:cover;display:block;
  border-radius:8px;border:1px solid var(--ligne);cursor:zoom-in;
}

.marqueurs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.marqueurs code{
  background:var(--carte);border:1px solid var(--ligne);border-radius:5px;
  padding:2px 7px;font-size:12px;color:var(--txt);
}
@media (max-width:560px){.moteur-embarque .crm-chiffre{flex:1 1 100%}}
