:root{--p:#EA6A42;--ink:#0D0D0D;--a:#EA6A42;--a2:#F08A68;--soft:#FFE7DC;--softbg:#FFF5F0;--title:'Montserrat',sans-serif;--tw:800;--body:'Montserrat',sans-serif;--upper:none}
*{box-sizing:border-box}
html,body{margin:0;background:#F7F7F6;color:var(--ink);font-family:var(--body);overflow-x:clip}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit}
:focus-visible{outline:3px solid var(--p);outline-offset:2px}
h1,h2,h3{margin:0}
#print{display:none}
.page{position:relative;overflow:hidden;min-height:100vh;padding:24px clamp(16px,4vw,56px) 64px}
.deco{position:absolute;top:0;right:0;width:100%;height:700px;pointer-events:none}
.wrap{position:relative;display:flex;flex-direction:column;gap:26px;max-width:1360px;margin:0 auto}
.top{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
.back{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;font-weight:500;text-decoration:none}
.brandlogo{height:84px;width:auto;display:block}
.tabs{display:flex;flex-wrap:wrap;gap:10px}
.tab{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border:none;border-radius:999px;background:#fff;font-weight:500;font-size:15px;text-decoration:none;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.07)}
.tab:hover{background:var(--soft)}
.tab.on,.tab.on:hover{background:var(--p);color:#fff}
.h1{font-family:var(--title);font-weight:var(--tw);font-size:clamp(28px,4vw,50px);line-height:1.1;color:var(--p);text-transform:var(--upper)}
.h2{font-family:var(--title);font-weight:var(--tw);font-size:20px;color:var(--p);text-transform:var(--upper)}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.between{justify-content:space-between}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border:none;border-radius:999px;background:#fff;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.07)}
.btn:hover{background:var(--soft)}
.btn.main{background:var(--a);color:var(--on-a,#0D0D0D)}
.btn.main:hover{background:var(--a2)}
.btn.dark{background:var(--p);color:#fff}
.btn.dark:hover{filter:brightness(.88)}
.btn.flat{background:#F7F7F6;box-shadow:none}
.btn[disabled]{opacity:.55;cursor:default}
.round{width:44px;height:44px;flex:none;padding:0;border:none;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.07)}
.round:hover{background:var(--soft)}
.switch{display:flex;gap:2px;padding:3px;border-radius:999px;background:#fff}
.switch button{min-height:40px;padding:0 16px;border:none;border-radius:999px;background:none;font-size:14px;font-weight:500;cursor:pointer}
.switch .on{background:var(--p);color:#fff}
.pill{padding:8px 14px;border-radius:999px;background:#fff;font-size:13px;font-weight:500;color:#555}
.pill.on{background:var(--a);color:var(--on-a,#0D0D0D)}
.note{font-size:13px;font-weight:500}
.split{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.main-col{flex:999 1 620px;min-width:0}
.side{flex:1 1 250px;display:flex;flex-direction:column;gap:14px;padding:20px;border-radius:22px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.07)}
.scroll{overflow-x:auto;padding:4px 4px 14px;margin:-4px}
.grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.grid.month{min-width:760px}
.dow{padding:9px 4px;border-radius:999px;background:var(--p);color:#fff;font-size:13px;font-weight:500;text-align:center}
.day{min-width:0;min-height:128px;padding:10px;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.05);display:flex;flex-direction:column;gap:8px;transition:background-color .12s}
.day.out{background:#EEEEEC;box-shadow:none}
.day.over{background:var(--soft)}
.num{font-size:13px;font-weight:600}
.post{position:relative;display:block;width:100%;padding:0;border:none;background:none;cursor:pointer}
.post img,.post video{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:10px;background:#eee}
.post[draggable=true]{cursor:grab}
.bubble{position:absolute;top:-6px;right:-6px;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:var(--a);color:var(--on-a,#0D0D0D);font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center}
.date{font-size:12px;font-weight:600;text-align:center}
.small{font-size:12px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.tags{color:var(--p)}
.drop{position:relative;min-height:104px;padding:14px;border:2px dashed var(--p);border-radius:16px;background:var(--softbg);font-size:14px;font-weight:500;line-height:1.4;display:flex;align-items:center;justify-content:center;text-align:center;cursor:pointer}
.drop input{position:absolute;width:1px;height:1px;opacity:0}
.lib{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.input{width:100%;min-height:44px;padding:11px 14px;border:1px solid #DADDE3;border-radius:12px;background:#fff;font-size:14px;font-weight:400;line-height:1.5;resize:vertical}
.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer}
.check input{width:20px;height:20px;margin:0;accent-color:var(--p)}
.card{display:flex;flex-direction:column;gap:14px;padding:24px;border-radius:22px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.07)}
.list{display:flex;flex-direction:column;gap:8px}
.item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;border-radius:14px;background:#fff;font-size:14px}
.modal{position:fixed;inset:0;z-index:20;overflow:auto;padding:24px 16px;background:rgba(10,20,40,.55);display:flex;align-items:flex-start;justify-content:center}
.box{position:relative;width:100%;max-width:960px;padding:24px;border-radius:24px;background:#fff;display:flex;flex-wrap:wrap;gap:24px}
.box.small-box{max-width:500px;margin-top:10vh;flex-direction:column;gap:14px;padding:28px}
.close{position:absolute;top:14px;right:14px;background:#F7F7F6;box-shadow:none}
.media{flex:1 1 320px;min-width:0;max-width:430px;aspect-ratio:4/5;object-fit:cover;border-radius:16px;display:block}
.fields{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:14px}
.comment{margin:0;padding:10px 14px;border-radius:12px;background:#F7F7F6;font-size:14px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.toast{position:fixed;left:50%;bottom:24px;z-index:30;transform:translateX(-50%);padding:12px 20px;border-radius:999px;background:#0D0D0D;color:#fff;font-size:14px;font-weight:500}
.spin{font-size:14px}

.badge{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:none;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}
button.badge{cursor:pointer;min-height:44px}
.badge.paid{background:#DDF3E4;color:#14663A}
.badge.due{background:#FFEFD1;color:#7A4B00}
.inv{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.amount{width:130px;min-height:44px;padding:0 12px;border:1px solid #DADDE3;border-radius:12px;background:#fff;font-size:14px}
.sum{display:flex;flex-wrap:wrap;gap:10px}

/* Connexion */
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.login .card{width:100%;max-width:400px}

/* Accueil */
.home{--title:'Unbounded',sans-serif;--body:'Montserrat',sans-serif;display:flex;flex-direction:column;gap:clamp(36px,7vh,80px);padding-top:32px}
.home .deco{height:100%}
.home-top{position:relative;display:flex;align-items:center;gap:14px}
.home-top img{width:52px;height:52px;border-radius:50%}
.home-top b{font-family:'Unbounded',sans-serif;font-weight:600;font-size:15px}
.home-sec{position:relative;display:flex;flex-direction:column;gap:clamp(36px,6vh,60px);max-width:1296px;width:100%;margin:0 auto}
.hello{align-self:flex-start;margin:0;padding:8px 16px;border-radius:999px;background:#0D0D0D;color:#fff;font-size:17px;font-weight:500;transform:rotate(-2deg)}
.big{font-family:'Unbounded',sans-serif;font-weight:800;font-size:clamp(36px,6vw,84px);line-height:1.12;letter-spacing:-.02em;margin:-12px 0 0}
.big span{display:inline-block;margin-top:6px;padding:0 .22em .06em;border-radius:16px;background:#EA6A42;color:#fff;transform:rotate(-1.2deg)}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.ccard{display:flex;flex-direction:column;justify-content:space-between;gap:32px;min-height:248px;padding:26px;border:none;border-radius:24px;background:#fff;text-align:left;text-decoration:none;cursor:pointer;box-shadow:0 8px 24px rgba(13,13,13,.08);transition:transform .16s,box-shadow .16s;font-family:'Unbounded',sans-serif;font-weight:600;font-size:21px;line-height:1.2}
.ccard:nth-child(1){transform:rotate(-1deg)}.ccard:nth-child(2){transform:rotate(.7deg)}.ccard:nth-child(3){transform:rotate(-.6deg)}.ccard:nth-child(4){transform:rotate(.8deg)}
.ccard:hover{transform:translate(-3px,-3px);box-shadow:0 14px 32px rgba(13,13,13,.13)}
.ccard img{height:100px;width:auto;max-width:100%;align-self:flex-start;object-fit:contain}
.ccard .plus{width:100px;height:100px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center}
.ccard.add{background:#EA6A42}
.cname{display:flex;align-items:center;justify-content:space-between;gap:16px}
.arrow{flex:none;width:44px;height:44px;border-radius:50%;background:#F7F7F6;display:flex;align-items:center;justify-content:center}
.foot{position:relative;display:flex;flex-wrap:wrap;gap:10px;max-width:1296px;width:100%;margin:0 auto}
.avion{offset-path:path('M-90 810 C200 900 520 860 760 740 C880 680 920 520 985 395 C1030 290 1110 120 1220 150 C1320 180 1310 330 1200 330 C1090 330 1080 170 1200 110 C1290 65 1420 90 1540 40');offset-rotate:auto;animation:vol 20s cubic-bezier(.42,.08,.58,.92) infinite}
.trace-m{stroke-dasharray:2577;animation:trace 20s cubic-bezier(.42,.08,.58,.92) infinite}
.trace{animation:fondu 20s linear infinite}
.nuage{animation:derive 10s ease-in-out infinite alternate}
.tourne{transform-box:fill-box;transform-origin:center;animation:tourne 24s linear infinite}
.bouge{transform-box:fill-box;transform-origin:center;animation:bouge 3.6s ease-in-out infinite}
@keyframes vol{0%{offset-distance:0%}84%,100%{offset-distance:100%}}
@keyframes trace{0%{stroke-dashoffset:2577}84%,100%{stroke-dashoffset:0}}
@keyframes fondu{0%,88%{opacity:1}98%,100%{opacity:0}}
@keyframes derive{from{transform:translateX(-14px)}to{transform:translateX(18px)}}
@keyframes tourne{to{transform:rotate(360deg)}}
@keyframes bouge{0%,100%{transform:scale(.85)}50%{transform:scale(1.1) rotate(25deg)}}
@media (prefers-reduced-motion:reduce){.avion{display:none}.trace,.trace-m,.nuage,.tourne,.bouge{animation:none}}
@media (max-width:1000px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.cards{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){.deco{width:900px;height:438px}.home .deco{width:100%;height:100%}.grid.week{grid-template-columns:minmax(0,1fr)}.grid.week .day{min-height:0}.grid.week .empty{display:none}}

/* Rapport */
.sheet{width:794px;min-height:1123px;padding:37px 53px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.1);display:flex;flex-direction:column;font-family:'Poppins',sans-serif;color:#000}
.s-head{height:168px;flex:none;padding:16px 36px;border-radius:28px;background:#E16EE5;display:flex;align-items:center;gap:36px}
.s-head img{width:152px;height:auto}
.s-title{position:relative;flex:1;min-width:0;color:#fff;font-size:60px;font-weight:700;line-height:1}
.s-month{position:absolute;left:246px;bottom:13px;width:200px;padding:0;border:none;background:none;color:#fff;font-size:21px;font-weight:700}
.s-table{margin-top:10px;padding:24px 30px 18px;border-radius:24px;background:#FEF7E5;display:grid;grid-template-columns:177px 177px 1fr;column-gap:11px;row-gap:6px}
.s-th{height:38px;border:1px solid #E16EE5;border-radius:19px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 8px;font-size:14px;font-weight:700;white-space:nowrap}
.s-th.c{justify-content:center}
.s-th img{width:22px;height:22px}
.s-m{height:40px;border-radius:20px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700}
.s-c{position:relative;display:flex;align-items:center;justify-content:space-between}
.s-c.p{padding:0 10px}
.s-c i{position:absolute;left:50%;top:-4px;bottom:-4px;width:1px;background:#000}
.pil{width:76px;height:40px;padding:0 4px;border:1px solid #FDC9BC;border-radius:20px;background:transparent;text-align:center;font-size:15px;font-weight:700}
.pil:focus{outline:2px solid #E16EE5;background:#fff}
.fl{flex:none;width:12px;height:20px;color:#1FC71F}
.fl.down{color:#E52020;transform:rotate(180deg)}
.fl.none{visibility:hidden}
.s-sec{margin-top:26px;display:flex;flex-direction:column;gap:12px}
.s-label{align-self:flex-start;padding:8px 20px;border-radius:19px;background:#E16EE5;color:#fff;font-size:15px;font-weight:700}
.s-tops{padding:20px 10px;border-radius:24px;background:#FEF7E5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.s-slot{position:relative;height:92px;overflow:hidden;border-radius:6px;background:#fff;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;font-weight:500;cursor:pointer}
.s-slot img{width:100%;height:100%;object-fit:cover}
.s-slot input{position:absolute;width:1px;height:1px;opacity:0}
.s-recs{padding:16px 26px;border-radius:24px;background:#FEF7E5}
.s-recs ul{margin:0;padding:0 0 0 20px;font-size:14.5px;line-height:21px;outline:none}

@media print{
  @page{size:A4 landscape;margin:8mm}
  html,body{background:#fff}
  #app,.toast,.modal{display:none!important}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #print{display:block}
  .pweek{break-after:page;font-family:var(--body)}
  .pweek:last-child{break-after:auto}
  .pweek h2{margin:0 0 10px;font-size:20px;color:var(--p)}
  .pgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
  .pcell{border:1px solid #ccc;border-radius:8px;padding:6px;min-height:150mm;font-size:8.5pt;line-height:1.35;white-space:pre-line;overflow-wrap:anywhere}
  .pcell img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:4px}
  .pcell b{display:block;margin:4px 0}
  body.print-report #print .sheet{box-shadow:none;margin:0 auto;min-height:0}
}
