
/* ===== CARNET MOBILE v1 (19/10) — tout ce qui suit ne vise que les téléphones, sauf les deux premiers blocs ===== */

/* Polices : certains textes n'avaient pas de police de secours et s'affichaient en Times. */
.kv .kv-adr{font-family:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif!important}
.kv .kv-card-note b,.kv .kv-vignette b,.kv .kv-pilule,.kv .kv-pilule *{font-family:"Bricolage Grotesque",system-ui,-apple-system,"Segoe UI",sans-serif!important}

/* Bandeau « On mange où ce soir ? » (toutes tailles d'écran) */
.kv-decouv{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center;gap:28px;background:#0A5047;color:#fff;border-radius:28px;padding:34px 38px;margin:28px 0 8px;overflow:hidden;text-decoration:none!important}
.kv-decouv::after{content:"";position:absolute;right:-60px;bottom:-80px;width:260px;height:260px;border-radius:50%;background:rgba(255,216,223,.08);pointer-events:none}
.kv-decouv-txt{display:flex;flex-direction:column;gap:12px;min-width:0;position:relative;z-index:1}
.kv-decouv-eyebrow{align-self:flex-start;display:inline-flex;align-items:center;gap:7px;background:#FFD8DF;color:#0A5047;font:700 11px/1 "Hanken Grotesk",system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;padding:7px 11px;border-radius:99px}
html body a.kv-decouv .kv-decouv-txt h2{margin:0!important;color:#fff!important;-webkit-text-fill-color:#fff!important;background:none!important;font:800 clamp(28px,3.4vw,42px)/1 "Bricolage Grotesque",system-ui,sans-serif!important;letter-spacing:-.02em!important;text-wrap:balance}
html body a.kv-decouv .kv-decouv-txt h2 em{font-style:normal;color:#FFD8DF!important;-webkit-text-fill-color:#FFD8DF!important}
html body a.kv-decouv .kv-decouv-txt p{margin:0!important;color:rgba(255,255,255,.85)!important;font:400 15.5px/1.5 "Hanken Grotesk",system-ui,sans-serif!important;max-width:44ch}
.kv-decouv-gestes{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.kv-decouv-gestes span{font:600 12.5px/1 "Hanken Grotesk",system-ui,sans-serif;color:#fff;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);padding:7px 10px;border-radius:99px;white-space:nowrap}
.kv-decouv-cta{align-self:flex-start;display:inline-flex;align-items:center;gap:10px;margin-top:6px;background:#FFD8DF;color:#0A5047!important;font:800 16px/1 "Bricolage Grotesque",system-ui,sans-serif;padding:15px 22px;border-radius:99px;transition:transform .15s}
.kv-decouv:hover .kv-decouv-cta{transform:translateX(3px)}
.kv-decouv-cta svg{width:18px;height:18px}
.kv-decouv-pile{position:relative;height:250px;z-index:1}
.kv-decouv-carte{position:absolute;top:50%;left:50%;width:170px;height:220px;margin:-110px 0 0 -85px;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 18px 40px -16px rgba(0,0,0,.55);border:4px solid #fff}
.kv-decouv-carte img{width:100%;height:100%;object-fit:cover;display:block;max-width:none}
.kv-decouv-carte:nth-child(1){transform:translateX(-58px) rotate(-11deg)}
.kv-decouv-carte:nth-child(2){transform:translateX(58px) rotate(10deg)}
.kv-decouv-carte:nth-child(3){transform:translateY(-6px) rotate(-1deg);z-index:2}
.kv-decouv-carte b{position:absolute;left:8px;bottom:8px;background:#fff;color:#0A5047;font:800 12px/1 "Bricolage Grotesque",system-ui,sans-serif;padding:6px 9px;border-radius:99px}
.kv-decouv-coeur{position:absolute;right:18%;top:6%;z-index:3;width:48px;height:48px;border-radius:50%;background:#FFD8DF;color:#0A5047;display:grid;place-items:center;box-shadow:0 8px 20px -8px rgba(0,0,0,.5);transform:rotate(12deg)}
.kv-decouv-coeur svg{width:24px;height:24px}

/* Pastille flottante du mode découverte (téléphone, page du carnet) */
.kv-decouv-flot{display:none}

@media (max-width:767px){
  /* On masque le bouton « Demandez une démo » sur le carnet et les fiches (il recouvrait le contenu). */
  body.page-id-2626 .floater-expert,body.parent-pageid-1572 .floater-expert{display:none!important}

  /* Marges : on rend de la largeur au contenu. */
  body.page-id-2626 .section_wrapper,body.parent-pageid-1572 .section_wrapper{padding-left:8px!important;padding-right:8px!important}
  body.page-id-2626 .kv-page,body.parent-pageid-1572 .kv-page{padding-left:8px!important;padding-right:8px!important}

  /* Bandeau découverte en mobile */
  .kv-decouv{grid-template-columns:1fr;gap:14px;padding:22px 20px 22px;border-radius:24px;margin:18px 0 6px}
  .kv-decouv-pile{order:-1;height:150px;margin:-4px 0 2px}
  .kv-decouv-carte{width:104px;height:136px;margin:-68px 0 0 -52px;border-radius:16px;border-width:3px}
  .kv-decouv-carte:nth-child(1){transform:translateX(-70px) rotate(-11deg)}
  .kv-decouv-carte:nth-child(2){transform:translateX(70px) rotate(10deg)}
  .kv-decouv-carte b{font-size:10.5px;padding:5px 7px;left:6px;bottom:6px}
  .kv-decouv-coeur{right:12%;top:0;width:40px;height:40px}
  html body a.kv-decouv .kv-decouv-txt h2{font-size:30px!important}
  html body a.kv-decouv .kv-decouv-txt p{font-size:14.5px!important}
  .kv-decouv-gestes{display:none}
  .kv-decouv-cta{align-self:stretch;justify-content:center;font-size:16px;padding:15px 18px}

  .kv-decouv-flot{position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:9990;display:inline-flex;align-items:center;gap:9px;background:#0A5047;color:#fff!important;font:800 15px/1 "Bricolage Grotesque",system-ui,sans-serif;padding:14px 20px 14px 16px;border-radius:99px;box-shadow:0 12px 28px -10px rgba(10,80,71,.7);text-decoration:none!important;white-space:nowrap;transition:opacity .25s,transform .25s}
  .kv-decouv-flot svg{width:20px;height:20px;color:#FFD8DF}
  body:has(.kv-menu[open]) .kv-decouv-flot{display:none!important}
  .kv-decouv-flot.kv-cache{opacity:0;pointer-events:none;transform:translate(-50%,20px)}

  /* Filtres : une ligne compacte qui reste en haut pendant le défilement. */
  .kv .kv-recherche{position:sticky!important;top:var(--kv-top,88px);z-index:50;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:0 -8px!important;padding:8px!important;background:#eef3f1;box-shadow:0 8px 14px -12px rgba(10,80,71,.35)}
  .kv .kv-recherche details.kv-menu{min-width:0;margin:0!important;width:auto!important}
  .kv .kv-recherche details.kv-menu > summary{padding:8px 26px 8px 10px!important;min-height:0!important;border-radius:14px!important}
  .kv .kv-recherche .kv-menu-libelle{font-size:9.5px!important;letter-spacing:.06em!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  .kv .kv-recherche .kv-menu-choix,.kv .kv-recherche .kv-menu-choix *{font-size:13px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .kv .kv-recherche summary > span{min-width:0;overflow:hidden;display:block}
  .kv .kv-recherche .kv-chevron{display:none!important}
  .kv .kv-recherche details.kv-menu > summary{padding:8px 10px!important}
  .kv .kv-recherche .kv-menu-libelle{font-size:0!important;line-height:1!important;margin-bottom:3px!important}
  .kv .kv-recherche .kv-menu-libelle::before{font-size:9.5px;letter-spacing:.08em;content:"Filtre"}
  .kv .kv-recherche details.kv-menu:nth-of-type(1) .kv-menu-libelle::before{content:"Type ▾"}
  .kv .kv-recherche details.kv-menu:nth-of-type(2) .kv-menu-libelle::before{content:"Cuisine ▾"}
  .kv .kv-recherche details.kv-menu:nth-of-type(3) .kv-menu-libelle::before{content:"Ville ▾"}
  .kv .kv-recherche .kv-menu-choix,.kv .kv-recherche .kv-menu-choix *{font-size:12.5px!important}
  /* Le thème coupe le défilement horizontal avec overflow:hidden, ce qui empêche la barre de rester en haut : clip fait la même chose sans ce défaut. */
  html:has(body.page-id-2626),body.page-id-2626,body.page-id-2626 .kv-page{overflow-x:clip!important}
  body.page-id-2626 .kv-page{overflow:clip!important}
  /* La liste des choix s'ouvre en panneau depuis le bas de l'écran. */
  .kv .kv-recherche details.kv-menu[open]::before{content:"";position:fixed;inset:0;background:rgba(10,30,27,.4);z-index:998}
  .kv .kv-recherche details.kv-menu[open] > .kv-menu-liste{position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-height:68vh!important;overflow-y:auto!important;z-index:999!important;border-radius:22px!important;padding:12px!important;box-shadow:0 -10px 40px -10px rgba(0,0,0,.35)!important;background:#fff!important}
  .kv .kv-recherche details.kv-menu[open] > .kv-menu-liste label{padding:12px 14px!important;font-size:15px!important}
  .kv .kv-legende{display:none!important}

  /* « Nos suggestions » : le pied de carte tient sur une ligne, le bouton Réserver n'est plus coupé. */
  .kv .kv-sugg-carte .kv-sugg-infos{padding:12px 14px 14px!important}
  .kv .kv-sugg-carte .kv-adr,.kv .kv-sugg-carte .kv-card-mots{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .kv .kv-sugg-carte .kv-sugg-infos p{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  .kv .kv-sugg-carte .kv-card-pied{flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:10px!important;min-width:0}
  .kv .kv-sugg-carte .kv-card-suite{white-space:nowrap!important;font-size:13.5px!important;text-decoration:underline;text-underline-offset:3px}
  .kv .kv-sugg-carte .kv-card-suite > span{display:none!important}
  .kv .kv-sugg-carte .kv-reserver{white-space:nowrap!important;padding:8px 12px!important;font-size:13px!important;gap:5px!important;margin:0!important;flex:0 0 auto!important}

  /* Grille : deux petites cartes par ligne. */
  .kv .kv-grille{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .kv .kv-grille .kv-card{border-radius:18px!important;min-width:0}
  .kv .kv-grille .kv-card.kv-m-cache{display:none!important}
  .kv .kv-grille .kv-card-img{aspect-ratio:1/1;height:auto!important;min-height:0!important}
  .kv .kv-grille .kv-card-img > img,.kv .kv-grille .kv-card-img figure img{width:100%!important;height:100%!important;object-fit:cover}
  .kv .kv-grille .kv-diapo,.kv .kv-grille .kv-diapo-piste,.kv .kv-grille .kv-diapo-piste figure{height:100%!important}
  .kv .kv-grille .kv-diapo-nav,.kv .kv-grille .kv-diapo-points{display:none!important}
  .kv .kv-grille .kv-card-tag{font-size:10px!important;padding:4px 8px!important;top:8px!important;left:8px!important}
  .kv .kv-grille .kv-card-note{font-size:11px!important;padding:4px 7px!important;top:8px!important;right:8px!important}
  .kv .kv-grille .kv-card-note b{font-size:13px!important}
  .kv .kv-grille .kv-card-note .kv-pic{width:13px!important;height:13px!important}
  .kv .kv-grille .kv-macaron{font-size:10px!important;padding:4px 7px!important;bottom:8px!important;left:8px!important;top:auto!important}
  .kv .kv-grille .kv-card-body{padding:10px 11px 12px!important;gap:4px!important}
  .kv .kv-grille .kv-card-body h3{margin:0!important;display:flex;flex-direction:column;gap:3px}
  .kv .kv-grille .kv-card-body h3 a{font-size:15.5px!important;line-height:1.15!important}
  .kv .kv-grille .kv-adr{font-size:11.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;margin:0!important}
  .kv .kv-grille .kv-card-mots{font-size:11.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:2px 0 0!important}
  .kv .kv-grille .kv-card-body p,.kv .kv-grille .kv-card-pied{display:none!important}
  .kv-plus{display:flex;flex-direction:column;align-items:center;gap:8px;margin:18px 0 8px}
  .kv-plus button{appearance:none;border:1.5px solid #0A5047!important;background:#fff!important;color:#0A5047!important;font:800 15px/1 "Bricolage Grotesque",system-ui,sans-serif!important;padding:14px 22px!important;border-radius:99px!important;width:100%;max-width:320px;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important;margin:0!important;height:auto!important}
  .kv-plus small{font:500 12.5px/1.3 "Hanken Grotesk",system-ui,sans-serif;color:#5d6c69}

  /* Fiches : barre d'actions toujours visible en bas de l'écran. */
  body.parent-pageid-1572{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  .kv-barre{position:fixed;left:0;right:0;bottom:0;z-index:9990;display:flex;gap:8px;align-items:center;padding:10px max(12px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 -8px 24px -12px rgba(10,80,71,.35);border-top:1px solid #e3ebe8}
  .kv-barre a{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:48px;border-radius:99px;font:800 14.5px/1 "Bricolage Grotesque",system-ui,sans-serif;text-decoration:none!important;white-space:nowrap;padding:0 12px}
  .kv-barre a svg{width:17px;height:17px;flex:0 0 17px}
  .kv-barre .kv-b-plein{background:#0A5047;color:#fff!important;flex-grow:1.6}
  .kv-barre .kv-b-trait{background:#fff;color:#0A5047!important;border:1.5px solid #0A5047}
  .kv-barre .kv-b-rond{flex:0 0 48px;width:48px;padding:0;background:#FFD8DF;color:#0A5047!important}
  .kv-barre .kv-b-rond svg{width:20px;height:20px}
}
@media (min-width:768px){.kv-barre{display:none!important}}

