/* Frigologie — identité « Papa Pingouin » : bleu nuit, glace, turquoise, orange */
:root {
  --night: #0e2235; --night-2: #143552; --ice: #e9f6fb; --teal: #17a2c8; --teal-d: #0f7f9e; --orange: #ff8a1f;
  --bg: #f6fafc; --fg: #14212e; --muted: #5a6b7b; --line: #dbe5ec; --card: #ffffff; --code: #edf4f8;
  --radius: 14px; --shadow: 0 1px 2px rgba(14,34,53,.06), 0 8px 24px rgba(14,34,53,.08);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1724; --fg: #e6eef5; --muted: #9db0c1; --line: #1f3347; --card: #10202f; --code: #15283a; --ice: #123047; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
a { color: var(--teal-d); } @media (prefers-color-scheme: dark) { a { color: #5cc8ea; } }
img { max-width: 100%; height: auto; display: block; }

/* En-tête */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(14,34,53,.94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; }
.brand .penguin { width: 38px; height: 38px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.brand .penguin ellipse[fill="#0e2235"] { fill: #1d4a70; }
.brand em { color: var(--orange); font-style: normal; margin-left: -8px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: #cfe3f0; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
nav a.yt { background: var(--orange); color: #1b1100; } nav a.yt:hover { background: #ffa04a; color: #1b1100; }

/* Héros */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(23,162,200,.45), transparent 60%),
  radial-gradient(800px 400px at -10% 110%, rgba(255,138,31,.18), transparent 60%),
  linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='.6' stroke-linecap='round'%3E%3Cpath d='M12 4v16M5.5 8l13 8M18.5 8l-13 8M10 5l2 2 2-2M10 19l2-2 2 2'/%3E%3C/svg%3E"); background-size: 120px; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #8fdcf3; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 850; }
.hero h1 span { background: linear-gradient(90deg, #7fe0ff, #17a2c8 60%, #ff8a1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: #d6e8f3; max-width: 56ch; margin: 0 0 24px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 28px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--orange); color: #1b1100; } .btn.primary:hover { background: #ffa04a; }
.btn.ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.4); } .btn.ghost:hover { background: rgba(255,255,255,.1); }
.stats { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; color: #b9d6e6; }
.stats b { display: block; font-size: 1.8rem; color: #fff; line-height: 1.1; }
.hero-art { position: relative; justify-self: center; width: min(320px, 70vw); }
.hero-art .penguin { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); animation: bob 5s ease-in-out infinite; }
.hero-art .penguin ellipse[fill="#0e2235"] { fill: #08131f; }
.hero-art .tag { position: absolute; right: -6px; top: 14%; background: #fff; color: var(--night); font-weight: 800; padding: 8px 14px; border-radius: 14px 14px 14px 2px; transform: rotate(6deg); box-shadow: var(--shadow); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .penguin { animation: none; } }

/* Sections */
.sec { font-size: 1.6rem; letter-spacing: -.02em; margin: 48px 0 18px; display: flex; align-items: center; gap: 10px; }
.sec::before { content: ""; width: 26px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--orange)); }
.page-title { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.03em; margin: 40px 0 10px; }
.lead-dark { color: var(--muted); font-size: 1.1rem; margin-top: 0; }

/* Cartes d'articles */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; border-top: 4px solid var(--c); }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(14,34,53,.16); }
.card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--night); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; } .card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.card .meta { margin-top: auto; color: var(--muted); font-size: .85rem; }
.badge { align-self: flex-start; display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); padding: 4px 10px; border-radius: 999px; text-decoration: none; }

/* Tuiles de rubriques */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.tile:hover { transform: translateY(-2px); border-color: var(--c); }
.tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c); opacity: .1; }
.tile .ico, .rub h2 .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); margin-bottom: 6px; }
.tile .ico svg, .rub h2 .ico svg { width: 26px; height: 26px; }
.tile strong { font-size: 1.05rem; } .tile small { color: var(--muted); } .tile em { font-style: normal; font-weight: 700; color: var(--c); font-size: .9rem; margin-top: 4px; }
.intro { margin: 48px 0 24px; padding: 24px; border-radius: var(--radius); background: var(--ice); }
.intro h2 { margin-top: 0; }

/* Article */
.post-head { color: #fff; background: radial-gradient(900px 400px at 90% 0%, color-mix(in srgb, var(--c) 55%, transparent), transparent 65%), linear-gradient(160deg, var(--night), var(--night-2)); }
.post-head-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.post-head .badge { color: #fff; background: var(--c); }
.post-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 12px; }
.post-head .meta { color: #b9d6e6; margin: 0; }
.play { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.4); aspect-ratio: 16/9; }
.play img { width: 100%; height: 100%; object-fit: cover; }
.play span { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #1b1100; font-size: 1.6rem; padding-left: 5px; transition: transform .15s ease; }
.play:hover span { transform: scale(1.08); }
.prose { padding: 8px 0 40px; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3 { max-width: 80ch; }
.prose > p:first-child em { display: block; font-size: 1.2rem; font-style: normal; color: var(--muted); border-left: 4px solid var(--teal); padding-left: 16px; margin: 28px 0; }
.prose h2 { font-size: 1.55rem; letter-spacing: -.02em; margin-top: 2.2em; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.prose h3 { font-size: 1.15rem; }
.prose p strong:first-child { color: var(--fg); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .94rem; margin: 1.2em 0; border-radius: 10px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--night); color: #fff; font-weight: 700; } .prose tr:nth-child(even) td { background: var(--code); }
code { background: var(--code); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.formule { background: var(--code); border-left: 4px solid var(--orange); padding: 12px 16px; border-radius: 0 10px 10px 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; font-size: 1.02rem; max-width: 80ch; }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 999px; background: var(--code); text-decoration: none; font-size: .88rem; }
.terms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; } .terms li a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; } .terms span { color: var(--muted); }

/* Page vidéos */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.jump a { text-decoration: none; font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.rub { margin: 44px 0; scroll-margin-top: 80px; }
.rub h2 { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; letter-spacing: -.02em; }
.rub h2 .ico { margin: 0; } .rub h2 small { color: var(--muted); font-weight: 600; font-size: .9rem; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.vid { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; }
.vid .thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--night); border-bottom: 3px solid var(--c); }
.vid .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; } .vid:hover .thumb img { transform: scale(1.05); }
.vid .thumb em { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.78); color: #fff; font-style: normal; font-size: .78rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.vid .t { font-size: .92rem; line-height: 1.35; font-weight: 600; }
.vid:hover .t { color: var(--teal-d); }

/* Pied de page */
footer.site { margin-top: 56px; background: var(--night); color: #b9d6e6; }
.foot { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.about { display: flex; gap: 16px; align-items: center; max-width: 620px; }
.about img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--teal); flex: none; }
.about strong { color: #fff; }
footer.site a { color: #8fdcf3; } .links span { color: var(--orange); font-weight: 700; }

@media (max-width: 820px) {
  .hero-in, .post-head-in { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; }
  .hero-art { width: 190px; order: -1; justify-self: start; }
  .hero-art .tag { right: -70px; }
  .cards { grid-template-columns: 1fr; }
  .bar { padding-top: 8px; padding-bottom: 8px; }
}
.intro ul { padding-left: 1.2em; } .intro li { margin: 4px 0; } .intro p, .intro ul { max-width: 90ch; }
