/* kodpéi Atelier — le Studio du propriétaire : même identité que le site kodpéi (« Une journée péi »).
   Trait d'encre, ombre décalée soleil, chiffres façon ticket, et pour chaque site un soleil qui avance de la fiche à l'appli remise. */
@font-face { font-family: "Ticket"; src: url("/fonts/kp-ticket-gras.woff2") format("woff2"), url("/fonts/kp-ticket-gras.woff") format("woff"); font-weight: 700; font-display: swap; }
.studio { --st-ombre: 5px 5px 0 var(--encre); }
.studio h1 { font-family: var(--titre); letter-spacing: -.02em; }

.st-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.st-marque { flex: 1; display: flex; align-items: center; gap: 8px; }
.st-logo { font-family: "Cookie", cursive; font-size: 34px; line-height: 1; }
.st-pill { padding: 5px 8px 4px; border-radius: 4px; background: var(--encre); color: var(--jaune); font: 700 11px/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; }
.st-heure { font: 700 13px/1 "Ticket", monospace; padding: 8px 10px 7px; border-radius: 99px; border: 2px solid var(--encre); white-space: nowrap; }

.st-une { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 20px; border: 2px solid var(--encre); border-radius: 22px; box-shadow: 6px 6px 0 var(--jaune); background: linear-gradient(170deg, #CFE9F3, #F7F1E4); position: relative; overflow: hidden; }
.st-une::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(var(--rouge), var(--rouge)) top / 100% 2px no-repeat, var(--encre); }
.st-une h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.05; margin: 0 0 6px; }
.st-une p { margin: 0 0 6px; }
.st-nouveau { min-height: 52px; padding: 0 20px; font-size: 16px; box-shadow: 4px 4px 0 var(--encre); margin-bottom: 8px; }

.st-chemin { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 18px 0 14px; padding: 0; }
.st-chemin li { display: grid; gap: 2px; padding: 10px 8px; border-radius: 14px; border: 1.5px solid var(--ligne); background: #fff; text-align: center; min-width: 0; }
.st-chemin b { font: 700 22px/1 "Ticket", monospace; }
.st-chemin span { font-size: 11.5px; font-weight: 700; color: var(--discret); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-chemin li.plein { border-color: var(--encre); background: var(--jaune); }
.st-chemin li.plein span { color: var(--encre); }
@media (max-width: 560px) { .st-chemin { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 380px) { .st-chemin li { padding: 9px 4px; } .st-chemin span { white-space: normal; overflow: visible; line-height: 1.15; } }

.st-filtres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.st-grille { display: grid; gap: 26px 16px; padding-top: 6px; }
@media (min-width: 760px) { .st-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .st-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-vide { padding: 28px 16px; text-align: center; border: 2px dashed var(--ligne); border-radius: 18px; }

.st-carte { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 2px solid var(--encre); border-radius: 20px; background: #fff; box-shadow: var(--st-ombre); min-width: 0; }
.st-carte.fini { box-shadow: 5px 5px 0 #1F8A55; }
.st-haut { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
/* le compte à rebours : une étiquette posée sur le bord de la carte, le nom du commerce garde toute la largeur */
.st-carte { position: relative; }
.st-haut .st-rebours { position: absolute; top: -13px; right: 16px; border: 2px solid var(--encre); box-shadow: 2px 2px 0 var(--encre); }
.st-carte:has(.st-rebours) .st-haut { padding-top: 4px; }
.st-initiales { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 700 17px/1 var(--titre); border: 2px solid var(--encre); }
.st-nom { flex: 1; min-width: 0; display: grid; }
.st-nom b { font-size: 16.5px; line-height: 1.2; overflow-wrap: anywhere; }
.st-nom span { font-size: 13px; }
.st-rebours { flex: none; font: 700 13px/1 "Ticket", monospace; padding: 7px 9px 6px; border-radius: 9px; background: #E4ECF7; color: #2C5A9E; }
.st-rebours.proche { background: var(--jaune); color: var(--encre); }
.st-rebours.retard { background: var(--rouge); color: #fff; }
.st-etat { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #F6F2EA; }
.st-etat > div { display: grid; min-width: 0; }
.st-etat b { font-size: 15px; }
.st-etat span { font-size: 12.5px; }
.st-soleil { flex: none; width: 92px; color: var(--encre); }
.st-soleil svg { display: block; width: 100%; height: auto; }
/* la ligne du client, avec son bouton WhatsApp au bout (jamais seul en bas de la carte) */
.st-client { display: flex; align-items: center; gap: 10px; }
.st-client p { flex: 1; min-width: 0; margin: 0; font-size: 13px; }
.st-client .st-wa { width: 40px; height: 40px; border-radius: 10px; color: var(--encre); }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.st-actions .btn { flex: 0 0 auto; }
.st-liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* la fiche de l'échange */
.st-fiche-grille { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .st-fiche-grille { grid-template-columns: minmax(0, 1fr) 300px; } .st-cote { position: sticky; top: 16px; } }
.st-sec { padding: 18px 16px 6px; margin-bottom: 14px; border: 1.5px solid var(--ligne); border-radius: 20px; background: #fff; }
.st-sec h2 { display: flex; align-items: center; gap: 10px; font: 700 18px/1.2 var(--titre); margin: 0 0 14px; }
.st-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--jaune); border: 2px solid var(--encre); font: 700 14px/1 "Ticket", monospace; flex: none; }
.st-2 { display: grid; gap: 0 12px; align-items: start; }
@media (min-width: 560px) { .st-2 { grid-template-columns: 1fr 1fr; } }
.st-fiche .champ label { display: grid; gap: 6px; }
.st-fiche input[type=text], .st-fiche input[type=tel], .st-fiche input[type=email], .st-fiche input[type=date], .st-fiche textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--ligne); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--texte); }
.st-fiche textarea { resize: vertical; line-height: 1.45; }
.st-fiche input:focus, .st-fiche textarea:focus { outline: none; border-color: var(--encre); box-shadow: 3px 3px 0 var(--jaune); }
.st-fiche .adresse-site { border: 2px solid var(--ligne); background: #fff; }
.st-fiche .adresse-site:focus-within { border-color: var(--encre); box-shadow: 3px 3px 0 var(--jaune); }
.st-fiche .adresse-site input[type=text] { border: 0; border-radius: 0; box-shadow: none; padding-left: 0; }
.st-fiche .adresse-site span { padding: 0 2px 0 12px; }
.st-sec > .aide { display: block; margin: 8px 0 14px; font-size: 12px; color: var(--discret); }
.st-micro { justify-self: start; }
.st-micro[aria-pressed="true"] { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.st-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-bottom: 12px; }
.st-ajout { aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 8px; border: 2px dashed var(--encre); border-radius: 16px; background: #FFFBE0; font: 700 13px/1.25 var(--corps, inherit); color: var(--encre); text-align: center; cursor: pointer; }
.st-vign { position: relative; margin: 0; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 2px solid var(--encre); }
.st-vign img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-vign figcaption { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 6px; background: rgba(11,14,12,.82); color: #fff; font-size: 11.5px; font-weight: 700; }
.st-vign .icone { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; min-height: 0; border-radius: 50%; background: #fff; border: 2px solid var(--encre); font-size: 18px; line-height: 1; }
.st-resume { padding: 18px; border: 2px solid var(--encre); border-radius: 20px; background: linear-gradient(170deg, #FFF6B8, #fff 60%); box-shadow: 5px 5px 0 var(--encre); display: grid; gap: 4px; margin-bottom: 14px; }
.st-res-t { margin: 0; font: 700 11px/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; }
.st-res-nom { font: 700 22px/1.15 var(--titre); margin-top: 6px; overflow-wrap: anywhere; }
.st-resume ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.st-resume li::before { content: "— "; color: var(--rouge); font-weight: 700; }
.st-manque { margin: 10px 0 0; font-size: 13px; color: var(--rouge-clair); font-weight: 600; }
.st-ok { margin: 10px 0 0; font-size: 13px; color: var(--vert); font-weight: 700; }
.st-creer { min-height: 56px; font-size: 17px; box-shadow: 4px 4px 0 var(--encre); }

/* un commerçant sans site */
.sans-site { text-align: center; }
.sans-site .entete { text-align: left; }
.sans-site h1 { margin-top: 10px; }

/* le contrôle avant la mise en ligne */
.st-controle { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.st-controle li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: #F6F2EA; font-size: 14px; }
.st-controle li > span:first-child { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--vert); color: #fff; }
.st-controle li.dur { background: #FDE6E3; } .st-controle li.dur > span:first-child { background: var(--rouge); }
.st-controle li.doux > span:first-child { background: var(--jaune); color: var(--encre); }
.st-controle a { font-weight: 700; font-size: 13px; color: var(--encre); }
.st-cherche { flex: 1 1 200px; min-height: 44px; padding: 0 14px; border: 2px solid var(--ligne); border-radius: 999px; font: inherit; }
.st-mode { width: 100%; margin: 4px 0 12px; padding: 10px 12px; border: 2px solid var(--ligne); border-radius: 12px; font: inherit; font-size: 16px; background: #F6F2EA; resize: none; }
@media (max-width: 360px) { .st-heure { display: none; } }
/* téléphone : retour et « Vider » sur la première ligne, le titre et sa phrase sur toute la largeur dessous */
@media (max-width: 560px) { .st-fiche > .entete { flex-wrap: wrap; } .st-fiche > .entete > .espace { order: 3; flex-basis: 100%; } }

/* la une du Studio : le vrai ciel de La Réunion et l'île en tirets */
.st-une{position:relative;overflow:hidden;border:2px solid var(--encre,#0B0E0C);border-radius:22px;padding:20px 18px;background:linear-gradient(170deg,var(--kpj-ciel-haut),var(--kpj-ciel-bas));box-shadow:6px 6px 0 var(--encre,#0B0E0C);isolation:isolate}
.st-une>.st-une-txt,.st-une>.st-nouveau{position:relative;z-index:1}
.st-ile{position:absolute;right:-10px;bottom:8px;width:min(46%,300px);height:100%;max-height:150px;z-index:0;pointer-events:none;opacity:.95}
.kpj-nuit .st-une{color:#F2EFFA}
.kpj-nuit .st-une .discret{color:#D7D3EA}
@media(max-width:560px){.st-une{padding-bottom:104px}.st-ile{left:0;right:0;width:100%;height:96px;max-height:none;opacity:1}}

/* décors de saison et remarques du client */
.st-decor-ic { display: inline-grid; width: 20px; height: 20px; }
.st-decor-ic svg, .st-decor-p svg { width: 100%; height: 100%; display: block; }
.st-dit-ok { margin: 0; padding: 10px 12px; border-radius: 12px; background: #E8F6EE; color: #14532D; font-weight: 600; font-size: 14.5px; }
.st-decors { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.st-decor { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "p n" "p e"; gap: 2px 12px; align-items: center; text-align: left; border: 2px solid var(--encre); border-radius: 16px; background: var(--fond); color: var(--texte); padding: 8px 12px 8px 8px; cursor: pointer; }
.st-decor-p { grid-area: p; width: 46px; height: 46px; border-radius: 12px; padding: 5px; }
.st-decor b { grid-area: n; font-size: 16px; }
.st-decor-etat { grid-area: e; font-size: 13px; color: var(--doux, #5A544D); }
.st-decor-etat.actif { color: #14532D; font-weight: 700; }
.st-groupe { border: 2px solid var(--encre); border-radius: 16px; padding: 10px 14px 6px; margin: 14px 0; display: grid; gap: 10px; }
.st-groupe legend { font-weight: 700; padding: 0 6px; }
.st-choix { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; min-height: 40px; }
.st-choix input { width: 20px; height: 20px; margin: 1px 0 0; }
.st-choix small { display: block; color: var(--doux, #5A544D); font-size: 13px; }
.st-rqs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.st-rq { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; border: 2px solid var(--encre); border-radius: 14px; padding: 10px 12px; }
.st-rq.faite { opacity: .6; }
.st-rq-n { width: 26px; height: 26px; border-radius: 50%; background: #E0312B; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.st-rq-texte { margin: 0 0 2px; font-weight: 600; overflow-wrap: anywhere; }
.st-rq .discret { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.st-rq-fait { display: flex; align-items: center; gap: 6px; font-weight: 600; min-height: 40px; cursor: pointer; }
.st-rq-fait input { width: 20px; height: 20px; }
