/* La charte de typikah.com (thème clair de sa feuille de style, relevée le 24/11/2026) */
:root {
  --fond: #f9f8f5;
  --sable: #ebe6da;
  --carte: #fbfaf8;
  --encre: #172a22;
  --vert: #2f6a55;
  --vert-clair: #dcebe3;
  --nuit: #101e19;
  --terre: #b94d31;
  --terre-clair: #f5ded5;
  --ambre-clair: #f6ebcf;
  --gris: #60766d;
  --bord: #d8d4ca;
  --r: .5rem;
  --titre: "Chennai Slab W00 Regular", "Jost", system-ui, sans-serif;
  --texte: "Jost", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 16px/1.5 var(--texte); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.cadre { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
.petit { font-size: .875rem; color: var(--gris); }

/* ---------- l'en-tête du site ---------- */
.nav { background: var(--nuit); color: #f3f0e8; position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.nav-dedans { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav-logo img { height: 34px; width: auto; }
.nav-liens { display: flex; gap: 28px; margin: 0 auto; font-size: .875rem; }
.nav-liens a { color: inherit; text-decoration: none; opacity: .92; }
.nav-liens a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-droite { display: flex; align-items: center; gap: 16px; }
.nav-pro { border: 1px solid rgba(243,240,232,.35); border-radius: 6px; padding: 6px 12px; font-size: .8125rem; color: #e9a58c; border-color: rgba(233,165,140,.55); }
.nav-compte { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; }
.nav-compte svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav-panier { width: 34px; height: 34px; }

/* ---------- le bandeau de chaque vue ---------- */
.bandeau { background: var(--sable); }
.bandeau .cadre { padding-block: 44px 36px; display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.bandeau h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.bandeau p { margin: 10px 0 0; max-width: 620px; color: #3c4d45; }
.etiquette { display: inline-block; background: var(--vert); color: #f6f3ea; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.bandeau-photo { width: 220px; height: 132px; border-radius: var(--r); object-fit: cover; }

/* ---------- blocs communs ---------- */
.grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; padding-block: 36px; align-items: start; }
.bloc { background: var(--carte); border: 1px solid var(--bord); border-radius: calc(var(--r) * 1.5); padding: 24px; }
.bloc + .bloc { margin-top: 24px; }
.bloc-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.bloc h2 { font-size: 1.5rem; }
.btn { border: 0; border-radius: 999px; background: var(--vert); color: #f6f3ea; padding: 11px 20px; font-weight: 500; font-size: .9375rem; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { background: #255744; }
.btn:disabled { background: #aab5ae; cursor: not-allowed; }
.btn-large { width: 100%; justify-content: center; padding: 14px 20px; font-size: 1rem; }
.btn-ligne { background: transparent; color: var(--vert); border: 1px solid var(--vert); }
.btn-ligne:hover { background: var(--vert-clair); }
.btn-terre { background: var(--terre); }
.btn-terre:hover { background: #9e4029; }
.lien { background: none; border: 0; padding: 0; color: var(--vert); text-decoration: underline; text-underline-offset: 3px; font-size: .875rem; }

/* ---------- espace client : comme d'habitude ---------- */
.habitude { display: flex; gap: 20px; align-items: center; background: var(--vert); color: #f3f0e8; border-radius: calc(var(--r) * 1.5); padding: 20px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.habitude img { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; }
.habitude-texte { flex: 1; min-width: 200px; }
.habitude-texte strong { display: block; font-size: 1.0625rem; font-weight: 500; }
.habitude-texte span { font-size: .875rem; opacity: .85; }
.habitude .btn { background: #f3f0e8; color: var(--vert); }
.habitude .btn:hover { background: #fff; }

/* ---------- espace client : le catalogue ---------- */
.gamme { margin: 22px 0 6px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--vert); }
.gamme:first-of-type { margin-top: 4px; }
.cafe { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--bord); }
.cafe img { width: 56px; height: 56px; border-radius: var(--r); object-fit: cover; background: var(--sable); }
.cafe-nom { font-weight: 500; }
.cafe-nom a { color: inherit; text-decoration: none; }
.cafe-nom a:hover { text-decoration: underline; }
.cafe-notes { font-size: .8125rem; color: var(--gris); }
.cafe-prix { font-size: .875rem; white-space: nowrap; text-align: right; }
.cafe-prix b { font-weight: 500; font-size: .9375rem; }
.cafe-actions { display: flex; gap: 8px; align-items: center; }
.cafe.rupture { opacity: .55; }
.cafe.choisi { background: linear-gradient(90deg, var(--vert-clair), transparent 70%); margin-inline: -12px; padding-inline: 12px; border-radius: var(--r); }
.puce-rupture { font-size: .75rem; color: var(--terre); font-weight: 500; }
select.mouture { border: 1px solid var(--bord); border-radius: var(--r); background: #fff; padding: 7px 8px; font-size: .8125rem; }
.pas { display: inline-flex; align-items: center; border: 1px solid var(--bord); border-radius: 999px; background: #fff; }
.pas button { width: 34px; height: 34px; border: 0; background: none; border-radius: 999px; font-size: 1.125rem; color: var(--vert); }
.pas button:hover { background: var(--vert-clair); }
.pas button:disabled { color: #b8c0bb; background: none; cursor: not-allowed; }
.pas output { min-width: 46px; text-align: center; font-size: .875rem; font-weight: 500; }

/* ---------- espace client : la commande ---------- */
.commande { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow-y: auto; overscroll-behavior: contain; }
.ligne-panier { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--bord); font-size: .875rem; }
.ligne-panier .lien { color: var(--gris); text-decoration: none; margin-left: 6px; }
.vide { font-size: .875rem; color: var(--gris); padding: 4px 0 8px; }
.totaux { display: flex; justify-content: space-between; padding: 12px 0 4px; font-weight: 500; }
.choix-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--sable); padding: 4px; border-radius: 999px; margin: 18px 0 14px; }
.choix-mode button { border: 0; background: none; padding: 8px 6px; border-radius: 999px; font-size: .8125rem; }
.choix-mode button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(16,30,25,.15); font-weight: 500; }
.sous-titre { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); margin: 4px 0 8px; }

/* le calendrier (le même composant dans l'espace client et dans l'atelier) */
.cal-mois { font-size: .875rem; font-weight: 500; text-transform: capitalize; margin-bottom: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-jour-nom { font-size: .6875rem; text-align: center; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 2px; }
.cal button { position: relative; height: 36px; border: 1px solid transparent; border-radius: var(--r); background: #fff; font-size: .8125rem; padding: 0; }
.cal button.non { background: transparent; color: #b1b8b3; }
.cal button.passe { visibility: hidden; }
.cal button.ok:hover { border-color: var(--vert); }
.cal button.choisi { background: var(--vert); color: #fff; font-weight: 600; }
.cal button.torref::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--terre); }
.cal button.choisi.torref::after { background: #f3c6b6; }
.cal-legende { display: flex; gap: 14px; font-size: .75rem; color: var(--gris); margin-top: 8px; flex-wrap: wrap; }
.cal-legende i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--terre); margin-right: 6px; vertical-align: middle; }
.explication { margin: 14px 0 16px; padding: 12px 14px; border-radius: var(--r); background: var(--vert-clair); font-size: .875rem; min-height: 46px; }
.explication.refus { background: var(--terre-clair); color: #7a2f1c; }

/* ---------- le suivi d'une commande (le même composant dans les deux vues) ---------- */
.suivi { display: flex; gap: 4px; }
.suivi span { flex: 1; text-align: center; font-size: .6875rem; padding: 5px 4px; border-radius: 999px; background: #efede7; color: #98a29d; white-space: nowrap; }
.suivi span.fait { color: var(--encre); }
.suivi span.etat-recue { background: var(--ambre-clair); color: #6b5413; font-weight: 600; }
.suivi span.etat-torrefiee { background: var(--terre-clair); color: #7a2f1c; font-weight: 600; }
.suivi span.etat-en-route { background: #dfe8f1; color: #2b4a66; font-weight: 600; }
.suivi span.etat-livree { background: var(--vert-clair); color: #1f4d3c; font-weight: 600; }

.cmd { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(250px, 1.2fr); gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--bord); }
.cmd:first-of-type { border-top: 0; }
.cmd-quoi { font-size: .9375rem; }
.cmd-quoi small, .cmd-quand small { display: block; color: var(--gris); font-size: .8125rem; }
.cmd-quand { font-size: .875rem; }
.cmd-droite { display: flex; flex-direction: column; gap: 8px; }
.cmd-actions { display: flex; justify-content: flex-end; gap: 12px; align-items: center; min-height: 20px; }
.cmd.nouvelle { box-shadow: inset 3px 0 0 var(--terre); padding-left: 14px; animation: arrivee 1.6s ease-out; }
@keyframes arrivee { from { background: var(--terre-clair); } to { background: transparent; } }
.mot-nouvelle { display: inline-block; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--terre); margin-left: 8px; }

.sav textarea, .sav select { width: 100%; border: 1px solid var(--bord); border-radius: var(--r); background: #fff; padding: 10px 12px; font-size: .9375rem; }
.sav textarea { min-height: 84px; resize: vertical; margin: 8px 0 12px; }
.deux { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding-bottom: 36px; align-items: start; }
.deux .bloc + .bloc { margin-top: 0; }

/* ---------- l'atelier ---------- */
.plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-jour { background: #fff; border: 1px solid var(--bord); border-radius: var(--r); padding: 16px; }
.plan-jour.aujourdhui { border-color: var(--terre); }
.plan-date { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--terre); }
.plan-total { font-family: var(--titre); font-size: 2rem; margin: 4px 0 10px; }
.plan-total small { font-family: var(--texte); font-size: .875rem; color: var(--gris); }
.plan-ligne { display: flex; justify-content: space-between; gap: 8px; font-size: .875rem; padding: 6px 0; border-top: 1px dashed var(--bord); }
.plan-ligne span:last-child { font-weight: 500; white-space: nowrap; }
.plan-ligne.flash { animation: arrivee 1.6s ease-out; }
.plan-vide { font-size: .875rem; color: var(--gris); }
.demande { padding: 12px 0; border-top: 1px solid var(--bord); font-size: .9375rem; }
.demande:first-of-type { border-top: 0; }
.demande-tete { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.demande p { margin: 4px 0 8px; color: #3c4d45; font-size: .875rem; }
.demande.traitee { opacity: .5; }
.regle { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--bord); flex-wrap: wrap; font-size: .9375rem; }
.regle:first-of-type { border-top: 0; }
.jours { display: flex; gap: 4px; }
.jours button { width: 40px; height: 34px; border-radius: 999px; border: 1px solid var(--bord); background: #fff; font-size: .8125rem; }
.jours button[aria-pressed="true"] { background: var(--terre); border-color: var(--terre); color: #fff; }
.note-maquette { font-size: .8125rem; color: var(--gris); margin-top: 12px; }

/* ---------- Instagram ---------- */
.insta { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; padding-block: 36px; align-items: start; }
.sujets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.sujets button { text-align: left; border: 1px solid var(--bord); background: #fff; border-radius: var(--r); padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.sujets button img { width: 48px; height: 60px; object-fit: cover; border-radius: 4px; }
.sujets button[aria-pressed="true"] { border-color: var(--vert); box-shadow: inset 3px 0 0 var(--vert); }
.sujets b { font-weight: 500; display: block; }
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.vignettes img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; width: 100%; }
.etapes { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: e; }
.etapes li { counter-increment: e; padding: 10px 0 10px 44px; position: relative; border-top: 1px solid var(--bord); }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 50%; background: var(--sable); color: var(--vert); font-weight: 600; font-size: .8125rem; display: grid; place-items: center; }

.tel { background: #fff; border: 1px solid #e3e3e3; border-radius: 34px; padding: 14px 0 18px; box-shadow: 0 20px 50px rgba(16,30,25,.14); position: sticky; top: 96px; }
.ig-tete { display: flex; align-items: center; gap: 10px; padding: 4px 14px 10px; font-size: .875rem; }
.ig-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--nuit) url(logo.svg) center/80% no-repeat; padding: 2px; outline: 2px solid #e8b04a; outline-offset: 1px; }
.ig-tete b { font-weight: 600; }
.ig-tete small { display: block; color: #737373; font-size: .75rem; }
.ig-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; }
.ig-piste::-webkit-scrollbar { display: none; }
.ig-piste img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; object-fit: cover; }
.ig-cadre { position: relative; }
.ig-fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.2); font-size: 1rem; line-height: 1; color: #262626; }
.ig-fleche.g { left: 10px; } .ig-fleche.d { right: 10px; }
.ig-fleche:disabled { opacity: 0; pointer-events: none; }
.ig-barre { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 4px; }
.ig-icones { display: flex; gap: 14px; }
.ig-icones svg { width: 24px; height: 24px; fill: none; stroke: #262626; stroke-width: 1.8; }
.ig-points { display: flex; gap: 4px; }
.ig-points i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; }
.ig-points i.on { background: #3897f0; }
.ig-legende { padding: 6px 14px 0; font-size: .875rem; white-space: pre-line; color: #262626; }
.ig-legende b { font-weight: 600; margin-right: 4px; }
.ig-source { padding: 8px 14px 0; font-size: .75rem; color: #8e8e8e; }
.programmer { margin-top: 14px; }
.programme-ok { margin-top: 14px; text-align: center; font-size: .875rem; color: var(--vert); font-weight: 500; }

/* ---------- la bascule entre les vues ---------- */
.bascule { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--nuit); box-shadow: 0 10px 30px rgba(16,30,25,.3); max-width: calc(100% - 24px); }
.bascule button { border: 0; background: none; color: #e7e3d8; padding: 10px 18px; border-radius: 999px; font-size: .875rem; white-space: nowrap; position: relative; }
.bascule button[aria-selected="true"] { background: #f3f0e8; color: var(--nuit); font-weight: 500; }
.bascule .bascule-zero { padding: 10px 12px; opacity: .6; }
.bascule .bascule-zero:hover { opacity: 1; }
.pastille { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--terre); color: #fff; font-size: .6875rem; font-weight: 600; margin-left: 4px; }

/* ---------- modal, toast, pied ---------- */
.voile-modal { position: fixed; inset: 0; background: rgba(16,30,25,.45); z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 28px; position: relative; }
.modal-fermer { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.5rem; color: var(--gris); }
.facture-tete { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin: 0 28px 20px 0; }
.facture-tete img { height: 30px; width: auto; }
.facture table { width: 100%; border-collapse: collapse; font-size: .875rem; margin: 14px 0; }
.facture th, .facture td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--bord); }
.facture td:last-child, .facture th:last-child { text-align: right; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 35; background: var(--vert); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: .9375rem; box-shadow: 0 8px 24px rgba(16,30,25,.25); max-width: calc(100% - 32px); }
.pied { background: var(--sable); margin-top: 24px; }
.pied-dedans { padding-block: 32px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: .875rem; color: #3c4d45; }
.pied-dedans p { margin: 0; flex: 1; min-width: 240px; }
.pied-logo { height: 30px; width: auto; }
.pied .pied-note { flex: 0 0 auto; min-width: 0; color: var(--gris); font-size: .8125rem; }

/* ---------- écrans étroits ---------- */
@media (max-width: 1080px) {
  .nav-liens { display: none; }
  .nav-droite { margin-left: auto; }
  .grille, .insta { grid-template-columns: minmax(0, 1fr); }
  .commande, .tel { position: static; }
  .tel { max-width: 400px; margin: 0 auto; }
  .plan { grid-template-columns: minmax(0, 1fr); }
  .deux { grid-template-columns: minmax(0, 1fr); }
  .deux .bloc + .bloc { margin-top: 0; }
}
@media (max-width: 720px) {
  .cadre { padding-inline: 16px; }
  .nav-dedans { height: 60px; gap: 12px; }
  .nav-logo img { height: 26px; }
  .nav-pro, .nav-panier { display: none; }
  .bandeau .cadre { padding-block: 28px 24px; }
  .bandeau-photo { display: none; }
  .bloc { padding: 18px 16px; }
  .cafe { grid-template-columns: 48px minmax(0, 1fr) auto; row-gap: 8px; }
  .cafe img { width: 48px; height: 48px; }
  .cafe-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .cmd { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cmd-actions { justify-content: flex-start; }
  .bascule button { padding: 9px 12px; font-size: .8125rem; }
  .suivi span { font-size: .625rem; padding: 4px 2px; }
}
