/* Pages « Gâteau pour N personnes : quel moule ? » (gabarit : site/outils/pages-moules.mjs).
   Mêmes jetons et pièces que calculateur.html : ticket perforé, gâteau vu de dessus, encart rose, questions. */
@font-face{font-family:Chillax;src:url(/assets/Chillax-Semibold.woff2) format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:Satoshi;src:url(/assets/Satoshi-Regular.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Satoshi;src:url(/assets/Satoshi-Medium.woff2) format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:Satoshi;src:url(/assets/Satoshi-Bold.woff2) format('woff2');font-weight:700;font-display:swap}
:root{--page:#FFFFFF;--carte:#FBF5F2;--bord:#EFE6E1;--texte:#2A1D17;--texte2:#7A6A62;--fr:#B32F55;--aileH:#FFA6AC;--aileB:#F26A80;--teinte:#FCE7EA;--rose:#FFF5F5;--tb:#F3DDE1}
*,*::before,*::after{box-sizing:border-box;margin:0}
body{font:400 1.0625rem/1.5 Satoshi,system-ui,sans-serif;color:var(--texte);background:var(--page);-webkit-font-smoothing:antialiased}
a{color:var(--fr);font-weight:700}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
input{font:inherit;color:inherit}
.page{max-width:1160px;margin:0 auto;padding:20px 22px 64px}
header{display:flex;align-items:center;justify-content:space-between}
header img{height:36px;width:auto}
header nav.menu{display:flex;gap:4px}
header nav.menu a{text-decoration:none;padding:8px 14px;border-radius:99px;display:inline-flex;align-items:center;gap:8px;font-weight:500;color:var(--texte2);font-size:.9375rem;transition:background .15s,color .15s}
header nav.menu a:hover{background:var(--carte);color:var(--texte)}
.pastille{font:700 .6875rem/1 Satoshi;letter-spacing:.04em;text-transform:uppercase;background:var(--teinte);color:var(--fr);padding:4px 7px;border-radius:99px}
h1{font:600 clamp(2.1rem,4.8vw,3.3rem)/1.04 Chillax;letter-spacing:-.025em}
h1 em,h2 em{font-style:normal;color:var(--fr)}
h2{font:600 clamp(1.6rem,3.6vw,2.2rem)/1.08 Chillax;letter-spacing:-.02em}
h3{font:600 1.25rem/1.2 Chillax}
.sous{color:var(--texte2);max-width:62ch}
.note{font-size:.9375rem;color:var(--texte2);margin-top:14px}
.fil{display:flex;gap:8px;margin-top:22px;font-size:.875rem;color:var(--texte2)}
.fil a{color:var(--texte2);font-weight:500;text-decoration:none}.fil a:hover{color:var(--fr)}

/* boutons */
.op-btn{font:700 .9375rem/1.2 Satoshi;min-height:44px;border-radius:99px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;text-decoration:none;transition:transform .12s,background-color .12s}
.op-btn:active{transform:scale(.97)}
.op-btn.p{background:#2A1D17;color:#fff;box-shadow:0 6px 16px rgba(42,29,23,.18)}
.op-btn.p:hover{background:#3d2a21}
.op-btn i{font-style:normal;transition:transform .2s}.op-btn:hover i{transform:translateX(4px)}
.op-btn.grand{min-height:54px;padding:0 26px;font-size:1rem}

/* haut de page : la réponse tout de suite, sur un ticket */
.haut{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(24px,4vw,56px);align-items:center;margin-top:18px;background:var(--rose);border-radius:32px;padding:clamp(24px,4vw,48px)}
.haut-txt{display:flex;flex-direction:column;gap:20px;align-items:flex-start}
.chapo{font-size:1.1875rem;line-height:1.5;max-width:44ch}
.ticket{background:#fff;border-radius:20px;box-shadow:inset 0 0 0 1px var(--tb),0 24px 60px rgba(179,47,85,.10);overflow:hidden;display:flex;flex-direction:column;animation:monte .7s cubic-bezier(.2,.7,.2,1) backwards}
@keyframes monte{from{opacity:0;transform:translateY(16px)}}
.ticket-h{padding:24px 24px 18px;display:flex;flex-direction:column;gap:6px}
.ticket-s{font-size:.9375rem;color:var(--texte2);font-weight:500}
.gros{font:600 clamp(2.8rem,6vw,3.6rem)/1 Chillax;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ticket-sous{font-size:.9375rem;color:var(--texte2)}
.perfo{position:relative;height:20px;flex:none;background:repeating-linear-gradient(90deg,#EBC9CF 0 5px,transparent 5px 10px) center/calc(100% - 44px) 1.5px no-repeat}
.perfo::before,.perfo::after{content:"";position:absolute;top:0;width:20px;height:20px;border-radius:50%;background:var(--rose);box-shadow:inset 0 0 0 1px var(--tb)}
.perfo::before{left:-10px}.perfo::after{right:-10px}
.ticket-b{position:relative;padding:10px 24px 26px;display:flex;justify-content:center}
.ticket-b .gx{width:min(240px,80%)}
.ticket-b .masc{position:absolute;right:14px;bottom:12px;width:72px;height:72px}

/* gâteaux vus de dessus */
.gx{display:grid;gap:8px;align-items:center}
.gx svg{display:block;width:100%;height:auto}
.gx2{grid-template-columns:1fr 1fr}.gx3{grid-template-columns:1fr 1fr 1fr}
.part1{animation:pop .5s .5s cubic-bezier(.3,1.6,.5,1) backwards;transform-origin:center;transform-box:fill-box}
@keyframes pop{from{opacity:0;scale:.3}}

/* blocs */
.bloc{margin-top:72px;display:flex;flex-direction:column;gap:18px}
.tuiles{display:grid;gap:14px}
.t3{grid-template-columns:repeat(3,minmax(0,1fr))}.t2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tuile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:22px;border-radius:22px;box-shadow:inset 0 0 0 1.5px var(--bord);background:#fff}
.tuile .gx{width:min(220px,90%);height:150px;align-self:center;margin-bottom:14px;justify-items:center}
.tuile .gx svg{max-height:150px;width:auto;max-width:100%}
.t-forme{font-size:.8125rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--texte2)}
.tuile b{font:600 1.875rem/1.1 Chillax;letter-spacing:-.01em;white-space:nowrap}
.t-sous{color:var(--texte2);font-size:.9375rem}
.tuile.large{flex-direction:row;align-items:center;justify-content:space-between;gap:18px}
.tuile.large .gx{width:120px;flex:none;margin:0}
.t-txt{display:flex;flex-direction:column;gap:4px}
.t-txt p{color:var(--texte2);font-size:.9375rem;max-width:34ch;margin-top:4px}
.astuce{display:flex;gap:14px;align-items:center;padding:16px 20px 16px 10px;border-radius:20px;background:var(--teinte)}
.astuce p{max-width:70ch}
.masc-s{width:64px;height:64px;flex:none}

/* recette */
.recette{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:14px;align-items:stretch}
.table-wrap{overflow-x:auto;border-radius:22px;box-shadow:inset 0 0 0 1.5px var(--bord)}
table{border-collapse:collapse;width:100%}
th,td{padding:12px 18px;text-align:left;border-bottom:1px solid var(--bord)}
th{font-size:.8125rem;text-transform:uppercase;letter-spacing:.06em;color:var(--texte2);background:var(--carte)}
tr:last-child td{border-bottom:0}
.av,.ap{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
td.av{color:var(--texte2)}td.ap{font-weight:700;color:var(--fr)}th.ap{color:var(--fr)}
.ta-recette{display:flex;flex-direction:column;align-items:flex-start;gap:10px;justify-content:center;padding:24px;border-radius:22px;background:var(--rose)}
.ta-recette b{font:600 1.5rem/1.15 Chillax}
.ta-recette p{color:var(--texte2)}

/* encart vers l'app (même que le calculateur) */
.p2{margin-top:72px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:24px;align-items:center;background:#FCE7EA;color:#2A1D17;border-radius:32px;padding:clamp(24px,4vw,44px) clamp(24px,4vw,44px) 0;overflow:hidden}
.p2 .txt{padding-bottom:clamp(24px,4vw,44px)}
.p2 h3{font-size:clamp(1.6rem,3vw,2.2rem)}
.p2 ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px;margin:16px 0 22px}
.p2 li{display:flex;gap:10px}
.p2 li::before{content:"";flex:none;width:22px;height:22px;margin-top:2px;border-radius:50%;background:linear-gradient(180deg,#FFA6AC,#F26A80)}
.p2 .mock{align-self:end;justify-self:center;width:min(380px,100%)}
.p2 .mock img{display:block;width:100%;height:auto;margin-bottom:-2px}
.inscr{display:flex;gap:10px;flex-wrap:wrap;max-width:460px}
.inscr input{flex:1 1 200px;min-height:56px;border-radius:99px;border:0;box-shadow:inset 0 0 0 1.5px #EFE6E1;padding:0 22px;background:#fff;color:#2A1D17}
.inscr button{min-height:56px;border-radius:99px;padding:0 26px;font-weight:700;background:#2A1D17;color:#fff;position:relative;overflow:visible;box-shadow:0 6px 16px rgba(42,29,23,.18)}
.inscr input:focus{outline:0;box-shadow:inset 0 0 0 2px #B32F55,0 0 0 4px #fff}
.p2 .mention{margin-top:10px;font-size:.875rem;color:#7A6A62}.p2 .mention a{color:#7A6A62;font-weight:500}
.erreur-inscr{color:#B3372B;font-weight:500;font-size:.9375rem;margin-top:8px}
.bouton-contenu{display:inline-block}
.bouton-mascotte{position:absolute;left:50%;top:50%;width:58px;height:58px;margin:-30px 0 0 -29px}
.bouton-mascotte svg,.pl-merci svg,.pl-volante svg{width:100%;height:100%;overflow:visible;display:block}
.merci{display:none;align-items:center;gap:12px;background:#fff;border-radius:20px;padding:12px 20px 12px 8px;max-width:460px}
.merci .pl-merci{width:70px;height:70px;flex:none}
.merci-texte{display:flex;flex-direction:column;gap:2px}.merci-texte b{font:600 1.3rem/1.15 Chillax}.merci-detail{font-size:.875rem;color:#7A6A62}
.envoye #inscription form,.envoye #inscription .mention,.envoye #inscription .erreur-inscr{display:none}.envoye #inscription .merci{display:flex}
[hidden]{display:none!important}

/* questions et voisins */
details.q{border-bottom:1.5px solid var(--bord);padding:18px 0}
details.q summary{font:600 1.2rem/1.3 Chillax;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px}
details.q summary::-webkit-details-marker{display:none}
details.q summary::after{content:"+";color:var(--fr);font-size:1.6rem;line-height:1}
details.q[open] summary::after{content:"–"}
details.q p{margin-top:10px;color:var(--texte2);max-width:70ch}
.voisins{display:flex;flex-wrap:wrap;gap:8px}
.voisins a{text-decoration:none;font-weight:500;color:var(--texte);padding:10px 16px;border-radius:99px;box-shadow:inset 0 0 0 1.5px var(--bord);transition:box-shadow .15s,background .15s,color .15s}
.voisins a:hover{box-shadow:inset 0 0 0 1.5px var(--fr);background:var(--teinte);color:var(--fr)}
.voisins a.autre{color:var(--fr);font-weight:700}
.voisins i{font-style:normal}
footer{margin-top:64px;padding-top:20px;border-top:1px solid var(--bord);display:flex;gap:18px;flex-wrap:wrap;font-size:.875rem;color:var(--texte2)}
footer a{color:var(--texte2);font-weight:500}

@media (max-width:900px){.haut,.p2,.recette{grid-template-columns:1fr}.t3{grid-template-columns:1fr}.t2{grid-template-columns:1fr}
 .t3 .tuile{flex-direction:row;align-items:center;gap:16px}.t3 .tuile .gx{width:96px;height:auto;flex:none;margin:0}}
@media (max-width:640px){header nav.menu a:not(:nth-child(2)){display:none}.haut{border-radius:24px;padding:22px 18px}
 .op-btn.grand{width:100%;white-space:normal;text-align:center}.chapo{font-size:1.0625rem}.bloc{margin-top:56px}
 .tuile.large .gx{width:88px}th,td{padding:10px 10px;font-size:.9375rem}th{font-size:.6875rem;letter-spacing:.04em;white-space:normal}td:first-child{min-width:0}.av,.ap{white-space:normal}}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01s!important;animation-delay:0s!important;transition:none!important}}
