/* 
 * Système de Typographie Harmonisé - Carole Kinésio
 * Cohérence visuelle sur toutes les pages
 */

/* Variables CSS pour la cohérence */
:root {
    /* Tailles de police harmonisées */
    --font-size-h1: 2.2rem;
    --font-size-h2: 1.8rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.3rem;
    --font-size-h5: 1.1rem;
    --font-size-h6: 1rem;
    --font-size-body: 1rem;
    --font-size-small: 0.9rem;
    
    /* Line-height harmonisé */
    --line-height-h1: 1.3;
    --line-height-h2: 1.4;
    --line-height-h3: 1.4;
    --line-height-body: 1.6;
    
    /* Couleurs — voir tokens.css (ne pas diverger) */
    --color-primary: #5A7A5A;
    --color-primary-dark: #4A6A4A;
    --color-primary-light: #6F906F;
    --color-secondary: #6F906F;
    --color-text: #555555;
    --color-text-muted: #4A4A4A;
    --color-text-light: #777777;
    
    /* Couleurs spécifiques pour les titres */
    --color-h1: #555555;        /* Gris foncé pour H1 */
    --color-h2: #555555;        /* Gris foncé pour H2 */
    --color-h3: #555555;        /* Gris foncé pour H3 */
    --color-h4: #555555;        /* Gris foncé pour H4 */
    --color-h5: #555555;        /* Gris foncé pour H5 */
    --color-h6: #555555;        /* Gris foncé pour H6 */
    
    /* Espacement harmonisé */
    --margin-h1: 0 0 1.5rem 0;
    --margin-h2: 0 0 1.2rem 0;
    --margin-h3: 0 0 1rem 0;
    --margin-p: 0 0 1.5rem 0;
}

/* Reset et base harmonisée */
* {
    box-sizing: border-box;
}

/* Typographie de base */
body {
    font-family: 'Glacial Indifference', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--color-text);
    font-weight: 400;
}

/* Système de titres harmonisé */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Glacial Indifference', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: var(--line-height-h1);
}

/* H1 - Titre principal */
h1 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    margin: var(--margin-h1);
    font-weight: 700;
    color: var(--color-h1) !important;
    text-transform: uppercase !important;
}

/* H2 - Sous-titre principal */
h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    margin: var(--margin-h2);
    font-weight: 600;
    color: var(--color-h2) !important;
}

/* H3 - Titre de section */
h3 {
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    margin: var(--margin-h3);
    font-weight: 600;
    color: var(--color-h3) !important;
}

/* H4 - Sous-titre de section */
h4 {
    font-size: var(--font-size-h4);
    line-height: var(--line-height-h3);
    margin: var(--margin-h3);
    font-weight: 500;
    color: var(--color-h4) !important;
}

/* H5 - Titre mineur */
h5 {
    font-size: var(--font-size-h5);
    line-height: var(--line-height-h3);
    margin: var(--margin-h3);
    font-weight: 500;
    color: var(--color-h5) !important;
}

/* H6 - Titre très mineur */
h6 {
    font-size: var(--font-size-h6);
    line-height: var(--line-height-h3);
    margin: var(--margin-h3);
    font-weight: 500;
    color: var(--color-h6) !important;
}

/* Paragraphes harmonisés */
p {
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    margin: var(--margin-p);
    color: var(--color-text);
}

/* Liens harmonisés */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Classes utilitaires pour la cohérence */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-weight-light {
    font-weight: 300;
}

.font-weight-normal {
    font-weight: 400;
}

.font-weight-bold {
    font-weight: 700;
}

/* Responsive typography */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 1.8rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.3rem;
        --font-size-h4: 1.2rem;
        --font-size-body: 0.95rem;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-h1: 1.6rem;
        --font-size-h2: 1.4rem;
        --font-size-h3: 1.2rem;
        --font-size-h4: 1.1rem;
        --font-size-body: 0.9rem;
    }
}

/* Styles spécifiques pour les pages */
.contact-title {
    font-size: var(--font-size-h1) !important;
    line-height: var(--line-height-h1) !important;
    margin: var(--margin-h1) !important;
    color: var(--color-h1) !important;
    text-transform: uppercase !important;
}

.section-title {
    font-size: var(--font-size-h2) !important;
    line-height: var(--line-height-h2) !important;
    margin: var(--margin-h2) !important;
    color: var(--color-h2) !important;
}

/* Forcer l'harmonisation des couleurs sur tous les titres */
h1, h1.contact-title, h1.section-title, .major h1 {
    color: var(--color-h1) !important;
    text-transform: uppercase !important;
}

h2, h2.section-title, .major h2 {
    color: var(--color-h2) !important;
}

h3, .major h3 {
    color: var(--color-h3) !important;
}

h4, .major h4 {
    color: var(--color-h4) !important;
}

h5, .major h5 {
    color: var(--color-h5) !important;
}

h6, .major h6 {
    color: var(--color-h6) !important;
}
