/* ============================================================
   WebPix · feuille de style partagée
   Design : univers "pixel" (Bricolage Grotesque + Figtree)
   ============================================================ */

:root {
  --paper: #F3F5FB;
  --ink: #10163A;
  --ink-soft: #3B4270;
  --pink: #F0287A;
  --blue: #2F5BFF;
  --sun: #FFC93C;
  --dark-sun: #E0A400;
  --line: rgba(16, 22, 58, .14);
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; cursor: pointer;
  font-family: var(--body); font-size: 1rem;
  padding: 15px 26px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
  box-shadow: 6px 6px 0 var(--pink);
  transition: transform .15s steps(3), box-shadow .15s steps(3);
}
.btn:hover { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--pink); }
.btn.alt { background: transparent; color: var(--ink); box-shadow: 6px 6px 0 var(--sun); }
.btn.alt:hover { box-shadow: 2px 2px 0 var(--sun); }
.services .btn.alt { color: var(--paper); border-color: rgba(243, 245, 251, .55); }
.btn.small { padding: 10px 18px; font-size: .95rem; box-shadow: 4px 4px 0 var(--pink); }
.btn.small:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pink); }
.btn.small.alt { box-shadow: 4px 4px 0 var(--sun); }
.btn.small.alt:hover { box-shadow: 1px 1px 0 var(--sun); }

/* Largeur figée : le menu ne bouge pas d'une page à l'autre */
.nav-cta { min-width: 176px; text-align: center; white-space: nowrap; }

/* ---------- Chip / étiquette ---------- */
.chip {
  display: inline-block; font-weight: 700; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 12px; background: var(--ink); color: var(--paper);
}
.chip.pink { background: var(--pink); color: #fff; }
.chip.sun { background: var(--sun); color: var(--ink); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .25s, box-shadow .25s;
}
.site-nav.scrolled, .site-nav.open {
  background: rgba(243, 245, 251, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 2px 0 var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 16px max(20px, calc((100% - 1120px) / 2));
}
.logo {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  text-decoration: none; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: 10px;
}
.logo-img { height: 22px; width: auto; display: block; }

.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.nav-links a {
  text-decoration: none; padding: 6px 0;
  background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 3px no-repeat;
  transition: background-size .25s steps(5);
}
.nav-links a:hover { background-size: 100% 3px; }
.nav-links a[aria-current="page"] { background-size: 100% 3px; font-weight: 700; }

.burger {
  display: none; width: 46px; height: 46px; flex: none;
  border: 2px solid var(--ink); background: var(--paper); cursor: pointer;
  box-shadow: 3px 3px 0 var(--pink);
  flex-direction: column; align-items: center; justify-content: center;
}
.burger span { display: block; width: 20px; height: 2.5px; background: var(--ink); margin: 2.5px 0; transition: transform .2s, opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; z-index: 49;
  top: 78px; left: 14px; right: 14px;
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--pink); padding: 10px 18px 18px;
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity .28s ease, transform .28s steps(5), visibility 0s linear .28s;
}
.mobile-menu.open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .28s ease, transform .28s steps(5);
}
.mobile-menu a {
  display: block; padding: 14px 4px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  border-bottom: 1.5px solid var(--line);
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s steps(4);
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: .04s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .08s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .12s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .16s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .20s; }
.mobile-menu.open a:nth-child(6) { transition-delay: .24s; }
.mobile-menu a[aria-current="page"] { color: var(--pink); }
.mobile-menu .menu-cta {
  margin-top: 18px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
  text-align: center; box-shadow: 4px 4px 0 var(--sun); font-size: 1.05rem; padding: 12px;
}

/* ---------- Accueil : héro ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 80px; overflow: hidden;
}
#pixels { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; pointer-events: none; }
.hero .wrap a, .hero .wrap button { pointer-events: auto; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(3rem, 9.4vw, 8rem);
  max-width: 11ch;
}
.hero h1 .w { display: inline-block; animation: snap .7s steps(6) both; }
.hero h1 .w:nth-child(1) { animation-delay: .05s; }
.hero h1 .w:nth-child(2) { animation-delay: .15s; }
.hero h1 .w:nth-child(3) { animation-delay: .25s; }
.hero h1 .w:nth-child(4) { animation-delay: .35s; }
.hero h1 .w:nth-child(5) { animation-delay: .45s; }
.hero h1 .w:nth-child(6) { animation-delay: .55s; }
.hero h1 .w:nth-child(7) { animation-delay: .65s; }
.hero h1 .pix { color: var(--pink); }
@keyframes snap {
  from { opacity: 0; transform: translate(-14px, 14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(.5); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- Avatar du héros ---------- */
.hero-avatar {
  width: 96px; height: 96px; object-fit: cover; object-position: center 30%;
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--pink);
  margin-bottom: 26px; display: block;
  animation: pop .6s steps(6) both;
}
@media (max-width: 700px) { .hero-avatar { width: 72px; height: 72px; box-shadow: 4px 4px 0 var(--pink); margin-bottom: 20px; } }
.lede {
  margin-top: 28px; max-width: 34em;
  font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft);
}
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Héros des pages intérieures ---------- */
.page-hero { position: relative; padding: 160px 0 70px; overflow: hidden; }
.page-hero h1 { font-weight: 800; font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 15ch; }
.page-hero .lede { margin-top: 24px; }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 11vw, 130px) 0; }
.sec-title { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.sec-intro { margin-top: 20px; max-width: 38em; color: var(--ink-soft); }
.center-cta { margin-top: 48px; display: flex; justify-content: center; }

/* ---------- Services (section sombre) ---------- */
.services { background: var(--ink); color: var(--paper); }
.services .sec-intro { color: #B9BFE6; }
.grid { margin-top: 56px; display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); }
.card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 32px 30px 34px;
  border: 1.5px solid rgba(243, 245, 251, .22);
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(240, 40, 122, .30), transparent 70%),
    rgba(243, 245, 251, .04);
  grid-column: span 2;
  transition: border-color .2s;
}
.card:hover { border-color: var(--sun); }
.card.big { grid-column: span 4; }
.card h3 { font-size: 1.7rem; margin-bottom: 12px; }
.card.big h3 { font-size: clamp(2rem, 4vw, 2.8rem); }
.card p { color: #C9CEEE; max-width: 34em; }
.card .tag {
  display: inline-block; margin-top: 18px; font-weight: 600; font-size: .92rem;
  padding: 4px 10px; background: var(--sun); color: var(--ink);
}
.card:nth-child(3) { grid-column: span 3; }
.card:nth-child(4) { grid-column: span 3; }
.card:nth-child(5) { grid-column: span 6; }

/* ---------- Projets / portfolio ---------- */
.projects-grid {
  margin-top: 56px; display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.projects-grid.two { grid-template-columns: repeat(4, 1fr); }
.project-card {
  background: #fff; border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(16, 22, 58, .10);
  display: flex; flex-direction: column;
  transition: transform .15s steps(3), box-shadow .15s steps(3);
}
.project-card:hover { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--pink); }
.project-card.hide { display: none; }
.project-media { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--paper); }
.project-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}
.project-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-type {
  font-size: .8rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--pink);
}
.project-body h3 { font-size: 1.5rem; }
.project-body p { color: var(--ink-soft); font-size: .98rem; }
.project-link {
  margin-top: auto; padding-top: 8px; text-decoration: none; font-weight: 700;
  color: var(--ink); border-bottom: 2px solid var(--line); align-self: flex-start;
  transition: border-color .2s;
}
.project-link:hover { border-color: var(--pink); }

/* ---------- Carrousel portfolio ---------- */
.carousel { margin-top: 56px; }
.carousel-viewport { overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; gap: 24px; transition: transform .45s ease; will-change: transform; }
.carousel-track.no-anim { transition: none; }
.carousel .project-card { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; }
.carousel .project-card.clone { pointer-events: none; }
@media (max-width: 1000px) {
  .carousel .project-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 700px) {
  .carousel .project-card { flex-basis: 100%; }
}
.carousel-ui { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 30px; }
.car-arrow {
  flex: none; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--ink); color: var(--ink); cursor: pointer;
  box-shadow: 4px 4px 0 var(--pink);
  transition: transform .15s steps(3), box-shadow .15s steps(3);
}
.car-arrow:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pink); }
.car-arrow:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.car-arrow[disabled] { opacity: .35; cursor: default; transform: none; }
.car-arrow svg { display: block; }
.car-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 62%; }
.car-dots button { width: 13px; height: 13px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; padding: 0; }
.car-dots button.active { background: var(--pink); }
.carousel.empty .carousel-ui { display: none; }
.carousel.as-grid .carousel-track { display: grid; grid-template-columns: repeat(3, 1fr); transform: none; }
.carousel.as-grid .carousel-track .project-card { flex: none; }
.carousel.as-grid .carousel-ui { display: none; }

/* Maquettes d'écran dans les cartes */
.project-media { position: relative; display: flex; flex-direction: column; }
.shot-bar { flex: none; display: flex; gap: 5px; padding: 8px 10px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.shot-bar i { width: 8px; height: 8px; background: var(--pink); }
.shot-bar i:nth-child(2) { background: var(--blue); }
.shot-bar i:nth-child(3) { background: var(--sun); }
.project-media img { flex: 1 1 auto; min-height: 0; }
.shot-phone {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 44px; aspect-ratio: 9 / 16; overflow: hidden;
  border: 2px solid var(--ink); background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}
.shot-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 700px) {
  .shot-phone { width: 38px; right: 10px; bottom: 10px; }
}

/* Défilement doux de la capture dans la fenêtre de la carte */
@keyframes shot-pan {
  from { object-position: 50% 0%; }
  to { object-position: 50% 100%; }
}
.project-media > img { animation: shot-pan 13s ease-in-out infinite alternate paused; }
@media (hover: hover) {
  .project-card:hover .project-media > img,
  .project-card:focus-within .project-media > img { animation-play-state: running; }
}
@media (pointer: coarse) {
  .project-card.pan-live .project-media > img { animation-play-state: running; }
}
@media (prefers-reduced-motion: reduce) {
  .project-media > img { animation: none; }
}

.filters { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--body); font-size: .95rem; font-weight: 600;
  padding: 9px 16px; cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.filter:hover { background: rgba(16, 22, 58, .07); }
.filter.active { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--sun); }

/* ---------- Prendre le temps ---------- */
.pause { background: #E6EAF8; }
.reflect { margin-top: 56px; display: grid; gap: 34px; }
.reflect p {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 21em; padding-left: 26px; border-left: 6px solid var(--pink);
}
.reflect p:nth-child(2) { border-color: var(--blue); }
.reflect p:nth-child(3) { border-color: var(--sun); }
.pause .sec-intro { margin-top: 48px; }
.js .focus { filter: blur(9px); opacity: .25; transition: filter .9s steps(7), opacity .9s steps(7); }
.js .focus.in { filter: blur(0); opacity: 1; }

/* ---------- Méthode ---------- */
.steps { margin-top: 60px; position: relative; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 30px 0; border-top: 2px solid var(--ink);
}
.js .step { opacity: 0; transform: translateY(24px); transition: opacity .5s steps(5), transform .5s steps(5); }
.js .step.in { opacity: 1; transform: none; }
.step:last-child { border-bottom: 2px solid var(--ink); }
.step .n { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--pink); }
.step:nth-child(2) .n { color: var(--blue); }
.step:nth-child(3) .n { color: var(--dark-sun); }
.step:nth-child(4) .n { color: var(--ink); }
.step h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.step p { max-width: 38em; color: var(--ink-soft); }

/* ---------- À propos ---------- */
.about-grid { margin-top: 56px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about-photo {
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--pink);
  aspect-ratio: 1 / 1; overflow: hidden; background: #fff;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; max-width: 36em; }
.about-copy .btn { margin-top: 10px; }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Page tarifs · trois offres ---------- */
.offers-nav { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.offers-nav a {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 9px 18px 9px 9px; box-shadow: 4px 4px 0 rgba(16, 22, 58, .12);
  transition: transform .15s steps(3), box-shadow .15s steps(3);
}
.offers-nav a:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(16, 22, 58, .12); }
.offers-nav .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; font-family: var(--display); font-weight: 800; font-size: .9rem; color: #fff; }
.offers-nav .n1 { background: var(--pink); }
.offers-nav .n2 { background: var(--blue); }
.offers-nav .n3 { background: var(--ink); }
.offer-head { margin-top: 46px; }
.offer-head .sec-title { margin-top: 18px; }
.offer-head .sec-intro { margin-top: 18px; }
#webdesign, #graphisme, #coaching { scroll-margin-top: 96px; }
.offer-list { margin-top: 14px; padding: 0; list-style: none; }
.offer-list li { position: relative; padding-left: 26px; margin: 10px 0; color: var(--ink-soft); }
.offer-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 11px; height: 11px; background: var(--pink); }
.offer-list li:nth-child(2n)::before { background: var(--blue); }
.services .offer-list li { color: #C9CEEE; }

/* ---------- Page à propos ---------- */
.timeline { margin: 48px 0 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 20px 0; border-top: 2px solid var(--line); }
.timeline li:last-child { border-bottom: 2px solid var(--line); }
.timeline h3 { font-size: 1.25rem; margin-bottom: 4px; }
.timeline p { color: var(--ink-soft); max-width: 46em; }
.when { font-family: var(--display); font-weight: 800; font-size: .92rem; color: var(--pink); letter-spacing: .01em; }
.timeline li:nth-child(2n) .when { color: var(--blue); }
.info-block .when { display: block; margin-bottom: 8px; }
.textlink { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--line); }
.textlink:hover { border-color: var(--pink); }
@media (max-width: 620px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Avis clients ---------- */
.quotes { margin-top: 56px; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.quote-card {
  background: #fff; border: 2px solid var(--ink); padding: 28px;
  box-shadow: 8px 8px 0 rgba(16, 22, 58, .10);
  display: flex; flex-direction: column;
}
.quote-card .q { font-family: var(--display); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--pink); }
.quote-card:nth-child(2) .q { color: var(--blue); }
.quote-card:nth-child(3) .q { color: var(--dark-sun); }
.quote-card p { margin: 12px 0 18px; color: var(--ink-soft); }
.quote-card .who { margin-top: auto; font-size: .95rem; }
.quote-card .who strong { display: block; font-size: 1.02rem; }
.quote-card .who a { text-decoration: none; border-bottom: 2px solid var(--line); }
.quote-card .who a:hover { border-color: var(--pink); }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--blue); color: #fff; text-align: left; overflow: hidden; position: relative; }
.cta-band h2 { font-size: clamp(2.4rem, 7vw, 5.4rem); max-width: 13ch; }
.cta-band p { margin-top: 22px; max-width: 32em; color: #DCE4FF; }
.cta-band .btn { margin-top: 34px; background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.cta-band .btn:hover { box-shadow: 2px 2px 0 var(--ink); }
.cta-band .deco {
  position: absolute; right: -40px; bottom: -40px; width: 340px; height: 340px; opacity: .9;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; transform: rotate(8deg);
}
.cta-band .deco span { background: rgba(255, 255, 255, .13); animation: blink 3.2s steps(2) infinite; }
.cta-band .deco span:nth-child(3n) { background: var(--pink); animation-delay: -.8s; }
.cta-band .deco span:nth-child(5n) { background: var(--sun); animation-delay: -1.7s; }
.cta-band .deco span:nth-child(7n) { animation-delay: -2.4s; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }

/* ---------- Actualités ---------- */
.news-list { margin-top: 56px; display: grid; gap: 22px; max-width: 900px; }
.news-item {
  background: #fff; border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(16, 22, 58, .10);
  display: grid; grid-template-columns: 150px 1fr;
}
.news-date {
  padding: 24px 18px; border-right: 2px solid var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  font-family: var(--display); text-align: center;
}
.news-date b { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.news-date span { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-date small { font-size: .85rem; font-weight: 600; }
.news-item:nth-child(3n+1) .news-date { background: var(--pink); color: #fff; }
.news-item:nth-child(3n+2) .news-date { background: var(--blue); color: #fff; }
.news-item:nth-child(3n)   .news-date { background: var(--sun); color: var(--ink); }
.news-content { padding: 26px 28px; }
.news-content h3 { font-size: 1.65rem; margin: 12px 0 10px; }
.news-content p { color: var(--ink-soft); margin-bottom: 12px; }
.news-content p:last-child { margin-bottom: 0; }

/* ---------- Tarifs ---------- */
.pricing-grid { margin-top: 56px; display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card {
  background: #fff; border: 2px solid var(--ink); padding: 30px 28px;
  position: relative; display: flex; flex-direction: column;
  box-shadow: 8px 8px 0 rgba(16, 22, 58, .10);
}
.price-card.featured { background: var(--ink); color: var(--paper); box-shadow: 8px 8px 0 var(--pink); }
.price-tag {
  position: absolute; top: -15px; right: 18px;
  background: var(--sun); color: var(--ink); font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px;
}
.price-card h3 { font-size: 1.6rem; }
.price-card .sub { margin-top: 8px; font-size: .95rem; color: var(--ink-soft); }
.featured .sub { color: #C9CEEE; }
.price { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; margin: 22px 0 4px; }
.price small { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; margin-top: 4px; }
.featured .price small { color: #9BA3D6; }
.price-card ul { list-style: none; margin: 22px 0 26px; padding: 0; }
.price-card li { position: relative; padding-left: 26px; margin: 9px 0; color: var(--ink-soft); }
.featured li { color: #C9CEEE; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 11px; height: 11px; background: var(--pink);
}
.featured li::before { background: var(--sun); }
.price-note { margin-top: auto; border-top: 1.5px solid var(--line); padding-top: 16px; font-size: .9rem; color: var(--ink-soft); }
.featured .price-note { border-color: rgba(243, 245, 251, .22); color: #9BA3D6; }
.price-pay { margin-top: 10px; font-size: .88rem; font-weight: 600; color: #C9CEEE; }

.two-col { margin-top: 56px; display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.two-col + .two-col { margin-top: 22px; }
.info-block { background: #fff; border: 2px solid var(--ink); padding: 30px 28px; box-shadow: 8px 8px 0 rgba(16, 22, 58, .10); }
.pricing-grid + .info-block { margin-top: 44px; }
.two-col + .info-block { margin-top: 44px; }
.info-block + .info-block { margin-top: 44px; }
.two-col .info-block + .info-block { margin-top: 0; }
.info-block h3 { font-size: 1.6rem; }
.info-block .big { font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; margin: 14px 0 8px; color: var(--pink); }
.info-block:nth-child(2n) .big { color: var(--blue); }
.info-block p { color: var(--ink-soft); }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.mini { background: var(--paper); border: 1.5px solid var(--line); padding: 14px 16px; }
.mini strong { display: block; font-size: .98rem; }
.mini span { color: var(--ink-soft); font-size: .88rem; }

.terms { background: var(--ink); color: var(--paper); padding: 44px; box-shadow: 10px 10px 0 var(--sun); }
.terms h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 22ch; }
.terms ul { margin: 24px 0 0; padding: 0; list-style: none; }
.terms li { position: relative; padding-left: 28px; margin: 11px 0; color: #C9CEEE; }
.terms li::before { content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; background: var(--pink); }

/* ---------- Contact ---------- */
.contact-layout { margin-top: 56px; display: grid; gap: 24px; grid-template-columns: .9fr 1.1fr; align-items: start; }
.contact-info {
  background: var(--ink); color: var(--paper); padding: 34px 30px;
  box-shadow: 10px 10px 0 var(--pink);
}
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.contact-info > p { color: #C9CEEE; margin-bottom: 10px; }
.contact-row { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1.5px solid rgba(243, 245, 251, .16); }
.contact-row .k { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #8F96C4; font-weight: 700; }
.contact-row a, .contact-row .v { color: var(--paper); text-decoration: none; font-size: 1.12rem; font-weight: 600; width: fit-content; }
.contact-row a { border-bottom: 2px solid transparent; transition: border-color .2s; }
.contact-row a:hover { border-color: var(--pink); }
.contact-note { margin-top: 18px; font-size: .92rem; color: #9BA3D6; }

.form-card { background: #fff; border: 2px solid var(--ink); padding: 34px 30px; box-shadow: 10px 10px 0 var(--sun); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .98rem; }
.field .optional { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); font: inherit; border-radius: 0;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); margin: 4px 0 20px; }
.consent input { width: 20px; height: 20px; accent-color: var(--pink); margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; font-weight: 600; border: 2px solid; }
.form-status.ok { display: block; border-color: #1A7F4B; color: #14683B; background: #E9F7EF; }
.form-status.err { display: block; border-color: var(--pink); color: #C1155D; background: #FDECF3; }
.form-status a { color: inherit; }
.form-alt { margin-top: 16px; font-size: .92rem; color: var(--ink-soft); }
.form-alt a { font-weight: 600; border-bottom: 2px solid var(--line); }
.form-alt a:hover { border-color: var(--pink); }

/* ---------- Pied de page ---------- */
footer { background: var(--ink); color: #C9CEEE; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin-top: 16px; max-width: 30em; font-size: .98rem; }
.footer-col h4 { font-size: 1.05rem; margin-bottom: 14px; color: var(--paper); }
.footer-col a, .footer-col span { display: block; padding: 5px 0; text-decoration: none; width: fit-content; font-size: .98rem; }
.footer-col a { border-bottom: 2px solid rgba(243, 245, 251, .22); transition: border-color .2s; }
.footer-col a:hover { border-color: var(--pink); }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1.5px solid rgba(243, 245, 251, .18);
  display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between;
  font-size: .92rem; color: #8F96C4;
}

/* ---------- Apparitions au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s steps(6), transform .55s steps(6); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Retour en haut ---------- */
.back-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); cursor: pointer;
  box-shadow: 4px 4px 0 var(--pink);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .22s ease, transform .22s steps(4), visibility 0s linear .22s;
}
.back-top.visible {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s ease, transform .22s steps(4);
}
.back-top:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--pink); }
.back-top:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
html:has(#mobile-menu.open) .back-top { opacity: 0; visibility: hidden; }

/* ---------- WhatsApp flottant ---------- */
.chat-btn {
  position: fixed; left: 18px; bottom: 18px; z-index: 60;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .22s ease, transform .22s steps(4), visibility 0s linear .22s;
}
.chat-btn.visible {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s ease, transform .22s steps(4);
}
.chat-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.chat-btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.chat-btn svg { width: 26px; height: 26px; display: block; }
html:has(#mobile-menu.open) .chat-btn { opacity: 0; visibility: hidden; }

/* ---------- Contact · portrait ---------- */
.contact-portrait { width: 78px; height: 78px; overflow: hidden; border: 2px solid var(--paper); box-shadow: 4px 4px 0 var(--pink); margin-bottom: 16px; }
.contact-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 42px; max-width: 880px; }
.faq-list details { border: 2px solid var(--ink); background: #fff; box-shadow: 6px 6px 0 rgba(16, 22, 58, .08); padding: 0 22px; margin-bottom: 12px; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--pink); transition: transform .2s steps(3); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-soft); padding: 0 0 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .projects-grid, .projects-grid.two { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 640px; }
  .quotes { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .grid { grid-template-columns: 1fr; }
  .card, .card.big, .card:nth-child(3), .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
  .step { grid-template-columns: 56px 1fr; gap: 14px; }
  .step .n { font-size: 2.4rem; }
  .cta-band .deco { width: 220px; height: 220px; right: -60px; opacity: .6; }
  .projects-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .page-hero { padding-top: 130px; }
  .news-item { grid-template-columns: 1fr; }
  .news-date { flex-direction: row; align-items: baseline; justify-content: center; gap: 8px; border-right: 0; border-bottom: 2px solid var(--ink); padding: 14px; }
  .news-date b { font-size: 1.9rem; }
  .news-date span, .news-date small { font-size: .85rem; }
  .form-row { grid-template-columns: 1fr; }
  .terms { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .mini-grid { grid-template-columns: 1fr; }
  .filters { gap: 8px; }
  .filter { padding: 8px 12px; font-size: .9rem; }
  .back-top { width: 46px; height: 46px; right: 12px; bottom: 12px; }
  .chat-btn { width: 46px; height: 46px; left: 12px; bottom: 12px; }
  .chat-btn svg { width: 24px; height: 24px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .w, .hero-avatar, .cta-band .deco span { animation: none; }
  .js .step, .js .focus, .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .btn, .nav-links a, .project-card, .filter, .carousel-track, .car-arrow { transition: none; }
  .mobile-menu, .mobile-menu a, .back-top, .chat-btn, .offers-nav a { transition: none; }
}
