/* ============================================================
   zequinte.fr — Bleu marine / doré premium v1.1
   GeneratePress child theme — textes administrables WP
   ============================================================ */

/* ── Reset et base ─────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--zq-ink);
    background:
        radial-gradient(circle at 8% 9%,  rgba(196,147,34,.09), transparent 28%),
        radial-gradient(circle at 92% 13%, rgba(47,129,71,.07), transparent 30%),
        linear-gradient(180deg, var(--zq-paper) 0%, var(--zq-bg) 60%, var(--zq-white) 100%);
    line-height: 1.55;
    min-height: 100vh;
}

.site, #page { overflow-x: clip; }

a { color: var(--zq-gold); text-decoration: none; transition: color .18s; }
a:hover { color: var(--zq-navy); }
img { max-width: 100%; display: block; }

/* ── Typographie ───────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--zq-navy);
    line-height: 1.18;
    margin: 0;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }

p, li, td, label {
    color: var(--zq-ink);
    line-height: 1.65;
}

strong, b { color: var(--zq-navy); font-weight: 700; }

/* ── Conteneur principal (utilisé dans le contenu de page) ─── */

.container {
    width: min(var(--zq-container), calc(100% - 48px));
    margin-inline: auto;
}

/* ── Sidebar masquée ───────────────────────────────────────── */

body.right-sidebar .widget-area,
body.right-sidebar #right-sidebar { display: none !important; }

/* ── Content area full-width (sections gèrent leur propre layout) */

.content-area, #primary, .site-main {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Supprimer la carte article GP — nos sections gèrent le fond/padding */
.separate-containers .inside-article,
.one-container .inside-article {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.entry-content, .page-content {
    width: 100%;
    max-width: 100%;
    color: var(--zq-ink);
}

/* ── Site header — fond crème translucide sticky ───────────── */

.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: rgba(255,253,248,.94) !important;
    backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(7,35,75,.08) !important;
    box-shadow: 0 6px 22px rgba(7,35,75,.045) !important;
    padding: 0 !important;
}

.site-header .inside-header {
    padding-block: 0 !important;
    display: block !important;
}

/* Masquer branding et nav GP remplacés */
.site-header .site-branding,
.site-header .main-navigation,
.site-description {
    display: none !important;
}

/* ── Header contrôlé — zq-custom-header ───────────────────── */

.zq-custom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    height: 80px;
    width: min(var(--zq-container), calc(100% - 48px));
    margin-inline: auto;
    padding-inline: clamp(12px, 2vw, 24px);
}

/* Brand — nom du site avec "Quinte" en or */
.zq-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    line-height: 1;
    flex-shrink: 0;
}

.zq-brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1;
}

.zq-name-plain { color: var(--zq-navy); }
.zq-name-gold  { color: var(--zq-gold); }

.zq-brand-tagline {
    font-size: 0.72rem;
    color: var(--zq-muted);
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Navigation */
.zq-main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.zq-nav-link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zq-ink);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    margin-inline: 12px;
    transition: color .18s, border-color .18s;
    text-decoration: none !important;
    white-space: nowrap;
}

.zq-nav-link:hover,
.zq-nav-link.is-active {
    color: var(--zq-gold);
    border-bottom-color: var(--zq-gold);
}

/* CTA S'abonner */
.zq-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--zq-navy);
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 9px;
    border: 1px solid transparent;
    text-decoration: none !important;
    white-space: nowrap;
    margin-left: 12px;
    box-shadow: 0 4px 14px rgba(7,35,75,.18);
    transition: background .18s, transform .18s;
}

.zq-nav-cta:hover {
    background: var(--zq-navy-2);
    color: #fff !important;
    transform: translateY(-1px);
}

/* ── Contenu de page — sections hero / stats / cartes ──────── */

/* Page hero (section sur fond transparent = body gradient) */
.page-hero {
    padding: 56px 0 36px;
}

/* Grille 45/55 héro */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    align-items: start;
    gap: 34px;
    margin-bottom: 32px;
}

.hero-grid > div:first-child {
    padding-top: 12px;
}

.eyebrow {
    color: var(--zq-gold);
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-style: italic;
    margin: 0 0 8px;
}

.hero-copy {
    font-size: 1.05rem;
    max-width: 470px;
    color: #23354d;
    margin: 16px 0 0;
    line-height: 1.6;
}

/* Photo hippique */
.hero-photo {
    position: relative;
    min-height: 360px;
    border-radius: 0 0 0 64px;
    overflow: hidden;
    box-shadow: var(--zq-shadow);
    background-image:
        linear-gradient(90deg, var(--zq-paper) 0%, rgba(255,253,248,.25) 22%, transparent 52%),
        url('../img/hero-hippique.png');
    background-size: cover;
    background-position: center;
}

.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.04));
}

/* Grille statistiques */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 0 0 22px;
}

.stat-card {
    background: var(--zq-white);
    border: 1px solid rgba(7,35,75,.08);
    border-radius: var(--zq-radius);
    min-height: 112px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--zq-shadow-soft);
}

.stat-icon {
    font-size: 34px;
    color: var(--zq-gold);
    width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.stat-card:nth-child(n+2) .stat-icon { color: var(--zq-green); }

.stat-number {
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    color: var(--zq-navy);
    font-family: var(--font-heading);
}

.stat-label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: .04em;
    color: #2d3b4e;
    margin-top: 6px;
}

/* Bandeau de satisfaction */
.trust-banner {
    background: linear-gradient(90deg, #f3fbf5, var(--zq-paper));
    border: 1px solid #cfe3d2;
    border-radius: var(--zq-radius);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 32px;
    margin: 0 0 22px;
    box-shadow: 0 10px 26px rgba(47,129,71,.08);
}

.trust-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 6px solid rgba(47,129,71,.18);
    font-size: 36px;
    color: var(--zq-green);
    background: var(--zq-white);
    flex: 0 0 80px;
}

.trust-content { flex: 1; }
.trust-content h2 { font-size: 1.25rem; color: var(--zq-green); margin-bottom: 6px; }
.trust-content p  { margin: 0; color: #263549; }

.trust-score {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--zq-green);
    border: 1px solid #d9c58e;
    background: #fffdf3;
    flex: 0 0 120px;
}

.trust-score strong {
    font-size: 2.2rem;
    color: var(--zq-green);
    font-family: var(--font-heading);
    display: block;
    line-height: 1;
}

.trust-score span {
    display: block;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.72rem;
    color: #476159;
}

/* ── Sections génériques ────────────────────────────────────── */

.section { padding: 36px 0; }
.section.compact { padding: 40px 0; }

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 8px;
    color: var(--zq-navy);
}

.section-subtitle {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 26px;
    color: var(--zq-muted);
}

/* ── Cartes ─────────────────────────────────────────────────── */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.card {
    background: var(--zq-white);
    border: 1px solid rgba(7,35,75,.08);
    border-radius: var(--zq-radius);
    box-shadow: var(--zq-shadow-soft);
    padding: 28px;
    transition: border-color .22s, transform .22s;
}

.card:hover {
    border-color: rgba(196,147,34,.30);
    transform: translateY(-2px);
}

.card.gold-tint {
    background: linear-gradient(180deg, var(--zq-paper), #fffaf0);
    border-color: #e3c47b;
}

.card.blue-tint {
    background: linear-gradient(180deg, #f4f9ff, var(--zq-white));
    border-color: #cfddeb;
}

.card-header-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.round-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--zq-navy);
    color: white;
    display: grid;
    place-items: center;
    font-size: 26px;
    flex: 0 0 60px;
}

.round-icon.gold   { background: var(--zq-gold); }
.round-icon.green  { background: var(--zq-green); }

.kicker {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: .07em;
    font-weight: 700;
    color: var(--zq-gold);
    margin-bottom: 8px;
    display: block;
}

.card h2, .card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

.card p { margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* Check-list */
.check-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: #27364b;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--zq-green);
    color: #fff;
    font-weight: 900;
    font-size: 11px;
    display: grid;
    place-items: center;
}

.check-list li strong { color: var(--zq-navy); }

/* ── Mini-hero (bloc accès pronostic) ──────────────────────── */

.mini-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: center;
    max-width: 900px;
    margin-inline: auto;
}

.mini-stat {
    background: var(--zq-navy);
    color: #fff;
    border-radius: var(--zq-radius);
    padding: 28px;
    text-align: center;
}

.mini-stat strong {
    display: block;
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--zq-gold-light);
    line-height: 1;
    margin-bottom: 10px;
}

.mini-stat span {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: .04em;
    color: rgba(255,255,255,.80);
}

/* ── Boutons ────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 11px 20px;
    min-height: 42px;
    transition: background .18s, transform .18s, box-shadow .18s;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
}

.btn-primary {
    background: var(--zq-navy);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(7,35,75,.18);
}

.btn-primary:hover {
    background: var(--zq-navy-2);
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--zq-gold);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(196,147,34,.22);
}

.btn-gold:hover {
    filter: brightness(.94);
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--zq-white);
    border-color: rgba(196,147,34,.55);
    color: #8b6412 !important;
}

.btn-outline:hover {
    border-color: var(--zq-gold);
    background: #fff9ed;
    color: #6b4d0e !important;
}

/* Boutons WordPress natifs */
.wp-block-button__link,
.button, a.button {
    background: var(--zq-navy) !important;
    color: #fff !important;
    border-radius: 9px !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
}

.wp-block-button__link:hover,
.button:hover, a.button:hover {
    background: var(--zq-navy-2) !important;
    color: #fff !important;
}

/* ── Page top (titre de page) ──────────────────────────────── */

.page-top { padding: 48px 0 24px; }

/* Page Abonnement — centrage titre WP + équilibre */
body.page-id-43 .entry-header {
    padding-bottom: 0;
    text-align: center;
}
body.page-id-43 .entry-title {
    text-align: center;
    margin-bottom: 4px;
}

/* Conteneur doux autour des offres */
.offers-wrap {
    background: linear-gradient(180deg, var(--zq-paper), var(--zq-white));
    border: 1px solid rgba(196,147,34,.14);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(7,35,75,.06);
    padding: 32px 28px 36px;
    margin: 0 0 52px;
}

.page-title-box {
    background: var(--zq-white);
    border: 1px solid rgba(7,35,75,.08);
    box-shadow: var(--zq-shadow-soft);
    border-radius: 20px;
    padding: 40px 44px;
}

.page-title-box h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-title-box p  { max-width: 760px; margin: 0; color: var(--zq-muted); font-size: 1.05rem; }

/* ── Contenu liste ─────────────────────────────────────────── */

.content-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Callout (bloc accès réservé) */
.callout {
    border-left: 5px solid var(--zq-green);
    background: #f4fbf6;
    padding: 22px 26px;
    border-radius: var(--zq-radius);
    border-top: 1px solid #d6ead9;
    border-right: 1px solid #d6ead9;
    border-bottom: 1px solid #d6ead9;
}

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

/* Feature-strip */
.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #cfe3d2;
    border-radius: var(--zq-radius);
    overflow: hidden;
    background: #f6fbf7;
    margin-top: 22px;
}

.feature-item {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid #cfe3d2;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zq-ink);
}

.feature-item:last-child { border-right: none; }
.feature-item .icon { font-size: 22px; color: var(--zq-green); }

/* ── Abonnement — grille tarifaire ─────────────────────────── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
    align-items: end;
}

.price-card {
    position: relative;
    background: var(--zq-white);
    border: 1px solid rgba(7,35,75,.10);
    border-radius: var(--zq-radius);
    overflow: visible;
    box-shadow: var(--zq-shadow-soft);
    text-align: center;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 28px 20px 28px;
    transition: box-shadow .22s, transform .22s;
}

.price-card:hover {
    box-shadow: var(--zq-shadow);
    transform: translateY(-4px);
}

/* Carte populaire — 3 MOIS */
.price-card.popular {
    border-color: rgba(196,147,34,.45);
    background: linear-gradient(180deg, var(--zq-paper) 0%, var(--zq-white) 100%);
    min-height: 360px;
}

/* Carte vedette — 6 MOIS */
.price-card.featured {
    border-color: var(--zq-gold);
    border-width: 2px;
    background: linear-gradient(180deg, #fffbf0 0%, var(--zq-white) 100%);
    box-shadow: 0 18px 42px rgba(196,147,34,.18), var(--zq-shadow-soft);
    min-height: 380px;
}

.price-card.featured:hover {
    box-shadow: 0 24px 52px rgba(196,147,34,.22), var(--zq-shadow);
}

/* Badge administrable */
.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--zq-gold);
    color: var(--zq-navy);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(196,147,34,.30);
}

.price-head {
    background: var(--zq-navy);
    color: white;
    padding: 14px 12px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: .03em;
}

.price-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.days {
    font-size: 0.82rem;
    color: var(--zq-muted);
    font-weight: 700;
    margin-bottom: 14px;
}

.price-icon {
    font-size: 42px;
    color: var(--zq-gold);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-icon-img {
    width: 150px;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
    filter: drop-shadow(0 10px 18px rgba(7,35,75,.18));
}

.price-card.popular .price-icon-img,
.price-card.featured .price-icon-img {
    width: 170px;
    filter: drop-shadow(0 12px 22px rgba(196,147,34,.22));
}

.price-placeholder {
    margin-bottom: 16px;
    color: var(--zq-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.price-card .btn {
    min-width: 140px;
}

.price-card.featured .btn {
    background: var(--zq-gold);
    box-shadow: 0 6px 18px rgba(196,147,34,.30);
}

.price-card.featured .btn:hover {
    filter: brightness(.92);
    color: #fff !important;
}

.ribbon {
    position: absolute;
    right: -36px;
    top: 12px;
    transform: rotate(45deg);
    background: var(--zq-green);
    color: white;
    font-weight: 900;
    font-size: 0.8rem;
    width: 120px;
    padding: 5px 0;
    text-align: center;
}

/* ── Résultats ──────────────────────────────────────────────── */

.result-list {
    border: 1px solid var(--zq-line);
    border-radius: var(--zq-radius);
    overflow: hidden;
    background: var(--zq-white);
    box-shadow: var(--zq-shadow-soft);
}

.result-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid var(--zq-line);
    transition: background .15s;
}

.result-item:hover { background: var(--zq-paper); }
.result-item:last-child { border-bottom: none; }

.result-date {
    color: var(--zq-muted);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.result-race {
    font-weight: 500;
    color: var(--zq-ink);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.result-badge--win {
    background: #e8f7ed;
    color: var(--zq-green);
    border: 1px solid #c3dfc9;
}

.result-badge--place {
    background: #fff8e6;
    color: #9a6e00;
    border: 1px solid #f0d88a;
}

.result-badge--loss {
    background: #fdf2f2;
    color: #b94444;
    border: 1px solid #f0c5c5;
}

/* Tableaux */
.table-wrap {
    overflow: auto;
    border: 1px solid var(--zq-line);
    border-radius: var(--zq-radius);
    background: var(--zq-white);
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
    font-size: 0.9rem;
}

th {
    background: var(--zq-navy);
    color: #fff;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 16px;
    font-family: var(--font-heading);
}

td {
    border-top: 1px solid var(--zq-line);
    padding: 11px 16px;
    color: var(--zq-ink);
}

tr:nth-child(even) td { background: var(--zq-paper); }

/* ── FAQ / Contact ──────────────────────────────────────────── */

/* FAQ cartes lisibles */
.faq-list {
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--zq-white);
    border: 1px solid rgba(7,35,75,.09);
    border-left: 4px solid var(--zq-gold);
    border-radius: var(--zq-radius);
    padding: 22px 26px;
    box-shadow: var(--zq-shadow-soft);
}

.faq-question {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--zq-navy);
    margin: 0 0 10px;
    line-height: 1.3;
}

.faq-answer {
    color: #3a4a5c;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* FAQ accordéon (legacy) */
.faq { display: grid; gap: 10px; }

.faq details {
    border: 1px solid var(--zq-line);
    border-radius: 10px;
    background: var(--zq-white);
    padding: 14px 18px;
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--zq-navy);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
}

.faq summary::before {
    content: '?';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--zq-green);
    color: #fff;
    font-weight: 900;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 12px 0 0 32px; color: var(--zq-muted); }

/* Séparateurs */
.thin-separator { height: 1px; background: var(--zq-line); margin: 28px 0; }

/* ── Formulaires ───────────────────────────────────────────── */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select,
.wpcf7-form-control:not(.wpcf7-submit) {
    background: var(--zq-white) !important;
    color: var(--zq-ink) !important;
    border: 1px solid var(--zq-line) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    width: 100% !important;
    font-family: var(--font-body) !important;
    font-size: 0.92rem !important;
    transition: border-color .2s, box-shadow .2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
.wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none !important;
    border-color: var(--zq-gold) !important;
    box-shadow: 0 0 0 3px rgba(196,147,34,.15) !important;
}

input::placeholder, textarea::placeholder {
    color: var(--zq-muted) !important;
}

input[type="submit"],
button[type="submit"],
.wpcf7-submit {
    background: var(--zq-navy) !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 0.7rem 1.5rem !important;
    width: auto !important;
    cursor: pointer !important;
    transition: background .18s !important;
}

input[type="submit"]:hover,
button[type="submit"]:hover,
.wpcf7-submit:hover {
    background: var(--zq-navy-2) !important;
}

/* ── Note muted / pronostic vide ───────────────────────────── */

.note-muted {
    background: rgba(7,35,75,.04);
    border: 1px dashed var(--zq-line);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--zq-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* Blocs JDCom Turf plugin */
.jdcom-access-box {
    background: var(--zq-paper);
    border: 1px solid var(--zq-line);
    border-left: 4px solid var(--zq-gold);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.jdcom-prono-header {
    background: var(--zq-navy);
    color: var(--zq-gold-light);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 10px 10px 0 0;
}

.jdcom-prono-bloc {
    border: 1px solid var(--zq-line);
    border-top: none;
    padding: 1rem 1.25rem;
    background: var(--zq-white);
}

.jdcom-prono-bloc:last-child {
    border-radius: 0 0 10px 10px;
    margin-bottom: 1.5rem;
}

.jdcom-prono-bloc h4 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--zq-gold);
    margin: 0 0 0.75rem;
    border-bottom: 1px solid var(--zq-line);
    padding-bottom: 0.4rem;
}

.jdcom-prono-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem;
    margin: 0.5rem 0;
}

.jdcom-prono-cell {
    background: var(--zq-paper);
    border: 1px solid var(--zq-line);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    text-align: center;
}

.jdcom-prono-cell strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--zq-gold);
    margin-bottom: 0.2rem;
}

.jdcom-prono-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
    margin: 0.5rem 0;
}

.jdcom-prono-table th {
    background: var(--zq-navy);
    color: var(--zq-gold-light);
    font-family: var(--font-heading);
    font-size: 0.77rem;
    text-transform: uppercase;
    padding: 0.5rem 0.7rem;
    text-align: center;
    white-space: nowrap;
}

.jdcom-prono-table td {
    border: 1px solid var(--zq-line);
    padding: 0.45rem 0.7rem;
    text-align: center;
    background: var(--zq-white);
}

.jdcom-prono-table tr:nth-child(even) td { background: var(--zq-paper); }

.jdcom-prono-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--zq-navy);
}

.jdcom-prono-empty {
    background: var(--zq-white);
    border: 1px solid var(--zq-line);
    border-radius: var(--zq-radius);
    padding: 2rem;
    text-align: center;
}

.jdcom-prono-empty-title {
    color: var(--zq-gold);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.jdcom-prono-empty-text { color: var(--zq-muted); font-size: 0.9rem; }

/* ── Footer GP — override ──────────────────────────────────── */

.site-footer,
.site-info,
.footer-widgets {
    background: var(--zq-navy-dark) !important;
    border-top: none !important;
    margin-top: 0 !important;
}

.site-info .copyright-bar { display: none !important; }
#footer-widgets { display: none !important; }

/* ── Footer contrôlé ───────────────────────────────────────── */

.zq-footer-wrap {
    background: linear-gradient(135deg, #061b38, #0b3158);
    border-top: 2px solid var(--zq-gold);
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

/* Cheval décoratif en fond */
.zq-footer-wrap::after {
    content: '♞';
    position: absolute;
    right: 6%;
    bottom: -50px;
    font-size: 220px;
    color: rgba(255,255,255,.03);
    line-height: 1;
    pointer-events: none;
}

.zq-footer-inner {
    position: relative;
    z-index: 1;
    width: min(var(--zq-container), calc(100% - 48px));
    margin-inline: auto;
}

.zq-footer-columns {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 44px;
    padding: 50px 0 36px;
}

.zq-footer-col { display: flex; flex-direction: column; gap: 0.5rem; }

/* Colonne branding */
.zq-footer-brand-link {
    text-decoration: none !important;
    display: block;
    margin-bottom: 10px;
}

.zq-footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: .03em;
    line-height: 1;
}

.zq-footer-brand-name .zq-name-plain { color: #fff; }
.zq-footer-brand-name .zq-name-gold  { color: var(--zq-gold-light); }

.zq-footer-tagline {
    color: #cbd7e5 !important;
    font-size: 0.87rem;
    line-height: 1.5;
    margin: 0 !important;
    max-width: 240px;
}

/* Titres colonnes */
.zq-footer-col-title {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 0.8rem;
    color: var(--zq-gold-light) !important;
    margin: 0 0 14px !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
}

/* Liens menus footer */
.zq-footer-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zq-footer-links li { margin: 0 !important; padding: 0 !important; }

.zq-footer-links a,
.zq-footer-links a:visited {
    color: #d9e4f0 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    transition: color .15s;
    display: block;
}

.zq-footer-links a:hover { color: #fff !important; }

/* Copyright bas de footer */
.zq-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.13);
    padding: 18px 0 24px;
    text-align: center;
    color: #d9e4f0;
    font-size: 0.85rem;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 980px) {
    .hero-grid, .grid-2 { grid-template-columns: 1fr; }
    .hero-photo { border-radius: 20px; }
    .stats-row, .pricing-grid, .feature-strip { grid-template-columns: 1fr 1fr; }
    .price-card, .price-card.popular, .price-card.featured { min-height: 300px; }
    .zq-footer-columns { grid-template-columns: 1fr 1fr; gap: 28px; }
    .trust-score { display: none; }
    .mini-hero { grid-template-columns: 1fr; max-width: 100%; }

    .zq-custom-header { flex-wrap: wrap; height: auto; padding-block: 12px; gap: 12px; }
    .zq-main-nav { flex-wrap: wrap; gap: 0; }
    .zq-nav-link { font-size: 0.82rem; margin-inline: 6px; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 32px); }
    .page-hero { padding-top: 36px; }
    .stats-row, .pricing-grid, .feature-strip, .zq-footer-columns { grid-template-columns: 1fr; }
    .trust-banner { padding: 18px 20px; gap: 16px; }
    .trust-icon { width: 60px; height: 60px; flex-basis: 60px; font-size: 28px; }
    .card { padding: 20px; }
    .page-title-box { padding: 28px 22px; }
    .result-item { grid-template-columns: 1fr; }
}

/* IA47 — Masquer blocs marketing Accès pronostic quand connecté */
/* T016-B — Tables résultats et bandeau historique utilisables sur mobile. */
@media (max-width: 640px) {
    .jdcom-resultats-live .jdcom-result-table {
        min-width: 0;
        table-layout: fixed;
    }
    .jdcom-resultats-live .jdcom-result-table th,
    .jdcom-resultats-live .jdcom-result-table td {
        padding-left: 4px !important;
        padding-right: 4px !important;
        font-size: 12px !important;
    }
    .guest-only-results { flex-wrap: wrap; }
    .guest-only-results .trust-content { flex: 1 1 160px; }
    .guest-only-results > div:last-child {
        flex: 1 0 100%;
        margin-top: 12px;
        text-align: center;
    }
    .guest-only-results > div:last-child .btn { white-space: normal; }
}
body.logged-in.page-id-42 .zq-guest-only {
    display: none !important;
}

/* IA48 — Masquer bloc Historique sur Résultats quand connecté */
body.logged-in .guest-only-results {
    display: none !important;
}

/* IA66 — Contraste en-têtes tableaux Résultats (texte hérité blanc sur fond #f5f5f5) */
.jdcom-result-table th {
    color: #1b2f57 !important;
}

/* Bandeau "Nos derniers jolis coups" */
.jdcom-jolis-coups {
    background: linear-gradient(90deg, rgba(7,35,75,.06) 0%, rgba(246,234,208,.92) 56%, rgba(7,35,75,.03) 100%);
    border-bottom: 1px solid rgba(7,35,75,.10);
    box-shadow: 0 10px 24px rgba(7,35,75,.05);
}

.jdcom-jolis-coups__inner {
    width: min(var(--zq-container), calc(100% - 48px));
    margin-inline: auto;
    padding: 12px 0 14px;
}

.jdcom-jolis-coups__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--zq-navy);
}

.jdcom-jolis-coups__emoji {
    font-size: 14px;
    line-height: 1;
}

.jdcom-jolis-coups__track {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jdcom-jolis-coups__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(196,147,34,.24);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf1 100%);
    box-shadow: 0 10px 22px rgba(7,35,75,.06);
    font-size: 13px;
    line-height: 1.25;
    color: var(--zq-ink);
    white-space: nowrap;
}

.jdcom-jolis-coups__date {
    font-weight: 800;
    color: var(--zq-gold);
}

.jdcom-jolis-coups__sep,
.jdcom-jolis-coups__paye {
    color: var(--zq-muted);
    font-weight: 700;
}

.jdcom-jolis-coups__label {
    font-weight: 800;
    color: var(--zq-navy);
}

.jdcom-jolis-coups__amount {
    font-weight: 900;
    color: var(--zq-navy-dark);
}

@media (max-width: 700px) {
    .jdcom-jolis-coups__inner {
        width: min(100% - 28px, var(--zq-container));
    }

    .jdcom-jolis-coups__title {
        font-size: 11px;
        letter-spacing: .10em;
    }

    .jdcom-jolis-coups__track {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .jdcom-jolis-coups__track::-webkit-scrollbar {
        display: none;
    }

    .jdcom-jolis-coups__item {
        flex: 0 0 auto;
        font-size: 12px;
        padding: 7px 10px;
        white-space: nowrap;
    }
}
