/*
Theme Name: Colline Ardoise
Template: generatepress
Version: 1.0.0
Description: Custom theme for Le Fil Élégant
*/

/* --------------------------------------------------------------------------
 * Palette (berry-vivid) — kept as custom properties so the hero, cards and
 * footer all read from one place.
 * ----------------------------------------------------------------------- */
:root {
    --lf-primary:   #7C3AED;
    --lf-secondary: #A78BFA;
    --lf-accent:    #8B5CF6;
    --lf-warm:      #F0ECF8;
    --lf-surface:   #F5F3FF;
    --lf-bg:        #FFFFFF;
    --lf-ink:       #1E1B4B;
    --lf-muted:     #4B5563;   /* palette text-secondary darkened: #6B7280 is 4.41:1 on --lf-surface, below AA */
    --lf-line:      #E9E5F5;
    --lf-gap:       6rem;   /* spacious: section_gap */
    --lf-block:     2rem;   /* spacious: block_gap */
    --lf-pad:       3rem;   /* spacious: container_padding */
}

/* Ancrage visuel smartphone */
@media (max-width: 767px) {
    .inside-navigation::before {
        content: "La mode féminine vue avec sincérité, curiosité et une touche de caractère.";
        font-style: italic;
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 13px;
        line-height: 1.2;
        color: var(--lf-ink);
        max-width: calc(100% - 132px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none;
    }
    .inside-navigation { position: relative; }
}

/* --------------------------------------------------------------------------
 * Front-page H1 — the editorial proposition, never the brand name.
 * ----------------------------------------------------------------------- */
.lf-home-h1 {
    display: block;
    max-width: 760px;
    margin: 0 auto var(--lf-block);
    padding: 0 1rem;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--lf-muted);
    text-align: center;
}
@media (max-width: 767px) {
    .lf-home-h1 { font-size: 1.15rem; }
}

/* --------------------------------------------------------------------------
 * Featured-post hero (brief §10 homepage hero = featured-post).
 * Light surface, no overlay text — heading contrast is measured against an
 * opaque background, so the caption sits on the surface colour, not on art.
 * ----------------------------------------------------------------------- */
.lf-hero {
    background-color: var(--lf-surface);
    border-top: 1px solid var(--lf-line);
    border-bottom: 1px solid var(--lf-line);
    margin: 0 0 var(--lf-gap);
    padding: var(--lf-pad) 1.5rem;
}
.lf-hero-frame {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
}
.lf-hero-media {
    flex: 1 1 55%;
    margin: 0;
    min-width: 0;
}
.lf-hero-media img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}
.lf-hero-caption { flex: 1 1 45%; min-width: 0; }
.lf-hero-flag {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.28rem 0.7rem;
    background-color: var(--lf-primary);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.lf-hero-title {
    margin: 0 0 0.6rem;
    font-size: 1.9rem;
    line-height: 1.22;
    letter-spacing: -0.015em;
}
.lf-hero-title a { color: var(--lf-ink); text-decoration: none; }
.lf-hero-title a:hover { color: var(--lf-primary); }
.lf-hero-stamp {
    margin: 0 0 0.8rem;
    color: var(--lf-muted);
    font-size: 0.85rem;
}
.lf-hero-lede {
    margin: 0 0 1.3rem;
    color: var(--lf-ink);
    font-size: 1rem;
    line-height: 1.65;
}
.lf-hero-cta {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background-color: var(--lf-primary);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
}
.lf-hero-cta:hover { background-color: #5B21B6; color: #FFFFFF; }
@media (max-width: 880px) {
    .lf-hero-frame { flex-direction: column; gap: 1.5rem; }
    .lf-hero-media img { height: 230px; }
    .lf-hero-title { font-size: 1.5rem; }
}

/* Section rule above the recent-articles loop (brief §10 heading). */
.lf-loop-rule {
    max-width: 1080px;
    margin: 0 auto var(--lf-block);
    padding: 0 1.5rem;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    color: var(--lf-ink);
}

/* --------------------------------------------------------------------------
 * Category strip — third homepage band (blog-1 composition).
 * ----------------------------------------------------------------------- */
.lf-cats {
    margin: var(--lf-gap) 0 0;
    padding: var(--lf-pad) 1.5rem;
    background-color: var(--lf-warm);
    border-top: 1px solid var(--lf-line);
}
.lf-cats-inner { max-width: 1080px; margin: 0 auto; }
.lf-cats h2 {
    margin: 0 0 var(--lf-block);
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}
.lf-cats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.lf-cats-list li {
    flex: 1 1 190px;
    margin: 0;
    background-color: var(--lf-bg);
    border: 1px solid var(--lf-line);
}
.lf-cats-list a {
    display: block;
    padding: 1.1rem 1.2rem;
    color: var(--lf-ink);
    text-decoration: none;
}
.lf-cats-list a:hover { border-color: var(--lf-primary); color: var(--lf-primary); }
.lf-cats-name { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.lf-cats-count { display: block; font-size: 0.8rem; color: var(--lf-muted); }

/* --------------------------------------------------------------------------
 * Post cards — archive + home loop. Border-radius and shadow tokens are both
 * "none" for this site, so separation is carried by a hairline rule.
 * ----------------------------------------------------------------------- */
.generate-columns .inside-article,
.blog .inside-article,
.archive .inside-article,
.search .inside-article {
    background-color: var(--lf-bg);
    border: 1px solid var(--lf-line);
    padding: 1.25rem;
    height: 100%;
}
.generate-columns .inside-article:hover,
.blog .inside-article:hover,
.archive .inside-article:hover { border-color: var(--lf-secondary); }
.post-image img, .generate-columns .post-image img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.entry-title a { color: var(--lf-ink); text-decoration: none; }
.entry-title a:hover { color: var(--lf-primary); }
a.read-more, .read-more a {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--lf-primary);
    text-decoration: none;
}
a.read-more:hover { text-decoration: underline; }

/* Reading measure on single posts and pages — the container stays wide, the
   text column does not. */
.single .entry-content > *,
.page .entry-content > *,
.single .entry-header,
.page:not(.home) .entry-header {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.single .entry-content > .alignwide,
.single .entry-content > figure.alignfull { max-width: none; }
.entry-content h2 {
    margin-top: 2.4rem;
    letter-spacing: -0.012em;
}
.entry-content h3 { margin-top: 1.8rem; }
.entry-content figure { margin: 2rem auto; }
.entry-content figure img { display: block; width: 100%; height: auto; }
.entry-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.83rem;
    color: var(--lf-muted);
    text-align: center;
}
.entry-content blockquote {
    border-left: 3px solid var(--lf-primary);
    padding-left: 1.2rem;
    margin-left: 0;
    color: var(--lf-ink);
    font-style: italic;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    font-size: 0.94rem;
}
.entry-content th, .entry-content td {
    border: 1px solid var(--lf-line);
    padding: 0.6rem 0.75rem;
    text-align: left;
}
.entry-content th { background-color: var(--lf-surface); font-weight: 700; }

/* --------------------------------------------------------------------------
 * Author signature block under each post.
 * ----------------------------------------------------------------------- */
.lf-signature {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    max-width: 780px;
    margin: 2.8rem auto 0;
    padding: 1.4rem;
    background-color: var(--lf-surface);
    border-left: 3px solid var(--lf-primary);
}
.lf-signature img { flex: 0 0 auto; display: block; width: 82px; height: 82px; object-fit: cover; }
.lf-signature p { margin: 0 0 0.3rem; }
.lf-sig-name { font-weight: 700; }
.lf-sig-name a { color: var(--lf-ink); text-decoration: none; }
.lf-sig-name a:hover { color: var(--lf-primary); }
.lf-sig-role { font-size: 0.86rem; color: var(--lf-muted); }
.lf-sig-line { font-size: 0.9rem; line-height: 1.6; }
.lf-byline-thumb { width: 24px; height: 24px; object-fit: cover; vertical-align: middle; margin-right: 6px; }

/* About page portrait — avatar-left (brief §10 About structure). */
.lf-portrait {
    float: left;
    margin: 0 1.6rem 1rem 0;
    width: 240px;
    height: auto;
}
@media (max-width: 600px) {
    .lf-portrait { float: none; display: block; margin: 0 auto 1.2rem; width: 200px; }
}

/* --------------------------------------------------------------------------
 * Footer — 2-col-light (brief §10).
 * ----------------------------------------------------------------------- */
.site-footer .footer-widgets {
    background-color: var(--lf-surface);
    border-top: 1px solid var(--lf-line);
}
.site-footer .footer-widgets .widget-title {
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lf-ink);
}
.site-footer .footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-widgets li { margin-bottom: 0.45rem; }
.site-footer .footer-widgets a { color: var(--lf-ink); text-decoration: none; }
.site-footer .footer-widgets a:hover { color: var(--lf-primary); text-decoration: underline; }
.site-info { background-color: var(--lf-warm); font-size: 0.85rem; }
.site-info a { color: var(--lf-ink); }
.lf-foot-sep { margin: 0 0.45rem; color: var(--lf-muted); }

/* --------------------------------------------------------------------------
 * Forms — palette, not browser defaults.
 * ----------------------------------------------------------------------- */
.wpcf7 label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.93rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--lf-line);
    background-color: var(--lf-bg);
    color: var(--lf-ink);
    font-family: inherit;
    font-size: 1rem;
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--lf-primary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
}
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 1.1rem; }
body input[type="submit"].wpcf7-submit,
body button.wpforms-submit,
body .wpcf7-submit,
body .ff-btn-submit {
    background-color: #7C3AED !important;
    color: #ffffff !important;
    border: none;
    padding: 0.75rem 1.6rem;
    font-weight: 700;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}
body input[type="submit"].wpcf7-submit:hover,
body button.wpforms-submit:hover,
body .wpcf7-submit:hover,
body .ff-btn-submit:hover {
    filter: brightness(0.88) !important;
}

/* GP writes logo_width as an inline attribute only for raster logos; an SVG
   keeps its intrinsic 553px and dwarfs the header. Constrain it here. */
/* NB: GP Menu Plus puts `mobile-header-logo` on <body>, so a bare
   `.mobile-header-logo img` descendant selector caps EVERY image on the page.
   Both logo selectors must be anchored to their own header element. */
.site-header .header-image,
.site-logo .header-image,
#mobile-header .site-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
}
@media (max-width: 767px) {
    #mobile-header .site-logo img { max-width: 190px; }
}

/* Nav search field + header polish for nav-float-right (sig-F). */
.main-navigation .main-nav ul li a { letter-spacing: 0.01em; }
.main-navigation .main-nav ul li a:hover { color: var(--lf-primary); }
.navigation-search input[type="search"] {
    border: 1px solid var(--lf-line);
    padding: 0.6rem 0.9rem;
    font-family: inherit;
}
.site-header { border-bottom: 1px solid var(--lf-line); }

/* Category archive intro text. */
.page-header .taxonomy-description {
    max-width: 780px;
    color: var(--lf-muted);
    line-height: 1.65;
}

/* Pagination */
.paging-navigation .nav-links a,
.paging-navigation .nav-links span.current {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--lf-line);
    margin-right: 0.35rem;
    text-decoration: none;
    color: var(--lf-ink);
}
.paging-navigation .nav-links span.current {
    background-color: var(--lf-primary);
    border-color: var(--lf-primary);
    color: #FFFFFF;
}
