*{box-sizing:border-box;margin:0;padding:0}
:root{--or:var(--ct-orange);--or2:var(--ct-orange);--or-txt:var(--ct-orange-txt);--dark:var(--ct-anthracite);--noir:var(--ct-noir);--bg:#f5f5f5;--line:#ececec;--txt:var(--ct-noir)}
body{color:var(--txt);background:var(--bg);min-height:100vh;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
[hidden]{display:none!important}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}

/* Header and footer: see /css/marque.css */
.bande{height:14px;background:repeating-linear-gradient(-45deg,var(--or) 0 18px,var(--noir) 18px 36px)}

/* Page hero strip */
.phero{background:var(--dark);color:#fff;padding:34px 0 30px}
.phero small{color:var(--or);font-weight:700;letter-spacing:2px;text-transform:uppercase;font-size:12px}
.phero h1{font-size:34px;margin-top:6px;line-height:1.15}
.phero p{color:#ccc;margin-top:8px;line-height:1.5}
.phero .wrap{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}

main{padding:30px 0 60px}

/* Buttons */
.b{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;border-radius:40px;padding:13px 24px;font-weight:800;font-size:16px;cursor:pointer;transition:.2s;text-align:center}
.b-or{background:var(--or);color:#fff}
.b-or:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 22px rgba(242,107,29,.35)}
.b-dark{background:var(--dark);color:#fff}
.b-light{background:#fff;color:var(--txt);border:2px solid var(--line)}
.b-red{background:#fff;color:#c62828;border:2px solid #f3c4c4}
.b-green{background:#2e7d32;color:#fff}
.b:disabled{opacity:.55;cursor:not-allowed;transform:none!important;box-shadow:none!important}
.b-block{width:100%}
.b-sm{padding:9px 16px;font-size:14px}

/* Cards */
.card{background:#fff;border:2px solid #eee;border-radius:18px;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.pad{padding:24px}

/* Status badges */
.badge-st{display:inline-block;padding:5px 12px;border-radius:20px;font-size:12px;font-weight:800;white-space:nowrap;letter-spacing:.2px}
.st-verif{background:#fff4ea;color:#c45100}
.st-acc{background:var(--or);color:#fff}
.st-paid{background:#e3f2fd;color:#1565c0}
.st-done{background:#e8f5e9;color:#2e7d32}
.st-ref{background:#fdecea;color:#c62828}

/* Request list */
.list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.rq{display:block;padding:22px;cursor:pointer;transition:.2s;position:relative}
.rq:hover{border-color:var(--or);transform:translateY(-2px)}
.rq .rq-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.rq .rq-num{color:var(--or-txt);font-weight:900;font-size:13px;letter-spacing:2px;text-transform:uppercase}
.rq h3{font-size:18px;margin-bottom:6px}
.rq p{color:#666;font-size:14px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rq .rq-foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:13px;color:#888;gap:8px}
.rq .rq-price{font-weight:900;color:var(--txt);font-size:16px}
.unread{background:var(--or);color:#fff;border-radius:20px;font-size:12px;font-weight:800;padding:3px 9px}
.empty{text-align:center;padding:50px 24px}
.empty h3{font-size:22px;margin-bottom:10px}.empty p{color:#666;margin-bottom:22px;line-height:1.5}

/* Detail */
.back-link{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#666;margin-bottom:16px;cursor:pointer;background:none;border:none;font-size:15px}
.back-link:hover{color:var(--or-txt)}
.detail{display:grid;grid-template-columns:360px 1fr;gap:22px;align-items:start}
.info .num{color:var(--or-txt);font-weight:900;font-size:13px;letter-spacing:2px;text-transform:uppercase}
.info h2{font-size:22px;margin:6px 0 12px;line-height:1.25}
.info dl{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;margin:18px 0;font-size:15px}
.info dt{color:#888}.info dd{font-weight:600;word-break:break-word}
.info dd a{color:var(--or-txt)}
.price-big{font-size:34px;font-weight:900;color:var(--or)}
.paybox{background:#fff4ea;border:2px solid var(--or);border-radius:16px;padding:18px;margin-top:16px}
.paybox p{font-size:14px;color:#555;line-height:1.45;margin:6px 0 14px}
.note{font-size:14px;color:#666;line-height:1.5;background:#f7f7f7;border-radius:12px;padding:12px 14px;margin-top:14px}
.note.ok{background:#e8f5e9;color:#1b5e20}.note.ko{background:#fdecea;color:#b71c1c}

.steps{list-style:none;margin:18px 0 4px;position:relative}
.steps li{position:relative;padding:0 0 16px 34px;font-size:14px;color:#999;font-weight:600}
.steps li:before{content:"";position:absolute;left:8px;top:18px;bottom:-2px;width:2px;background:#e5e5e5}
.steps li:last-child:before{display:none}
.steps li i{position:absolute;left:0;top:0;width:18px;height:18px;border-radius:50%;border:2px solid #ddd;background:#fff}
.steps li.done{color:var(--txt)}.steps li.done i{background:var(--or);border-color:var(--or)}
.steps li.cur{color:var(--or-txt);font-weight:800}.steps li.cur i{border-color:var(--or);box-shadow:0 0 0 4px rgba(242,107,29,.18)}
.steps li.ko{color:#c62828}.steps li.ko i{background:#c62828;border-color:#c62828}

/* Chat */
.chat{display:flex;flex-direction:column;height:calc(100vh - 160px);min-height:520px;max-height:820px;overflow:hidden}
.chat-head{padding:16px 20px;border-bottom:2px solid #f0f0f0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;position:relative}
.chat-head:before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:repeating-linear-gradient(45deg,var(--or) 0 12px,var(--noir) 12px 24px);border-radius:16px 16px 0 0}
.chat-head b{font-size:18px;margin-top:4px}.chat-head span{color:#888;font-size:14px}
.chat-head .chat-ref{margin-left:auto;font-style:normal;color:var(--or-txt);font-weight:900;font-size:13px;letter-spacing:2px}
.chat-msgs{flex:1;overflow-y:auto;padding:18px 16px;display:flex;flex-direction:column;gap:12px;background:#fafafa;-webkit-overflow-scrolling:touch}
.msg{max-width:78%;padding:11px 14px;border-radius:16px;line-height:1.45;font-size:15px;word-wrap:break-word;white-space:pre-wrap}
.msg time{display:block;font-size:11px;opacity:.65;margin-top:5px;white-space:normal}
.msg-who{display:block;font-size:12px;margin-bottom:3px;opacity:.75;white-space:normal}
.msg-me{align-self:flex-end;background:var(--or);color:#fff;border-bottom-right-radius:4px}
.msg-them{align-self:flex-start;background:#fff;border:2px solid #eee;border-bottom-left-radius:4px}
.msg-sys{align-self:center;max-width:92%;background:var(--dark);color:#fff;text-align:center;font-size:13px;border-radius:12px}
.msg-pending{font-size:13px;font-style:italic;opacity:.85}
.atts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;white-space:normal}
.att{display:block;border-radius:12px;overflow:hidden;background:#000}
.att-img img{display:block;width:150px;height:150px;object-fit:cover}
.att-video{width:260px;max-width:100%}
.att-video video{display:block;width:100%;max-height:340px;background:#000}
.att-dl{display:block;font-size:12px;padding:5px 8px;background:rgba(0,0,0,.75);color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.att-file{display:inline-block;padding:8px 10px;background:rgba(255,255,255,.2);border-radius:10px;font-size:13px}
.chat-form{border-top:2px solid #f0f0f0;padding:10px 12px;background:#fff}
.chat-files{display:flex;flex-wrap:wrap;gap:6px}
.chat-files:not(:empty){margin-bottom:8px}
.chip{background:#fff4ea;border-radius:20px;padding:6px 10px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.chip button{border:none;background:none;font-size:18px;line-height:1;cursor:pointer;color:#c45100}
.chat-row{display:flex;align-items:flex-end;gap:8px}
.chat-row textarea{flex:1;border:2px solid var(--line);border-radius:22px;padding:11px 16px;font-size:16px;resize:none;max-height:140px;line-height:1.35}
.chat-row textarea:focus{outline:none;border-color:var(--or)}
.chat-attach,.chat-send{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;border:none}
.chat-attach{background:#fff1e3}.chat-attach input{display:none}
.chat-send{background:var(--or)}
.chat-send:disabled{opacity:.5}
.chat-attach svg,.chat-send svg{width:22px;height:22px;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-attach svg{stroke:var(--or)}.chat-send svg{stroke:#fff}
.chat-closed{font-size:12px;color:#999;margin-top:6px;text-align:center}

/* Forms */
.field{display:block;font-weight:700;margin-top:14px;font-size:15px}
.field input,.field textarea,.field select{display:block;width:100%;border:2px solid var(--line);border-radius:14px;padding:13px 14px;font-size:16px;margin-top:6px;font-weight:400;background:#fff}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--or)}
.err{color:#c62828;font-size:14px;margin-top:12px;min-height:1px}
.ok-msg{color:#2e7d32;font-size:14px;margin-top:12px}

/* Tabs */
.tabs{display:flex;background:#f1f1f1;border-radius:40px;padding:4px;gap:4px;margin-bottom:6px}
.tabs button{flex:1;border:none;background:none;border-radius:40px;padding:11px 10px;font-weight:800;font-size:15px;cursor:pointer;color:#666}
.tabs button.on{background:#fff;color:var(--txt);box-shadow:0 3px 10px rgba(0,0,0,.08)}

.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.filters button{border:2px solid var(--line);background:#fff;border-radius:30px;padding:8px 14px;font-weight:700;font-size:14px;cursor:pointer}
.filters button.on{border-color:var(--or);background:#fff4ea;color:#c45100}
.filters button em{font-style:normal;color:#999;margin-left:4px}
.search{border:2px solid var(--line);border-radius:30px;padding:10px 16px;font-size:15px;min-width:240px;background:#fff}
.search:focus{outline:none;border-color:var(--or)}

/* Modal */
.modal{position:fixed;inset:0;background:rgba(10,10,10,.72);z-index:100;display:flex;align-items:flex-start;justify-content:center;padding:30px 14px;overflow-y:auto;-webkit-overflow-scrolling:touch}
.modal-box{background:#fff;border-radius:22px;width:100%;max-width:560px;position:relative;padding:28px 22px 22px;overflow:hidden}
.modal-box:before{content:"";position:absolute;top:0;left:0;right:0;height:7px;background:repeating-linear-gradient(45deg,var(--or) 0 12px,var(--noir) 12px 24px)}
.modal-close{position:absolute;top:14px;right:14px;width:38px;height:38px;border-radius:50%;border:none;background:#f1f1f1;font-size:22px;cursor:pointer;line-height:1}
.modal-box h3{font-size:21px;margin-bottom:4px;padding-right:40px}
.testmode{background:#fff4ea;color:#8a3b00;border-radius:12px;padding:10px 12px;font-size:13px;margin:10px 0 16px;line-height:1.45}
#checkout{min-height:360px}

.loading{text-align:center;color:#888;padding:50px 0}
.spin{display:inline-block;width:28px;height:28px;border:3px solid #eee;border-top-color:var(--or);border-radius:50%;animation:sp 1s linear infinite;vertical-align:middle}
@keyframes sp{to{transform:rotate(360deg)}}

.toasts{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:8px;width:min(92vw,420px)}
.toast{background:var(--dark);color:#fff;padding:13px 16px;border-radius:14px;font-size:15px;box-shadow:0 10px 30px rgba(0,0,0,.3);transition:.5s;border-left:5px solid var(--or)}
.toast.err{border-left-color:#e53935}.toast.out{opacity:0;transform:translateY(10px)}

@media(max-width:900px){
 .detail{grid-template-columns:1fr}
 .chat{height:72vh;min-height:440px}
}
@media(max-width:640px){
 .wrap{padding:0 14px}
 .phero{padding:24px 0 22px}.phero h1{font-size:27px}
 main{padding:18px 0 40px}
 .pad{padding:18px}
 .list{grid-template-columns:1fr}
 .msg{max-width:88%}
 .att-img img{width:120px;height:120px}
 .search{min-width:0;width:100%}
 .modal{padding:0}
 .modal-box{border-radius:0;min-height:100%;max-width:none;padding:26px 14px 18px}
}

/* Dossier (per-request file in the client area) */
.dos-st{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#666}
.dos-st:before{content:"";width:9px;height:9px;border-radius:50%;background:#bbb;flex-shrink:0}
.dos-wait:before{background:var(--or)}
.dos-rdv{color:#1565c0}.dos-rdv:before{background:#1565c0}
.dos-done{color:#2e7d32}.dos-done:before{background:#2e7d32}
.rq .rq-dos{margin:-2px 0 8px}
.dossier-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:28px 0 14px}
.dossier-head h2{font-size:22px}
.dossier{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;align-items:start}
.dossier h3{font-size:18px;margin-bottom:10px}
.dossier .desc{white-space:pre-wrap;line-height:1.5;color:#333;font-size:15px;word-wrap:break-word}
.dossier .atts{margin-top:12px}
.dossier .muted{color:#888;font-size:14px;line-height:1.5}
.appts{list-style:none;display:flex;flex-direction:column;gap:10px}
.appts li{border:2px solid var(--line);border-radius:14px;padding:12px 14px;font-size:15px;line-height:1.45}
.appts li b{display:block;text-transform:capitalize}
.appts li span{color:#888;font-size:13px}
.appts li .b{margin-top:10px}
.appts li.off{opacity:.6}
.appt-join{margin-top:10px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.appts li .appt-join .b{margin-top:0}
.appt-join small{font-size:13px;color:#666;line-height:1.4}
.summary{white-space:pre-wrap;line-height:1.55;font-size:15px;word-wrap:break-word}
.summary + .summary{border-top:2px solid #f0f0f0;margin-top:14px;padding-top:14px}
.summary time{display:block;color:#888;font-size:13px;margin-bottom:6px;white-space:normal}

/* Consent checkboxes */
.check{display:flex;gap:12px;align-items:flex-start;margin-top:16px;font-size:14px;color:#555;cursor:pointer;line-height:1.4;font-weight:400}
.check input{width:20px;height:20px;margin:0;flex-shrink:0;accent-color:var(--or)}
.check-note{font-size:13px;color:#888;margin:6px 0 0 32px;line-height:1.4}
.check-note a,.conf-link{color:var(--or-txt);font-weight:700;text-decoration:underline}
.prefs{margin-top:26px}
.prefs h3{font-size:18px}

/* Simple text pages (confidentialité) */
.page-text{max-width:760px;margin:0 auto;padding:36px 40px;line-height:1.7;font-size:16px}
.page-text h2{font-size:21px;line-height:1.3;margin:0 0 12px;color:var(--dark)}
.page-text p{color:#444;margin-top:10px}
.page-text h2+p{margin-top:0}
.page-text section+section{margin-top:30px;padding-top:30px;border-top:1px solid var(--line)}
.page-text ul{list-style:none;margin-top:12px}
.page-text li{position:relative;padding-left:22px;color:#444}
.page-text li+li{margin-top:10px}
.page-text li:before{content:"";position:absolute;left:2px;top:.62em;width:8px;height:8px;border-radius:2px;background:var(--or)}
.page-text strong{color:var(--dark);font-weight:700}
.page-text a{color:var(--or-txt);font-weight:600;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}

@media(max-width:640px){.dossier{grid-template-columns:1fr}.page-text{padding:24px 20px;font-size:15.5px}.page-text h2{font-size:19px}.page-text section+section{margin-top:24px;padding-top:24px}}

/* Choix du créneau visio par le client : jour, puis heure, puis confirmation */
.bk-card{grid-column:1/-1;border:2px solid var(--or)}
.bk-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.bk-head h3{font-size:20px;margin-bottom:4px}
.bk-head p{color:#555;font-size:15px;line-height:1.45}
.bk-x{border:2px solid var(--line);background:#fff;border-radius:30px;padding:8px 14px;font-weight:700;font-size:14px;cursor:pointer;white-space:nowrap}
.bk-x:hover{border-color:var(--dark)}
.bk-body{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:22px;align-items:start}
.bk-month{font-weight:800;font-size:15px;margin-bottom:8px;color:var(--dark)}
.bk-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.bk-wd{text-align:center;font-size:12px;font-weight:700;color:#999;text-transform:uppercase;padding-bottom:2px}
.bk-day{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;aspect-ratio:1;min-height:42px;border-radius:12px;border:2px solid transparent;background:#fff4ea;color:var(--noir);cursor:pointer;font:inherit;padding:0}
.bk-day b{font-size:16px;font-weight:800;line-height:1}
.bk-day small{font-size:10.5px;font-weight:700;color:var(--or-txt);margin-top:2px}
button.bk-day:hover{border-color:var(--or)}
.bk-day.on{background:var(--or);color:#fff;border-color:var(--or)}
.bk-day.on small{color:#fff}
.bk-day.off{background:none;color:#c7c7c7;cursor:default}
.bk-day.off.past{color:#e2e2e2}
.bk-day.today:after{content:"";position:absolute;bottom:4px;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.55}
.bk-day.today small{display:none}
.bk-hours h4{font-size:17px;margin-bottom:10px}
.bk-group+.bk-group{margin-top:12px}
.bk-group>small{display:block;font-size:12px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#999;margin-bottom:6px}
.bk-times{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px}
.bk-time{min-height:46px;border:2px solid var(--line);border-radius:12px;background:#fff;font-weight:800;font-size:16px;cursor:pointer}
.bk-time:hover{border-color:var(--or)}
.bk-time.on{background:var(--noir);border-color:var(--noir);color:#fff}
.bk-day:focus-visible,.bk-time:focus-visible,.bk-x:focus-visible{outline:3px solid rgba(242,107,29,.45);outline-offset:2px}
.bk-confirm{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:18px;padding:14px 16px;border-radius:14px;background:#fff4ea;border:2px solid var(--or)}
.bk-confirm small{display:block;font-size:12px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--or-txt)}
.bk-confirm b{display:block;font-size:18px;margin:2px 0}
.bk-confirm span{font-size:14px;color:#555}
.bk-confirm .b{min-width:220px}
.bk-foot{margin-top:16px;font-size:13.5px;color:#777;line-height:1.5}
.bk-msg{color:#555;font-size:15px;line-height:1.5}
.bk-msg.err{color:#b71c1c}
.bk-load{padding:30px;text-align:center}
.bk .linklike{background:none;border:none;color:var(--or-txt);font-weight:700;text-decoration:underline;cursor:pointer;padding:0;font-size:inherit}
.appt-change{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.appt-change .b{margin-top:0}
.appt-change small,.appt-late{font-size:13px;color:#888;line-height:1.4}
.appt-late{display:block;margin-top:8px}
@media(max-width:760px){
 .bk-body{grid-template-columns:1fr;gap:18px}
 .bk-head{flex-direction:column}
 .bk-head h3{font-size:19px}
 .bk-confirm{position:sticky;bottom:10px;z-index:5;box-shadow:0 10px 24px rgba(0,0,0,.12)}
 .bk-confirm .b{width:100%;min-width:0;min-height:50px;font-size:17px}
 .bk-times{grid-template-columns:repeat(auto-fill,minmax(78px,1fr))}
}
.bk-legend{font-size:12.5px;color:#999;margin-top:8px;line-height:1.4}
.bk-cta{margin-top:16px;padding:16px;border-radius:16px;background:#fff4ea;border:2px solid var(--or)}
.bk-cta b{display:block;font-size:16px}
.bk-cta p{font-size:14px;color:#555;line-height:1.45;margin:4px 0 12px}
