/*
Theme Name: Snack Beauregard - Coming Soon
Theme URI: https://snackbeauregard.fr
Author: Snack Beauregard
Author URI: https://snackbeauregard.fr
Description: Thème WordPress mono-page pour annoncer l'ouverture prochaine du Snack Beauregard (Kebab & Pizza). Compte à rebours dynamique et bouton Instagram, paramétrables depuis le Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: snackb
Tags: one-page, coming-soon, restaurant
*/

/* =========================================================
   Design tokens — palette extraite du logo
   ========================================================= */
:root {
  --c-primary: #E89A4F;        /* orange "KEBAB / PIZZA" */
  --c-primary-deep: #D6862F;   /* hover / accents */
  --c-cream: #F4D9BC;          /* beige du badge "5" */
  --c-cream-soft: #FBF1E4;     /* arrière-plan doux */
  --c-bg: #FBF6EF;             /* fond global, off-white chaud */
  --c-ink: #111111;            /* noir "BEAUREGARD" */
  --c-ink-soft: #3a3a3a;
  --c-muted: #8a7e72;
  --c-line: rgba(17, 17, 17, 0.08);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-soft: 0 1px 2px rgba(17,17,17,.04), 0 8px 24px rgba(17,17,17,.06);
  --shadow-pop: 0 10px 30px rgba(232, 154, 79, .25);

  --max-w: 1100px;

  --ff-sans: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================================
   Reset minimal
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

button { font: inherit; cursor: pointer; }

/* =========================================================
   Décor de fond — taches organiques inspirées du badge
   ========================================================= */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-decor::before,
.bg-decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.bg-decor::before {
  width: 520px; height: 520px;
  background: var(--c-cream);
  top: -160px; left: -160px;
}
.bg-decor::after {
  width: 620px; height: 620px;
  background: rgba(232, 154, 79, .35);
  bottom: -220px; right: -220px;
}

/* =========================================================
   Layout principal
   ========================================================= */
.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

/* Header */
.site-header {
  padding-top: clamp(28px, 5vw, 56px);
}
.site-header .container {
  display: flex;
  justify-content: center;
}
.site-logo {
  max-width: min(420px, 70vw);
  height: auto;
}
.site-logo img { width: 100%; height: auto; }

.site-logo--text {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
}
.site-logo--text .accent { color: var(--c-primary); }

/* Main */
.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(40px, 8vw, 96px) 0;
}

.hero { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(232, 154, 79, .12);
  color: var(--c-primary-deep);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(232,154,79,.2);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232,154,79,.2); }
  50%      { box-shadow: 0 0 0 8px rgba(232,154,79,0); }
}

h1.hero-title {
  margin: 22px 0 14px;
  font-weight: 700;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-title .accent { color: var(--c-primary); }

.hero-sub {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--c-ink-soft);
}

.hero-tags {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.hero-tags span { display: inline-flex; align-items: center; gap: 10px; }
.hero-tags span + span::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-primary);
  margin-right: 10px;
}

/* =========================================================
   Compte à rebours
   ========================================================= */
.countdown {
  margin: clamp(36px, 6vw, 56px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  max-width: 720px;
}

.countdown__cell {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2.4vw, 26px) 10px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.countdown__num {
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--c-ink);
}
.countdown__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 600;
}

.countdown.is-open {
  grid-template-columns: 1fr;
}
.countdown.is-open .countdown__cell {
  padding: 28px;
  background: var(--c-ink);
  color: #fff;
}
.countdown.is-open .countdown__num { color: var(--c-primary); font-size: clamp(32px, 5vw, 44px); }
.countdown.is-open .countdown__label { color: rgba(255,255,255,.7); }

/* =========================================================
   Date d'ouverture (ligne lisible sous le compte à rebours)
   ========================================================= */
.opening-date {
  margin: clamp(20px, 3vw, 28px) auto 0;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 600;
  color: var(--c-ink-soft);
  text-transform: capitalize;
}

/* =========================================================
   Appel à l'action Instagram (remplace l'ancien formulaire)
   ========================================================= */
.ig-cta-wrap {
  margin: clamp(40px, 7vw, 64px) auto 0;
  display: flex;
  justify-content: center;
}
.ig-cta {
  --ig: linear-gradient(135deg, #515BD4 0%, #8134AF 22%, #DD2A7B 52%, #F58529 82%, #FEDA77 100%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px 14px 18px;
  border-radius: var(--radius-full);
  background: var(--ig);
  color: #fff;
  box-shadow: 0 10px 30px rgba(221, 42, 123, .28);
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, filter .2s ease;
}
.ig-cta:hover,
.ig-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(221, 42, 123, .38);
  filter: saturate(1.08);
}
.ig-cta:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .9);
  outline-offset: 3px;
}
.ig-cta .ig-glyph {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 5px;
  border-radius: 11px;
  background: #fff;
}
.ig-cta__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.ig-cta__lead {
  font-weight: 600;
  font-size: clamp(15px, 1.7vw, 17px);
  letter-spacing: -0.01em;
}
.ig-cta__handle {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: clamp(40px, 6vw, 72px) 0 32px;
  border-top: 1px solid var(--c-line);
  margin-top: clamp(60px, 8vw, 100px);
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-address {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink-soft);
  font-size: 15px;
}
.footer-address svg {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  color: var(--c-primary);
}
.footer-address a:hover { color: var(--c-primary-deep); }

.socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.socials a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}
.socials svg { width: 20px; height: 20px; }

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 18px;
}

/* =========================================================
   Animations d'entrée
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .fade-up.d-1 { animation-delay: .05s; }
  .fade-up.d-2 { animation-delay: .15s; }
  .fade-up.d-3 { animation-delay: .25s; }
  .fade-up.d-4 { animation-delay: .35s; }
  .fade-up.d-5 { animation-delay: .45s; }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 640px) {
  .countdown { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
  .site-footer .container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 380px) {
  .countdown__num { font-size: 30px; }
}

/* Sélection */
::selection { background: var(--c-primary); color: #fff; }
