﻿/* ==========================================================================
   TOP 99 RECETTES — Styles de base du site (header, footer, menu)
   Chargé sur toutes les pages, avant landing.css ou blog.css.
   ========================================================================== */

:root {
  --t99-bg: #ffffff;
  --t99-bg-alt: #faf8f5;
  --t99-ink: #14100b;
  --t99-ink-soft: #3a332c;
  --t99-muted: #6b6058;
  --t99-accent: #d9762f;
  --t99-accent-dark: #a84e1c;
  --t99-accent-soft: #fdf1e6;
  --t99-line: #e8e3db;

  --t99-font-display: Georgia, 'Times New Roman', serif;
  --t99-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --t99-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--t99-font-body);
  color: var(--t99-ink);
  background: var(--t99-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.t99-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--t99-ink);
  color: #fff;
  padding: 0.8rem 1.2rem;
  z-index: 10000;
}
.t99-skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--t99-accent-dark);
  outline-offset: 2px;
}

/* ------------------------------- Site header ------------------------------ */
.t99-site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--t99-line);
}
.t99-site-header.t99-is-front {
  position: absolute;
  left: 0; right: 0; top: 0;
  background: transparent;
  border-bottom: none;
}
.t99-site-header.t99-is-front.t99-scrolled {
  position: fixed;
  background: rgba(20, 16, 11, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.t99-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.t99-logo {
  font-family: var(--t99-font-display);
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--t99-ink);
  white-space: nowrap;
}
.t99-site-header.t99-is-front .t99-logo { color: #fff; }
.t99-logo span { color: var(--t99-accent); }

.t99-primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.t99-primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.8rem;
}
.t99-primary-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t99-ink-soft);
  transition: color 0.2s var(--t99-ease);
}
.t99-site-header.t99-is-front .t99-primary-nav a { color: rgba(255,255,255,0.88); }
.t99-primary-nav a:hover { color: var(--t99-accent); }

.t99-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: var(--t99-accent);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s var(--t99-ease), transform 0.2s var(--t99-ease);
  white-space: nowrap;
}
.t99-header-cta:hover { background: var(--t99-accent-dark); transform: translateY(-1px); }

.t99-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  width: 40px;
  height: 40px;
  position: relative;
}
.t99-menu-toggle span,
.t99-menu-toggle span::before,
.t99-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--t99-ink);
  transition: transform 0.25s var(--t99-ease), opacity 0.25s var(--t99-ease);
}
.t99-site-header.t99-is-front .t99-menu-toggle span,
.t99-site-header.t99-is-front .t99-menu-toggle span::before,
.t99-site-header.t99-is-front .t99-menu-toggle span::after {
  background: #fff;
}
.t99-menu-toggle span { top: 19px; }
.t99-menu-toggle span::before { top: -7px; }
.t99-menu-toggle span::after { top: 7px; }
.t99-menu-toggle[aria-expanded="true"] span { background: transparent; }
.t99-menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.t99-menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 780px) {
  .t99-menu-toggle { display: block; }
  .t99-primary-nav {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--t99-ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--t99-ease);
  }
  .t99-primary-nav.t99-nav-open { transform: translateX(0); }
  .t99-primary-nav ul { flex-direction: column; gap: 1.6rem; }
  .t99-primary-nav a,
  .t99-site-header.t99-is-front .t99-primary-nav a { color: #fff; font-size: 1.15rem; }
  .t99-header-cta { align-self: flex-start; }
}

/* ------------------------------- Site footer ------------------------------ */
.t99-site-footer {
  background: var(--t99-ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
}
.t99-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.t99-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.t99-footer-brand {
  font-family: var(--t99-font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.8rem;
}
.t99-footer-brand span { color: var(--t99-accent); }
.t99-footer-desc { font-size: 0.9rem; max-width: 32ch; }
.t99-footer-col-title {
  font-family: var(--t99-font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--t99-accent);
  margin-bottom: 1rem;
  font-weight: 700;
}
.t99-footer-links { list-style: none; margin: 0; padding: 0; }
.t99-footer-links li { margin-bottom: 0.6rem; }
.t99-footer-links a { text-decoration: none; font-size: 0.9rem; color: rgba(255,255,255,0.75); transition: color 0.2s var(--t99-ease); }
.t99-footer-links a:hover { color: #fff; }
.t99-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 780px) {
  .t99-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
