/* Styles partagés pour les pages statiques publiques ConjuGrec
   (install.html, guides/*.html, etc.)
   Couleurs alignées sur Tailwind config (greek-*). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --night:   #1A3B6E;
  --blue:    #2856A8;
  --sky:     #E4EBF8;
  --ouzo:    #C8A03A;
  --amber:   #B8862A;
  --cream:   #F8F3E8;
  --stone:   #5A6886;
  --correct: #2A7A50;
  --wrong:   #B84A38;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--night);
  line-height: 1.65;
  min-height: 100vh;
  padding: 0 1rem;
}
.container { max-width: 760px; margin: 0 auto; padding: 1.5rem 0 3rem; }

/* ─── Bandeau langue ─── */
.lang-toggle { display: flex; justify-content: flex-end; gap: .35rem; margin-bottom: 1rem; }
.lang-toggle a {
  padding: .35rem .75rem; border-radius: .5rem;
  background: rgba(228,235,248,.6); color: var(--stone);
  text-decoration: none; font-size: .85rem; font-weight: 600;
}
.lang-toggle a.active { background: white; color: var(--night); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ─── Header ─── */
header.page-header { text-align: center; margin-bottom: 2.5rem; }
.logo {
  width: 96px; height: 96px; border-radius: 1.5rem;
  box-shadow: 0 8px 20px rgba(26,59,110,.2);
  margin-bottom: 1rem;
}
h1 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 2rem; font-weight: 700;
  color: var(--night); margin-bottom: .5rem; line-height: 1.2;
}
.subtitle { color: var(--stone); font-size: 1.05rem; }

/* ─── Sections de contenu ─── */
h2 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.5rem; color: var(--night);
  margin: 2.5rem 0 .75rem;
}
h3 {
  font-size: 1.15rem; color: var(--night); font-weight: 700;
  margin: 1.5rem 0 .5rem;
}
p { margin: .5rem 0; color: var(--night); }
ul, ol { padding-left: 1.5rem; margin: .5rem 0; }
li { margin: .3rem 0; }
strong { color: var(--night); }
em { color: var(--stone); }
.lead { font-size: 1.1rem; color: var(--stone); }
.greek { font-size: 1.05em; color: var(--blue); font-weight: 600; }

/* ─── Cartes ─── */
.card {
  background: white; border-radius: 1.25rem; padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 12px rgba(26,59,110,.08);
  border: 2px solid var(--sky);
  margin-bottom: 1.5rem;
}
.card h2 { margin-top: 0; font-size: 1.125rem; display: flex; align-items: center; gap: .5rem; }

/* ─── Tableaux de conjugaison ─── */
table.conj {
  width: 100%; border-collapse: collapse; margin: 1rem 0;
  background: white; border-radius: .75rem; overflow: hidden;
  box-shadow: 0 2px 6px rgba(26,59,110,.05);
}
table.conj th, table.conj td {
  padding: .65rem 1rem; text-align: left;
  border-bottom: 1px solid var(--sky);
}
table.conj th {
  background: var(--night); color: white;
  font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em;
}
table.conj tr:last-child td { border-bottom: 0; }
table.conj td.subject { color: var(--stone); width: 40%; }
table.conj td.form { color: var(--blue); font-weight: 600; }

/* ─── CTA ─── */
.cta {
  display: inline-block; background: var(--ouzo); color: white;
  padding: .85rem 2rem; border-radius: 1rem; font-weight: 700;
  text-decoration: none; transition: background .2s; border: none; cursor: pointer;
  font-size: 1rem;
}
.cta:hover { background: var(--amber); color: white; }
.cta.secondary { background: var(--night); }
.cta.secondary:hover { background: var(--blue); }
.cta-block { text-align: center; margin: 2.5rem 0; }

/* ─── Bénéfices (install.html) ─── */
.benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem; margin: 2rem 0;
}
.benefit {
  background: white; border-radius: 1rem; padding: 1rem .75rem;
  text-align: center; border: 2px solid var(--sky);
}
.benefit-icon { font-size: 1.75rem; margin-bottom: .25rem; }
.benefit-title { font-weight: 700; color: var(--night); font-size: .9rem; }
.benefit-desc { color: var(--stone); font-size: .8rem; margin-top: .25rem; }

/* ─── Listes alpha (verbes) ─── */
.verb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .5rem .75rem; margin: 1rem 0;
}
.verb-grid .item { font-size: .9rem; }
.verb-grid .greek { display: inline-block; margin-right: .25rem; }
.verb-grid .gloss { color: var(--stone); font-size: .8em; }

/* ─── Mise en valeur du mot "Safari" dans les instructions iOS ─── */
.safari {
  font-size: 1.08em; font-weight: 700; color: var(--blue);
}

/* ─── Icône SVG inline dans une phrase ou une liste ─── */
.inline-icon {
  display: inline-block; vertical-align: middle;
  width: 1.5em; height: 1.5em; color: var(--blue);
  margin: 0 .15em;
}

/* ─── Quotes & callouts ─── */
.callout {
  background: rgba(200,160,58,.08); border-left: 4px solid var(--ouzo);
  padding: .75rem 1rem; border-radius: .25rem; margin: 1rem 0;
}
.callout strong { color: var(--ouzo); }
.warning {
  background: rgba(184,74,56,.06); border-left: 4px solid var(--wrong);
  padding: .75rem 1rem; border-radius: .25rem; margin: 1rem 0;
}

/* ─── Footer ─── */
footer {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--sky);
  text-align: center; color: var(--stone); font-size: .85rem;
}
footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.related-guides {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin: 1.5rem 0;
}
.related-guides a {
  display: inline-block; padding: .4rem .85rem;
  background: white; border: 1px solid var(--sky); border-radius: .5rem;
  color: var(--blue); text-decoration: none; font-size: .85rem; font-weight: 600;
}
.related-guides a:hover { background: var(--sky); }

/* ─── Status install ─── */
.status {
  padding: .75rem 1rem; border-radius: .75rem;
  background: rgba(42,122,80,.1); color: var(--correct);
  font-weight: 600; margin: 1rem 0; display: none;
}
.status.show { display: block; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 1rem 0 2.5rem; }
}
