/*
Theme Name: LessorIA
Template: generatepress
Version: 0.1.0
Description: Thème enfant GeneratePress pour lessoria.fr. Charte, composants et gabarits.
Author: LessorIA
Text Domain: lessoria
*/

:root {
  --ink: #0B1324;
  --ink-2: #33415C;
  --muted: #64748B;
  --line: #E6E9F0;
  --bg: #FFFFFF;
  --bg-soft: #F4F6FB;
  --bg-ink: #0B1324;
  --accent: #FF6A2B;
  --accent-dark: #E4551A;
  --accent-soft: #FFF1EA;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 19, 36, .08);
  --font-head: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
}

body { font-family: var(--font-body); color: var(--ink-2); background: var(--bg); font-size: 17px; line-height: 1.65; }
h1, h2, h3, h4, .site-title { font-family: var(--font-head); color: var(--ink); letter-spacing: -.02em; line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6em; }
h3 { font-size: 1.25rem; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
strong { color: var(--ink); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); }
.site-logo img { height: 44px; width: auto; }
.main-title, .site-description { display: none; }
.site-branding-container { display: flex; align-items: center; }
.main-navigation a { font-weight: 600; color: var(--ink-2); }
.main-navigation .current-menu-item > a { color: var(--ink); }
.main-navigation .menu-cta > a {
  background: var(--accent); color: #fff !important; border-radius: 999px; padding: 0 22px !important;
  line-height: 44px !important; margin: 8px 0 8px 12px; font-weight: 700;
}
.main-navigation .menu-cta > a:hover { background: var(--accent-dark); }

/* ---------- Layout helpers ---------- */
.lx-section { padding: clamp(56px, 8vw, 104px) 0; }
.lx-section.is-soft { background: var(--bg-soft); }
.lx-section.is-ink { background: var(--bg-ink); color: #C9D1E3; }
.lx-section.is-ink h1, .lx-section.is-ink h2, .lx-section.is-ink h3 { color: #fff; }
.lx-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.lx-center { text-align: center; }
.lx-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 720px; }
.lx-center .lx-lead { margin-left: auto; margin-right: auto; }
.lx-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px; }
.lx-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 700; }

/* ---------- Buttons ---------- */
body .wp-block-button .wp-block-button__link, body .button, body button, body input[type="submit"], body .lx-btn {
  font-family: var(--font-head); font-weight: 700; border-radius: 999px; padding: 14px 26px; background: var(--accent); color: #fff; border: 2px solid var(--accent); transition: .2s; text-decoration: none;
}
body .wp-block-button .wp-block-button__link:hover, body .button:hover, body .lx-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
body .wp-block-button.is-style-outline .wp-block-button__link, body .lx-btn.is-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
body .wp-block-button.is-style-outline .wp-block-button__link:hover, body .lx-btn.is-ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
body .lx-section.is-ink .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,.35); }
body .lx-section.is-ink .wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: #fff; color: #fff; }

/* ---------- Hero ---------- */
.lx-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); background:
  radial-gradient(900px 500px at 85% -10%, rgba(255,106,43,.14), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(11,19,36,.06), transparent 60%); }
.lx-hero { text-align: center; }
.lx-hero h1 { max-width: 900px; margin: 18px auto 20px; }
.lx-hero .lx-lead { margin-left: auto; margin-right: auto; }
.lx-hero .wp-block-buttons { justify-content: center; }
.lx-hero .lx-trust { justify-content: center; }
.lx-hero h1 em { font-style: normal; color: var(--accent); }
.lx-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; padding: 0; list-style: none; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.lx-trust li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

/* ---------- Cards ---------- */
.lx-grid { display: grid; gap: 20px; }
.lx-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.lx-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lx-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.lx-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.lx-card:hover { transform: translateY(-3px); border-color: rgba(255,106,43,.5); }
.lx-card h3 { margin: 0 0 8px; }
.lx-card p { margin: 0 0 12px; color: var(--ink-2); }
.lx-card .lx-price { font-family: var(--font-head); font-weight: 800; color: var(--accent-dark); }
.lx-card a.lx-more { font-weight: 700; text-decoration: none; }
.lx-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; font-family: var(--font-head); }
.lx-section.is-ink .lx-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.lx-section.is-ink .lx-card p { color: #C9D1E3; }

/* ---------- Steps ---------- */
.lx-step { position: relative; padding-top: 8px; }
.lx-step .lx-num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 10px; }

/* ---------- Compare ---------- */
.lx-compare table, .wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .97rem; }
.wp-block-table th, .wp-block-table td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.wp-block-table thead th { background: var(--bg-soft); font-family: var(--font-head); color: var(--ink); font-weight: 800; }
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table td:first-child { font-weight: 600; color: var(--ink); }
.wp-block-table { overflow-x: auto; }

/* ---------- Pricing ---------- */
.lx-pricing .lx-card { display: flex; flex-direction: column; }
.lx-pricing .lx-card.is-featured { border: 2px solid var(--accent); position: relative; }
.lx-pricing .lx-card.is-featured::before { content: "Le plus choisi"; position: absolute; top: -14px; left: 24px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .05em; }
.lx-pricing .lx-amount { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 6px 0 2px; }
.lx-pricing .lx-amount small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.lx-pricing ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.lx-pricing li { padding: 6px 0 6px 26px; position: relative; }
.lx-pricing li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.lx-pricing .wp-block-buttons { margin-top: auto; }

/* ---------- Chips ---------- */
.lx-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lx-chips a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lx-chips a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- FAQ (core details) ---------- */
.wp-block-details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin-bottom: 10px; background: #fff; }
.wp-block-details summary { font-family: var(--font-head); font-weight: 700; color: var(--ink); cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: 8px; }

/* ---------- Réalisations ---------- */
.lessoria-realisations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lessoria-realisation { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.lessoria-realisation img { width: 100%; height: 200px; object-fit: cover; display: block; }
.lessoria-realisation h3 { margin: 16px 20px 6px; font-size: 1.1rem; }
.lessoria-realisation .resultat { margin: 0 20px 18px; color: var(--accent-dark); font-weight: 700; }

/* ---------- Footer ---------- */
.lx-footer { background: var(--bg-ink); color: #B8C0D4; padding: 64px 0 28px; font-size: .95rem; }
.lx-footer a { color: #DCE2F0; text-decoration: none; }
.lx-footer a:hover { color: var(--accent); }
.lx-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.lx-footer ul { list-style: none; padding: 0; margin: 0; }
.lx-footer li { margin-bottom: 8px; }
.lx-footer .lx-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.lx-footer img { height: 40px; width: auto; max-width: 200px; margin-bottom: 14px; display: block; }
.lx-footer .lx-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8A94AD; }
.site-footer .site-info { display: none; }

/* ---------- Mobile CTA bar ---------- */
.lx-mobile-bar { display: none; }
@media (max-width: 768px) {
  .lx-grid.cols-2, .lx-grid.cols-3, .lx-grid.cols-4, .lessoria-realisations, .lx-footer .lx-grid { grid-template-columns: 1fr; }
  .lx-mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .lx-mobile-bar a { text-align: center; font-weight: 700; font-size: .9rem; padding: 10px 6px; border-radius: 10px; background: var(--bg-soft); color: var(--ink); text-decoration: none; }
  .lx-mobile-bar a.is-primary { background: var(--accent); color: #fff; }
  .main-navigation .menu-cta > a { margin: 8px 16px; display: inline-block; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .lx-grid.cols-3, .lx-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .lx-footer .lx-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- Réalisations : archive et fiche ---------- */
.lx-real-archive .lx-hero, .lx-real-single .lx-hero { padding-bottom: 40px; }
.lx-real-single .lx-hero { text-align: left; }
.lx-real-single .lx-hero h1 { margin-left: 0; max-width: 900px; }
.lx-real-single .lx-hero .lx-lead { margin-left: 0; }
.lx-real-meta { color: var(--muted); margin: 8px 0 24px; }
.lx-results .lx-card { padding: 18px 22px; }
.lx-results .lx-price { margin: 0; font-size: 1.05rem; }
.lx-real-shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.lx-real-body { max-width: 860px; }
.lx-real-body h2 { margin-top: 1.6em; }
.lx-quote { font-size: 1.25rem; font-family: var(--font-head); color: var(--ink); border-left: 4px solid var(--accent); padding-left: 20px; margin: 0; }
.lx-quote footer { font-size: .95rem; color: var(--muted); font-family: var(--font-body); margin-top: 10px; }
.lx-filters { margin-top: 22px; }
.lx-chips a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.lessoria-realisation .meta { margin: 0 20px 18px; color: var(--muted); font-size: .9rem; }
.lessoria-realisation .resultat + .meta { margin-top: -10px; }

/* ---------- Header sticky ---------- */
.site-header { position: sticky; top: 0; z-index: 100; transition: box-shadow .2s, padding .2s; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(11,19,36,.08); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- Tableaux sur mobile : défilement horizontal + 1re colonne fixe ---------- */
@media (max-width: 768px) {
  .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; margin: 0 0 8px; padding: 0 0 6px; border: 1px solid var(--line); border-radius: var(--radius); }
  .wp-block-table table, .wp-block-table table.has-fixed-layout { min-width: 680px; table-layout: auto; font-size: .92rem; overflow: visible; border: 0; border-radius: 0; }
  .wp-block-table th, .wp-block-table td { padding: 12px 12px; white-space: normal; word-break: normal; hyphens: manual; min-width: 150px; }
  .wp-block-table td:first-child, .wp-block-table th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 4px 0 8px -4px rgba(11,19,36,.14); min-width: 110px; max-width: 130px; width: 130px; }
  .wp-block-table thead th:first-child { background: var(--bg-soft); }
  .wp-block-table::after { content: "Faites défiler pour voir toutes les colonnes →"; display: block; font-size: .78rem; color: var(--muted); padding: 6px 0 0; }
}

/* ---------- Animations d'apparition ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .lx-reveal.is-visible { opacity: 1; transform: none; }
  .lx-grid > .lx-reveal:nth-child(2), .lessoria-realisations > .lx-reveal:nth-child(2) { transition-delay: .08s; }
  .lx-grid > .lx-reveal:nth-child(3), .lessoria-realisations > .lx-reveal:nth-child(3) { transition-delay: .16s; }
  .lx-grid > .lx-reveal:nth-child(4) { transition-delay: .24s; }
  .lx-hero .lx-badge, .lx-hero h1, .lx-hero .lx-lead, .lx-hero .wp-block-buttons, .lx-hero .lx-trust { animation: lxUp .7s ease both; }
  .lx-hero h1 { animation-delay: .08s; } .lx-hero .lx-lead { animation-delay: .16s; } .lx-hero .wp-block-buttons { animation-delay: .24s; } .lx-hero .lx-trust { animation-delay: .32s; }
  @keyframes lxUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .lx-card, .lessoria-realisation { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .lx-card:hover, .lessoria-realisation:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,19,36,.12); }
}

/* ---------- Complianz : bannière aux couleurs du site ---------- */
.cmplz-cookiebanner { font-family: var(--font-body) !important; border-radius: var(--radius) !important; box-shadow: 0 18px 50px rgba(11,19,36,.18) !important; }
.cmplz-cookiebanner .cmplz-btn { border-radius: 999px !important; font-family: var(--font-head) !important; font-weight: 700 !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.cmplz-cookiebanner .cmplz-btn.cmplz-deny, .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences { background: #fff !important; border: 2px solid var(--line) !important; color: var(--ink) !important; }
.cmplz-cookiebanner .cmplz-title { font-family: var(--font-head) !important; font-weight: 800 !important; color: var(--ink) !important; }
.lx-legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.lx-legal h3 { font-size: 1.15rem; margin-top: 1.4em; }
.lx-legal .wp-block-table { font-size: .92rem; }
.cmplz-cookiebanner .cmplz-links.cmplz-information { display: none !important; }
.cmplz-cookiebanner .cmplz-links li:empty { display: none !important; }

.lx-tva { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.wp-block-table + .lx-center + .lx-tva { margin-top: -8px; }

/* ---------- Listes dans le contenu : puces alignées avec le texte ---------- */
.entry-content ul:not(.lx-trust):not(.lx-chips), .entry-content ol, .lx-legal ul, .lx-legal ol, .lx-real-body ul { margin: 0 0 1.4em 0; padding-left: 1.4em; list-style-position: outside; }
.entry-content ul:not(.lx-trust) li, .entry-content ol li { margin-bottom: .4em; }
.lx-pricing ul { padding-left: 0; }
