/* ============================================================
   Kicode — feuille de style commune
   HTML/CSS pur, mobile-first, aucune dépendance externe.
   ============================================================ */

:root {
  /* Palette Kicode */
  --brand:        #2f5fe0;   /* bleu Kicode */
  --brand-dark:   #1e3fa0;
  --brand-soft:   #eaf0ff;
  --accent:       #e8663d;   /* orange chaleureux (CarnetRecettes) */
  --ink:          #1a1c22;   /* texte principal */
  --ink-soft:     #4b5160;   /* texte secondaire */
  --line:         #e4e6ec;   /* bordures */
  --bg:           #ffffff;
  --bg-alt:       #f7f8fb;
  --max:          720px;     /* largeur de lecture confortable */

  --radius:       14px;
  --shadow:       0 1px 2px rgba(20, 22, 34, .05),
                  0 8px 24px rgba(20, 22, 34, .06);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; color: var(--ink); font-weight: 700; }
h1 { font-size: 2rem; margin: 0 0 .5rem; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 .8rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { color: var(--ink-soft); padding-left: 1.25rem; }
li { margin: .35rem 0; }

strong { color: var(--ink); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------- Mise en page ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

main { padding: 32px 0 64px; }

/* ---------- En-tête ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: .95rem;
}
.site-nav a { color: var(--ink-soft); font-size: .95rem; margin-left: 1.1rem; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* ---------- Héros ---------- */
.hero {
  text-align: center;
  padding: 56px 0 40px;
}
.hero .app-icon {
  width: 96px; height: 96px; border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 0 auto 20px; display: block;
}
.hero p.lead {
  font-size: 1.2rem; color: var(--ink-soft);
  max-width: 34rem; margin: 0 auto 1.5rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  background: var(--brand); color: #fff;
  padding: .7rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.secondary { background: var(--brand-soft); color: var(--brand-dark); }

/* ---------- Cartes / grilles de fonctions ---------- */
.features {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin: 2rem 0;
}
@media (min-width: 560px) {
  .features { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; }
.card .ico { font-size: 1.6rem; display: block; margin-bottom: .4rem; }

/* ---------- Encadré ---------- */
.callout {
  background: var(--brand-soft);
  border: 1px solid #d5e0ff;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Bloc contact ---------- */
.contact-box {
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  margin: 2rem 0;
}
.contact-box .email {
  font-size: 1.25rem; font-weight: 700; color: var(--brand);
  display: inline-block; margin-top: .3rem;
}

/* ---------- Métadonnées (date de mise à jour) ---------- */
.meta { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 32px 0;
  font-size: .9rem; color: var(--ink-soft);
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
  align-items: center; justify-content: space-between;
}
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--brand); }
.site-footer .legal { font-size: .82rem; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Accessibilité ---------- */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
