/* ═══════════════════════════════════════════════
   CARTE MAURICE SFEZ CAFÉ, CANNES
   Charte reprise du site : vert de marque relevé
   au pixel sur le logotype, store à festons.
   ═══════════════════════════════════════════════ */

:root{
  --green:#3B7858; --green-d:#2B5940; --green-dd:#1E4230; --green-l:#6A9C81;
  --cream:#F5EDE0; --cream-2:#EFE3D1; --cream-3:#FAF5EC; --peach:#EFC9A6;
  --ink:#21302A;
  --disp:'Fraunces','Times New Roman',serif;
  --mono:'Space Mono',ui-monospace,'SFMono-Regular',monospace;
  --ease:cubic-bezier(.22,.61,.36,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --maxw:560px;
  --bar:54px;
}
*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; background:var(--cream); color:var(--green-d);
  font-family:var(--mono); font-size:15px; line-height:1.6;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{ display:block; max-width:100%; height:auto; }
button{ font:inherit; color:inherit; border:0; background:none; cursor:pointer; }
a{ color:inherit; }
::selection{ background:var(--green); color:var(--cream); }
h1,h2,h3{ margin:0; font-weight:400; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 18px; }

/* ── Bandeau haut ──────────────────────────────── */
.top{ position:sticky; top:0; z-index:60; background:var(--cream); }  /* les photos ne défilent pas entre les festons */
.top__bar{
  background:var(--cream-3); height:var(--bar);
  padding-top:env(safe-area-inset-top);
  box-sizing:content-box;
}
.top__in{
  max-width:var(--maxw); margin:0 auto; padding:0 18px; height:var(--bar);
  display:flex; align-items:center; gap:12px;
}
.top__logo{ height:16px; width:auto; }
.top__sp{ flex:1; }
.lang{ display:flex; border:1px solid rgba(59,120,88,.3); border-radius:100px; overflow:hidden; }
.lang button{
  padding:6px 12px; font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--green); transition:background .25s var(--ease), color .25s var(--ease);
}
.lang button[aria-pressed="true"]{ background:var(--green); color:var(--cream-3); }

.valance{
  --r:13px; height:28px; width:100%;
  background:repeating-linear-gradient(90deg,
    var(--green) 0 calc(2*var(--r)), var(--cream-3) calc(2*var(--r)) calc(4*var(--r)));
  -webkit-mask:
    linear-gradient(#000 0 0) 0 0/100% calc(100% - var(--r)) no-repeat,
    radial-gradient(var(--r) at 50% 0,#000 99%,#0000 101%) 0 100%/calc(2*var(--r)) var(--r) repeat-x;
  mask:
    linear-gradient(#000 0 0) 0 0/100% calc(100% - var(--r)) no-repeat,
    radial-gradient(var(--r) at 50% 0,#000 99%,#0000 101%) 0 100%/calc(2*var(--r)) var(--r) repeat-x;
  filter:drop-shadow(0 4px 7px rgba(30,66,48,.10));
}

/* ── Panneau « commandez au comptoir » ─────────── */
.ordre{
  background:var(--green); color:var(--cream-3);
  padding:30px 0 28px; text-align:center;
}
.ordre h1{
  font-family:var(--disp); font-variation-settings:'SOFT' 100,'WONK' 1,'opsz' 144;
  font-size:clamp(30px,8.6vw,40px); line-height:1.02; letter-spacing:-.015em;
  color:var(--cream-3); margin-bottom:14px;
}
.ordre p{ font-size:13.5px; line-height:1.6; opacity:.88; margin:0 auto; max-width:30ch; }
.ordre__pas{
  display:inline-flex; flex-direction:column; gap:9px;
  margin-top:22px; text-align:left;
}
.ordre__pas span{
  display:flex; align-items:center; gap:8px;
  background:rgba(245,237,224,.12); border:1px solid rgba(245,237,224,.22);
  border-radius:100px; padding:9px 15px 9px 9px;
  font-size:11.5px; letter-spacing:.02em;
}
.ordre__pas b{
  width:22px; height:22px; border-radius:100px; flex:none;
  background:var(--peach); color:var(--green-dd);
  display:flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:700;
}

/* rappel compact une fois qu'on a défilé */
.rappel{
  background:var(--green); color:var(--cream-3);
  border-radius:100px; padding:8px 14px; margin:0 0 9px;
  font-size:11px; letter-spacing:.02em; line-height:1.3; text-align:center;
}

/* ── Recherche et navigation de catégories ─────── */
.outils{
  position:sticky; top:calc(var(--bar) + env(safe-area-inset-top) + 28px); z-index:50;
  background:var(--cream); padding-top:11px;
  box-shadow:0 10px 12px -8px rgba(30,66,48,.12);
}
.rech{ position:relative; margin-bottom:10px; }
.rech input{
  width:100%; padding:11px 16px 11px 42px;
  border:1px solid rgba(59,120,88,.26); border-radius:100px;
  background:var(--cream-3); color:var(--green-d);
  font-family:var(--mono); font-size:14px;
}
.rech input::placeholder{ color:rgba(43,89,64,.45); }
.rech input:focus{ outline:2px solid var(--green); outline-offset:-1px; }
.rech svg{ position:absolute; left:16px; top:50%; transform:translateY(-50%);
  width:16px; height:16px; stroke:var(--green); fill:none; stroke-width:1.8; opacity:.6; }
.rech button{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:30px; height:30px; border-radius:100px; color:var(--green); font-size:16px;
  display:flex; align-items:center; justify-content:center;
}
.chips{ display:flex; gap:7px; overflow-x:auto; scrollbar-width:none;
  margin:0 -18px; padding:0 18px 12px; }
.chips::-webkit-scrollbar{ display:none; }
.chip{
  flex:none; padding:8px 14px; border-radius:100px;
  border:1px solid rgba(59,120,88,.28);
  font-size:11px; letter-spacing:.09em; text-transform:uppercase;
  color:var(--green); white-space:nowrap; background:var(--cream-3);
  transition:background .25s var(--ease), color .25s var(--ease);
}
.chip[aria-current="true"]{ background:var(--green); color:var(--cream-3); border-color:var(--green); }

/* ── Catégories ────────────────────────────────── */
.cat{ padding-top:26px; scroll-margin-top:196px; }
.cat__t{
  font-family:var(--disp); font-variation-settings:'SOFT' 100,'WONK' 1,'opsz' 144;
  font-size:30px; color:var(--green); line-height:1; letter-spacing:-.015em;
}
.cat__n{ font-size:10.5px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--green); opacity:.6; margin:7px 0 0; }
.cat__l{ height:1px; background:rgba(59,120,88,.2); margin:14px 0 4px; }

/* ── Articles ──────────────────────────────────── */
.item{
  display:flex; gap:14px; align-items:center; width:100%; text-align:left;
  padding:12px 0; border-bottom:1px solid rgba(59,120,88,.13);
  transition:opacity .2s var(--ease);
}
.item:last-child{ border-bottom:0; }
.item:active{ opacity:.6; }
.item__v{
  flex:none; width:68px; height:68px; border-radius:15px; overflow:hidden;
  background:linear-gradient(160deg,var(--cream-2),var(--peach));
  display:flex; align-items:center; justify-content:center;
}
.item__v img{ width:100%; height:100%; object-fit:cover; }
.item__v img.contain{ object-fit:contain; padding:6px; }
.item__v .grav{ width:52%; height:auto; object-fit:contain; padding:0; opacity:.34; }
.item__c{ flex:1; min-width:0; }
.item__n{ display:block; font-size:14px; color:var(--green-dd); line-height:1.35; }
.item__o{ display:block; font-size:11px; line-height:1.45; opacity:.6; margin-top:3px; }
.item__p{
  font-family:var(--disp); font-variation-settings:'SOFT' 100,'WONK' 1;
  font-size:17px; color:var(--green); white-space:nowrap; flex:none; align-self:flex-start;
  padding-top:2px; max-width:38%; text-align:right;
}
.item__v{ position:relative; }
.flag{                       /* pastille compacte : le libellé complet est sur la fiche */
  position:absolute; top:5px; left:5px; z-index:2;
  width:18px; height:18px; border-radius:100px;
  background:var(--green); color:var(--peach);
  display:flex; align-items:center; justify-content:center;
  font-size:10px; line-height:1;
}
.fiche__plus{
  display:inline-flex; align-items:center; gap:7px;
  background:var(--green); color:var(--cream-3);
  border-radius:100px; padding:6px 13px; margin:12px 0 0;
  font-size:10px; letter-spacing:.14em; text-transform:uppercase;
}

.vide{ text-align:center; padding:44px 10px; }
.vide img{ width:64px; margin:0 auto 14px; opacity:.45; }
.vide p{ font-size:13px; opacity:.65; margin:0; }

/* ── Extras & pied ─────────────────────────────── */
.extras{
  background:var(--cream-3); border:1px solid rgba(59,120,88,.16);
  border-radius:18px; padding:16px 18px; margin:30px 0 0;
}
.extras h3{ font-size:10.5px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--green); margin-bottom:8px; }
.extras p{ font-size:12px; line-height:1.65; margin:0; opacity:.78; }

.pied{ background:var(--green); color:var(--cream-3); margin-top:34px;
  padding:34px 0 calc(30px + env(safe-area-inset-bottom)); text-align:center; }
.pied__logo{
  width:172px; height:34px; margin:0 auto 20px;
  background:var(--cream-3);
  -webkit-mask:url(../img/logotype.png) center/contain no-repeat;
  mask:url(../img/logotype.png) center/contain no-repeat;
}
.pied p{ font-size:12.5px; line-height:1.7; margin:0 0 4px; opacity:.85; }
.pied__act{ display:flex; gap:9px; justify-content:center; margin:20px 0 0; flex-wrap:wrap; }
.pied__act a{
  border:1px solid rgba(245,237,224,.34); border-radius:100px;
  padding:11px 18px; font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  text-decoration:none; transition:background .25s var(--ease);
}
.pied__act a:active{ background:rgba(245,237,224,.14); }
.pied__sign{ margin-top:26px; padding-top:18px; border-top:1px solid rgba(245,237,224,.18);
  font-size:10px; letter-spacing:.14em; text-transform:uppercase; opacity:.55; }
.pied__sign a{ text-decoration:none; }

/* ── Fiche produit ─────────────────────────────── */
.fond{
  position:fixed; inset:0; z-index:80; background:rgba(30,66,48,.55);
  opacity:0; pointer-events:none; transition:opacity .3s var(--ease);
}
.fond.on{ opacity:1; pointer-events:auto; }
.fiche{
  position:fixed; left:50%; transform:translate(-50%,102%); bottom:0; z-index:81;
  width:100%; max-width:var(--maxw);
  background:var(--cream-3); border-radius:26px 26px 0 0;
  max-height:86dvh; overflow-y:auto;
  padding:0 20px calc(24px + env(safe-area-inset-bottom));
  transition:transform .42s var(--ease-out);
}
.fiche.on{ transform:translate(-50%,0); }
.fiche__grab{ width:42px; height:4px; border-radius:4px; background:rgba(59,120,88,.25);
  margin:11px auto 16px; }
.fiche__v{
  height:230px; border-radius:18px; margin-bottom:18px; overflow:hidden;
  background:linear-gradient(160deg,var(--cream-2),var(--peach));
  display:flex; align-items:center; justify-content:center;
}
.fiche__v img{ width:100%; height:100%; object-fit:cover; }
.fiche__v img.contain{ object-fit:contain; padding:14px; }
.fiche__v .grav{ width:96px; height:auto; object-fit:contain; padding:0; opacity:.34; }
.fiche h2{
  font-family:var(--disp); font-variation-settings:'SOFT' 100,'WONK' 1,'opsz' 144;
  font-size:27px; color:var(--green); line-height:1.05; letter-spacing:-.015em;
}
.fiche__cat{ font-size:10px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--green); opacity:.6; margin:0 0 8px; }
.fiche__p{ font-family:var(--disp); font-variation-settings:'SOFT' 100,'WONK' 1;
  font-size:26px; color:var(--green); margin:14px 0 0; }
.fiche__o{ font-size:13px; line-height:1.6; opacity:.72; margin:12px 0 0; }
.fiche__rap{
  display:flex; gap:11px; align-items:flex-start;
  background:var(--green); color:var(--cream-3);
  border-radius:15px; padding:14px 16px; margin:20px 0 0;
  font-size:12.5px; line-height:1.5;
}
.fiche__rap b{ flex:none; }
.fiche__x{
  width:100%; margin-top:14px; padding:15px;
  border:1px solid rgba(59,120,88,.3); border-radius:100px;
  font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--green);
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}
