/*
Theme Name:   Kadence Histoire
Theme URI:    https://histoire.pascalgagnon.ca
Description:  Child theme Kadence pour histoire.pascalgagnon.ca — typographie éditoriale, fond clair, lisibilité maximale.
Author:       Pascal Gagnon
Author URI:   https://pascalgagnon.ca
Template:     kadenceh
Version:      1.0.0
Text Domain:  kadence-histoire
*/

/* ============================================================
   TYPOGRAPHIE — Playfair Display (titres) + Source Sans 3 (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;600&display=swap');

/* Corps de texte */
body,
p,
li,
td,
input,
textarea,
select {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #1a1a1a;
}

/* Titres — serif classique */
h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

/* ============================================================
   FOND ET MISE EN PAGE
   ============================================================ */

body {
    background-color: #ffffff;
}

.site-main,
.content-area,
article.post,
article.page {
    background-color: #ffffff;
}

/* Largeur de lecture confortable */
.entry-content {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   LIENS — couleurs standard navigateur, toujours identifiables
   ============================================================ */

a {
    color: #0000EE;           /* bleu standard navigateur */
    text-decoration: underline;
}

a:visited {
    color: #551A8B;           /* violet standard navigateur */
}

a:hover,
a:focus {
    color: #0000BB;
    text-decoration: underline;
}

/* Liens dans les titres — pas de soulignement */
h1 a, h2 a, h3 a,
.entry-title a {
    color: inherit;
    text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover,
.entry-title a:hover {
    text-decoration: underline;
}

/* ============================================================
   NAVIGATION ET EN-TÊTE
   ============================================================ */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.main-navigation a {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.main-navigation a:hover {
    color: #0000EE;
    text-decoration: underline;
}

/* ============================================================
   AJUSTEMENTS LISIBILITÉ
   ============================================================ */

/* Espacement paragraphes */
.entry-content p {
    margin-bottom: 1.4em;
}

/* Citations — sobre */
blockquote {
    border-left: 3px solid #cccccc;
    padding-left: 1.25em;
    margin-left: 0;
    font-style: italic;
    color: #444444;
}

/* Code inline */
code {
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 0.1em 0.3em;
    border-radius: 3px;
}
