/* fil-de-presse.ca - Style institutionnel */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #1e3a5f;
    --accent-hover: #15304f;
    --accent-link: #1d4ed8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--accent);
}

.container { max-width: 840px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-brand { display: flex; flex-direction: column; gap: 2px; }
.site-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.site-tagline {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }

main { min-height: calc(100vh - 160px); padding: 100px 24px 48px 24px; }

/* Feed */
.feed-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent);
}
.feed-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}
.feed-header p { color: var(--text-muted); font-size: 14px; }

.feed-list { display: flex; flex-direction: column; }

.feed-item {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: none;
    align-items: flex-start;
}
.feed-item:first-child { padding-top: 0; }

.feed-item-cover {
    flex-shrink: 0;
    width: 180px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
}
.feed-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feed-item-content { flex: 1; min-width: 0; }

.feed-item h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
    letter-spacing: -0.2px;
    transition: color 0.15s;
}
.feed-item:hover h2 { color: var(--accent-link); }

.feed-summary {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    align-items: center;
}
.feed-company {
    color: var(--accent);
    font-weight: 600;
}

/* Article */
.article { max-width: 700px; margin: 0 auto; }
.article-no-cover { padding-top: 0; }

.article-header {
    margin-bottom: 32px;
}
.article-header h1 {
    font-size: 34px;
    line-height: 1.25;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
}
.article-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
    align-items: center;
}
.article-company { color: var(--accent); font-weight: 600; }

.article-cover { margin-bottom: 32px; overflow: hidden; }
.article-cover img { width: 100%; height: auto; display: block; }

.article-summary {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: 20px 24px;
    border-left: 4px solid var(--accent);
    background: var(--bg-alt);
    margin-bottom: 32px;
}

.article-content {
    font-size: 17px;
    line-height: 1.85;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--text);
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.article-content hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 48px 0;
}
.article-content p { margin-bottom: 18px; }
.article-content h2 {
    font-size: 22px;
    margin: 36px 0 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
}
.article-content h3 {
    font-size: 16px;
    margin: 28px 0 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    color: var(--text-secondary);
}
.article-content h4 {
    font-size: 15px;
    margin: 24px 0 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
}
.article-content strong { font-weight: 700; }
.article-content em { font-style: italic; }
.article-content a {
    color: var(--accent-link);
    text-decoration: none;
    word-break: break-all;
    border-bottom: 1px solid rgba(29, 78, 216, 0.2);
    padding-bottom: 1px;
    transition: border-color 0.15s, color 0.15s;
}
.article-content a:hover {
    border-bottom-color: var(--accent-link);
}
.article-content a[href^="http"]::after {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-left: 3px;
    background: currentColor;
    vertical-align: middle;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.5;
}
.article-content a[href^="mailto"]::after { display: none; }
.article-figure {
    margin: 32px 0; text-align: center;
}
.article-figure img {
    max-width: 100%; height: auto; display: block; margin: 0 auto;
    border-radius: 4px;
}
.article-figure figcaption {
    margin-top: 10px; font-size: 13px; color: var(--text-muted);
    font-style: italic; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}
.article-content ul { margin: 14px 0 18px 28px; }
.article-content li { margin-bottom: 8px; }

.article-contact {
    margin-top: 48px;
    padding: 24px 28px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
}
.article-contact h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 700;
}
.contact-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.contact-title { color: var(--text-secondary); font-size: 14px; margin-bottom: 8px; }
.contact-info { font-size: 14px; }
.contact-info a { color: var(--accent-link); text-decoration: none; transition: color 0.15s; }
.contact-info a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Contact form */
.contact-form-section {
    margin-top: 48px; padding: 28px;
    background: var(--bg-alt); border: 1px solid var(--border);
}
.contact-form-section h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--text);
}
.contact-form-section input,
.contact-form-section textarea {
    width: 100%; padding: 12px 14px; font-size: 14px;
    border: 1px solid var(--border); border-radius: 4px;
    background: var(--bg); color: var(--text); margin-bottom: 12px;
    font-family: inherit; resize: vertical;
}
.contact-form-section input:focus,
.contact-form-section textarea:focus { outline: none; border-color: var(--accent); }
.contact-form-section button {
    padding: 10px 24px; font-size: 14px; font-weight: 600;
    background: var(--accent); color: #fff; border: none;
    border-radius: 4px; cursor: pointer; user-select: none;
    transition: background 0.15s;
}
.contact-form-section button:hover { background: var(--accent-hover); }
.contact-form-section button:disabled { opacity: 0.6; cursor: default; }
.cf-success { padding: 12px; background: #ecfdf5; color: #065f46; border-radius: 4px; font-size: 14px; }
.cf-error { padding: 12px; background: #fef2f2; color: #991b1b; border-radius: 4px; font-size: 14px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    margin-bottom: 100px;
    padding: 10px 20px;
    color: var(--accent);
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: all 0.15s;
}
.back-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.not-found { text-align: center; padding: 80px 0; }
.not-found h1 { font-size: 28px; margin-bottom: 12px; color: var(--text); }
.not-found p { color: var(--text-secondary); margin-bottom: 20px; }

.empty { text-align: center; padding: 60px 0; color: var(--text-muted); }

.site-footer {
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}
.site-footer sup { font-size: 0.7em; vertical-align: super; }

@media (max-width: 600px) {
    .feed-header h1 { font-size: 24px; }
    .article-header h1 { font-size: 26px; }
    .article-content { font-size: 16px; }
    .feed-item { padding: 20px 0; flex-direction: column; gap: 12px; }
    .feed-item-cover { width: 100%; height: 180px; }
    .container { padding: 0 16px; }
    .site-tagline { display: none; }
}
