/*
Theme Name: Factory WP Lab
Theme URI: https://factory-wp.mycrossbox.fr/
Author: Hostinger Site Factory
Description: Thème de démonstration isolé pour FACTORY WP LAB.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: factory-wp-lab
*/

:root {
  --fwl-ink: #10131a;
  --fwl-paper: #f5f4ef;
  --fwl-white: #fff;
  --fwl-muted: #666d78;
  --fwl-line: rgba(16, 19, 26, .14);
  --fwl-cobalt: #305cff;
  --fwl-cyan: #9fe9ff;
  --fwl-lime: #d9ff72;
  --fwl-radius: 26px;
  --fwl-shadow: 0 24px 70px rgba(16, 19, 26, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--fwl-ink);
  background: var(--fwl-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
.fwl-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.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; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; left: 14px; top: 12px; z-index: 9999; color: var(--fwl-ink); background: var(--fwl-lime); border-radius: 99px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 244, 239, .9); border-bottom: 1px solid var(--fwl-line); backdrop-filter: blur(18px); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: -.035em; }
.site-branding-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--fwl-white); background: var(--fwl-cobalt); border-radius: 10px; font-size: .69rem; letter-spacing: -.04em; transform: rotate(-4deg); }
.site-branding small { display: block; color: var(--fwl-muted); font-size: .56rem; line-height: 1; letter-spacing: .11em; text-transform: uppercase; }
.main-navigation ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-navigation a { color: #363b46; font-size: .84rem; font-weight: 720; text-decoration: none; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--fwl-cobalt); }
.main-navigation li:last-child a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 17px; color: var(--fwl-white); background: var(--fwl-ink); border-radius: 99px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--fwl-white); background: var(--fwl-ink); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

.site-main { min-height: 65vh; }
.entry-content > *:not(.alignfull):not(.alignwide), .page-header, .post-shell { width: min(840px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { width: min(1160px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.entry-content > .alignfull { width: 100%; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(2.25rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.06em; }
.entry-content h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.035em; }
.entry-content p { color: var(--fwl-muted); }

.fwl-hero { min-height: 720px; display: grid; align-items: center; position: relative; overflow: hidden; padding: 110px 0 90px !important; color: var(--fwl-white); background: var(--fwl-ink); }
.fwl-hero::before { content: ""; position: absolute; width: 540px; height: 540px; right: -80px; top: 85px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--fwl-cyan), var(--fwl-cobalt) 48%, #1b297d 75%); box-shadow: 0 0 0 70px rgba(255,255,255,.035); }
.fwl-hero::after { content: "WP"; position: absolute; right: 62px; top: 157px; font-size: 15rem; line-height: 1; font-weight: 900; letter-spacing: -.12em; color: rgba(255,255,255,.11); }
.fwl-hero > .wp-block-group__inner-container { width: min(1160px, calc(100% - 40px)); margin: auto; position: relative; z-index: 2; }
.fwl-eyebrow { margin-bottom: 26px !important; color: var(--fwl-lime) !important; font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.fwl-hero h1 { max-width: 760px; margin: 0; font-size: clamp(4rem, 8vw, 7.4rem); line-height: .88; letter-spacing: -.08em; }
.fwl-hero .fwl-lead { max-width: 660px; margin: 31px 0 0; color: #b5bcc9; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.fwl-hero .wp-block-buttons { margin-top: 35px; }
.wp-block-button__link, .fwl-button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 99px !important; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s; }
.wp-block-button__link:hover, .fwl-button:hover { transform: translateY(-2px); }
.fwl-hero .wp-block-button__link { color: var(--fwl-ink); background: var(--fwl-lime); }
.fwl-hero .is-style-outline .wp-block-button__link { color: var(--fwl-white); border: 1px solid rgba(255,255,255,.25); background: transparent; }
.fwl-badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.fwl-badge { padding: 7px 11px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: #c6ccd7 !important; font-size: .67rem; font-weight: 760; letter-spacing: .07em; text-transform: uppercase; }

.fwl-section { padding-top: 120px !important; padding-bottom: 120px !important; }
.fwl-section > .wp-block-group__inner-container { width: min(1160px, calc(100% - 40px)); margin: auto; }
.fwl-section-kicker { margin: 0 0 22px !important; color: var(--fwl-cobalt) !important; font-size: .72rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.fwl-section-head { max-width: 820px; margin-bottom: 55px; }
.fwl-section-head h2 { margin: 0 0 22px; }
.fwl-section-head p { max-width: 650px; font-size: 1.06rem; }
.fwl-grid-3 { gap: 18px !important; }
.fwl-card { min-height: 330px; display: flex; flex-direction: column; padding: 30px !important; border: 1px solid var(--fwl-line); border-radius: var(--fwl-radius); background: rgba(255,255,255,.5); }
.fwl-card:nth-child(2) { color: var(--fwl-white); background: var(--fwl-cobalt); border-color: var(--fwl-cobalt); box-shadow: var(--fwl-shadow); }
.fwl-card:nth-child(2) p { color: #d7ddff; }
.fwl-card-number { margin: 0 0 70px !important; color: var(--fwl-cobalt) !important; font-family: ui-monospace, monospace; font-size: .73rem; font-weight: 800; }
.fwl-card:nth-child(2) .fwl-card-number { color: var(--fwl-lime) !important; }
.fwl-card h3 { margin: 0 0 12px; }

.fwl-dark { color: var(--fwl-white); background: var(--fwl-ink); }
.fwl-dark p { color: #aeb5c0; }
.fwl-dark .fwl-section-kicker { color: var(--fwl-lime) !important; }
.fwl-process { counter-reset: step; margin-top: 45px; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.15); }
.fwl-process li { counter-increment: step; display: grid; grid-template-columns: 60px minmax(180px, .55fr) 1fr; gap: 28px; align-items: start; padding: 29px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.fwl-process li::before { content: "0" counter(step); color: var(--fwl-lime); font-family: ui-monospace, monospace; font-size: .75rem; }
.fwl-process strong { display: block; margin-bottom: 4px; font-size: 1.22rem; }
.fwl-process span { color: #aeb5c0; }

.fwl-work-grid { gap: 18px !important; }
.fwl-work { min-height: 380px; padding: 30px !important; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative; border-radius: var(--fwl-radius); background: linear-gradient(145deg, #dce3ff, #eef1ff); }
.fwl-work:nth-child(2) { background: linear-gradient(145deg, #d8f5ff, #ecfbff); }
.fwl-work:nth-child(3) { background: linear-gradient(145deg, #ebffd0, #f7ffe9); }
.fwl-work::before { content: ""; position: absolute; width: 210px; height: 210px; right: -35px; top: -45px; border-radius: 50%; background: var(--fwl-cobalt); opacity: .11; }
.fwl-work p { margin-bottom: 0; }
.fwl-tag { align-self: flex-start; margin-bottom: auto !important; padding: 6px 10px; border: 1px solid rgba(16,19,26,.18); border-radius: 99px; color: var(--fwl-ink) !important; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.fwl-proof { padding: 100px 0 !important; background: var(--fwl-cyan); }
.fwl-proof > .wp-block-group__inner-container { width: min(900px, calc(100% - 40px)); margin: auto; text-align: center; }
.fwl-proof blockquote { margin: 0; padding: 0; border: 0; }
.fwl-proof blockquote p { color: var(--fwl-ink); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.13; letter-spacing: -.05em; }
.fwl-proof cite { font-size: .74rem; font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.fwl-faq .wp-block-details { padding: 22px 0; border-bottom: 1px solid var(--fwl-line); }
.fwl-faq summary { cursor: pointer; font-weight: 800; letter-spacing: -.02em; }
.fwl-faq .wp-block-details p { margin: 14px 0 0; max-width: 720px; }
.fwl-cta { padding: 110px 0 !important; color: var(--fwl-white); text-align: center; background: var(--fwl-cobalt); }
.fwl-cta > .wp-block-group__inner-container { width: min(900px, calc(100% - 40px)); margin: auto; }
.fwl-cta h2 { margin-top: 0; }
.fwl-cta p { max-width: 650px; margin-left: auto; margin-right: auto; color: #d9dfff; }
.fwl-cta .wp-block-buttons { justify-content: center; margin-top: 30px; }
.fwl-cta .wp-block-button__link { color: var(--fwl-ink); background: var(--fwl-lime); }

.page-header { padding: 105px 0 48px; }
.page-header h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 6.2rem); line-height: .95; letter-spacing: -.075em; }
.page-header p { max-width: 620px; color: var(--fwl-muted); }
.standard-content { padding-bottom: 110px; }
.standard-content .entry-content { font-size: 1.03rem; }
.standard-content .entry-content h2 { margin-top: 65px; }
.standard-content .wp-block-columns { gap: 18px; }
.standard-content .wp-block-column { padding: 24px; border: 1px solid var(--fwl-line); border-radius: 20px; background: rgba(255,255,255,.45); }

.blog-grid { width: min(1160px, calc(100% - 40px)); margin: 0 auto 110px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { min-height: 330px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--fwl-line); border-radius: var(--fwl-radius); background: rgba(255,255,255,.5); }
.post-card time { color: var(--fwl-cobalt); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.post-card h2 { margin: 50px 0 15px; font-size: 1.65rem; line-height: 1.1; letter-spacing: -.045em; }
.post-card h2 a { text-decoration: none; }
.post-card .read-more { margin-top: auto; color: var(--fwl-cobalt); font-weight: 800; text-decoration: none; }
.post-shell { padding: 100px 0; }
.post-shell h1 { margin: 15px 0 30px; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .95; letter-spacing: -.07em; }
.post-shell .entry-content { font-size: 1.08rem; }
.post-meta { color: var(--fwl-cobalt); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.wpcf7 { margin-top: 35px; }
.wpcf7 form { display: grid; gap: 18px; }
.wpcf7 label { display: grid; gap: 7px; font-weight: 750; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--fwl-line); border-radius: 13px; color: var(--fwl-ink); background: var(--fwl-white); font: inherit; }
.wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 3px solid rgba(48,92,255,.2); border-color: var(--fwl-cobalt); }
.wpcf7 input[type="submit"] { min-height: 52px; padding: 0 23px; border: 0; border-radius: 99px; color: var(--fwl-white); background: var(--fwl-ink); font-weight: 800; cursor: pointer; }
.wpcf7-not-valid-tip, .wpcf7 form.invalid .wpcf7-response-output { color: #a32020; }

.site-footer { padding: 65px 0 35px; color: #bdc3ce; background: #080a10; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 50px; align-items: start; }
.site-footer .site-branding { color: var(--fwl-white); }
.site-footer p { margin: 4px 0; font-size: .82rem; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { color: #bdc3ce; font-size: .82rem; text-decoration: none; }
.footer-nav a:hover { color: var(--fwl-lime); }
.footer-meta { text-align: right; }
.demo-label { display: inline-block; padding: 6px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; color: var(--fwl-lime); font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.not-found { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.not-found h1 { margin: 0; font-size: clamp(5rem, 17vw, 10rem); line-height: 1; color: var(--fwl-cobalt); }
.not-found h2 { margin: 5px 0 12px; font-size: 2rem; }
.not-found p { color: var(--fwl-muted); }
.not-found .fwl-button { margin-top: 15px; color: var(--fwl-white); background: var(--fwl-ink); }

:focus-visible { outline: 3px solid var(--fwl-cobalt); outline-offset: 4px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-navigation { display: none; position: absolute; left: 20px; right: 20px; top: 72px; padding: 18px; border: 1px solid var(--fwl-line); border-radius: 20px; background: var(--fwl-white); box-shadow: var(--fwl-shadow); }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { align-items: stretch; flex-direction: column; gap: 2px; }
  .main-navigation a { display: block; padding: 11px 9px; }
  .main-navigation li:last-child a { justify-content: center; }
  .fwl-hero { min-height: 670px; padding-top: 90px !important; }
  .fwl-hero::before { width: 400px; height: 400px; opacity: .5; right: -170px; top: 170px; }
  .fwl-hero::after { right: -10px; top: 220px; font-size: 11rem; }
  .wp-block-columns.fwl-grid-3, .wp-block-columns.fwl-work-grid { flex-wrap: wrap !important; }
  .fwl-grid-3 > .wp-block-column, .fwl-work-grid > .wp-block-column { flex-basis: calc(50% - 10px) !important; }
  .fwl-grid-3 > .wp-block-column:last-child, .fwl-work-grid > .wp-block-column:last-child { flex-basis: 100% !important; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .fwl-shell, .entry-content > *:not(.alignfull):not(.alignwide), .page-header, .post-shell { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 68px; }
  .fwl-hero { min-height: 720px; padding-top: 78px !important; }
  .fwl-hero > .wp-block-group__inner-container, .fwl-section > .wp-block-group__inner-container, .fwl-proof > .wp-block-group__inner-container, .fwl-cta > .wp-block-group__inner-container { width: min(100% - 28px, 1160px); }
  .fwl-hero h1 { font-size: clamp(3.3rem, 18vw, 5rem); }
  .fwl-hero::before { width: 300px; height: 300px; right: -170px; top: 310px; }
  .fwl-hero::after { right: -24px; top: 340px; font-size: 8rem; }
  .fwl-hero .wp-block-buttons { align-items: stretch; flex-direction: column; }
  .fwl-hero .wp-block-button { width: 100%; }
  .fwl-hero .wp-block-button__link { width: 100%; }
  .fwl-section { padding-top: 85px !important; padding-bottom: 85px !important; }
  .entry-content h2 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .fwl-grid-3 > .wp-block-column, .fwl-work-grid > .wp-block-column, .fwl-grid-3 > .wp-block-column:last-child, .fwl-work-grid > .wp-block-column:last-child { flex-basis: 100% !important; }
  .fwl-card { min-height: 285px; }
  .fwl-card-number { margin-bottom: 50px !important; }
  .fwl-process li { grid-template-columns: 42px 1fr; gap: 10px 14px; }
  .fwl-process li span { grid-column: 2; }
  .fwl-work { min-height: 330px; }
  .blog-grid { width: min(100% - 28px, 1160px); grid-template-columns: 1fr; }
  .page-header { padding-top: 80px; }
  .page-header h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

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