/*
Theme Name: Natural4Work
Theme URI: https://www.natural4work.com
Author: Olivier Vandermeersch / Natural4Work
Author URI: https://www.natural4work.com
Description: Thème WordPress natif à blocs pour le cabinet Natural4Work. Inclut un installateur de contenu, un diagnostic d’orientation et un formulaire de contact sans stockage des demandes.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: natural4work
Tags: block-patterns, full-site-editing, accessibility-ready, custom-logo, featured-images
*/

:root {
  --n4w-bg: #fbfaf6;
  --n4w-text: #243126;
  --n4w-green: #3f861f;
  --n4w-forest: #214d25;
  --n4w-lime: #73b52b;
  --n4w-soft: #edf4e8;
  --n4w-cream: #f7f4ec;
  --n4w-taupe: #74675f;
  --n4w-border: #dfe4d8;
  --n4w-gold: #d4b243;
  --n4w-shadow: 0 18px 55px rgba(39, 66, 38, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--n4w-bg); color: var(--n4w-text); }
a { text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
input, textarea, button { font: inherit; }
.wp-site-blocks { overflow: clip; }

.n4w-shell,
.n4w-shell.wp-block-group,
.n4w-shell.wp-block-columns {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.n4w-section { padding-block: clamp(4rem, 8vw, 7rem); }
.n4w-section--compact { padding-block: clamp(3rem, 6vw, 5rem); }
.n4w-section--soft { background: var(--n4w-soft); }
.n4w-section--cream { background: #f0eee7; }
.n4w-section--forest { background: #213f27; color: #fff; }
.n4w-section--forest :where(h1,h2,h3,h4) { color: #fff; }
.n4w-section--forest :where(p,li) { color: rgba(255,255,255,.78); }
.n4w-section--forest .n4w-eyebrow { color: #b7dd75; }
.n4w-section--forest .n4w-card { color: var(--n4w-text); }
.n4w-section--forest .n4w-card :where(h1,h2,h3,h4) { color: var(--n4w-forest); }
.n4w-section--forest .n4w-card :where(p,li) { color: #535b50; }

.n4w-hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  border-bottom: 1px solid var(--n4w-border);
  background: radial-gradient(circle at 85% 15%, #e8f2db 0, transparent 32%), linear-gradient(135deg, #fbfaf6, #f3efe5);
}
.n4w-hero__grid { align-items: center !important; gap: clamp(2rem, 6vw, 5rem) !important; }
.n4w-hero__media img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 2.2rem; box-shadow: 0 28px 65px rgba(37,76,38,.2); }
.n4w-portrait img { width: min(235px, 70vw); border: 8px solid #fff; border-radius: 2rem; box-shadow: var(--n4w-shadow); }
.n4w-infographic img { display: block; max-height: 560px; width: 100%; object-fit: contain; border-radius: 1.5rem; }

.n4w-eyebrow {
  margin: 0 0 1rem;
  color: var(--n4w-green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.n4w-display {
  margin: 0;
  color: var(--n4w-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 6vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.n4w-display mark,
.n4w-title mark { background: none; color: var(--n4w-lime); }
.n4w-title {
  margin: 0;
  color: var(--n4w-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.n4w-lead { color: #535b50; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.75; }
.n4w-center { text-align: center; }
.n4w-max-760 { max-width: 760px; }
.n4w-max-900 { max-width: 900px; }
.n4w-mx-auto { margin-inline: auto; }

.n4w-card {
  height: 100%;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--n4w-border);
  border-radius: 1.5rem;
  background: rgba(255,255,255,.92);
  box-shadow: var(--n4w-shadow);
}
.n4w-card--featured { border: 2px solid #5b9828; background: var(--n4w-soft); }
.n4w-card h3 { color: var(--n4w-forest); font-family: Georgia, "Times New Roman", serif; line-height: 1.18; }
.n4w-price { margin: 1.25rem 0 .25rem; color: var(--n4w-forest); font-size: 2.25rem; font-weight: 800; }
.n4w-badge,
.n4w-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
}
.n4w-badge { padding: .35rem .7rem; background: var(--n4w-green); color: #fff; }
.n4w-chip { margin: .2rem; padding: .55rem .9rem; background: var(--n4w-soft); color: #52604e; }
.n4w-checks { padding-left: 1.25rem; }
.n4w-checks li { margin-block: .65rem; }

.wp-block-button .wp-block-button__link,
.n4w-button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  background: var(--n4w-green);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(63,134,31,.2);
  transition: transform .2s ease, background .2s ease;
}
.wp-block-button .wp-block-button__link:hover,
.n4w-button:hover { background: #34731a; color: #fff; transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link,
.n4w-button--secondary { border-color: var(--n4w-border); background: rgba(255,255,255,.88); color: var(--n4w-forest); box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.n4w-button--secondary:hover { background: #fff; color: var(--n4w-forest); }

.n4w-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 80px;
  border-bottom: 1px solid rgba(223,228,216,.9);
  background: rgba(251,250,246,.94);
  backdrop-filter: blur(12px);
}
.n4w-site-header__inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.n4w-site-header .custom-logo { width: min(255px, 55vw); }
.n4w-nav__list { display: flex; align-items: center; gap: 1.45rem; margin: 0; padding: 0; list-style: none; }
.n4w-nav__list a { color: #4d564b; font-size: .9rem; font-weight: 800; text-decoration: none; }
.n4w-nav__list a:hover,
.n4w-nav__list .current-menu-item > a { color: var(--n4w-green); }
.n4w-nav__list .menu-item:last-child a { padding: .7rem 1rem; border-radius: 999px; background: var(--n4w-green); color: #fff; }
.n4w-nav__mobile { display: none; }
.n4w-nav__mobile summary { cursor: pointer; font-weight: 800; }
.n4w-nav__mobile .n4w-nav__list { align-items: stretch; flex-direction: column; gap: .9rem; padding: 1rem 0; }

.n4w-site-footer { margin-top: 0; padding: 3.2rem 0 0; background: #213f27; color: rgba(255,255,255,.78); }
.n4w-site-footer h2 { color: #fff; font-size: 1rem; }
.n4w-site-footer a { color: inherit; }
.n4w-site-footer .custom-logo { max-width: 240px; padding: .45rem; border-radius: .5rem; background: #fff; }
.n4w-footer-bottom { margin-top: 2.5rem; padding: 1.1rem; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: .78rem; }

.n4w-prose { max-width: 760px; color: #40483f; font-size: 1.04rem; line-height: 1.85; }
.n4w-prose h2 { margin-top: 2.5rem; color: var(--n4w-forest); font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; line-height: 1.2; }
.n4w-prose h3 { margin-top: 1.8rem; color: var(--n4w-forest); }
.n4w-prose li { margin-block: .45rem; }
.n4w-prose figure { margin-block: 2rem; }
.n4w-prose figure img { border-radius: 1.5rem; box-shadow: var(--n4w-shadow); }
.n4w-source-box { margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--n4w-border); border-radius: 1.25rem; background: var(--n4w-soft); }

.n4w-article-header { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--n4w-border); background: linear-gradient(135deg,#edf4e8,#f8f4e7); }
.n4w-article-grid { display: grid; grid-template-columns: minmax(0,760px) 280px; justify-content: center; gap: 3rem; padding-block: 4rem; }
.n4w-sidebar { align-self: start; position: sticky; top: 7rem; }
.n4w-post-card .wp-block-post-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1.15; }
.n4w-post-card .wp-block-post-title a { color: var(--n4w-forest); text-decoration: none; }
.n4w-post-card .wp-block-post-excerpt { color: #5b6258; font-size: .92rem; line-height: 1.7; }

.n4w-faq details { margin-bottom: 1rem; padding: 1.3rem 1.5rem; border: 1px solid var(--n4w-border); border-radius: 1.25rem; background: #fff; box-shadow: var(--n4w-shadow); }
.n4w-faq summary { cursor: pointer; color: var(--n4w-forest); font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 700; }
.n4w-faq details p { margin-bottom: 0; color: #535b50; }

.n4w-quiz-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; }
.n4w-quiz-panel { padding: clamp(1.4rem, 4vw, 2.3rem); border: 1px solid var(--n4w-border); border-radius: 1.5rem; background: #fff; box-shadow: var(--n4w-shadow); }
.n4w-progress { height: .55rem; overflow: hidden; border-radius: 999px; background: var(--n4w-soft); }
.n4w-progress__bar { height: 100%; width: 33%; border-radius: inherit; background: var(--n4w-green); transition: width .2s ease; }
.n4w-step[hidden] { display: none !important; }
.n4w-choice { display: flex; align-items: flex-start; gap: .75rem; margin: .75rem 0; padding: 1rem; border: 1px solid var(--n4w-border); border-radius: 1rem; cursor: pointer; }
.n4w-choice:has(input:checked) { border-color: var(--n4w-green); background: var(--n4w-soft); }
.n4w-choice input { margin-top: .25rem; accent-color: var(--n4w-green); }
.n4w-form label { display: block; margin-top: 1rem; font-weight: 800; }
.n4w-form input:not([type="checkbox"]),
.n4w-form textarea { width: 100%; margin-top: .4rem; padding: .8rem 1rem; border: 1px solid #cdd6c5; border-radius: .8rem; background: #fff; color: var(--n4w-text); }
.n4w-form textarea { min-height: 9rem; resize: vertical; }
.n4w-form input:focus,
.n4w-form textarea:focus { outline: 2px solid rgba(63,134,31,.25); border-color: var(--n4w-green); }
.n4w-consent { display: flex !important; align-items: flex-start; gap: .65rem; font-weight: 400 !important; }
.n4w-consent input { margin-top: .3rem; accent-color: var(--n4w-green); }
.n4w-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.n4w-notice { padding: 1rem; border-radius: .9rem; background: var(--n4w-soft); color: var(--n4w-forest); font-weight: 700; }
.n4w-notice--error { background: #fff0ed; color: #8b241b; }
.n4w-form-note { color: #687064; font-size: .78rem; line-height: 1.6; }

@media (max-width: 900px) {
  .n4w-nav__desktop { display: none; }
  .n4w-nav__mobile { display: block; }
  .n4w-article-grid,
  .n4w-quiz-grid { grid-template-columns: 1fr; }
  .n4w-sidebar { position: static; }
}

@media (max-width: 720px) {
  .n4w-shell,
  .n4w-shell.wp-block-group,
  .n4w-shell.wp-block-columns { width: min(100% - 1.2rem, 1160px); }
  .n4w-display { font-size: clamp(2.45rem, 13vw, 3.8rem); }
  .n4w-site-header__inner { min-height: 70px; }
  .n4w-site-header .custom-logo { width: min(210px, 58vw); }
}

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