/*
Theme Name: NeuroDéclic
Theme URI: https://neurodeclic.fr/
Author: NeuroDéclic
Author URI: https://neurodeclic.fr/
Description: Thème WordPress élégant, accessible et responsive pour NeuroDéclic : ressources, conseils et formations destinés aux parents.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neurodeclic
Tags: blog, education, accessibility-ready, custom-logo, featured-images, translation-ready
*/

:root {
  --nd-ink: #2b1830;
  --nd-plum: #5a1f52;
  --nd-berry: #8e3d6b;
  --nd-rose: #c66f86;
  --nd-blush: #f5e9e8;
  --nd-cream: #fffaf6;
  --nd-paper: #ffffff;
  --nd-teal: #2e6570;
  --nd-gold: #c69a56;
  --nd-muted: #6f6871;
  --nd-line: #eadfdf;
  --nd-shadow: 0 18px 50px rgba(58, 29, 52, 0.12);
  --nd-radius-lg: 28px;
  --nd-radius-md: 18px;
  --nd-radius-sm: 12px;
  --nd-container: 1180px;
  --nd-serif: Georgia, 'Times New Roman', serif;
  --nd-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nd-ink);
  background: var(--nd-cream);
  font-family: var(--nd-sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--nd-plum); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--nd-berry); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--nd-gold); outline-offset: 3px; }

.nd-container { width: min(calc(100% - 40px), var(--nd-container)); margin-inline: auto; }
.nd-section { padding: 96px 0; }
.nd-section--soft { background: linear-gradient(180deg, #fff 0%, #fbf2f2 100%); }
.nd-section--dark { color: #fff; background: radial-gradient(circle at 15% 15%, #7a2d64 0, #53204c 36%, #28122c 100%); }
.nd-eyebrow { margin: 0 0 14px; color: var(--nd-berry); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nd-section--dark .nd-eyebrow { color: #f4c7d3; }
h1, h2, h3, h4 { margin: 0 0 .55em; font-family: var(--nd-serif); line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.65rem, 7vw, 5.7rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); }
p { margin: 0 0 1.25em; }
.nd-lead { max-width: 760px; color: var(--nd-muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.nd-section--dark .nd-lead { color: rgba(255,255,255,.78); }
.nd-kicker { color: var(--nd-berry); font-weight: 800; }

.nd-skip-link { position: fixed; top: 12px; left: 12px; z-index: 9999; padding: 10px 16px; transform: translateY(-150%); border-radius: 8px; color: #fff; background: var(--nd-plum); }
.nd-skip-link:focus { transform: none; }

.nd-announcement { padding: 8px 20px; color: #fff; background: var(--nd-plum); text-align: center; font-size: .9rem; font-weight: 700; }
.nd-site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(99,52,92,.08); background: rgba(255,250,246,.94); backdrop-filter: blur(18px); }
.admin-bar .nd-site-header { top: 32px; }
.nd-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 28px; }
.nd-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--nd-ink); text-decoration: none; }
.nd-brand img, .nd-brand .custom-logo { width: auto; max-height: 52px; }
.nd-brand-mark { width: 48px; height: 48px; flex: 0 0 48px; }
.nd-brand-name { display: block; font-family: var(--nd-serif); font-size: 1.65rem; font-weight: 700; line-height: 1; }
.nd-brand-tagline { display: block; margin-top: 5px; color: var(--nd-muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.nd-nav { display: flex; align-items: center; gap: 26px; }
.nd-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nd-nav a { color: var(--nd-ink); font-size: .93rem; font-weight: 700; text-decoration: none; }
.nd-nav a:hover { color: var(--nd-berry); }
.nd-nav .menu-item:last-child a { display: inline-flex; padding: 11px 18px; border-radius: 999px; color: #fff; background: var(--nd-plum); }
.nd-menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--nd-line); border-radius: 50%; background: #fff; cursor: pointer; }
.nd-menu-toggle span { display: block; width: 21px; height: 2px; margin: 4px auto; background: var(--nd-ink); }

.nd-hero { position: relative; overflow: hidden; padding: 92px 0 72px; background:
  radial-gradient(circle at 85% 20%, rgba(198,111,134,.22) 0, rgba(198,111,134,0) 28%),
  radial-gradient(circle at 12% 80%, rgba(46,101,112,.10) 0, rgba(46,101,112,0) 28%),
  linear-gradient(135deg, #fffdf9 0%, #fdf4f2 58%, #f6e6ea 100%);
}
.nd-hero::before { content: ''; position: absolute; inset: 0; opacity: .6; pointer-events: none; background-image: radial-gradient(circle, rgba(90,31,82,.22) 1.2px, transparent 1.4px); background-size: 36px 36px; mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%); }
.nd-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr); align-items: center; gap: 64px; }
.nd-hero-copy { max-width: 760px; }
.nd-hero h1 span { color: var(--nd-berry); }
.nd-hero-copy > p { max-width: 700px; color: var(--nd-muted); font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.nd-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.nd-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; color: #fff; background: var(--nd-plum); font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(90,31,82,.18); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.nd-button:hover { color: #fff; background: var(--nd-berry); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(90,31,82,.24); }
.nd-button--secondary { border-color: rgba(90,31,82,.2); color: var(--nd-plum); background: rgba(255,255,255,.75); box-shadow: none; }
.nd-button--secondary:hover { color: var(--nd-plum); background: #fff; }
.nd-hero-card { position: relative; min-height: 480px; display: grid; place-items: center; }
.nd-orbit { position: absolute; width: 420px; aspect-ratio: 1; border: 1px solid rgba(90,31,82,.15); border-radius: 50%; animation: nd-spin 30s linear infinite; }
.nd-orbit::before, .nd-orbit::after { content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: var(--nd-gold); box-shadow: 0 0 0 8px rgba(198,154,86,.12); }
.nd-orbit::before { top: 12%; left: 14%; }
.nd-orbit::after { right: 8%; bottom: 22%; background: var(--nd-teal); box-shadow: 0 0 0 8px rgba(46,101,112,.10); }
.nd-hero-panel { position: relative; width: min(390px, 100%); padding: 38px; border: 1px solid rgba(255,255,255,.8); border-radius: 38px; background: rgba(255,255,255,.78); box-shadow: var(--nd-shadow); backdrop-filter: blur(16px); }
.nd-hero-panel .nd-brand-mark { width: 92px; height: 92px; margin-bottom: 22px; }
.nd-hero-panel h2 { font-size: 2.2rem; }
.nd-hero-panel p { color: var(--nd-muted); }
.nd-mini-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.nd-mini-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.nd-mini-list li::before { content: '✓'; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; background: var(--nd-teal); font-size: .8rem; }

.nd-trust { position: relative; z-index: 2; margin-top: -1px; border-top: 1px solid rgba(90,31,82,.08); border-bottom: 1px solid rgba(90,31,82,.08); background: #fff; }
.nd-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.nd-trust-item { padding: 24px 26px; border-right: 1px solid var(--nd-line); }
.nd-trust-item:last-child { border-right: 0; }
.nd-trust-item strong { display: block; margin-bottom: 4px; color: var(--nd-plum); }
.nd-trust-item span { color: var(--nd-muted); font-size: .9rem; }

.nd-two-col { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 78px; }
.nd-quote-card { position: sticky; top: 130px; padding: 36px; border-radius: var(--nd-radius-lg); color: #fff; background: linear-gradient(145deg, var(--nd-plum), #7f356c); box-shadow: var(--nd-shadow); }
.nd-quote-card blockquote { margin: 0 0 24px; font-family: var(--nd-serif); font-size: 1.65rem; line-height: 1.35; }
.nd-quote-card cite { font-style: normal; opacity: .82; }
.nd-prose p { color: var(--nd-muted); }
.nd-prose ul { display: grid; gap: 12px; padding-left: 1.2em; }

.nd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 42px; }
.nd-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--nd-line); border-radius: var(--nd-radius-md); background: rgba(255,255,255,.88); box-shadow: 0 12px 38px rgba(55,29,51,.07); }
.nd-card::after { content: ''; position: absolute; right: -35px; bottom: -35px; width: 120px; height: 120px; border-radius: 50%; background: rgba(198,111,134,.1); }
.nd-card-number { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; color: #fff; background: var(--nd-plum); font-weight: 900; }
.nd-card p { position: relative; z-index: 1; color: var(--nd-muted); }

.nd-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.nd-product { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; min-height: 290px; padding: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 26px; background: rgba(255,255,255,.08); }
.nd-product::before { content: ''; position: absolute; width: 250px; height: 250px; right: -90px; top: -90px; border-radius: 50%; background: rgba(255,255,255,.09); }
.nd-product-content { position: relative; z-index: 1; }
.nd-product-badge { display: inline-flex; margin-bottom: 20px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.11); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.nd-product p { max-width: 480px; color: rgba(255,255,255,.76); }
.nd-product-icon { position: relative; z-index: 1; width: 84px; height: 84px; opacity: .9; }
.nd-product--featured { grid-column: 1 / -1; min-height: 330px; background: linear-gradient(135deg, rgba(209,112,139,.35), rgba(46,101,112,.22)); }

.nd-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.nd-post-card { overflow: hidden; border: 1px solid var(--nd-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 36px rgba(53,31,50,.07); transition: transform .2s ease, box-shadow .2s ease; }
.nd-post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(53,31,50,.12); }
.nd-post-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #eedce0, #dce9e9); }
.nd-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nd-post-card:hover .nd-post-thumb img { transform: scale(1.03); }
.nd-post-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--nd-plum); font-family: var(--nd-serif); font-size: 1.5rem; }
.nd-post-body { padding: 26px; }
.nd-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 12px; color: var(--nd-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.nd-post-body h3 { font-size: 1.55rem; }
.nd-post-body h3 a { color: var(--nd-ink); text-decoration: none; }
.nd-post-body p { color: var(--nd-muted); font-size: .95rem; }
.nd-read-more { font-weight: 800; }

.nd-cta { position: relative; overflow: hidden; padding: 54px; border-radius: 32px; background: linear-gradient(135deg, #f5e5e6, #eef5f3); }
.nd-cta::after { content: ''; position: absolute; right: -100px; top: -100px; width: 320px; height: 320px; border: 1px solid rgba(90,31,82,.12); border-radius: 50%; }
.nd-cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: 30px; }
.nd-cta p { max-width: 700px; color: var(--nd-muted); }

.nd-page-hero { padding: 76px 0 52px; background: linear-gradient(135deg, #fffaf6, #f4e4e6); }
.nd-content-wrap { display: grid; grid-template-columns: minmax(0, 780px) minmax(240px, 1fr); gap: 64px; padding: 70px 0 96px; }
.nd-entry-content { min-width: 0; }
.nd-entry-content > * { max-width: 760px; }
.nd-entry-content > .alignwide { max-width: 1040px; margin-left: min(0px, calc((760px - 1040px)/2)); }
.nd-entry-content h2 { margin-top: 1.4em; }
.nd-entry-content h3 { margin-top: 1.3em; }
.nd-entry-content p, .nd-entry-content li { color: #4f4851; }
.nd-entry-content blockquote { margin: 32px 0; padding: 24px 28px; border-left: 5px solid var(--nd-rose); background: var(--nd-blush); font-family: var(--nd-serif); font-size: 1.25rem; }
.nd-sidebar { padding: 28px; border: 1px solid var(--nd-line); border-radius: var(--nd-radius-md); background: #fff; align-self: start; }
.nd-sidebar ul { margin: 0; padding-left: 1.1em; }
.nd-pagination { margin-top: 42px; }

.nd-site-footer { color: rgba(255,255,255,.84); background: #231326; }
.nd-footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: 54px; padding: 70px 0 42px; }
.nd-footer-brand .nd-brand { color: #fff; }
.nd-footer-brand p { max-width: 460px; margin-top: 18px; color: rgba(255,255,255,.68); }
.nd-footer-title { color: #fff; font-family: var(--nd-sans); font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; }
.nd-footer-menu, .nd-socials { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nd-footer-menu a, .nd-socials a { color: rgba(255,255,255,.76); text-decoration: none; }
.nd-footer-menu a:hover, .nd-socials a:hover { color: #fff; }
.nd-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.54); font-size: .82rem; }

.nd-empty { padding: 48px; border: 1px dashed var(--nd-line); border-radius: 20px; text-align: center; background: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes nd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 980px) {
  .nd-menu-toggle { display: block; }
  .nd-nav { position: fixed; inset: 110px 20px auto; display: none; padding: 24px; border: 1px solid var(--nd-line); border-radius: 20px; background: #fff; box-shadow: var(--nd-shadow); }
  .nd-nav.is-open { display: block; }
  .nd-nav ul { align-items: stretch; flex-direction: column; }
  .nd-nav a { display: block; padding: 8px 0; }
  .nd-hero-grid, .nd-two-col, .nd-content-wrap { grid-template-columns: 1fr; }
  .nd-hero-card { min-height: 420px; }
  .nd-quote-card { position: static; }
  .nd-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .nd-trust-item:nth-child(2) { border-right: 0; }
  .nd-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--nd-line); }
  .nd-cards, .nd-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .nd-products { grid-template-columns: 1fr; }
  .nd-product--featured { grid-column: auto; }
  .nd-footer-grid { grid-template-columns: 1fr 1fr; }
  .nd-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nd-container { width: min(calc(100% - 28px), var(--nd-container)); }
  .nd-section { padding: 70px 0; }
  .nd-header-inner { min-height: 70px; }
  .nd-brand-tagline { display: none; }
  .nd-hero { padding: 62px 0 44px; }
  .nd-hero-grid { gap: 28px; }
  .nd-hero-card { min-height: auto; }
  .nd-orbit { width: 310px; }
  .nd-hero-panel { padding: 28px; border-radius: 26px; }
  .nd-trust-grid, .nd-cards, .nd-blog-grid, .nd-footer-grid { grid-template-columns: 1fr; }
  .nd-trust-item { border-right: 0; border-bottom: 1px solid var(--nd-line); }
  .nd-trust-item:last-child { border-bottom: 0; }
  .nd-product { grid-template-columns: 1fr; min-height: auto; }
  .nd-product-icon { margin-top: 24px; }
  .nd-cta { padding: 34px 26px; }
  .nd-cta-inner { grid-template-columns: 1fr; }
  .nd-footer-brand { grid-column: auto; }
  .nd-footer-bottom { flex-direction: column; }
  .admin-bar .nd-site-header { top: 46px; }
}
