/* ============================================================
   FishPredict — Thème Ghost — Full Light Mode
   Charte : Montserrat · #1E6FD9 · #0B1F3A · #4DA5FF
   ============================================================ */

:root {
    --blue:       #1E6FD9;
    --blue-light: #4DA5FF;
    --navy:       #0B1F3A;
    --white:      #FFFFFF;
    --gray-50:    #F8FAFD;
    --gray-100:   #F0F4FA;
    --gray-200:   #E2E8F4;
    --gray-400:   #9AAAC4;
    --gray-600:   #5A6E8C;
    --gray-800:   #2D3F5A;
    --font:       'Montserrat', sans-serif;
    --radius:     10px;
    --shadow-sm:  0 1px 4px rgba(11,31,58,0.06);
    --shadow:     0 4px 16px rgba(11,31,58,0.10);
    --shadow-lg:  0 8px 32px rgba(11,31,58,0.14);
    --max-w:      1200px;
    --narrow-w:   740px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--navy);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

/* ── Layout ── */
.container        { max-width: var(--max-w);    margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--narrow-w); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   HEADER — light, bordure basse
   ============================================================ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.site-logo {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo-fish    { color: var(--navy); }
.logo-predict { color: var(--blue); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav .nav { display: flex; gap: 28px; list-style: none; }
.site-nav .nav a {
    color: var(--gray-600);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.2s;
}
.site-nav .nav a:hover { color: var(--navy); }

.btn-app {
    background: var(--blue);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(30,111,217,0.25);
}
.btn-app:hover {
    background: var(--blue-light) !important;
    box-shadow: 0 4px 14px rgba(30,111,217,0.35);
}

/* ============================================================
   HERO — light avec image de fond ou fond gris très clair
   ============================================================ */
.home-hero {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 88px 0 80px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(30,111,217,0.08);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 18px;
}

.hero-title span { color: var(--blue); }

.hero-sub {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 560px;
    margin: 0 auto 36px;
    font-weight: 400;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 14px 34px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(30,111,217,0.30);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover {
    background: var(--blue-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,111,217,0.38);
}

/* ============================================================
   POSTS SECTION
   ============================================================ */
.posts-section { padding: 72px 0; background: var(--white); }

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 36px;
}

/* ── Grid ── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.posts-grid--small {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* ── Post Card ── */
.post-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.post-card-image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--gray-100);
}
.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.post-card:hover .post-card-image { transform: scale(1.04); }

.post-card-content { padding: 22px; }

.post-card-tags { margin-bottom: 10px; }
.tag {
    display: inline-block;
    background: rgba(30,111,217,0.08);
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 6px;
}

.post-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}
.post-card-title a { color: var(--navy); }
.post-card-title a:hover { color: var(--blue); }

.post-card-excerpt {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.65;
}

.post-card-meta {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 600;
    display: flex;
    gap: 12px;
}

/* ============================================================
   POST FULL
   ============================================================ */
.post-full { padding-bottom: 80px; }

/* Header article — light */
.post-full-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 64px 0 48px;
    text-align: center;
}

.post-full-tags { margin-bottom: 16px; }

.post-full-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
    margin-bottom: 20px;
}

.post-full-meta {
    font-size: 0.83rem;
    color: var(--gray-400);
    font-weight: 600;
}
.post-full-meta .separator { margin: 0 8px; }

/* Image hero article */
.post-full-image {
    margin: 0 auto;
    max-width: 1000px;
    padding: 0 28px;
}
.post-full-image img {
    width: 100%;
    border-radius: var(--radius);
    margin-top: 40px;
    box-shadow: var(--shadow-lg);
}
.post-full-image figcaption {
    text-align: center;
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 10px;
}

/* Contenu article */
.post-full-content {
    padding-top: 52px;
    padding-bottom: 52px;
}

.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
.post-full-content h4 {
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin: 2.2em 0 0.8em;
}
.post-full-content h2 { font-size: 1.6rem; }
.post-full-content h3 { font-size: 1.25rem; }
.post-full-content h4 { font-size: 1.05rem; }

.post-full-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--gray-800);
    margin-bottom: 1.4em;
}

.post-full-content a { color: var(--blue); font-weight: 600; }
.post-full-content a:hover { color: var(--blue-light); }

.post-full-content img {
    border-radius: var(--radius);
    margin: 2em auto;
    box-shadow: var(--shadow);
}

.post-full-content blockquote {
    border-left: 4px solid var(--blue);
    padding: 18px 24px;
    margin: 2em 0;
    background: rgba(30,111,217,0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-600);
    font-size: 1.05rem;
}

.post-full-content code {
    background: var(--gray-100);
    color: var(--navy);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: 'Courier New', monospace;
}

.post-full-content pre {
    background: var(--navy);
    color: var(--gray-200);
    padding: 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 2em 0;
    box-shadow: var(--shadow);
}
.post-full-content pre code { background: none; color: inherit; padding: 0; }

.post-full-content ul,
.post-full-content ol {
    padding-left: 1.6em;
    margin-bottom: 1.4em;
    color: var(--gray-800);
}
.post-full-content li { margin-bottom: 0.5em; font-size: 1.05rem; line-height: 1.8; }

.post-full-content hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 3em 0;
}

/* Tags footer */
.post-full-tags-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--gray-200);
    margin-top: 12px;
}
.tag-link {
    background: var(--gray-100);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    border: 1px solid var(--gray-200);
}
.tag-link:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
    background: var(--gray-50);
    padding: 56px 0;
    border-top: 1px solid var(--gray-200);
}

/* ============================================================
   TAG ARCHIVE
   ============================================================ */
.tag-archive { padding: 72px 0; }
.tag-archive-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
}
.tag-archive-title { font-size: 2rem; font-weight: 700; color: var(--navy); }
.tag-archive-desc { color: var(--gray-600); margin-top: 8px; font-size: 1rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 56px;
    font-weight: 600;
    font-size: 0.88rem;
}
.pagination a {
    background: var(--blue);
    color: var(--white);
    padding: 9px 22px;
    border-radius: var(--radius);
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(30,111,217,0.2);
}
.pagination a:hover { background: var(--blue-light); color: var(--white); }
.pagination .page-number { color: var(--gray-400); }

/* ============================================================
   FOOTER — light
   ============================================================ */
.site-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 48px 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-nav .nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-bottom: 24px;
}
.footer-nav .nav a {
    color: var(--gray-600);
    font-size: 0.83rem;
    font-weight: 600;
    transition: color 0.2s;
}
.footer-nav .nav a:hover { color: var(--navy); }

.footer-copy {
    font-size: 0.78rem;
    color: var(--gray-400);
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* ── Hero image pleine largeur ── */
.hero {
    position: relative;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    padding: 120px 0 100px;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11,31,58,0.78) 0%,
        rgba(11,31,58,0.55) 50%,
        rgba(11,31,58,0.25) 100%
    );
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 18px;
}
.hero-title span { color: var(--blue-light); }
.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}
.btn-hero {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(30,111,217,0.45);
    transition: background 0.2s, transform 0.15s;
}
.btn-hero:hover { background: var(--blue-light); color: var(--white); transform: translateY(-2px); }

.hero-caption {
    position: absolute;
    bottom: 10px;
    right: 16px;
    z-index: 2;
}
.hero-caption figcaption {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.45);
    font-style: italic;
    max-width: 420px;
    text-align: right;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--blue);
    color: var(--blue);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--blue); color: var(--white); }

/* ── What section ── */
.what-section {
    padding: 80px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}
.what-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.what-text h2 { font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.what-text p { font-size: 1rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.what-text .btn-secondary { margin-top: 8px; }
.feature-icon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-icon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
}
.ficon { font-size: 1.4rem; flex-shrink: 0; }

/* ── Features 2 colonnes ── */
.features-section {
    padding: 80px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 72px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-tag {
    display: inline-block;
    background: rgba(30,111,217,0.08);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.feature-content h3 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.feature-content p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.link-more { color: var(--blue); font-weight: 700; font-size: 0.9rem; }
.link-more:hover { color: var(--blue-light); }
.feature-visual {
    border-radius: 12px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    overflow: hidden;
}
.feature-visual--sst { background: linear-gradient(135deg, #0B1F3A 0%, #1E6FD9 60%, #4DA5FF 100%); }
.feature-visual--chl { background: linear-gradient(135deg, #0B2A1A 0%, #1A8C4E 60%, #2DBE6C 100%); }
.visual-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    width: fit-content;
}
.visual-label { color: rgba(255,255,255,0.7); font-size: 0.75rem; font-weight: 600; }

/* ── Testimonial ── */
.testimonial-section { padding: 72px 0; background: var(--navy); }
.testimonial-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-quote {
    font-size: 5rem;
    color: var(--blue);
    line-height: 0.5;
    margin-bottom: 24px;
    font-family: Georgia, serif;
}
.testimonial-inner blockquote {
    font-size: 1.25rem;
    color: var(--white);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 20px;
    border: none;
    padding: 0;
    background: none;
    border-radius: 0;
}
.testimonial-inner cite { color: var(--gray-400); font-size: 0.85rem; font-weight: 600; font-style: normal; }

/* ── Articles section ── */
.articles-section { padding: 80px 0; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.articles-header { margin-bottom: 36px; }
.articles-header h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}
.tab:hover, .tab.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
}
.article-featured {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.article-featured:hover { box-shadow: var(--shadow); }
.article-featured-img-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.article-featured-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-featured:hover .article-featured-img-link img { transform: scale(1.03); }
.article-featured-content { padding: 24px; }
.article-featured-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 10px 0; line-height: 1.4; }
.article-featured-content h3 a { color: var(--navy); }
.article-featured-content h3 a:hover { color: var(--blue); }
.article-featured-content p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 14px; }
.article-tag {
    display: inline-block;
    background: rgba(30,111,217,0.08);
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
}
.article-meta { font-size: 0.78rem; color: var(--gray-400); font-weight: 600; display: flex; gap: 12px; }
.articles-small { display: flex; flex-direction: column; gap: 16px; }
.article-small {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    transition: box-shadow 0.2s;
}
.article-small:hover { box-shadow: var(--shadow-sm); }
.article-small-img { display: block; height: 80px; overflow: hidden; }
.article-small-img img { width: 100%; height: 100%; object-fit: cover; }
.article-small-content { padding: 12px 16px; }
.article-small-content h4 { font-size: 0.88rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin: 6px 0; }
.article-small-content h4 a { color: var(--navy); }
.article-small-content h4 a:hover { color: var(--blue); }
.article-date { font-size: 0.75rem; color: var(--gray-400); font-weight: 600; }
.articles-footer { text-align: center; }

/* ── CTA Section ── */
.cta-section { background: var(--gray-50); border-top: 1px solid var(--gray-200); padding: 72px 0; }
.cta-inner { text-align: center; max-width: 600px; }
.cta-inner h2 { font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; line-height: 1.3; }
.cta-inner p { font-size: 1rem; color: var(--gray-600); margin-bottom: 28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .site-nav .nav { display: none; }
    .posts-grid { grid-template-columns: 1fr; }
    .hero-inner, .what-inner, .feature-row, .articles-grid { grid-template-columns: 1fr; }
    .feature-row--reverse { direction: ltr; }
    .hero-visual { display: none; }
    .home-hero { padding: 56px 0; }
    .post-full-header { padding: 48px 0 36px; }
    .container, .container-narrow { padding: 0 18px; }
}
