/*
Theme Name: Pitchou Store
Theme URI: https://pitchou.mapage-wp.online
Author: MaPage
Description: Theme catalogue original pour la boutique de vetements enfant Pitchou.
Version: 1.0.0
Text Domain: pitchou
*/

:root {
  --ink: #173c3a;
  --ink-soft: #48635f;
  --paper: #fffdf9;
  --white: #ffffff;
  --coral: #e85d4a;
  --coral-dark: #c94838;
  --teal: #0f706d;
  --mustard: #e9af2f;
  --sage: #dce8d7;
  --rose: #f7ded8;
  --line: #dedfd8;
  --shadow: 0 12px 30px rgba(23, 60, 58, 0.1);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.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;
}
.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.demo-bar {
  padding: 8px 20px;
  color: var(--white);
  background: var(--ink);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; color: var(--ink); font-size: 1.75rem; font-weight: 900; line-height: 1; }
.brand-mark { width: 36px; aspect-ratio: 1; display: grid; place-items: center; color: var(--white); background: var(--coral); border-radius: 50% 50% 44% 56%; font-size: 1.25rem; transform: rotate(-6deg); }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; font-size: 0.93rem; font-weight: 750; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 3px; background: var(--coral); transition: right 180ms ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-cta, .button, .contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid var(--coral);
  border-radius: 4px;
  color: var(--white);
  background: var(--coral);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.header-cta:hover, .button:hover, .contact-submit:hover { background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: var(--white); border-color: var(--ink); }
.button.secondary:hover { color: var(--white); background: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; }

.hero { position: relative; min-height: min(690px, 72vh); display: grid; align-items: center; overflow: hidden; background: #f2eee5; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,253,249,.97) 0%, rgba(255,253,249,.89) 29%, rgba(255,253,249,.18) 58%, rgba(255,253,249,0) 78%); }
.hero-content { position: relative; z-index: 1; width: min(570px, 52%); padding-block: 70px; }
.eyebrow { margin: 0 0 14px; color: var(--coral-dark); font-size: 0.79rem; font-weight: 900; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 0.98; font-weight: 700; }
.hero-lead { max-width: 540px; margin: 24px 0; color: var(--ink-soft); font-size: 1.14rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 0.86rem; font-weight: 700; }

.section { padding: 76px 0; }
.section-muted { background: #f2f6ef; }
.section-coral { background: var(--rose); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-head h2, .page-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }
.section-head p { max-width: 590px; margin: 8px 0 0; color: var(--ink-soft); }
.text-link { color: var(--teal); font-weight: 850; border-bottom: 2px solid currentColor; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category-card { position: relative; min-height: 390px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.category-card:hover img { transform: scale(1.025); }
.category-label { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 15px 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.category-label strong { display: block; font-size: 1.12rem; }
.category-label span { color: var(--ink-soft); font-size: 0.86rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.product-card { min-width: 0; }
.product-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #f0eee7; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 5%; transition: transform 400ms ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.crop-1 img { object-position: 20% 20%; }
.crop-2 img { object-position: 80% 18%; }
.crop-3 img { object-position: 22% 78%; }
.crop-4 img { object-position: 78% 78%; }
.product-badge { position: absolute; top: 10px; left: 10px; padding: 5px 9px; color: var(--white); background: var(--teal); font-size: 0.69rem; font-weight: 900; text-transform: uppercase; }
.product-info { padding-top: 13px; }
.product-category { margin: 0 0 3px; color: var(--ink-soft); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }
.product-title { margin: 0; font-size: 1rem; line-height: 1.35; }
.product-title a:hover { color: var(--coral-dark); }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.product-price { font-weight: 900; }
.swatches { display: flex; gap: 5px; }
.swatch { width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.12); border-radius: 50%; }

.trust-band { padding: 34px 0; color: var(--white); background: var(--ink); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { padding-left: 18px; border-left: 4px solid var(--mustard); }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { color: #d9e7e2; font-size: 0.86rem; }
.editorial-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.editorial-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.editorial-copy h2 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; }
.editorial-copy p { color: var(--ink-soft); }
.checks { margin: 24px 0; padding: 0; list-style: none; }
.checks li { position: relative; margin: 10px 0; padding-left: 28px; font-weight: 700; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }

.page-hero { padding: 70px 0 46px; background: var(--sage); }
.page-hero p { max-width: 680px; margin: 14px 0 0; color: var(--ink-soft); font-size: 1.08rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 34px; }
.filter-link { padding: 9px 14px; border: 1px solid var(--line); background: var(--white); font-size: 0.88rem; font-weight: 800; }
.filter-link:hover, .filter-link.active { color: var(--white); background: var(--teal); border-color: var(--teal); }
.catalog-note { margin: 34px 0 0; padding: 18px; background: #fff4d8; border-left: 5px solid var(--mustard); }
.pagination { margin-top: 40px; }
.pagination .page-numbers { display: inline-grid; min-width: 38px; height: 38px; place-items: center; margin-right: 5px; border: 1px solid var(--line); background: var(--white); }
.pagination .current { color: var(--white); background: var(--teal); border-color: var(--teal); }

.product-single { padding: 54px 0 80px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr); gap: 58px; align-items: start; }
.product-gallery { position: sticky; top: 120px; }
.product-gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 4%; background: #f3efe8; }
.product-details .eyebrow { margin-bottom: 9px; }
.product-details h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.08; }
.single-price { margin: 18px 0; font-size: 1.35rem; font-weight: 900; }
.single-description { color: var(--ink-soft); }
.choice-label { display: block; margin: 23px 0 9px; font-size: .82rem; font-weight: 900; text-transform: uppercase; }
.size-list, .color-list { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip { min-width: 44px; padding: 8px 11px; border: 1px solid var(--line); background: var(--white); text-align: center; font-weight: 800; }
.product-actions { display: flex; gap: 10px; margin-top: 28px; }
.product-actions .button { flex: 1; }
.reassurance-list { margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.reassurance-list li { margin: 7px 0; color: var(--ink-soft); font-size: .9rem; }

.content-page { padding: 64px 0 90px; }
.prose { width: min(100%, 820px); }
.prose h2 { margin: 42px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; line-height: 1.15; }
.prose h3 { margin: 30px 0 8px; font-size: 1.2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.size-table { width: 100%; margin: 28px 0; border-collapse: collapse; background: var(--white); }
.size-table th, .size-table td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; }
.size-table th { color: var(--white); background: var(--ink); }
.faq-list { display: grid; gap: 10px; margin-top: 30px; }
.faq-list details { padding: 17px 19px; border: 1px solid var(--line); background: var(--white); }
.faq-list summary { cursor: pointer; font-weight: 850; }
.faq-list p { margin-bottom: 0; }
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 55px; }
.contact-panel { padding: 28px; background: var(--ink); color: var(--white); }
.contact-panel p { color: #d9e7e2; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 800; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 0; background: var(--white); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-message { margin-bottom: 20px; padding: 13px 15px; border-left: 5px solid var(--teal); background: var(--sage); }

.site-footer { color: var(--white); background: #102b2a; }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 45px; padding: 58px 0; }
.footer-brand p { max-width: 340px; color: #cbd9d5; }
.footer-column h2 { margin: 0 0 14px; font-size: .84rem; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 8px 0; }
.footer-column a { color: #d9e7e2; font-size: .9rem; }
.footer-column a:hover { color: var(--mustard); }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); color: #a9bfba; font-size: .8rem; }
.not-found { min-height: 55vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 980px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { position: fixed; inset: 0 0 0 20%; z-index: -1; display: none; padding: 120px 30px 30px; background: var(--paper); }
  .menu-open .main-nav { display: block; box-shadow: -20px 0 45px rgba(23,60,58,.15); }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 8px; }
  .main-nav a { display: block; padding: 12px 0; font-size: 1.1rem; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { min-height: 440px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { gap: 35px; }
  .product-layout { gap: 36px; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-shell { width: min(calc(100% - 28px), var(--content)); }
  .header-inner { min-height: 66px; }
  .brand { font-size: 1.5rem; }
  .brand-mark { width: 32px; }
  .hero { min-height: 680px; align-items: end; }
  .hero-image { object-position: 66% center; }
  .hero::after { background: linear-gradient(0deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.92) 42%, rgba(255,253,249,.12) 76%); }
  .hero-content { width: 100%; padding: 280px 0 42px; }
  .hero h1 { font-size: 3rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .section { padding: 58px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
  .category-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .category-card { min-height: 300px; }
  .product-title { font-size: .91rem; }
  .product-meta { align-items: start; flex-direction: column; gap: 5px; }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .editorial-grid, .product-layout, .contact-layout { grid-template-columns: 1fr; }
  .editorial-grid { gap: 28px; }
  .editorial-copy { order: -1; }
  .product-gallery { position: static; }
  .product-actions { flex-direction: column; }
  .page-hero { padding: 48px 0 34px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
