/* Petit Gateau Games — thème du studio, calé sur le logo : koala gris, bulle blanche cernée d'encre,
   lettres rondes au contour framboise. Police Fredoka (OFL, hébergée ici). */

@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #241a14;
  --ink-soft: #6d6266;
  --pink: #e1496f;
  --pink-deep: #c23458;
  --pink-soft: #fde6ec;
  --cheek: #f6a9ae;
  --grey: #a7a4ac;
  --grey-soft: #eeedf1;
  --cream: #fff9f2;
  --white: #ffffff;
  --round: "Fredoka", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --line: 3px solid var(--ink);
  --pop: 0 4px 0 var(--ink);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); overflow-wrap: break-word;
  background: var(--cream) radial-gradient(circle, rgba(225, 73, 111, 0.09) 2px, transparent 2.5px) 0 0 / 26px 26px;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--round); font-weight: 700; line-height: 1.12; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
em { font-style: normal; color: var(--pink); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--pink-deep); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.92rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--white); padding: 8px 14px; border-radius: 99px; }
.eyebrow { font: 600 0.82rem/1.4 var(--round); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }

/* En-tête */
.site-header { background: rgba(255, 249, 242, 0.94); border-bottom: var(--line); position: relative; z-index: 10; }
@supports (backdrop-filter: blur(6px)) { .site-header { background: rgba(255, 249, 242, 0.82); backdrop-filter: blur(10px); } }
@media (min-width: 760px) { .site-header { position: sticky; top: 0; } }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-block: 6px; }
.brand { display: block; text-decoration: none; }
.brand .logo { height: 72px; width: auto; transition: transform 0.2s; }
.brand:hover .logo { transform: rotate(-2deg) scale(1.03); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 6px 12px; border-radius: 99px; font: 600 1.02rem var(--round); text-decoration: none; }
.nav a:hover { background: var(--pink-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--pink-soft); }
.nav .lang a { background: var(--white); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); padding: 4px 12px; margin-left: 6px; }
@media (max-width: 759px) {
  .brand .logo { height: 56px; }
  .bar nav { flex: 1 1 100%; }
  .nav { justify-content: space-between; flex-wrap: nowrap; }
  .nav a { padding: 5px 8px; font-size: 0.98rem; }
  .nav .lang a { margin-left: 0; padding: 3px 10px; }
}
.lang-hint { display: none; margin: 0; padding: 8px 16px; text-align: center; background: var(--pink-soft); font: 600 0.95rem var(--round); }
.lang-hint.show { display: block; }

/* Bulles comme celle du logo : fond blanc, contour d'encre, queue dessinée en SVG */
.bubble {
  position: relative; background: var(--white); border: var(--line); border-radius: 44px;
  padding: 18px 26px; box-shadow: 0 6px 0 rgba(36, 26, 20, 0.12);
}
.bubble::before {
  content: ""; position: absolute; width: 58px; height: 46px; left: 34px; bottom: -43px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 46'%3E%3Cpath d='M10 0 L4 43 L38 0 Z' fill='%23fff'/%3E%3Cpath d='M10 1.5 L4 43 L38 1.5' fill='none' stroke='%23241a14' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* Accueil : le koala parle */
.hero { display: grid; gap: 8px; align-items: center; padding: 34px 0 30px; }
.koala { width: min(68vw, 300px); margin: 0 auto -6px; }
.bubble.big { font-size: clamp(2rem, 8.4vw, 3.5rem); line-height: 1.08; margin: 0 0 22px; padding: 22px 26px 26px; }
.bubble.big::before {  /* queue vers le haut, vers le koala */
  left: 46px; top: -43px; bottom: auto; transform: scaleY(-1);
}
.bubble.big em {
  color: var(--white);
  text-shadow:
    3px 0 0 var(--pink), -3px 0 0 var(--pink), 0 3px 0 var(--pink), 0 -3px 0 var(--pink),
    2px 2px 0 var(--pink), -2px 2px 0 var(--pink), 2px -2px 0 var(--pink), -2px -2px 0 var(--pink),
    0 5px 0 var(--pink-deep);
}
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 44ch; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 360px 1fr; gap: 54px; padding: 60px 0 50px; }
  .bubble.big { font-size: 3.1rem; }
  .koala { width: 100%; margin: 0; }
  .bubble.big::before {  /* queue vers la gauche, comme sur le logo */
    left: -46px; top: auto; bottom: 34px; width: 50px; height: 46px; transform: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 46'%3E%3Cpath d='M50 6 L2 40 L50 30 Z' fill='%23fff'/%3E%3Cpath d='M48.5 6 L2 40 L48.5 30' fill='none' stroke='%23241a14' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}
@media (prefers-reduced-motion: no-preference) {
  .koala { animation: peek 5s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes peek { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg); } }
}

.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 10px 24px;
  background: var(--pink); color: var(--white); border: var(--line); border-radius: 99px; box-shadow: var(--pop);
  font: 700 1.08rem/1.15 var(--round); text-decoration: none; transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { color: var(--white); background: var(--pink-deep); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.cream { background: var(--white); color: var(--ink); }
.btn.cream:hover { color: var(--ink); background: var(--pink-soft); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }
.link { font: 600 1.05rem var(--round); }

/* Sections */
section { padding: 26px 0; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 22px; }
.section-head h2 { margin: 0; }
.num {
  font: 700 0.95rem var(--round); color: var(--white); background: var(--pink); border: 2px solid var(--ink);
  border-radius: 99px; padding: 2px 10px; transform: translateY(-4px);
}

/* Le jeu à l'affiche */
.feature-game {
  display: grid; gap: 26px; align-items: center; background: var(--white); border: var(--line);
  border-radius: 30px; box-shadow: var(--pop); padding: 22px;
}
.game-art { width: min(100%, 300px); margin-inline: auto; border: var(--line); border-radius: 26px; transform: rotate(-2deg); box-shadow: 6px 6px 0 var(--cheek); }
.feature-game h3 { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; }
.feature-game .eyebrow { margin-bottom: 6px; }
@media (min-width: 760px) { .feature-game { grid-template-columns: 300px 1fr; padding: 32px; gap: 40px; } }

/* Recette maison : trois bulles */
.recipe { list-style: none; margin: 0; padding: 0 0 40px; display: grid; gap: 52px 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.say { position: relative; border: var(--line); border-radius: 30px; padding: 20px 22px; background: var(--white); }
.say::before {
  content: ""; position: absolute; width: 58px; height: 46px; left: 30px; bottom: -43px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 46'%3E%3Cpath d='M10 0 L4 43 L38 0 Z' fill='%23fff'/%3E%3Cpath d='M10 1.5 L4 43 L38 1.5' fill='none' stroke='%23241a14' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.say.c1 { background: var(--pink-soft); }
.say.c1::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 46'%3E%3Cpath d='M10 0 L4 43 L38 0 Z' fill='%23fde6ec'/%3E%3Cpath d='M10 1.5 L4 43 L38 1.5' fill='none' stroke='%23241a14' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); }
.say.c2 { background: var(--grey-soft); }
.say.c2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 46'%3E%3Cpath d='M10 0 L4 43 L38 0 Z' fill='%23eeedf1'/%3E%3Cpath d='M10 1.5 L4 43 L38 1.5' fill='none' stroke='%23241a14' stroke-width='3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); }
.say h3 { font-weight: 700; margin-bottom: 6px; }
.say p { margin: 0; color: var(--ink-soft); }

/* Contact */
.big-mail {
  display: inline-block; max-width: 100%; overflow-wrap: anywhere; font: 700 clamp(1.15rem, 5.6vw, 2.4rem)/1.2 var(--round);
  text-decoration: none; color: var(--pink); background: linear-gradient(var(--cheek), var(--cheek)) 0 100% / 100% 6px no-repeat;
  transition: background-size 0.25s;
}
.big-mail:hover { color: var(--ink); background-size: 100% 45%; }

/* En-tête des pages intérieures : titre dans une bulle */
.page-head { padding: 40px 0 50px; }
.page-head h1 { display: inline-block; font-size: clamp(1.9rem, 7vw, 3rem); margin: 0 0 54px; }
.page-head .lead { color: var(--ink-soft); font-size: 1.12rem; margin: 0; }

/* Pages de texte */
.panel { background: var(--white); border: var(--line); border-radius: 26px; box-shadow: var(--pop); padding: 24px clamp(18px, 4vw, 34px); }
.panel > :last-child { margin-bottom: 0; }
.panel h3 { font-weight: 700; }
.prose h2 { font-size: 1.45rem; margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--pink); }
.prose .updated { color: var(--ink-soft); font-style: italic; }
.prose .summary { background: var(--pink-soft); border: 2px dashed var(--pink); border-radius: 20px; padding: 16px 22px; margin: 18px 0; }
.prose .summary h2 { margin-top: 0; font-size: 1.25rem; }
.prose .summary ul { margin: 0; }
.ribbon { font-size: clamp(1.5rem, 5vw, 2rem); margin: 10px 0 14px; }

/* FAQ */
details { background: var(--white); border: 2px solid var(--ink); border-radius: 22px; margin-bottom: 12px; padding: 0 20px; box-shadow: 0 3px 0 var(--ink); }
summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 15px 0; font: 600 1.12rem/1.35 var(--round);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--pink); color: var(--white); border: 2px solid var(--ink); font-weight: 700;
}
details[open] summary::after { content: "−"; background: var(--grey); }
details > p { color: var(--ink-soft); padding: 0 0 16px; margin: 0; }

/* Presse */
.press-art { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.press-art img { width: 130px; }
.press-art img.round { width: 104px; border-radius: 24px; border: var(--line); }
.press-art img.studio { width: 190px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.facts dt { font: 600 1rem var(--round); }
.facts dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 500px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 10px; } }
.downloads { list-style: none; padding: 0; margin: 0; }
.downloads li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; padding: 12px 0; border-bottom: 2px dashed var(--grey-soft); }
.downloads + p { margin-top: 12px; }
.downloads .btn { min-height: 40px; padding: 5px 16px; font-size: 0.95rem; box-shadow: 0 3px 0 var(--ink); }
.tag { font: 600 0.85rem var(--round); color: var(--ink-soft); background: var(--grey-soft); padding: 3px 12px; border-radius: 99px; }
.mail { font: 700 clamp(1.1rem, 5vw, 1.5rem) var(--round); color: var(--pink); }

/* Pied de page rose, bord festonné, le koala qui dépasse */
.site-footer { position: relative; margin-top: 150px; background: var(--pink-soft); border-top: var(--line); padding: 34px 0 40px; font-size: 0.95rem; }
.peek { position: absolute; right: max(16px, calc(50% - 520px)); top: -121px; width: 160px; pointer-events: none; }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer .logo { height: 76px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { font-weight: 600; }
.site-footer p { margin: 0; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .big-mail, .btn .arrow, .brand .logo { transition: none; }
}
