/*
Theme Name: Korence Shell
Theme URI: https://korence.com
Author: Korence
Description: Thème minimal dédié à la suite Korence (Maths, Maternelle, Anglais, Premium). Aucun pied de page, en-tête désactivable, polices et icônes hébergées dans le thème.
Version: 1.0.1
Requires at least: 5.8
Requires PHP: 7.0
License: GPL-2.0-or-later
Text Domain: korence-shell
*/

/* ---------- Base (équivalent d'un « normalize » léger) ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--ks-bg, #fff);
  color: var(--ks-text, #777);
  font-family: var(--ks-font-body, 'Lato', sans-serif);
  font-size: var(--ks-size, 14px);
  line-height: var(--ks-line, 1.6);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 15px;
  color: var(--ks-title, #2d2a2a);
  font-family: var(--ks-font-title, 'Poppins', sans-serif);
  font-weight: 600;
  line-height: 1.4;
}
h1 { font-size: 28px; } h2 { font-size: 24px; } h3 { font-size: 22px; }
h4 { font-size: 18px; } h5 { font-size: 16px; } h6 { font-size: 14px; }

p { margin: 0 0 20px; }

a { color: var(--ks-link, #333); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg, video, canvas, iframe { max-width: 100%; }
img { height: auto; border: 0; vertical-align: middle; }

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  margin: 0;
}
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Structure ---------- */
.ks-main { display: block; width: 100%; }
.ks-wrap {
  width: 100%;
  max-width: var(--ks-max, none);
  margin-left: auto;
  margin-right: auto;
}
.ks-entry-title { margin: 20px 15px; }
.ks-entry-meta { margin: 0 15px 15px; font-size: .9em; opacity: .8; }
.ks-entry { margin-bottom: 30px; }
.ks-entry-body { padding: 0; }
.ks-notfound { text-align: center; padding: 60px 15px; }

/* ---------- En-tête (désactivable) ---------- */
.ks-header {
  background: var(--ks-hbg, #fff);
  color: var(--ks-hcolor, #2d2a2a);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  z-index: 1000;
}
.ks-header.ks-sticky { position: sticky; top: 0; }
.admin-bar .ks-header.ks-sticky { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .ks-header.ks-sticky { top: 46px; }
}
.ks-header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 6px 15px;
}
.ks-brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-family: var(--ks-font-title, 'Poppins', sans-serif);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.ks-brand:hover { text-decoration: none; }
.ks-brand img { max-height: 40px; width: auto; }
.ks-header-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.ks-header-link:hover { text-decoration: underline; }

/* ---------- Accessibilité ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.alignleft { float: left; margin: 0 15px 15px 0; }
.alignright { float: right; margin: 0 0 15px 15px; }
.aligncenter { display: block; margin: 0 auto 15px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .9em; }
