/*
Theme Name: Lyopi
Theme URI: https://lyopi.fr/
Author: ScaleSI / Lyopi
Description: Thème WordPress léger conçu pour le lancement de Lyopi, le SEO et le GEO.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: lyopi
*/

:root {
  --ly-navy: #03184f;
  --ly-navy-2: #102a43;
  --ly-blue: #155bf6;
  --ly-blue-soft: #eaf1ff;
  --ly-teal: #0d9f91;
  --ly-green: #20c66b;
  --ly-ink: #132238;
  --ly-muted: #52606d;
  --ly-line: #dbe5ee;
  --ly-cloud: #f4f8fb;
  --ly-white: #ffffff;
  --ly-radius: 1.25rem;
  --ly-shadow: 0 18px 60px rgba(3, 24, 79, .10);
  --ly-content: 1180px;
  --ly-reading: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ly-ink);
  background: var(--ly-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--ly-blue); text-underline-offset: .18em; }
a:hover { color: var(--ly-navy); }
:focus-visible { outline: 3px solid var(--ly-green); outline-offset: 3px; }

h1, h2, h3, h4 {
  color: var(--ly-navy);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { margin: 0 0 1.35rem; font-size: clamp(2.65rem, 7vw, 5.9rem); max-width: 15ch; }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.55rem); }
h3 { margin: 0 0 .7rem; font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1.15rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .55rem; }

.ly-skip-link {
  position: fixed;
  left: 1rem;
  top: -10rem;
  z-index: 9999;
  padding: .7rem 1rem;
  color: var(--ly-white);
  background: var(--ly-navy);
  border-radius: .6rem;
}
.ly-skip-link:focus { top: 1rem; }

.ly-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(219, 229, 238, .86);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(16px);
}
.ly-header-inner,
.ly-footer-inner,
.ly-container,
.ly-section > .wp-block-group__inner-container {
  width: min(calc(100% - 2rem), var(--ly-content));
  margin-inline: auto;
}
.ly-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.ly-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ly-navy);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: .08em;
}
.ly-brand img { width: 44px; height: 44px; object-fit: contain; }
.ly-brand__word { padding-top: .08rem; }
.ly-nav summary { display: none; }
.ly-nav ul {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ly-nav a {
  color: var(--ly-navy);
  text-decoration: none;
  font-size: .91rem;
  font-weight: 750;
}
.ly-nav a:hover { color: var(--ly-blue); }
.ly-nav li:last-child a {
  display: inline-flex;
  padding: .64rem 1rem;
  color: var(--ly-white);
  background: var(--ly-blue);
  border-radius: 999px;
}

.ly-main { overflow: hidden; }
.ly-section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8.5rem) 0;
  scroll-margin-top: 78px;
}
.ly-section > * {
  width: min(calc(100% - 2rem), var(--ly-content));
  margin-left: auto;
  margin-right: auto;
}
.ly-section--tight { padding-block: clamp(2.6rem, 6vw, 4.8rem); }
.ly-section--soft { background: var(--ly-cloud); }
.ly-section--navy { color: rgba(255,255,255,.86); background: var(--ly-navy); }
.ly-section--navy h2,
.ly-section--navy h3,
.ly-section--navy a { color: var(--ly-white); }
.ly-section--navy .ly-lead { color: rgba(255,255,255,.82); }
.ly-section--navy .ly-eyebrow { color: #72efad; }
.ly-section--navy a:hover { color: var(--ly-green); }
.ly-reading { max-width: var(--ly-reading); }
.ly-reading--center { margin-inline: auto; text-align: center; }

.ly-hero {
  min-height: min(850px, calc(100vh - 78px));
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 82% 25%, rgba(32,198,107,.25), transparent 28%),
    radial-gradient(circle at 68% 55%, rgba(21,91,246,.28), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #eafbf3 100%);
}
.ly-hero::after {
  content: "✦  ✦  ✦";
  position: absolute;
  right: 7vw;
  top: 16%;
  color: rgba(21,91,246,.28);
  font-size: clamp(1.4rem, 3.5vw, 3.3rem);
  letter-spacing: .8em;
  transform: rotate(-8deg);
  pointer-events: none;
}
.ly-hero .wp-block-group__inner-container { position: relative; z-index: 1; }
.ly-hero h1 .ly-gradient,
.ly-gradient {
  color: transparent;
  background: linear-gradient(92deg, var(--ly-blue), var(--ly-teal), var(--ly-green));
  background-clip: text;
  -webkit-background-clip: text;
}
.ly-lead {
  max-width: 760px;
  color: #334e68;
  font-size: clamp(1.14rem, 2.1vw, 1.48rem);
  line-height: 1.55;
}
.ly-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.25rem;
  color: var(--ly-blue);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ly-eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--ly-green); border-radius: 9px; }
.ly-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.wp-block-button__link,
.ly-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .82rem 1.3rem;
  border: 2px solid var(--ly-blue);
  color: var(--ly-white) !important;
  background: var(--ly-blue);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(21,91,246,.20);
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.wp-block-button__link:hover,
.ly-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21,91,246,.28); }
.is-style-outline .wp-block-button__link,
.ly-button--outline {
  color: var(--ly-navy) !important;
  background: transparent;
  border-color: var(--ly-navy);
  box-shadow: none;
}
.ly-section--navy .is-style-outline .wp-block-button__link { color: var(--ly-white) !important; border-color: rgba(255,255,255,.55); }

.ly-proofbar {
  margin-top: 3rem;
  padding: 1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  max-width: 900px;
  border: 1px solid rgba(21,91,246,.14);
  background: rgba(255,255,255,.72);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(3,24,79,.06);
}
.ly-proofbar span { color: var(--ly-navy); font-size: .88rem; font-weight: 750; }
.ly-proofbar span::before { content: "✓"; margin-right: .45rem; color: var(--ly-green); font-weight: 950; }

.ly-grid,
.ly-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.2rem;
}
.ly-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ly-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ly-card,
.ly-card-grid > .wp-block-group {
  position: relative;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--ly-line);
  background: var(--ly-white);
  border-radius: var(--ly-radius);
  box-shadow: 0 8px 28px rgba(3,24,79,.055);
}
.ly-card::before,
.ly-card-grid > .wp-block-group::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 1.6rem;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--ly-blue), var(--ly-green));
  border-radius: 0 0 9px 9px;
}
.ly-card p:last-child { margin-bottom: 0; }
.ly-card a { font-weight: 750; }
.ly-kicker { color: var(--ly-blue); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.ly-steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2rem; }
.ly-step { counter-increment: step; padding: 1.5rem; border-top: 1px solid var(--ly-line); }
.ly-step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: .75rem;
  color: var(--ly-blue);
  font-weight: 900;
  letter-spacing: .08em;
}

.ly-answer {
  max-width: 920px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-left: 6px solid var(--ly-green);
  background: linear-gradient(135deg, #f4f8ff, #f0fcf7);
  border-radius: 0 var(--ly-radius) var(--ly-radius) 0;
}
.ly-answer strong { color: var(--ly-navy); }
.ly-callout {
  padding: clamp(1.4rem, 4vw, 2.3rem);
  border: 1px solid rgba(21,91,246,.18);
  background: var(--ly-blue-soft);
  border-radius: var(--ly-radius);
}
.ly-callout--warning { border-color: #f2c94c; background: #fff9e8; }

.ly-faq { max-width: 900px; margin-top: 2rem; }
.ly-faq details { border-top: 1px solid var(--ly-line); }
.ly-faq details:last-child { border-bottom: 1px solid var(--ly-line); }
.ly-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--ly-navy);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.ly-faq summary::-webkit-details-marker { display: none; }
.ly-faq summary::after { content: "+"; color: var(--ly-blue); font-size: 1.4rem; line-height: 1; }
.ly-faq details[open] summary::after { content: "−"; }
.ly-faq__answer { padding: 0 2.5rem 1.25rem 0; color: var(--ly-muted); }

.ly-table-wrap { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--ly-line); border-radius: var(--ly-radius); }
.ly-table { width: 100%; border-collapse: collapse; min-width: 650px; background: var(--ly-white); }
.ly-table th, .ly-table td { padding: 1rem 1.15rem; border-bottom: 1px solid var(--ly-line); text-align: left; vertical-align: top; }
.ly-table th { color: var(--ly-white); background: var(--ly-navy); font-size: .86rem; }
.ly-table tr:last-child td { border-bottom: 0; }

.ly-price {
  max-width: 760px;
  padding: clamp(2rem, 6vw, 4rem);
  color: var(--ly-white);
  background: linear-gradient(135deg, var(--ly-navy), #0b3ca8);
  border-radius: calc(var(--ly-radius) * 1.4);
  box-shadow: var(--ly-shadow);
}
.ly-price h2, .ly-price h3 { color: var(--ly-white); }
.ly-price__amount { margin: .4rem 0 1rem; font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.ly-price__amount small { font-size: 1rem; letter-spacing: 0; font-weight: 650; }

.ly-meta {
  margin-top: 3.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--ly-line);
  color: var(--ly-muted);
  font-size: .84rem;
}
.ly-sources { font-size: .9rem; }
.ly-sources li { overflow-wrap: anywhere; }

.ly-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 920px; }
.ly-form__full { grid-column: 1 / -1; }
.ly-form label { display: block; color: var(--ly-navy); font-size: .86rem; font-weight: 800; }
.ly-form input,
.ly-form select,
.ly-form textarea {
  width: 100%;
  margin-top: .35rem;
  padding: .82rem .9rem;
  border: 1px solid #b8c6d3;
  color: var(--ly-ink);
  background: var(--ly-white);
  border-radius: .65rem;
  font: inherit;
  font-size: .95rem;
}
.ly-form textarea { min-height: 150px; resize: vertical; }
.ly-form__consent { display: flex !important; align-items: flex-start; gap: .65rem; font-weight: 500 !important; }
.ly-form__consent input { width: auto; margin-top: .35rem; }
.ly-form__trap { position: absolute !important; left: -9999px !important; }
.ly-notice { max-width: 920px; padding: .9rem 1rem; margin-bottom: 1rem; border-radius: .6rem; font-weight: 700; }
.ly-notice--success { color: #075c32; background: #e4f9ed; }
.ly-notice--error { color: #7f1d1d; background: #feecec; }

.ly-site-footer { padding: 4rem 0 2rem; color: rgba(255,255,255,.74); background: #020e34; }
.ly-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.ly-site-footer h2, .ly-site-footer h3, .ly-site-footer a { color: var(--ly-white); }
.ly-site-footer ul { padding: 0; list-style: none; }
.ly-site-footer li + li { margin-top: .45rem; }
.ly-site-footer a { text-decoration: none; }
.ly-site-footer a:hover { color: var(--ly-green); }
.ly-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .8rem; }

.ly-archive,
.ly-article { width: min(calc(100% - 2rem), var(--ly-reading)); margin: 0 auto; padding: 5rem 0; }
.ly-article h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.ly-post-card { padding: 1.4rem 0; border-bottom: 1px solid var(--ly-line); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .ly-grid, .ly-card-grid, .ly-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ly-steps { grid-template-columns: repeat(2, 1fr); }
  .ly-footer-grid { grid-template-columns: 1fr 1fr; }
  .ly-footer-grid > :first-child { grid-column: 1 / -1; }
  .ly-nav { position: relative; }
  .ly-nav summary {
    display: inline-flex;
    padding: .5rem .75rem;
    color: var(--ly-navy);
    border: 1px solid var(--ly-line);
    border-radius: .6rem;
    cursor: pointer;
    font-weight: 800;
    list-style: none;
  }
  .ly-nav summary::-webkit-details-marker { display: none; }
  .ly-nav > div { display: none; position: absolute; right: 0; top: calc(100% + .6rem); width: min(88vw, 360px); padding: .8rem; background: var(--ly-white); border: 1px solid var(--ly-line); border-radius: .8rem; box-shadow: var(--ly-shadow); }
  .ly-nav[open] > div { display: block; }
  .ly-nav ul { display: grid; gap: .1rem; }
  .ly-nav a { display: block; padding: .65rem .7rem; }
  .ly-nav li:last-child a { margin-top: .35rem; justify-content: center; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .ly-header-inner { min-height: 68px; }
  .ly-brand img { width: 38px; height: 38px; }
  .ly-section { padding-block: 4rem; }
  .ly-hero { min-height: auto; padding-block: 5.5rem; }
  .ly-hero::after { display: none; }
  .ly-grid, .ly-card-grid, .ly-grid--2, .ly-grid--4, .ly-steps, .ly-form, .ly-footer-grid { grid-template-columns: 1fr; }
  .ly-footer-grid > :first-child { grid-column: auto; }
  .ly-form__full { grid-column: auto; }
  .ly-proofbar { border-radius: var(--ly-radius); }
  .ly-footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .ly-site-header, .ly-site-footer, .ly-actions, .ly-form { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .ly-section { padding: 1.5rem 0; }
  a { color: #000; text-decoration: underline; }
}
