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

/* ---------------------------------------------------------------------------
   Design tokens — palette ember-glow, radius moderate, shadow medium,
   spacing compact, content width compact.
   --------------------------------------------------------------------------- */
:root {
    --ofs-primary: #C17747;
    --ofs-secondary: #D4A574;
    --ofs-accent: #F39C12;
    --ofs-link: #A85A2B;
    --ofs-accent-warm: #E8D5C4;
    --ofs-surface: #FDF8F4;
    --ofs-bg: #FFFFFF;
    --ofs-text: #2C1810;
    --ofs-text-soft: #5D5D5D;
    --ofs-border: #F5E0CC;
    --ofs-footer-bg: #FDF8F4;
    --ofs-footer-text: #2C1810;
    --ofs-radius: 6px;
    --ofs-shadow: 0 4px 14px rgba(44, 24, 16, 0.10);
    --ofs-block-gap: 1.15rem;
    --ofs-section-gap: 2.75rem;
    --ofs-rule: 1px solid var(--ofs-border);
}

/* ---------------------------------------------------------------------------
   Front-page H1 — visible editorial proposition (APPENDIX-E §27 filter 5)
   --------------------------------------------------------------------------- */
.site-tagline-heading {
    display: block;
    text-align: left;
    padding: 0 0 1.35rem;
    margin: 0 0 1.6rem;
    border-bottom: 2px solid var(--ofs-primary);
    font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ofs-text);
}

@media (max-width: 768px) {
    .site-tagline-heading { font-size: 1.2rem; }
}

/* ---------------------------------------------------------------------------
   Sidebar grid widths. GP's unsemantic grid only ships 5% increments, so the
   28/72 split chosen for this site has no class to bind to and both columns
   fall back to 100%. Declare them here, mirroring GP's own breakpoints
   (desktop ≥1025px, tablet 768–1024px — same 1024 boundary as the nav).
   --------------------------------------------------------------------------- */
@media (min-width: 1025px) {
    .grid-28 { width: 28%; float: left; }
    .grid-72 { width: 72%; float: left; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .tablet-grid-28 { width: 28%; float: left; }
    .tablet-grid-72 { width: 72%; float: left; }
}

/* ---------------------------------------------------------------------------
   Base typography — Lora body, Raleway headings
   --------------------------------------------------------------------------- */
body {
    font-family: "Lora", Georgia, "Times New Roman", serif;
    color: var(--ofs-text);
    background-color: var(--ofs-bg);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title,
.main-navigation a {
    font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.005em;
}

.entry-content h2 {
    margin-top: 2.1rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.35rem;
    border-bottom: var(--ofs-rule);
}

.entry-content h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--ofs-primary);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin-bottom: var(--ofs-block-gap);
}

.entry-content ul,
.entry-content ol { padding-left: 1.35rem; }
.entry-content li { margin-bottom: 0.4rem; }

.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 0.9rem 1.15rem;
    border-left: 3px solid var(--ofs-primary);
    background: var(--ofs-surface);
    border-radius: 0 var(--ofs-radius) var(--ofs-radius) 0;
    font-style: italic;
    color: var(--ofs-text);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content img {
    border-radius: var(--ofs-radius);
    box-shadow: var(--ofs-shadow);
}

.entry-content figcaption,
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--ofs-text-soft);
    text-align: left;
    padding-top: 0.4rem;
}

/* ---------------------------------------------------------------------------
   Containers, header, navigation
   --------------------------------------------------------------------------- */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.separate-containers .inside-page-header {
    border-radius: var(--ofs-radius);
    box-shadow: var(--ofs-shadow);
    border: var(--ofs-rule);
}

.site-header { border-bottom: var(--ofs-rule); }

.main-navigation { border-bottom: 3px solid var(--ofs-primary); }

.main-navigation a { font-weight: 700; }

.main-navigation .main-nav ul li a {
    text-transform: none;
    letter-spacing: 0.01em;
}

.site-logo img { display: block; }

/* ---------------------------------------------------------------------------
   Sidebar widgets
   --------------------------------------------------------------------------- */
.widget-area .widget {
    background: var(--ofs-bg);
    border: var(--ofs-rule);
    border-radius: var(--ofs-radius);
    box-shadow: var(--ofs-shadow);
}

.widget-area .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--ofs-accent-warm);
    color: var(--ofs-text);
}

.widget-area .widget ul { list-style: none; margin-left: 0; padding-left: 0; }

.widget-area .widget li {
    padding: 0.32rem 0;
    border-bottom: 1px dotted var(--ofs-border);
    font-size: 0.95rem;
}

.widget-area .widget li:last-child { border-bottom: 0; }

.widget-area .search-field,
.wp-block-search__input {
    border: var(--ofs-rule);
    border-radius: var(--ofs-radius);
    padding: 0.5rem 0.65rem;
    width: 100%;
    background: var(--ofs-surface);
    font-family: "Lora", Georgia, serif;
}

.widget-area .search-field:focus,
.wp-block-search__input:focus {
    outline: 2px solid var(--ofs-primary);
    outline-offset: 1px;
}

/* ---------------------------------------------------------------------------
   Buttons and form controls
   --------------------------------------------------------------------------- */
button,
input[type="button"],
input[type="submit"],
.button,
.wp-block-button__link {
    background-color: var(--ofs-primary);
    color: #FFFFFF;
    border-radius: var(--ofs-radius);
    border: 0;
    font-family: "Raleway", Arial, sans-serif;
    font-weight: 700;
    padding: 0.6rem 1.15rem;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover {
    background-color: var(--ofs-link);
    color: #FFFFFF;
}

/* ---------------------------------------------------------------------------
   Homepage composition — featured-post hero + recent grid + rubrique strip
   --------------------------------------------------------------------------- */
.ofs-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: var(--ofs-section-gap);
    padding-bottom: var(--ofs-section-gap);
    border-bottom: var(--ofs-rule);
}

.ofs-hero img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: var(--ofs-radius);
    box-shadow: var(--ofs-shadow);
}

.ofs-hero-kicker {
    font-family: "Raleway", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ofs-primary);
    margin: 0 0 0.5rem;
}

.ofs-hero-body h2 {
    font-size: 1.75rem;
    line-height: 1.22;
    margin: 0 0 0.6rem;
}

.ofs-hero-body h2 a { color: var(--ofs-text); text-decoration: none; }
.ofs-hero-body h2 a:hover { color: var(--ofs-link); }

.ofs-hero-body p {
    color: var(--ofs-text-soft);
    margin: 0 0 0.85rem;
    font-size: 0.98rem;
}

.ofs-section-title {
    font-size: 1.3rem;
    margin: 0 0 1.15rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--ofs-primary);
}

.ofs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
    margin-bottom: var(--ofs-section-gap);
}

.ofs-card {
    border: var(--ofs-rule);
    border-radius: var(--ofs-radius);
    box-shadow: var(--ofs-shadow);
    overflow: hidden;
    background: var(--ofs-bg);
    display: flex;
    flex-direction: column;
}

.ofs-card img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.ofs-card-body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }

.ofs-cat-label {
    font-family: "Raleway", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ofs-primary);
}

.ofs-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 0.35rem 0 0.45rem; }
.ofs-card h3 a { color: var(--ofs-text); text-decoration: none; }
.ofs-card h3 a:hover { color: var(--ofs-link); }
.ofs-card p { font-size: 0.9rem; color: var(--ofs-text-soft); margin: 0 0 0.8rem; }

.ofs-readmore {
    font-family: "Raleway", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    color: var(--ofs-link);
    margin-top: auto;
    align-self: flex-start;
}

.ofs-readmore:hover { color: var(--ofs-primary); text-decoration: underline; }

.ofs-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: var(--ofs-section-gap);
}

.ofs-cats a {
    display: inline-flex;
    flex-direction: column;
    padding: 0.55rem 0.95rem;
    border: var(--ofs-rule);
    border-radius: var(--ofs-radius);
    background: var(--ofs-surface);
    text-decoration: none;
    color: var(--ofs-text);
    font-family: "Raleway", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
}

.ofs-cats a:hover { border-color: var(--ofs-primary); background: var(--ofs-accent-warm); }
.ofs-cats a span { font-weight: 400; font-size: 0.76rem; color: var(--ofs-text-soft); }

@media (max-width: 768px) {
    .ofs-hero { grid-template-columns: 1fr; gap: 1rem; }
    .ofs-grid { grid-template-columns: 1fr; }
    .ofs-hero-body h2 { font-size: 1.4rem; }
}

/* ---------------------------------------------------------------------------
   Byline and author card (E-E-A-T)
   --------------------------------------------------------------------------- */
.ofs-byline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.35rem 0 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: var(--ofs-rule);
    font-size: 0.9rem;
    color: var(--ofs-text-soft);
    font-family: "Raleway", Arial, sans-serif;
}

.ofs-byline img {
    border-radius: 50%;
    box-shadow: none;
    flex: 0 0 auto;
}

.ofs-byline a { color: var(--ofs-link); font-weight: 700; text-decoration: none; }
.ofs-byline a:hover { text-decoration: underline; }

.ofs-author-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 2rem;
    padding: 1.1rem 1.2rem;
    background: var(--ofs-surface);
    border: var(--ofs-rule);
    border-left: 3px solid var(--ofs-primary);
    border-radius: var(--ofs-radius);
}

.ofs-author-card img {
    border-radius: 50%;
    box-shadow: none;
    flex: 0 0 auto;
}

.ofs-author-name {
    font-family: "Raleway", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
}

.ofs-author-name a { color: var(--ofs-text); text-decoration: none; }
.ofs-author-name a:hover { color: var(--ofs-link); }

.ofs-author-role {
    font-size: 0.82rem;
    color: var(--ofs-text-soft);
    margin-bottom: 0.45rem;
}

.ofs-author-card p { font-size: 0.9rem; margin: 0; color: var(--ofs-text); }

@media (max-width: 600px) {
    .ofs-author-card { flex-direction: column; }
}

/* ---------------------------------------------------------------------------
   About page — avatar-left layout (brief §10)
   --------------------------------------------------------------------------- */
.ofs-about-intro {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: var(--ofs-rule);
}

.ofs-about-intro img {
    width: 100%;
    border-radius: var(--ofs-radius);
    box-shadow: var(--ofs-shadow);
}

.ofs-about-intro p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
    .ofs-about-intro { grid-template-columns: 1fr; }
    .ofs-about-intro img { max-width: 190px; }
}

/* Coverage topic list on /a-propos/ */
.ofs-coverage {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.ofs-coverage li {
    padding: 0.3rem 0.7rem;
    border: var(--ofs-rule);
    border-radius: var(--ofs-radius);
    background: var(--ofs-surface);
    font-size: 0.87rem;
    font-family: "Raleway", Arial, sans-serif;
}

/* ---------------------------------------------------------------------------
   Archive / blog index
   --------------------------------------------------------------------------- */
.page-header .page-title { font-size: 1.6rem; margin-bottom: 0.4rem; }
.page-header .taxonomy-description { color: var(--ofs-text-soft); font-size: 0.95rem; }
.page-header .taxonomy-description p:last-child { margin-bottom: 0; }

.blog .entry-title, .archive .entry-title { font-size: 1.3rem; line-height: 1.3; }
.entry-meta { font-family: "Raleway", Arial, sans-serif; font-size: 0.82rem; color: var(--ofs-text-soft); }
.entry-meta a { color: var(--ofs-link); }

.post-image img { border-radius: var(--ofs-radius); box-shadow: none; }

/* ---------------------------------------------------------------------------
   Footer — centered-light (brief §10), no widget headings
   --------------------------------------------------------------------------- */
.site-footer { border-top: 3px solid var(--ofs-primary); }

.site-footer .footer-widgets {
    background: var(--ofs-footer-bg);
    color: var(--ofs-footer-text);
    text-align: center;
}

.site-footer .footer-widgets .widget-title { display: none; }

.site-footer .footer-widgets ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.35rem;
}

.site-footer .footer-widgets li { border: 0; padding: 0; }

.site-footer .footer-widgets a {
    color: var(--ofs-link);
    font-family: "Raleway", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer .footer-widgets a:hover { text-decoration: underline; color: var(--ofs-primary); }

.site-info {
    background: var(--ofs-footer-bg);
    color: var(--ofs-text-soft);
    text-align: center;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 0.84rem;
    border-top: 1px dotted var(--ofs-border);
}

/* ---------------------------------------------------------------------------
   404
   --------------------------------------------------------------------------- */
.ofs-404 .entry-title { font-size: 1.75rem; }
.ofs-404 .search-form { margin: 1.25rem 0; display: flex; gap: 0.5rem; }
.ofs-404 .search-field { flex: 1; }

/* ---------------------------------------------------------------------------
   Contact form (Contact Form 7)
   --------------------------------------------------------------------------- */
.wpcf7 label { display: block; font-family: "Raleway", Arial, sans-serif; font-weight: 700; font-size: 0.92rem; margin-bottom: 1rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.55rem 0.7rem;
    border: var(--ofs-rule);
    border-radius: var(--ofs-radius);
    background: var(--ofs-surface);
    font-family: "Lora", Georgia, serif;
    font-weight: 400;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--ofs-primary); outline-offset: 1px; }
.wpcf7 .wpcf7-submit { width: auto; }

/* ---------------------------------------------------------------------------
   Accessibility
   --------------------------------------------------------------------------- */
a { color: var(--ofs-link); }
a:hover, a:focus { color: var(--ofs-primary); }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--ofs-surface);
    clip: auto !important;
    clip-path: none;
    color: var(--ofs-text);
    display: block;
    font-size: 0.9rem;
    height: auto;
    left: 5px;
    padding: 0.6rem 1rem;
    top: 5px;
    width: auto;
    z-index: 100000;
    border-radius: var(--ofs-radius);
}
