/* ============================
   DESIGN LUXE KHELCOM ONE
   ============================ */

/* Palette */
:root {
  --bg-page: #ffffff;
  --ink-main: #0b1020;
  --ink-muted: #5c6278;
  --ink-soft: #8a90a8;

  --nav-bg: #ffffffcc;
  --nav-border: #e4e7f0;

  --blue-deep: #0b1740;      /* proche de ta caisse */
  --blue-main: #2a64f6;
  --blue-soft: #3457c5;
  --green-main: #2ed0a8;

  --card-bg: #ffffff;
  --card-border: #eceff5;
  --section-bg: #f6f7fb;
  --shadow-soft: 0 14px 40px rgba(4, 10, 40, 0.18);

  --radius-lg: 24px;
  --radius-md: 16px;
}

/* Reset simple */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: var(--bg-page);
  color: var(--ink-main);
  -webkit-font-smoothing: antialiased;
}

/* ============================
   LAYOUT GLOBAL
   ============================ */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
}

/* ============================
   HEADER / NAVBAR
   ============================ */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 0%, #4b8cff, #0b1740);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 40px rgba(5, 10, 40, 0.6);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--ink-main);
}

.brand-text span {
  color: var(--blue-main);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-muted);
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-main), var(--green-main));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--ink-main);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.btn-nav {
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(90deg, var(--blue-main), var(--green-main));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(7, 36, 138, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    filter 0.25s ease;
}

.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(7, 36, 138, 0.6);
  filter: brightness(1.08);
}

/* ============================
   HERO SECTION
   ============================ */

.hero {
  position: relative;
  padding-block: 120px 72px; /* avec header fixe */
  background:
    radial-gradient(circle at 10% -10%, rgba(42, 100, 246, 0.32), transparent 55%),
    radial-gradient(circle at 90% 110%, rgba(46, 208, 168, 0.22), transparent 55%),
    #050814;
  color: #ffffff;
  overflow: hidden;
}

/* fond restaurant */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(5, 8, 20, 0.88),
      rgba(5, 8, 20, 0.58),
      rgba(5, 8, 20, 0.93)
    ),
    url("/assets/images/hero-restaurant.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* Colonne texte */

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.3rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title span {
  display: block;
  font-weight: 300;
  font-size: 0.75em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-sub {
  max-width: 540px;
  font-size: 1rem;
  color: rgba(232, 236, 255, 0.9);
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, var(--blue-main), var(--green-main));
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(7, 36, 138, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(7, 36, 138, 0.9);
  filter: brightness(1.05);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(232, 236, 255, 0.96);
  font-size: 0.94rem;
  text-decoration: none;
  background: transparent;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.btn-ghost:hover {
  background: rgba(7, 16, 50, 0.82);
  transform: translateY(-1px);
}

.hero-meta {
  font-size: 0.86rem;
  color: rgba(204, 214, 255, 0.85);
}

/* Colonne téléphone */

.hero-phone {
  display: flex;
  justify-content: flex-end;
}

.hero-phone-card {
  position: relative;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 9 / 17;
  border-radius: 32px;
  padding: 10px;
  background: radial-gradient(circle at 20% 0%, #4b8cff, #050814);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.8);
}

.hero-phone-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #020616;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-phone-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* petit label en haut du téléphone */
.hero-phone-tag {
  position: absolute;
  inset-block-start: -14px;
  inset-inline-end: 8px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(11, 23, 64, 0.94);
  color: rgba(232, 236, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ============================
   SECTIONS CONTENU
   ============================ */

.section {
  padding-block: 72px;
  background: var(--section-bg);
}

.section.white {
  background: #ffffff;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
  color: var(--ink-main);
}

.section-title p {
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* cartes “Conçu pour les restaurateurs” */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(5, 12, 40, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 100, 246, 0.5);
  box-shadow: 0 26px 70px rgba(5, 12, 40, 0.16);
}

.feature-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* CTA */

.cta {
  padding-block: 80px;
  background: #050814;
  color: #ffffff;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-inner p {
  color: rgba(214, 222, 255, 0.88);
  margin-bottom: 1.6rem;
}

/* ============================
   FOOTER
   ============================ */

.site-footer {
  background: #0d1424;
  color: rgba(219, 228, 255, 0.9);
  padding-block: 40px 24px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-grid p,
.footer-grid a {
  font-size: 0.9rem;
  color: rgba(219, 228, 255, 0.86);
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(156, 170, 207, 0.9);
}

/* liens légaux en bas */

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 12px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(156, 170, 207, 0.95);
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-phone {
    justify-content: flex-start;
  }

  .site-header {
    background: #050814e0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .header-inner {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none; /* version simple pour mobile au début */
  }

  .btn-nav {
    padding-inline: 1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 110px;
  }
}
/* === Correction logo header === */
.header .logo {
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header .logo span {
  color: #4da3ff !important; /* bleu de la caisse */
}
/* HEADER BLANC PREMIUM */
.header-white {
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.header-white .brand-text {
  color: #000;
}

.header-white .brand-text span {
  color: #4da3ff; /* bleu de ta caisse */
}

.header-white .main-nav a {
  color: #444;
}
.header-white .main-nav a:hover {
  color: #4da3ff;
}

/* ANIMATIONS PREMIUM */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.2s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 1.4s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
/* BOUTON NAV SUR HEADER BLANC */
.header-white .btn-nav {
  background: linear-gradient(90deg, #4da3ff, #4de2c7);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
/* FOND RESTAURANT PREMIUM FLOU */
.hero {
  background: url("/assets/images/bg-restaurant.jpg") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.55); /* assombrit un peu pour lisibilité */
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2; /* contenu au-dessus du flou */
}
