:root{--fond:#f3f5f7;--carte:#fff;--encre:#1d2a35;--doux:#5d6b78;--ligne:#dde3e9;--bleu:#2f6f8f;--bleu-c:#e3eef4;--or:#b8792e;--or-c:#f7ecdd;--vert:#3d8f5a;--vert-c:#e2f2e7;--rouge:#b5473a;--rouge-c:#f8e4e1;--r:12px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--fond);color:var(--encre);font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
a{color:var(--bleu)}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:600;letter-spacing:-.01em;margin:0 0 .5em}
h1{font-size:1.7rem}h2{font-size:1.25rem}h3{font-size:1.05rem}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:18px;padding:10px 22px;background:#16303f;color:#fff}
.top a{color:#fff;text-decoration:none}
.marque{display:flex;align-items:center;gap:8px;font-family:Georgia,serif;font-size:1.15rem;white-space:nowrap}
.marque svg{width:28px;height:28px;fill:#8fc1d9}.marque .neige{fill:#fff}
.ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.nav{display:flex;gap:4px;flex:1}
.nav a{display:flex;align-items:center;gap:7px;padding:7px 12px;border-radius:9px;font-size:.95rem;opacity:.82}
.nav a:hover,.nav a.actif{background:rgba(255,255,255,.14);opacity:1}
.nav .nav-plus{margin-left:auto;background:#e0a040;color:#16303f!important;opacity:1;font-weight:600}
.nav .nav-plus:hover{background:#f0b75a}
.outils{display:flex;align-items:center;gap:6px}
.outils>a{position:relative;display:flex;padding:7px;border-radius:9px;opacity:.85}
.outils>a:hover,.outils>a.actif{background:rgba(255,255,255,.14);opacity:1}
.outils .pastille{position:absolute;top:-2px;right:-4px;margin:0}
.qui{font-size:.85rem;opacity:.85;white-space:nowrap;margin-left:6px}.qui a{text-decoration:underline}
.pastille{display:inline-block;min-width:20px;padding:0 6px;margin-left:6px;border-radius:10px;background:#e0a040;color:#16303f;font-size:.75rem;font-weight:700;text-align:center;line-height:20px}
.sous-nav{background:#fff;border-bottom:1px solid var(--ligne);position:sticky;top:56px;z-index:15}
.sous-nav div{max-width:1180px;margin:0 auto;padding:0 20px;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.sous-nav a{padding:12px 14px;text-decoration:none;color:var(--doux);font-weight:600;font-size:.92rem;border-bottom:3px solid transparent;white-space:nowrap}
.sous-nav a.actif{color:var(--encre);border-bottom-color:var(--bleu)}
.barre-bas{display:none}
.page{max-width:1180px;margin:0 auto;padding:24px 20px 60px}
.flash{padding:12px 16px;border-radius:var(--r);margin-bottom:18px;background:var(--vert-c);border:1px solid #b9dcc4}
.flash.err{background:var(--rouge-c);border-color:#e9b8b1}
.grille{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.carte{background:var(--carte);border:1px solid var(--ligne);border-radius:var(--r);padding:18px 20px;min-width:0}
.carte h2{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.carte h2 a{font:500 .85rem system-ui,sans-serif}
.chiffre{font:600 2rem/1.1 Georgia,serif}
.sous{color:var(--doux);font-size:.9rem}
.etat{display:flex;align-items:center;gap:14px}
.etat .rond{width:14px;height:14px;border-radius:50%;flex:none}
.entete-page{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.entete-page h1{margin:0}
table{width:100%;border-collapse:collapse;font-size:.94rem}
th,td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--ligne);vertical-align:top}
th{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--doux);font-weight:600}
td.n,th.n{text-align:right;white-space:nowrap}
tr.clic{cursor:pointer}tr.clic:hover td{background:#f7f9fb}
.tab{overflow-x:auto}
.badge{display:inline-block;padding:1px 9px;border-radius:20px;font-size:.78rem;background:#eef1f4;color:#44525e;white-space:nowrap}
.badge.or{background:var(--or-c);color:#7d4f17}.badge.bleu{background:var(--bleu-c);color:#1f5068}
.badge.vert{background:var(--vert-c);color:#28653e}.badge.rouge{background:var(--rouge-c);color:#8d3328}.badge.gris{background:#eef1f4;color:#5d6b78}
.btn,button{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:10px;border:1px solid var(--bleu);background:var(--bleu);color:#fff;font:600 .93rem system-ui,sans-serif;cursor:pointer;text-decoration:none}
.btn.sec,button.sec{background:#fff;color:var(--bleu)}
.btn.danger,button.danger{background:#fff;color:var(--rouge);border-color:#e3b2ab}
.btn.petit,button.petit{padding:5px 10px;font-size:.84rem}
button:disabled{opacity:.6}
form.f{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
form.f .plein{grid-column:1/-1}
label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--doux);font-weight:600}
input,select,textarea{font:16px system-ui,sans-serif;padding:9px 11px;border:1px solid #c9d2da;border-radius:9px;background:#fff;color:var(--encre);width:100%}
textarea{min-height:110px;resize:vertical}
input[type=checkbox]{width:auto}
.ligne-boutons{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.barres{display:grid;gap:8px}
.barre{display:grid;grid-template-columns:150px 1fr 90px;gap:10px;align-items:center;font-size:.9rem}
.barre .b{height:12px;border-radius:6px;background:var(--bleu);min-width:2px}
.vide{color:var(--doux);font-style:italic}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cal .j{min-height:84px;background:#fff;border:1px solid var(--ligne);border-radius:8px;padding:5px;font-size:.8rem;overflow:hidden}
.cal .j.hors{opacity:.45}.cal .j.auj{outline:2px solid var(--bleu)}
.cal .tete{font-weight:600;text-align:center;font-size:.78rem;color:var(--doux);padding:4px 0}
.cal .num{font-weight:600;margin-bottom:3px}
.cal .ev{display:block;color:#fff;border-radius:5px;padding:1px 5px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}
.pre{white-space:pre-wrap;word-wrap:break-word}
.mail-corps{white-space:pre-wrap;word-wrap:break-word;background:#fafbfc;border:1px solid var(--ligne);border-radius:10px;padding:14px;max-height:60vh;overflow:auto;font-size:.92rem}
.legende{display:flex;gap:12px;flex-wrap:wrap;font-size:.85rem}.legende i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px}
.photos{display:flex;gap:10px;flex-wrap:wrap}.photos img{width:140px;height:105px;object-fit:cover;border-radius:8px;border:1px solid var(--ligne)}
.connexion{max-width:420px;margin:10vh auto}
.simple .chiffre{font-size:2.4rem}.simple{font-size:1.1rem}
details summary{cursor:pointer;font-weight:600;color:var(--bleu)}
@media(max-width:900px){
 .nav,.qui{display:none}
 .top{padding:10px 16px;justify-content:space-between}
 .sous-nav{top:52px}.sous-nav div{padding:0 8px}
 .barre-bas{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:30;background:#fff;border-top:1px solid var(--ligne);padding:6px 4px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -4px 18px rgba(22,48,63,.08)}
 .barre-bas a{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.72rem;font-weight:600;color:var(--doux);text-decoration:none;padding:4px 0}
 .barre-bas a.actif{color:var(--bleu)}
 .barre-bas .ico{width:24px;height:24px}
 .barre-bas .pastille{position:absolute;top:0;left:calc(50% + 6px);margin:0;min-width:18px;line-height:18px;font-size:.68rem}
 .barre-bas .gros-plus{align-self:center;justify-self:center;width:54px;height:54px;margin-top:-22px;border-radius:50%;background:#e0a040;color:#16303f;justify-content:center;box-shadow:0 4px 14px rgba(224,160,64,.45)}
 .barre-bas .gros-plus .ico{width:28px;height:28px;stroke-width:2.6}
 .page{padding-bottom:110px}
 .page{padding:18px 16px 50px}
 .barre{grid-template-columns:100px 1fr 80px}
 .cal .j{min-height:58px;font-size:.7rem;padding:3px}
 .cal .ev{padding:0 3px}
 .cacher-mobile{display:none}
}

/* V2 */
.hero{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin-bottom:16px}
.hero .carte.principale{background:linear-gradient(135deg,#16303f,#2f6f8f);color:#fff;border:0}
.hero .carte.principale .sous{color:#cfe1ea}
.hero .carte.principale a.btn{background:#e0a040;border-color:#e0a040;color:#16303f}
.chiffres{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.chiffres .carte{padding:14px 16px}
.chiffres .chiffre{font-size:1.55rem}
.liste-action{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.liste-action a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:#f6f8fa;text-decoration:none;color:var(--encre)}
.liste-action a:hover{background:var(--bleu-c)}
.tuiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.tuile{display:flex;align-items:center;gap:16px;padding:20px;border-radius:16px;background:#fff;border:1px solid var(--ligne);text-decoration:none;color:var(--encre);cursor:pointer;font:inherit;text-align:left;width:100%}
.tuile:hover{border-color:var(--bleu);background:#fbfdfe}
.tuile .rond-ico{width:54px;height:54px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.7rem;flex:none}
.tuile strong{display:block;font-size:1.05rem}.tuile span.sous{display:block}
.pieces{display:grid;gap:12px}
.piece{background:#fff;border:1px solid var(--ligne);border-radius:14px;padding:14px 16px}
.piece.souci{border-color:#e3b2ab;background:#fffafa}
.piece.ok{border-color:#b9dcc4}
.piece-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.piece-tete h3{margin:0}
.vignettes{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.vignettes img{width:92px;height:92px;object-fit:cover;border-radius:10px;border:1px solid var(--ligne)}
.vignettes .envoi{width:92px;height:92px;border-radius:10px;background:#eef3f6;display:flex;align-items:center;justify-content:center;font-size:.75rem;color:var(--doux)}
.choix{display:inline-flex;border:1px solid #c9d2da;border-radius:10px;overflow:hidden}
.choix button{border:0;border-radius:0;background:#fff;color:var(--doux);padding:8px 14px}
.choix button.on.ok{background:var(--vert);color:#fff}.choix button.on.ko{background:var(--rouge);color:#fff}
.bouton-photo{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:10px;border:1px dashed var(--bleu);color:var(--bleu);font-weight:600;cursor:pointer;background:#f5fafc}
.bouton-photo input{display:none}
.compare{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.compare h4{margin:0 0 6px;font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:var(--doux)}
.reserve{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--ligne)}
.reserve:last-child{border-bottom:0}
.etat3{display:inline-flex;gap:4px}
.etat3 button{padding:6px 10px;font-size:.8rem;background:#fff;color:var(--doux);border:1px solid #c9d2da}
.etat3 button.on[data-v=ok]{background:var(--vert);border-color:var(--vert);color:#fff}
.etat3 button.on[data-v=bientot]{background:var(--or);border-color:var(--or);color:#fff}
.etat3 button.on[data-v=manque]{background:var(--rouge);border-color:var(--rouge);color:#fff}
details.repli>summary{list-style:none}
details.repli>summary::-webkit-details-marker{display:none}
details.repli>summary::after{content:" ▾";color:var(--doux)}
details.repli[open]>summary::after{content:" ▴"}
.mode-simple .page{font-size:1.12rem}
.mode-simple .chiffre{font-size:2.3rem}
.mode-simple .tuile{padding:24px}
@media(max-width:900px){
 .hero{grid-template-columns:1fr}
 .chiffres{grid-template-columns:1fr 1fr}
 .chiffres .carte:last-child{grid-column:1/-1}
 .compare{grid-template-columns:1fr}
 .entete-page h1{font-size:1.4rem}
}

.connexion{max-width:460px;margin:8vh auto;padding:0 4px}
.qui-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
.qui-tuile{flex-direction:column;gap:10px;padding:18px 10px;background:#fff;border:1px solid var(--ligne);border-radius:16px;color:var(--encre);font-size:1.05rem;justify-content:center}
.qui-tuile:hover{border-color:var(--bleu);background:#fbfdfe}
.qui-rond{width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font:600 1.5rem Georgia,serif}
