/**
 * SITE.CSS - Styles globaux du site Ops Imperium
 *
 * Recommandations UX appliquées (NotebookLM - Web Design UX UI CSS):
 * - Effet Von Restorff: CTA chartreuse avec micro-interactions
 * - Loi de Jakob: Fat footer standard B2B
 * - Gestalt Proximité: Social links dans Brand
 * - Scroll-up disclosure: Header sticky intelligent
 * - Découvrabilité: Label "Menu" sur hamburger
 * - Performance: Fallback backdrop-filter, font-display: swap
 * - Accessibilité: focus-visible, 44x44px touch targets
 */

/* ==========================================================================
   WEB FONTS - font-display: swap (Performance)
   ========================================================================== */

@font-face {
    font-family: 'The Seasons';
    src: url('/assets/fonts/the-seasons-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Seasons';
    src: url('/assets/fonts/the-seasons-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    /* Fallback for browsers without backdrop-filter */
    background: rgba(27, 34, 44, 0.97);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* Glassmorphism with fallback */
@supports (backdrop-filter: blur(10px)) {
    .site-header {
        background: rgba(27, 34, 44, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Scroll-up disclosure: hidden state */
.site-header.header--hidden {
    transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--oi-marine);
        transition: none;
    }
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* ==========================================================================
   LOGO (SVG Wordmark) - 44x44px touch target minimum
   ========================================================================== */

.site-header__logo,
.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    /* Ensure 44x44px touch target (accessibility) */
    min-height: 44px;
    min-width: 44px;
    padding: 10px 8px;
    margin: -10px -8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.site-header__logo:hover,
.footer-logo:hover {
    background: rgba(255, 255, 255, 0.05);
}

.site-header__logo:focus-visible,
.footer-logo:focus-visible {
    outline: 2px solid var(--oi-chartreuse);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.logo-wordmark {
    height: 24px;
    width: auto;
}

/* Footer logo slightly smaller */
.footer-logo .logo-wordmark {
    height: 20px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    font-family: var(--font-h2);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--oi-albatre);
    text-decoration: none;
    padding: 12px 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
    opacity: 0.85;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.site-nav__link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* focus-visible: only show outline for keyboard navigation, not mouse clicks */
.site-nav__link:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    outline: 2px solid var(--oi-chartreuse);
    outline-offset: 2px;
}

.site-nav__link.active {
    opacity: 1;
    color: var(--oi-chartreuse);
}

/* ==========================================================================
   CTA BUTTON (Effet Von Restorff + Micro-interactions)
   ========================================================================== */

.site-nav__cta {
    font-family: var(--font-h2);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--oi-marine);
    text-decoration: none;
    padding: 10px 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
    background: var(--oi-chartreuse);
    border-radius: 4px;
    margin-left: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Micro-interactions (recommandation NotebookLM) */
.site-nav__cta:hover {
    background: #c5e644;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.site-nav__cta:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* focus-visible: clean keyboard-only outlines */
.site-nav__cta:focus-visible {
    outline: 2px solid var(--oi-chartreuse);
    outline-offset: 2px;
}

/* ==========================================================================
   HAMBURGER MENU (avec label "Menu" - découvrabilité)
   ========================================================================== */

.site-header__toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--oi-albatre);
}

.toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toggle-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--oi-albatre);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toggle-label {
    font-family: var(--font-h2);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hamburger animation */
.site-header__toggle[aria-expanded="true"] .toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.site-header__toggle[aria-expanded="true"] .toggle-icon span:nth-child(2) {
    opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile styles */
@media (max-width: 800px) {
    .site-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--oi-marine);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0;
    }

    .site-nav__link,
    .site-nav__cta {
        display: block;
        width: 100%;
        padding: 16px;
        text-align: center;
    }

    .site-nav__cta {
        margin-left: 0;
        margin-top: 16px;
    }

    .site-header__toggle {
        display: flex;
    }

    /* Smaller logo on very small screens */
    @media (max-width: 400px) {
        .logo-wordmark {
            height: 18px;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav {
        transition: none;
    }
    .toggle-icon span {
        transition: none;
    }
}

/* ==========================================================================
   SITE FOOTER (Fat Footer B2B - 3 colonnes)
   ========================================================================== */

.site-footer {
    background: var(--oi-marine);
    color: var(--oi-albatre);
    padding: 48px 24px 24px;
    margin-top: auto;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Footer Brand Column */
.footer-brand {
    max-width: 320px;
}

.footer-brand .footer-logo {
    margin-bottom: 16px;
}

.footer-description {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--oi-albatre);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--oi-empire);
    color: var(--oi-chartreuse);
}

.social-link:focus-visible {
    outline: 2px solid var(--oi-chartreuse);
    outline-offset: 2px;
    background: var(--oi-empire);
    color: var(--oi-chartreuse);
}

/* Footer Columns */
.footer-column h4 {
    font-family: var(--font-h2);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--oi-chartreuse);
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

/* Footer links - contraste 4.5:1 minimum (accessibilité) */
.footer-column a {
    color: var(--oi-albatre);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-column a:focus-visible {
    opacity: 1;
    outline: 2px solid var(--oi-chartreuse);
    outline-offset: 2px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-family: var(--font-h2);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oi-albatre);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.footer-legal a:hover {
    opacity: 1;
}

.footer-legal a:focus-visible {
    opacity: 1;
    outline: 2px solid var(--oi-chartreuse);
    outline-offset: 2px;
}

/* ==========================================================================
   ARTICLE LAYOUT
   ========================================================================== */

:root {
    --article-max-width: 720px;
    --article-wide-width: 900px;
}

/* Compense le header fixe */
.article-header {
    padding-top: 120px !important;
}

/* Article header (hero) */
.article-header {
    background: var(--oi-marine);
    color: var(--oi-albatre);
    padding: 80px 24px 60px;
    text-align: center;
}

.article-header__inner {
    max-width: var(--article-max-width);
    margin: 0 auto;
}

.article-header__tag {
    font-family: var(--font-h2);
    font-size: 0.75rem;
    text-transform: lowercase;
    letter-spacing: 0.1em;
    color: var(--oi-chartreuse);
    margin-bottom: 16px;
}

.article-header__title {
    font-family: var(--font-h1);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 16px;
}

.article-header__subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 32px;
}

.article-header__meta {
    font-family: var(--font-h2);
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Article content */
.article-content {
    max-width: var(--article-max-width);
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--oi-marine);
    background: var(--oi-albatre);
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

h2 {
    font-family: var(--font-h1);
    font-size: 2rem;  /* 32px - increased for visual hierarchy */
    line-height: 1.2;
    margin-top: 56px;
    margin-bottom: 24px;
    color: var(--oi-empire);
}

h3 {
    font-family: var(--font-h2);
    font-size: 1.25rem;  /* 20px - must be > body (18px) */
    text-transform: lowercase;
    letter-spacing: 0.02em;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--oi-marine);
}

p {
    margin: 0 0 20px 0;
}

/* ==========================================================================
   EMPHASIS SYSTEM (Strong & Mark)
   - <strong> : termes/concepts importants → couleur empire (vert)
   - <mark> : chiffres/statistiques → fond chartreuse subtil

   Exemples :
   <p>L'IA comprend le <strong>contexte sémantique</strong>.</p>
   <p>Réduction de <mark>70%</mark> du <strong>MTTR</strong>.</p>
   ========================================================================== */

strong {
    color: var(--oi-empire);
    font-weight: 600;
}

/* Highlighted text (surlignage) - pour chiffres/stats */
mark {
    background: rgba(214, 247, 78, 0.25);
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 500;
    color: inherit;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--oi-marine);
    opacity: 0.9;
    margin-bottom: 32px;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
}

li strong {
    color: var(--oi-empire);
}

/* Blockquotes */
blockquote {
    border-left: 3px solid var(--oi-chartreuse);
    padding: 16px 24px;
    margin: 32px 0;
    background: rgba(214, 247, 78, 0.08);
    font-style: italic;
}

blockquote p {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 8px;
    font-family: var(--font-h2);
    font-size: 0.75rem;
    font-style: normal;
    opacity: 0.7;
}

/* Dividers */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--oi-marine), transparent);
    opacity: 0.15;
    margin: 48px 0;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Highlight box */
.highlight-box {
    background: var(--oi-dragee);
    padding: 24px;
    border-radius: 8px;
    margin: 32px 0;
}

.highlight-box h4 {
    font-family: var(--font-h2);
    font-size: 0.8rem;
    text-transform: lowercase;
    margin: 0 0 12px 0;
    color: var(--oi-marine);
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Spectrum gradient bar (visual element) */
.spectrum-gradient {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--oi-chartreuse), var(--oi-albatre), var(--oi-rouge));
}

/* Key points */
.key-points {
    display: grid;
    gap: 16px;
    margin: 32px 0;
}

.key-point {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--oi-empire);
}

.key-point__number {
    font-family: var(--font-h1);
    font-size: 1.5rem;
    color: var(--oi-empire);
    opacity: 0.3;
}

.key-point__content h4 {
    font-family: var(--font-h2);
    font-size: 0.85rem;
    margin: 0 0 4px 0;
}

.key-point__content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.85;
}

/* CTA Section */
.cta-section {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 48px 32px;
    text-align: center;
    background: var(--oi-chartreuse);
    border-radius: 8px;
}

.cta-section h3 {
    font-family: var(--font-h1);
    font-size: 1.5rem;
    color: var(--oi-marine);
    margin: 0 0 16px 0;
    text-transform: none;
}

.cta-section p {
    max-width: 480px;
    margin: 0 auto 24px;
    color: var(--oi-marine);
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--oi-marine);
    color: var(--oi-albatre);
    font-family: var(--font-h2);
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:focus-visible {
    outline: 2px solid var(--oi-chartreuse);
    outline-offset: 2px;
}

/* Author section */
.author-section {
    max-width: 720px;
    margin: 64px auto 48px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: var(--oi-marine);
    color: var(--oi-albatre);
    border-radius: 8px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--oi-empire);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-family: var(--font-h1);
    font-size: 1.1rem;
    margin: 0 0 4px 0;
}

.author-info__role {
    font-family: var(--font-h2);
    font-size: 0.7rem;
    color: var(--oi-chartreuse);
    margin-bottom: 12px;
}

.author-info p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 12px;
}

.author-links {
    display: flex;
    gap: 16px;
}

.author-links a {
    font-family: var(--font-h2);
    font-size: 0.7rem;
    color: var(--oi-chartreuse);
    text-decoration: none;
}

.author-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .article-header {
        padding: 100px 20px 40px !important;
    }

    .article-content {
        padding: 32px 20px 64px;
    }

    .author-section {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-links {
        justify-content: center;
    }

    .key-point {
        flex-direction: column;
        gap: 8px;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-social {
        justify-content: center;
    }
}
