:root {
    /* Cobalt — l'âme du blog : « le bleu de cobalt de la nuit étoilée » */
    --cobalt: #1a3aa0;
    --cobalt-deep: #10245e;
    --cobalt-bright: #2b57d6;
    --ink: #20222e;
    --bg: #f7f4ec;          /* ivoire chaud : la toile de fond d'une galerie */
    --paper: #fffdf8;       /* cartes, images encadrées */
    --muted: #6a6b7a;       /* gris-bleu */
    --line: #e6e0d2;
    --tag-bg: #eef1fb;      /* bleu très pâle */
    --max-width: 720px;
    --gallery-width: 1140px;
    /* Rimbaud — « A noir, E blanc, I rouge, U vert, O bleu » */
    --v-a: #23242e;
    --v-e: #cbb994;
    --v-i: #b23a2e;
    --v-u: #3d6b4f;
    --v-o: #1a3aa0;
    --serif-body: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --serif-display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
    font-family: var(--serif-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.68;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Filet des voyelles de Rimbaud — homage discret en haut de page */
.voyelles {
    height: 3px;
    display: flex;
}
.voyelles span { flex: 1; }
.voyelles .a { background: var(--v-a); }
.voyelles .e { background: var(--v-e); }
.voyelles .i { background: var(--v-i); }
.voyelles .u { background: var(--v-u); }
.voyelles .o { background: var(--v-o); }

header.site {
    text-align: center;
    padding: 3.4rem 1rem 2rem;
    background:
        radial-gradient(1200px 260px at 50% -120px, rgba(26,58,160,0.06), transparent 70%);
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.4rem;
}
header.site h1 {
    margin: 0;
    font-family: var(--serif-display);
    font-size: 3.1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.05;
}
header.site h1 a { color: var(--cobalt-deep); text-decoration: none; }
header.site h1 a:hover { color: var(--cobalt); }
header.site .tagline {
    color: var(--muted);
    font-style: italic;
    font-size: 1.05rem;
    margin: 0.6rem auto 0;
    max-width: 34rem;
}
header.site nav { margin-top: 1.5rem; }
header.site nav a {
    color: var(--cobalt);
    text-decoration: none;
    margin: 0 0.7rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
header.site nav a:hover { color: var(--cobalt-bright); }

/* Menu déroulant « Catégories » */
.nav-drop { position: relative; display: inline-block; }
.nav-drop-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 230px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(16,36,94,0.14);
    padding: 0.4rem 0;
    text-align: left;
    z-index: 50;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    white-space: nowrap;
}
.nav-drop-menu a:hover { background: var(--tag-bg); color: var(--cobalt); }
.nav-drop-count {
    color: var(--cobalt);
    font-size: 0.72rem;
    background: var(--tag-bg);
    border-radius: 10px;
    padding: 0.05rem 0.5rem;
}
@media (max-width: 640px) {
    /* Sur mobile : pas de méga-liste dépliée. Le lien « Catégories »
       mène à la page qui liste toutes les catégories. */
    .nav-drop-menu,
    .nav-drop:hover .nav-drop-menu,
    .nav-drop:focus-within .nav-drop-menu { display: none; }
    .drop-caret { display: none; }
}

.search-wrap {
    max-width: var(--max-width);
    margin: 0 auto 2rem;
    padding: 0 1.2rem;
}
.search-wrap input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 3px;
}
.search-wrap input:focus { outline: 2px solid var(--cobalt); }
#search-results { margin-top: 0.8rem; }
#search-results .hit {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
}
#search-results .hit a { color: var(--ink); text-decoration: none; font-size: 1.15rem; font-family: var(--serif-display); }
#search-results .hit a:hover { color: var(--cobalt); }
#search-results .hit .meta { color: var(--muted); font-size: 0.85rem; }
#search-results mark { background: var(--tag-bg); color: var(--cobalt-deep); }

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.2rem 4rem;
}
main.gallery { max-width: var(--gallery-width); }

/* Bloc d'accueil / hommage */
.intro {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 3rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid var(--line);
}
.intro-quote {
    font-family: var(--serif-display);
    font-size: 1.7rem;
    font-style: italic;
    color: var(--cobalt-deep);
    line-height: 1.35;
    margin: 0 0 1rem;
}
.intro-text { color: var(--muted); font-size: 1rem; margin: 0; }
.intro-text strong { color: var(--ink); font-weight: 600; }

/* Galerie de vignettes (accueil, tags) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 2rem 1.8rem;
}
.card { display: flex; flex-direction: column; }
.card a.thumb {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(16,36,94,0.06);
    transition: box-shadow .25s ease, transform .25s ease;
}
.card a.thumb:hover { box-shadow: 0 10px 26px rgba(16,36,94,0.16); transform: translateY(-2px); }
.card a.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card a.thumb.placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--cobalt-deep), var(--cobalt-bright));
    color: rgba(255,255,255,0.9);
    font-family: var(--serif-display);
    font-size: 3.2rem;
}
.card h2 {
    font-family: var(--serif-display);
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.2;
    margin: 0.9rem 0 0.25rem;
}
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--cobalt); }
.card .meta {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
.card .excerpt { color: var(--ink); font-size: 0.92rem; opacity: 0.85; margin: 0 0 0.6rem; }

article.full h1 {
    font-family: var(--serif-display);
    font-size: 2.6rem;
    font-weight: 500;
    margin: 0 0 0.3rem;
    line-height: 1.12;
    color: var(--cobalt-deep);
}
article.full .meta {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.6rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}
/* Lettrine cobalt sur le premier paragraphe */
article.full .content > p:first-of-type::first-letter {
    font-family: var(--serif-display);
    float: left;
    font-size: 3.4rem;
    line-height: 0.82;
    padding: 0.1rem 0.6rem 0 0;
    color: var(--cobalt);
}
article.full .content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.6rem auto;
    background: var(--paper);
    padding: 6px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(16,36,94,0.10);
}
article.full .content p { margin: 1.1rem 0; }
article.full .content blockquote {
    border-left: 3px solid var(--cobalt);
    margin: 1.2rem 0;
    padding: 0.2rem 1.1rem;
    color: var(--muted);
    font-style: italic;
}
article.full .content a { color: var(--cobalt); text-decoration-color: rgba(26,58,160,0.35); }
article.full .content a:hover { color: var(--cobalt-bright); }
article.full .content h2,
article.full .content h3 {
    font-family: var(--serif-display);
    font-weight: 500;
    margin-top: 2.2rem;
    color: var(--cobalt-deep);
}
/* Section commentaires — le « livre d'or » de la communauté de Myriam */
article.full .content h2 { position: relative; }
article.full .content hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 1.4rem 0;
}

.tags-line { margin-top: 1.6rem; }
.tag {
    display: inline-block;
    background: var(--tag-bg);
    color: var(--cobalt-deep);
    padding: 0.18rem 0.7rem;
    margin: 0.15rem 0.2rem 0.15rem 0;
    border-radius: 30px;
    font-size: 0.78rem;
    text-decoration: none;
}
.tag:hover { background: var(--cobalt); color: #fff; }
.tag .count { color: var(--cobalt); margin-left: 0.3rem; font-size: 0.72rem; }
.tag:hover .count { color: #fff; }

.section-title {
    font-family: var(--serif-display);
    font-weight: 500;
    font-size: 1.9rem;
    color: var(--cobalt-deep);
    margin: 0 0 1.6rem;
}

.archives-list { list-style: none; padding: 0; }
.archives-list .year {
    font-family: var(--serif-display);
    font-size: 1.7rem; margin: 2.2rem 0 0.8rem; color: var(--cobalt);
}
.archives-list .month {
    font-weight: bold; margin: 1rem 0 0.4rem; color: var(--muted);
    text-transform: capitalize;
}
.archives-list li.article { margin-left: 1rem; padding: 0.25rem 0; }
.archives-list li.article a { color: var(--ink); text-decoration: none; }
.archives-list li.article a:hover { color: var(--cobalt); }
.archives-list .date { color: var(--muted); font-size: 0.85rem; margin-right: 0.6rem; }

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}
.pagination a { color: var(--cobalt); text-decoration: none; }
.pagination a:hover { color: var(--cobalt-bright); }
.pagination .info { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }

.nav-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}
.nav-prev-next a { color: var(--cobalt); text-decoration: none; max-width: 45%; }
.nav-prev-next a:hover { color: var(--cobalt-bright); }

footer.site {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 2.4rem 1rem 3rem;
    border-top: 1px solid var(--line);
    margin-top: 4rem;
    background: radial-gradient(900px 200px at 50% 140px, rgba(26,58,160,0.05), transparent 70%);
}
footer.site .dedication {
    font-family: var(--serif-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--cobalt-deep);
    margin: 0 auto 0.6rem;
    max-width: 32rem;
}

@media (max-width: 600px) {
    html { font-size: 16px; }
    header.site { padding: 2.4rem 1rem 1.5rem; }
    header.site h1 { font-size: 2.3rem; }
    .intro-quote { font-size: 1.4rem; }
    article.full h1 { font-size: 2rem; }
    .grid { grid-template-columns: 1fr; gap: 2rem; }
}
