/* Bellia : style sobre des plateformes de réservation européennes. Blanc, noir, grandes photos. */
:root{--brand:#17171a;--accent:#5b50e0;--on:#fff;--ink:#17171a;--mute:#5f6368;--line:#e6e6e9;--soft:#f5f5f6;--r:10px;--btn:8px;--font:'DM Sans',system-ui,sans-serif;--titre:'DM Sans',system-ui,sans-serif}
body{background:#fff;color:var(--ink)}
h1,h2,h3{font-family:var(--titre);font-weight:600;letter-spacing:-.02em}
.marque{font-weight:600;font-size:19px;letter-spacing:.34em;text-transform:uppercase}
.btn{border-radius:8px;font-weight:600;box-shadow:none}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid #cfcfd4}
.btn.clair{background:#f0f0f2;color:var(--ink)}
input,select{border:1px solid #c9c9cf;border-radius:8px}
.badge{border-radius:6px}
.card{border:1px solid var(--line);border-radius:12px}
.empty{border-radius:12px}
.toast{bottom:100px;width:max-content;max-width:92vw;text-align:center;border-radius:8px;background:#17171a}
dialog{border-radius:14px}
dialog h3,dialog>p{text-align:center}
.methods{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.method{border-radius:8px}
.aide{display:flex;gap:10px;align-items:flex-start;background:var(--soft);border-radius:10px;padding:14px;margin:0 0 16px;font-size:15px;color:#3c3c42}
.aide i{font-size:22px;flex:none}

/* ---------- espace salon et administration ---------- */
.app{display:flex;flex-direction:column;max-width:560px;background:#fff;padding-bottom:110px;min-height:100dvh}
.app>*{width:100%}
.top{order:-2;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}
.top .logo{font-weight:600;font-size:17px;letter-spacing:.3em;text-transform:uppercase}
.top .logo i{display:none}
.pad16{padding:0 18px}
.app h2{font-size:24px;text-align:center;margin:28px 0 14px}
.etapes{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:0 18px;margin-top:20px;text-align:center}
.etapes li{border:1px solid var(--line);border-radius:12px;padding:14px 6px;font-size:14px;line-height:1.35}
.etapes i{display:block;font-size:28px;margin-bottom:6px}
.app .stat{text-align:center;border-radius:12px}
#porte>h2+.badge{display:block;width:max-content;max-width:100%;margin:0 auto}
.screen .pad16>.btn.small{margin-top:16px}
.choix{border:1px solid var(--line);border-radius:12px}
.choix i{background:var(--soft);color:var(--ink);border-radius:10px}
.plan{border:1px solid var(--line);border-radius:12px;text-align:center;background:#fff}
.plan ul{text-align:left}
.plan li i{margin-right:6px}
.plan.hot{border:2px solid var(--ink)}
.bas{border-radius:0}
.bas nav button{border-radius:8px}
.bas nav button[aria-current="page"]{background:var(--soft);color:var(--ink);font-weight:600}
@media(min-width:900px){
  body{background:#fff}
  .app{max-width:none;padding-bottom:40px}
  .top{padding:18px max(32px,calc(50% - 520px))}
  .bas#menu{order:-1;position:static;transform:none;width:100%;padding:8px max(32px,calc(50% - 520px));border-top:0;border-bottom:1px solid var(--line)}
  .bas#menu nav{display:flex;justify-content:center;gap:6px;width:100%}
  .bas#menu nav button{flex-direction:row;gap:8px;font-size:15px;padding:10px 18px}
  .app .screen{max-width:760px;margin:0 auto}
  #offres{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
  .app [data-screen="offres"]{max-width:1040px}
}

/* Éditeur d'horaires : un jour par ligne. */
.lab{margin:10px 0 4px;font-weight:600}
.sem{display:grid;gap:8px;margin:6px 0 10px}
.jourh{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px;align-items:center}
.jourh .ouvre{display:flex;align-items:center;gap:8px;margin:0;font-weight:500;min-height:44px}
.jourh .ouvre input{width:22px;height:22px;min-height:0;flex:none}
.jourh select{min-height:44px;padding:0 6px}
.jourh select:disabled{opacity:.35}

/* Logo : pastille + nom. */
.marque,.top .logo{display:inline-flex;align-items:center;gap:10px}
.logo-img{width:30px;height:30px;flex:none;display:block}
.top .logo i{display:none}

/* Connexion / inscription et lignes de prestations. */
.onglets{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}
.ligne-presta{display:grid;grid-template-columns:1fr 1fr 44px;gap:6px;margin-bottom:10px;align-items:center}
.ligne-presta .p-nom{grid-column:1/-1}
.retirer{border:0;background:none;min-width:44px;min-height:44px;cursor:pointer;font-size:20px;color:var(--mute)}

/* Formulaires plus aérés */
.onglets{margin-bottom:32px}
form label{margin:22px 0 8px}
form h3{margin:36px 0 6px!important;padding-top:26px;border-top:1px solid #e6e6ea}
form h2{margin-bottom:12px}
form .mute{margin:8px 0 4px;line-height:1.5}
form .lab{margin:22px 0 6px}
form .error{margin:16px 0 4px}
form .btn.gros{margin-top:20px}

/* Champ téléphone avec +225 fixe */
.tel225{display:flex;align-items:stretch;border:1px solid #c9c9cf;border-radius:8px;background:#fff;overflow:hidden}
.tel225:focus-within{outline:2px solid var(--brand,#1b1b1f);outline-offset:1px}
.tel225 span{display:flex;align-items:center;padding:0 12px;background:#f0f0f2;color:#55555c;font-weight:600;border-right:1px solid #c9c9cf}
.tel225 input{border:0!important;border-radius:0!important;outline:0!important;min-width:0;flex:1}

/* Champs obligatoires et erreurs */
.req{color:#c4161c;font-weight:700}
input.invalide,select.invalide,.tel225.invalide{border-color:#c4161c!important;background:#fff5f5;box-shadow:0 0 0 3px rgba(196,22,28,.15)}
.tel225:has(.invalide){border-color:#c4161c;background:#fff5f5;box-shadow:0 0 0 3px rgba(196,22,28,.15)}
.tel225 input.invalide{box-shadow:none;background:transparent}
form .error:not(:empty){background:#fdecec;border:1px solid #f3b5b7;border-radius:8px;padding:10px 12px;font-weight:600}

/* Page d'un salon Premium : thème choisi par le salon (variables --th-*). */
.th{background:var(--th-bg);color:var(--th-txt);border-radius:var(--th-r);overflow:hidden;font-family:var(--th-corps),'DM Sans',system-ui,sans-serif;padding-bottom:18px;margin-top:14px}
.th h1,.th h2,.th h3,.th h4{font-family:var(--th-titre),'DM Sans',system-ui,sans-serif;color:var(--th-txt)}
.th .mute,.th .th-sous{color:var(--th-txt);opacity:.72}
.th .contenu{padding:0 18px}
.th-annonce{background:var(--th-acc);color:var(--th-on);text-align:center;padding:10px 14px;font-weight:600;font-size:15px}
.th-couv{background:var(--th-doux);min-height:90px}
.th-couv:empty{height:90px}
/* Photo entière : jamais recadrée, fond flou sur les côtés */
.cadre-img{position:relative;overflow:hidden;background:#1b1b1f;display:flex;justify-content:center;align-items:center}
.cadre-img .fond{position:absolute;left:-24px;top:-24px;width:calc(100% + 48px);height:calc(100% + 48px);object-fit:cover;filter:blur(22px) brightness(.75)}
.cadre-img .devant{position:relative;display:block;max-width:100%;height:auto;max-height:var(--h,420px);object-fit:contain}
.vignette{aspect-ratio:4/3;border-radius:12px}
.vignette .devant{max-height:100%;width:auto}
.couv-fiche{border-radius:14px;margin-top:14px}
.th-id{text-align:center;padding:0 18px;margin-top:-46px;position:relative}
.th-id.sans-logo{margin-top:18px}
.th-logo{width:92px;height:92px;border-radius:50%;object-fit:cover;border:4px solid var(--th-bg);background:#fff;display:block;margin:0 auto 4px}
.th-id h2{font-size:30px;margin:6px 0 2px;text-align:center}
.th-sous{margin:0 0 6px;font-size:16px}
.th-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px 0}
.th-chips span{border:1px solid var(--th-ligne);background:var(--th-doux);border-radius:var(--th-b);padding:6px 13px;font-size:14px;font-weight:500}
.th-apropos{max-width:56ch;margin:6px auto 14px;text-align:center;line-height:1.6;white-space:pre-line}
.th-reseaux{display:flex;gap:10px;justify-content:center;margin:10px 0 16px}
.th-reseaux a{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--th-acc);color:var(--th-on);font-size:22px;text-decoration:none}
.th-galerie{columns:2;column-gap:8px;margin:6px 0 18px}
.th-galerie img{width:100%;height:auto;display:block;margin-bottom:8px;break-inside:avoid;border-radius:calc(var(--th-r) / 2)}
.th .infos{background:var(--th-doux);border-color:var(--th-ligne);border-radius:var(--th-r)}
.th .presta{border-color:var(--th-ligne)}
.th .price{color:var(--th-txt)}
.th .btn{background:var(--th-acc);color:var(--th-on);border-radius:var(--th-b);border-color:transparent}
.th .btn.clair,.th .btn.ghost{background:var(--th-doux);color:var(--th-txt);border:1px solid var(--th-ligne)}
.th details.signal{border-color:var(--th-ligne)}
.th details.signal summary{color:var(--th-txt);opacity:.7}
.th textarea,.th input,.th select{background:var(--th-doux);color:var(--th-txt);border-color:var(--th-ligne)}
.th-vedette{display:inline-block;background:var(--th-acc);color:var(--th-on);border-radius:var(--th-b);font-size:12px;font-weight:700;padding:2px 9px;margin-left:6px;vertical-align:middle}

/* Studio de personnalisation (espace salon) */
.studio-x details{border:1px solid #e3e3e8;border-radius:12px;margin:10px 0;background:#fff}
#studio-plein summary{cursor:pointer;min-height:48px;display:flex;align-items:center;padding:0 14px;font-weight:600}
.studio-x details>div{padding:0 14px 14px}
#studio-plein .choix-ligne{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
#studio-plein .puce{min-height:44px;padding:0 14px;border:2px solid #d8d8de;border-radius:10px;background:#fff;color:#17171a;cursor:pointer;font:inherit}
#studio-plein .puce[aria-pressed="true"]{border-color:#17171a;box-shadow:0 0 0 2px #17171a inset}
#studio-plein .nuance{width:44px;height:44px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #c9c9cf;cursor:pointer;padding:0}
#studio-plein .nuance[aria-pressed="true"]{box-shadow:0 0 0 3px #17171a}
#studio-plein input[type=color]{width:56px;min-height:44px;padding:2px;border-radius:10px}
#studio-plein .galerie-edit{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
#studio-plein .galerie-edit figure{position:relative;margin:0}
#studio-plein .galerie-edit img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}
#studio-plein .galerie-edit button{position:absolute;top:4px;right:4px;width:32px;height:32px;border-radius:50%;border:0;background:#000b;color:#fff;cursor:pointer}
#th-apercu{margin:0 0 14px;border:1px solid #d8d8de}

/* Mini site d'un salon Premium : en-têtes, onglets, sections */
.th-hero{position:relative}
.hero-gauche .th-id{text-align:left}
.hero-gauche .th-logo{margin:0 0 4px}
.hero-gauche .th-id h2,.hero-gauche .th-sous{text-align:left}
.hero-plein .th-id{position:absolute;left:0;right:0;bottom:0;margin:0;padding:80px 18px 16px;background:linear-gradient(to top,#000d,#0000);text-align:left}
.hero-plein .th-id h2,.hero-plein .th-sous{color:#fff;text-align:left;opacity:1}
.hero-plein .th-logo{width:60px;height:60px;margin:0 0 6px;border-color:#fff}
.hero-plein .th-id.sans-logo{margin-top:0}
.th-nav{display:flex;border-bottom:1px solid var(--th-ligne);background:var(--th-bg)}
.th-nav button{flex:1 1 0;min-width:0;min-height:58px;padding:8px 2px 6px;border:0;background:none;color:var(--th-txt);font:inherit;font-size:12px;font-weight:600;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;opacity:.6;letter-spacing:.01em}
.th-nav button i{font-size:21px}
.th-nav button[aria-selected="true"]{opacity:1;color:var(--th-acc)}
.th-corps{padding-top:16px}
.th-titre-sec{margin:24px 0 10px;font-size:22px}
.th-prestas.cartes{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.th-prestas.cartes .presta{grid-template-columns:1fr;border:1px solid var(--th-ligne);border-radius:var(--th-r);padding:14px;background:var(--th-doux);align-content:space-between;gap:8px}
.th-prestas.cartes .presta .btn{width:100%}
.th-equipe{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.th-membre{border:1px solid var(--th-ligne);background:var(--th-doux);border-radius:var(--th-r);padding:16px;text-align:center}
.th-avatar{width:56px;height:56px;border-radius:50%;background:var(--th-acc);color:var(--th-on);display:grid;place-items:center;margin:0 auto 8px;font-size:22px;font-weight:700;font-family:var(--th-titre),'DM Sans',sans-serif}
.th [hidden]{display:none!important}
.th .center{text-align:center}

/* Studio plein écran : aperçu d'un côté, réglages de l'autre */
#studio-plein{position:fixed;inset:0;z-index:100;background:#f1f1f4;display:flex;flex-direction:column}
.st-haut{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#fff;border-bottom:1px solid #e3e3e8}
.st-haut h3{flex:1;margin:0;font-size:17px}
.st-corps{flex:1;min-height:0;display:flex;flex-direction:column}
.st-apercu{flex:1 1 50%;min-height:0;overflow:auto;padding:12px;display:flex;justify-content:center;align-items:flex-start;background:#e6e6eb}
.st-tel{width:min(100%,400px);margin:0 auto}
.st-tel .th{margin-top:0;box-shadow:0 6px 24px #0002}
.st-ctrl{flex:0 0 47%;min-height:0;background:#fff;border-top:1px solid #d8d8de;display:flex;flex-direction:column}
.st-onglets{display:flex;gap:6px;overflow-x:auto;padding:8px 10px;border-bottom:1px solid #eee;scrollbar-width:none}
.st-onglets::-webkit-scrollbar{display:none}
.st-onglets button{flex:0 0 auto;min-height:44px;padding:0 14px;border:0;border-radius:999px;background:#f1f1f4;font:inherit;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:6px;color:#17171a}
.st-onglets button[aria-selected="true"]{background:#17171a;color:#fff}
.st-panneaux{flex:1;min-height:0;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.st-panneaux::-webkit-scrollbar{display:none}
.st-panneau{flex:0 0 100%;scroll-snap-align:start;overflow-y:auto;padding:0 16px 18px}
.st-ctrl .error{margin:0;padding:0 16px;min-height:0}
.st-indice{font-size:13px;color:#6b6b73;text-align:center;padding:6px 0 0}
@media(min-width:900px){
  .st-corps{flex-direction:row-reverse}
  .st-apercu{flex:1}
  .st-ctrl{flex:0 0 460px;min-width:0;max-width:460px;border-top:0;border-right:1px solid #d8d8de}
}

/* Modèles du studio */
.st-aide{background:#f4f4f6;border-radius:12px;padding:12px 14px;margin:12px 0;font-size:15px;line-height:1.45}
.modeles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0 6px}
.modele{border:2px solid #e3e3e8;border-radius:16px;background:#fff;padding:8px;cursor:pointer;font:inherit;text-align:left;display:flex;flex-direction:column;gap:8px}
.modele[aria-pressed="true"]{border-color:#17171a;box-shadow:0 0 0 2px #17171a inset}
.m-vue{display:block;position:relative;height:78px;border-radius:10px;overflow:hidden;padding:10px 12px;border:1px solid #0001}
.m-vue b{font-size:26px;line-height:1}
.m-vue i{position:absolute;right:10px;bottom:10px;width:44px;height:16px;border-radius:99px}
.m-vue u{position:absolute;left:12px;bottom:10px;width:46px;height:8px;border-radius:99px}
.m-nom{font-weight:700;font-size:15px;padding:0 4px 4px}

