/*
Theme Name: Les Mondes renversés
Theme URI: https://lesmondesrenverses.fr
Description: Thème enfant Twenty Twenty-Four pour la maison d'édition Les Mondes renversés. Rendu classique, le contenu éditorial vit dans le plugin lige-lmr.
Author: LIGE
Author URI: https://lige.fr
Template: twentytwentyfour
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lesmondes-renverses
*/

/* ==========================================================================
   Charte graphique Les Mondes renversés (Émilie Guesse)
   ========================================================================== */
:root {
    --lmr-bg:          #faf8f5; /* crème clair */
    --lmr-bg-alt:      #f0ebe3; /* crème soutenu */
    --lmr-paper:       #ffffff;
    --lmr-ink:         #2c2c2c; /* texte courant */
    --lmr-black:       #1a1a1a; /* titres, logo */
    --lmr-accent:      #993300; /* terre cuite — charte RVB écran */
    --lmr-accent-dark: #7a2800; /* hover */
    --lmr-muted:       #888888;
    --lmr-line:        #e6e0d6;
    --lmr-maxw:        1100px;
    --lmr-serif:       'DM Serif Text', Georgia, 'Times New Roman', serif;
    --lmr-sans:        'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--lmr-sans);
    font-size: 18px;
    line-height: 1.7;
    color: var(--lmr-ink);
    background: var(--lmr-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--lmr-serif);
    font-weight: 400;
    color: var(--lmr-black);
    line-height: 1.2;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.2em; }

a { color: var(--lmr-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lmr-accent-dark); }

img { max-width: 100%; height: auto; }

.lmr-wrap { max-width: var(--lmr-maxw); margin: 0 auto; padding: 0 5%; }

/* ----- Boutons ----- */
.lmr-btn {
    display: inline-block;
    padding: .85rem 2.2rem;
    background: var(--lmr-accent);
    color: #fff;
    font-family: var(--lmr-sans);
    font-weight: 500;
    border-radius: 3px;
    border: 1px solid var(--lmr-accent);
    transition: background .2s, color .2s;
    cursor: pointer;
}
.lmr-btn:hover { background: var(--lmr-accent-dark); color: #fff; }
.lmr-btn--ghost { background: transparent; color: var(--lmr-accent); }
.lmr-btn--ghost:hover { background: var(--lmr-accent); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.lmr-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid var(--lmr-line);
}
.lmr-header__inner {
    max-width: var(--lmr-maxw);
    margin: 0 auto;
    padding: .6rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.lmr-brand { display: inline-flex; align-items: center; }
.lmr-brand img { display: block; height: 46px; width: auto; }
.lmr-brand .lmr-logo--mono { display: none; }

.lmr-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.lmr-nav a {
    font-family: var(--lmr-sans);
    font-weight: 500;
    font-size: .98rem;
    color: var(--lmr-black);
}
.lmr-nav a:hover,
.lmr-nav .current-menu-item > a { color: var(--lmr-accent); }

/* burger (mobile) */
.lmr-burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.lmr-burger span { display: block; width: 26px; height: 2px; background: var(--lmr-black); margin: 5px 0; transition: .25s; }

/* ==========================================================================
   Footer
   ========================================================================== */
.lmr-footer {
    background: var(--lmr-black);
    color: #cfc8be;
    margin-top: 5rem;
    padding: 3.5rem 5% 2.5rem;
}
.lmr-footer__inner {
    max-width: var(--lmr-maxw);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}
.lmr-footer a { color: #e6ddd0; }
.lmr-footer a:hover { color: #fff; }
.lmr-footer__brand img { height: 60px; width: auto; filter: invert(1); }
.lmr-footer__social { display: flex; gap: 1rem; margin-top: 1rem; }
.lmr-footer__social a { font-size: 1.4rem; line-height: 1; }
.lmr-footer ul { list-style: none; margin: 0; padding: 0; }
.lmr-footer ul li { margin-bottom: .4rem; }
.lmr-footer__legal {
    max-width: var(--lmr-maxw);
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .85rem;
    color: #9b9388;
    text-align: center;
}

/* ==========================================================================
   Contenu générique pages
   ========================================================================== */
.lmr-main { min-height: 60vh; }
.lmr-page { padding: 3.5rem 0; }
.lmr-page__header { text-align: center; margin-bottom: 3rem; }
.lmr-page__header .lmr-kicker { color: var(--lmr-muted); font-family: var(--lmr-sans); }
.lmr-content { max-width: 760px; margin: 0 auto; }
.lmr-content ul { padding-left: 1.2em; }
.lmr-content li { margin-bottom: .4em; }

/* admin bar offset */
body.admin-bar .lmr-header { top: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
    .lmr-burger { display: block; }
    .lmr-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--lmr-line);
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .lmr-nav.is-open { max-height: 70vh; }
    .lmr-nav ul { flex-direction: column; gap: 0; padding: .5rem 5% 1rem; align-items: flex-start; }
    .lmr-nav li { width: 100%; padding: .5rem 0; border-bottom: 1px solid var(--lmr-bg-alt); }
    .lmr-brand img { height: 38px; }
    body { font-size: 17px; }
    body.admin-bar .lmr-header { top: 46px; }
}
