/* GÉNÉRÉ — feuille de style sur-mesure. */
/* Bricostore Bastille — feuille de style sur mesure */
:root {
  --ink: #172126;
  --ink-soft: #405057;
  --paper: #f5f0e6;
  --paper-bright: #fffdf7;
  --blue: #1646a0;
  --blue-dark: #0b2f70;
  --orange: #d94c24;
  --orange-dark: #a93316;
  --yellow: #f2c84b;
  --line: #c9c1b1;
  --white: #ffffff;
  --shadow: 0 1.25rem 3.5rem rgba(23, 33, 38, 0.14);
  --radius-sm: 0.45rem;
  --radius-md: 1rem;
  --radius-lg: 1.6rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;
  --content: 76rem;
  --font-display: Bitter, Georgia, serif;
  --font-body: Manrope, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-bright);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 0.22rem solid var(--yellow);
  outline-offset: 0.22rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: 1.7rem;
}

h2 {
  font-size: 1.55rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.16;
}

p,
ul,
ol,
blockquote,
figure {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.2rem;
}

::selection {
  color: var(--white);
  background: var(--blue);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: 0.8rem max(1rem, calc((100% - var(--content)) / 2));
  color: var(--ink);
  background: rgba(255, 253, 247, 0.96);
  border-bottom: 0.16rem solid var(--ink);
  backdrop-filter: blur(0.8rem);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.site-brand::before {
  width: 1rem;
  height: 1.9rem;
  content: '';
  background: var(--orange);
  border-radius: 0.15rem 0.15rem 0.55rem 0.15rem;
  transform: rotate(8deg);
}

.site-brand:hover {
  color: var(--blue);
}

.site-nav {
  order: 3;
  width: 100%;
  overflow-x: auto;
}

.site-nav ul,
.site-footer-nav ul,
.site-nav .menu,
.site-footer-nav .menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.35rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--blue);
  box-shadow: inset 0 -0.18rem var(--orange);
}

.header-action {
  margin-left: auto;
}

.button,
.wp-block-button__link,
input[type='submit'],
button[type='submit'] {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  color: var(--white);
  background: var(--blue);
  border: 0.14rem solid var(--blue);
  border-radius: 999px;
  box-shadow: 0.22rem 0.22rem 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type='submit']:hover,
button[type='submit']:hover {
  color: var(--white);
  background: var(--blue-dark);
  transform: translate(-0.12rem, -0.12rem);
  box-shadow: 0.35rem 0.35rem 0 var(--orange);
}

.button--light {
  color: var(--ink);
  background: var(--paper-bright);
  border-color: var(--paper-bright);
}

.button--light:hover {
  color: var(--ink);
  background: var(--yellow);
}

.text-link {
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow,
.card-kicker,
.step-number,
.category-index {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--orange-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: var(--space-5);
}

.section-heading p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

section {
  position: relative;
}

.hero-workbench {
  display: grid;
  padding: 1rem;
  background: var(--ink);
}

.hero-workbench .media-21x9 {
  grid-area: 1 / 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.hero-workbench .media-21x9 img {
  filter: saturate(0.82) contrast(1.05);
}

.hero-copy {
  z-index: 1;
  grid-area: 2 / 1;
  padding: var(--space-5) 0.5rem var(--space-4);
  color: var(--white);
}

.hero-copy h1 {
  color: var(--white);
}

.hero-copy p {
  max-width: 43rem;
  margin: 1rem 0 1.5rem;
  color: #e7ebed;
}

.hero-copy .eyebrow {
  color: var(--yellow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.media-21x9,
.media-16x9,
.media-4x3,
.media-1x1,
.media-3x4 {
  overflow: hidden;
  background: var(--line);
}

.media-21x9 {
  aspect-ratio: 21 / 9;
}

.media-16x9 {
  aspect-ratio: 16 / 9;
}

.media-4x3 {
  aspect-ratio: 4 / 3;
}

.media-1x1 {
  aspect-ratio: 1 / 1;
}

.media-3x4 {
  aspect-ratio: 3 / 4;
}

.media-21x9 img,
.media-16x9 img,
.media-4x3 img,
.media-1x1 img,
.media-3x4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-counter,
.spotlights,
.page-intro,
.category-section,
.list-section,
.advice-feature,
.method-section,
.faq-section,
.store-intro,
.service-section,
.neighbourhood-section,
.contact-intro,
.contact-section,
.access-section {
  padding: var(--space-7) max(1rem, calc((100% - var(--content)) / 2));
}

.project-counter {
  background-color: var(--paper);
  background-image: linear-gradient(rgba(23, 33, 38, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 33, 38, 0.055) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}

.steps-grid,
.service-grid,
.method-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.step-card,
.service-card,
.method-card {
  padding: var(--space-4);
  background: var(--paper-bright);
  border: 0.12rem solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 0.35rem 0.35rem 0 var(--line);
}

.step-card:nth-child(2),
.method-card:nth-child(2) {
  border-color: var(--blue);
}

.step-card:nth-child(3),
.method-card:nth-child(3) {
  border-color: var(--orange);
}

.step-card h3,
.service-card h3,
.method-card h3 {
  margin-bottom: 0.75rem;
}

.spotlight-grid,
.category-grid,
.advice-grid {
  display: grid;
  gap: 1.3rem;
  align-items: start;
}

.spotlight-card,
.category-card,
.advice-card {
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius-lg);
}

.spotlight-card figure,
.category-card figure,
.advice-card figure {
  margin-bottom: 0;
}

.spotlight-card img,
.category-card img,
.advice-card img {
  transition: transform 450ms ease, filter 450ms ease;
}

.spotlight-card:hover img,
.category-card:hover img,
.advice-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.035);
}

.card-copy {
  padding: var(--space-4);
}

.card-copy h3 {
  margin-bottom: 0.7rem;
}

.card-copy p {
  color: var(--ink-soft);
}

.cta-band {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-6) max(1rem, calc((100% - var(--content)) / 2));
  color: var(--white);
  background: var(--blue);
  border-top: 0.55rem solid var(--yellow);
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band p {
  max-width: 43rem;
  margin-bottom: 0;
}

.page-intro {
  overflow: hidden;
  color: var(--white);
  background: var(--blue-dark);
  border-bottom: 0.55rem solid var(--orange);
}

.page-intro::after {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  content: '';
  border: 2.2rem solid rgba(242, 200, 75, 0.24);
  border-radius: 50%;
}

.page-intro h1 {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.page-intro p {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 1rem 0 0;
  color: #e4eaf5;
  font-size: 1.06rem;
}

.page-intro .eyebrow {
  color: var(--yellow);
}

.category-card:nth-child(2n) {
  background: #e7edf8;
}

.category-card:nth-child(3n) {
  background: #f5e5d9;
}

.category-index {
  color: var(--blue);
}

.list-section {
  color: var(--white);
  background: var(--ink);
}

.list-section h2,
.list-section h3 {
  color: var(--white);
}

.list-layout {
  display: grid;
  gap: var(--space-5);
}

.list-layout > p {
  color: #ccd3d6;
}

.project-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-list li {
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: var(--yellow);
  border-left: 0.35rem solid var(--orange);
  font-weight: 700;
}

.advice-feature {
  background: var(--paper);
}

.advice-card {
  background: var(--paper-bright);
  border: 0.1rem solid var(--line);
}

.method-section {
  background: var(--paper-bright);
}

.method-card .step-number {
  min-width: 2.3rem;
  padding: 0.4rem;
  color: var(--white);
  background: var(--orange);
  border-radius: 999px;
  text-align: center;
}

.faq-section {
  background: var(--blue-dark);
}

.faq-section h2,
.faq-section .eyebrow {
  color: var(--white);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  margin-top: var(--space-5);
}

.faq-list details {
  padding: 1rem 1.2rem;
  color: var(--ink);
  background: var(--paper-bright);
  border-radius: var(--radius-sm);
}

.faq-list summary {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 750;
  cursor: pointer;
}

.faq-list details p {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

.store-intro-grid,
.neighbourhood-grid,
.contact-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.store-intro figure,
.neighbourhood-section figure,
.contact-section figure {
  margin-bottom: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.store-copy h2,
.neighbourhood-copy h2,
.contact-copy h2 {
  margin-bottom: 1rem;
}

.store-copy ul,
.contact-copy ul {
  display: grid;
  gap: 0.65rem;
}

.service-section {
  background: var(--paper);
}

.service-card {
  min-height: 100%;
}

.service-card:nth-child(4) {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0.35rem 0.35rem 0 var(--yellow);
}

.service-card:nth-child(4) h3,
.service-card:nth-child(4) p {
  color: var(--white);
}

.neighbourhood-section {
  background: var(--paper-bright);
}

.neighbourhood-copy address {
  margin: 1rem 0;
  color: var(--blue-dark);
  font-style: normal;
  font-weight: 800;
}

.contact-intro {
  background: var(--orange);
  border-bottom: 0.55rem solid var(--ink);
}

.contact-intro h1,
.contact-intro p,
.contact-intro .eyebrow {
  color: var(--white);
}

.contact-intro p {
  max-width: 48rem;
  margin: 1rem 0 0;
}

.contact-section {
  background: var(--paper);
}

.form-shell {
  padding: var(--space-4);
  background: var(--paper-bright);
  border: 0.14rem solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0.5rem 0.5rem 0 var(--blue);
}

.form-shell label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.form-shell input:not([type='submit']):not([type='checkbox']):not([type='radio']),
.form-shell textarea,
.form-shell select {
  width: 100%;
  min-height: 3rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  color: var(--ink);
  background: var(--white);
  border: 0.1rem solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
}

.form-shell textarea {
  min-height: 8rem;
  resize: vertical;
}

.access-section {
  background: var(--ink);
}

.access-section h2,
.access-section h3,
.access-section p {
  color: var(--white);
}

.access-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.access-card {
  padding: var(--space-4);
  border: 0.1rem solid #647076;
  border-radius: var(--radius-md);
}

.access-card h3 {
  margin-bottom: 0.7rem;
}

.site-footer {
  padding: var(--space-6) max(1rem, calc((100% - var(--content)) / 2));
  color: var(--white);
  background: var(--blue-dark);
  border-top: 0.45rem solid var(--yellow);
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

.footer-brand {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-note {
  max-width: 31rem;
  color: #dce5f7;
}

.site-footer-nav ul,
.site-footer-nav .menu {
  flex-wrap: wrap;
}

.site-footer-nav a {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer-nav a:hover {
  color: var(--yellow);
}

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  color: #c7d4ec;
  border-top: 0.08rem solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

@media (min-width: 36rem) {
  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .hero-copy {
    padding: var(--space-6) var(--space-4);
  }

  .steps-grid,
  .method-grid,
  .advice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spotlight-grid,
  .category-grid,
  .service-grid,
  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 52rem) {
  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .site-header {
    flex-wrap: nowrap;
    min-height: 5rem;
  }

  .site-brand {
    font-size: 1.12rem;
  }

  .site-nav {
    order: initial;
    width: auto;
    margin-left: auto;
  }

  .header-action {
    margin-left: 0;
  }

  .hero-workbench {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--space-4);
  }

  .hero-workbench .media-21x9,
  .hero-copy {
    grid-area: 1 / 1;
  }

  .hero-workbench .media-21x9::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, rgba(13, 24, 29, 0.91) 0%, rgba(13, 24, 29, 0.62) 49%, rgba(13, 24, 29, 0.08) 78%);
  }

  .hero-workbench .media-21x9 {
    position: relative;
  }

  .hero-copy {
    align-self: center;
    max-width: 55rem;
    padding: var(--space-6);
  }

  .spotlight-grid {
    grid-template-columns: 1.1fr 0.9fr 1.1fr;
  }

  .spotlight-card:nth-child(2) {
    margin-top: var(--space-5);
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .list-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .store-intro-grid,
  .neighbourhood-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  }

  .neighbourhood-grid figure {
    order: 2;
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: minmax(16rem, 0.68fr) minmax(0, 1.32fr);
    align-items: start;
  }

  .contact-grid figure {
    position: sticky;
    top: 7rem;
  }

  .access-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

@media (min-width: 72rem) {
  h1 {
    font-size: 4.7rem;
  }

  h2 {
    font-size: 3.15rem;
  }

  .project-counter,
  .spotlights,
  .page-intro,
  .category-section,
  .list-section,
  .advice-feature,
  .method-section,
  .faq-section,
  .store-intro,
  .service-section,
  .neighbourhood-section,
  .contact-intro,
  .contact-section,
  .access-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }

  .page-intro h1 {
    max-width: 68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
