/* ============================================================
   KLIKAGE — Charte graphique (reprise Pikali, pastel orangé)
   Inter + Syne · chaleureux, moderne, lumineux
   ============================================================ */

:root {
  --color-primary:        #e07b39;
  --color-primary-light:  #f4a574;
  --color-primary-soft:   #ffeee4;
  --color-primary-dark:   #c56a2d;

  --color-peach:          #ffcdb2;
  --color-coral:          #ffb4a2;
  --color-salmon:         #e5989b;
  --color-rose:           #b5838d;
  --color-cream:          #fff8f3;
  --color-warm-white:     #fffbf8;

  --color-gold:           #d4a373;
  --color-terracotta:     #bc6c25;
  --color-sand:           #dda15e;

  --color-text:           #3d2c29;
  --color-text-muted:     #7d6b66;
  --color-text-light:     #a69490;

  --color-surface:        #ffffff;
  --color-surface-warm:   #fff8f3;
  --color-surface-peach:  #fff5ef;
  --color-border:         #f0e0d6;
  --color-border-light:   #f5ebe4;

  --color-success:        #2f9e62;
  --color-success-soft:   #e6f6ec;
  --color-danger:         #c0392b;
  --color-danger-soft:    #fbeae8;
  --color-info-soft:      #eaf2fb;
  --color-info:           #2b6cb0;

  --gradient-primary:     linear-gradient(135deg, #e07b39 0%, #f4a574 100%);
  --gradient-hero:        linear-gradient(165deg, #fff8f3 0%, #ffeee4 40%, #ffcdb2 100%);
  --gradient-dark:        linear-gradient(165deg, #3d2c29 0%, #5c4742 50%, #7d6b66 100%);
  --gradient-sunset:      linear-gradient(135deg, #f4a574 0%, #e5989b 50%, #b5838d 100%);

  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', 'Inter', system-ui, sans-serif;

  --radius-sm:    10px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-full:  9999px;

  --shadow-sm:    0 2px 8px -2px rgba(224, 123, 57, 0.08);
  --shadow-md:    0 8px 24px -6px rgba(224, 123, 57, 0.12);
  --shadow-lg:    0 16px 40px -8px rgba(224, 123, 57, 0.15);
  --shadow-xl:    0 24px 56px -12px rgba(224, 123, 57, 0.18);
  --shadow-glow:  0 8px 32px -4px rgba(244, 165, 116, 0.35);

  --transition:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height:   76px;
  --container:    1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem; line-height: 1.7;
  color: var(--color-text);
  background: var(--color-warm-white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; color: var(--color-text); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 28px; }
.section { padding: 96px 0; position: relative; }
.section--white { background: var(--color-surface); }
.section--warm { background: var(--color-surface-warm); }
.section--peach { background: var(--gradient-hero); }
.section--dark { background: var(--gradient-dark); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 0.97rem;
  padding: 13px 24px; border-radius: var(--radius-full);
  transition: var(--transition); white-space: nowrap;
}
.btn--primary { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--light { background: #fff; color: var(--color-primary); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--danger { background: var(--color-danger); color: #fff; }
.btn--danger:hover { filter: brightness(.95); }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* ---- Badges ---- */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; background: var(--color-primary-soft); color: var(--color-primary-dark); }
.tag { display: inline-block; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; }
.tag--ok { background: var(--color-success-soft); color: var(--color-success); }
.tag--pending { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.tag--off { background: var(--color-danger-soft); color: var(--color-danger); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); z-index: 100; background: rgba(255,251,248,0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-border-light); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--color-text); display: inline-flex; align-items: center; }
.nav__logo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gradient-primary); margin-left: 3px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link { font-weight: 500; color: var(--color-text-muted); transition: var(--transition); }
.nav__link:hover { color: var(--color-primary); }
.nav__link--cta { background: var(--gradient-primary); color: #fff; padding: 10px 20px; border-radius: var(--radius-full); box-shadow: var(--shadow-glow); }
.nav__link--cta:hover { color: #fff; transform: translateY(-1px); }
.nav__burger { display: none; flex-direction: column; gap: 5px; }
.nav__burger span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: calc(var(--nav-height) + 70px) 0 90px; background: var(--gradient-hero); overflow: hidden; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.hero__orb--1 { width: 420px; height: 420px; background: var(--color-coral); top: -120px; right: -80px; }
.hero__orb--2 { width: 360px; height: 360px; background: var(--color-peach); bottom: -140px; left: -100px; }
.hero__layout { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
.hero__title-accent { background: var(--gradient-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__subtitle { margin-top: 22px; font-size: 1.15rem; color: var(--color-text-muted); max-width: 520px; }
.hero__actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero__stats { display: flex; align-items: center; gap: 28px; margin-top: 48px; }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--color-primary-dark); }
.hero__stat span { font-size: 0.85rem; color: var(--color-text-muted); }
.hero__stat-divider { width: 1px; height: 38px; background: var(--color-border); }
.hero__card { background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 30px; }
.hero__card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.hero__steps { display: grid; gap: 14px; }
.hero__step { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--radius-md); background: var(--color-surface-warm); }
.hero__step-num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.hero__step strong { display: block; font-size: 0.97rem; }
.hero__step span { font-size: 0.86rem; color: var(--color-text-muted); }

@media (max-width: 860px) { .hero__layout { grid-template-columns: 1fr; } .hero__visual { display: none; } }

/* ============================================================
   SECTIONS / CARTES
   ============================================================ */
.section__header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__eyebrow { display: inline-block; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); margin-bottom: 14px; }
.section__title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.section__subtitle { margin-top: 16px; color: var(--color-text-muted); font-size: 1.08rem; }
.section--dark .section__subtitle { color: rgba(255,255,255,0.8); }

.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--color-primary-soft); color: var(--color-primary); margin-bottom: 18px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--color-text-muted); font-size: 0.97rem; }

/* ---- Pricing ---- */
.price-card { text-align: center; }
.price-card--featured { border: 2px solid var(--color-primary); box-shadow: var(--shadow-lg); position: relative; }
.price-card__amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--color-primary-dark); margin: 14px 0; }
.price-card__amount small { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }
.price-card ul { text-align: left; margin: 22px 0; display: grid; gap: 12px; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--color-text-muted); }
.price-card ul li::before { content: '✓'; color: var(--color-success); font-weight: 800; }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  background: #fff; color: var(--color-text); transition: var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-soft); }
.field small { display: block; margin-top: 6px; color: var(--color-text-light); font-size: 0.82rem; }

/* ---- Alerts ---- */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 0.94rem; margin-bottom: 18px; border: 1px solid transparent; }
.alert--info { background: var(--color-info-soft); color: var(--color-info); border-color: #cfe0f4; }
.alert--success { background: var(--color-success-soft); color: var(--color-success); border-color: #c3ead2; }
.alert--danger { background: var(--color-danger-soft); color: var(--color-danger); border-color: #f3cdc8; }

/* ============================================================
   ESPACE CLIENT / BO ADMIN
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { background: var(--gradient-dark); color: #fff; padding: 26px 20px; position: sticky; top: 0; height: 100vh; }
.sidebar__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; display: inline-flex; align-items: center; margin-bottom: 8px; }
.sidebar__sub { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-bottom: 28px; }
.sidebar__nav { display: grid; gap: 4px; }
.sidebar__link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-md); color: rgba(255,255,255,0.78); font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.sidebar__link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar__link.is-active { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-glow); }
.sidebar__foot { position: absolute; bottom: 24px; left: 20px; right: 20px; font-size: 0.85rem; }
.sidebar__foot a { color: rgba(255,255,255,0.7); }

.app-main { background: var(--color-surface-warm); padding: 34px 40px; }
.app-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.app-head h1 { font-size: 1.7rem; }
.app-head p { color: var(--color-text-muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
@media (max-width: 980px) { .stat-grid { grid-template-columns: 1fr 1fr; } .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .sidebar__foot { position: static; margin-top: 20px; } }
.stat { background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.stat__label { font-size: 0.82rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat__value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--color-primary-dark); margin-top: 6px; }

.panel { background: #fff; border: 1px solid var(--color-border-light); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.panel__head h2 { font-size: 1.25rem; }

.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table th { text-align: left; padding: 12px 14px; color: var(--color-text-muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid var(--color-border-light); }
.table td { padding: 14px; border-bottom: 1px solid var(--color-border-light); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table code { background: var(--color-surface-warm); padding: 3px 8px; border-radius: 6px; font-size: 0.85rem; }
.empty { text-align: center; padding: 40px; color: var(--color-text-light); }

.key-box { background: var(--color-text); color: #ffd9c2; font-family: ui-monospace, monospace; padding: 16px 18px; border-radius: var(--radius-md); word-break: break-all; font-size: 0.95rem; }

/* ---- Auth card ---- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: var(--gradient-hero); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 40px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .muted { margin-bottom: 26px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 0.92rem; color: var(--color-text-muted); }
.auth-foot a { color: var(--color-primary); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--gradient-dark); color: rgba(255,255,255,0.75); padding: 60px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; display: inline-flex; align-items: center; margin-bottom: 14px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a:hover { color: var(--color-primary-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.86rem; }
