/* Smart Pixel — feuille de style partagée (ES / FR / EN) */

/* Polices auto-hébergées (licence SIL OFL, voir /assets/fonts/) */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-600-latin.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/work-sans-400-latin.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/work-sans-500-latin.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/assets/fonts/work-sans-600-latin.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #0f1f18;
  --bone: #f4f1e8;
  --pine: #1c5d4c;
  --pine-deep: #123f34;
  --amber: #e0a53c;
  --mute: #5f665f;
  --line: #dcd8ca;
  --on-dark: #cdd6cd;
  --on-dark-mute: #b7c3bb;
  --white: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .h2, .h3, .h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 100px 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.h2 { font-size: 40px; }
.h3 { font-size: 22px; }
.h4 { font-size: 18px; }
.section-lead { margin-top: 16px; color: var(--mute); max-width: 520px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 28px;
  font: 500 15px/1.2 var(--sans);
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 14px; }
.btn-primary { background: var(--pine); color: var(--bone); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-accent { background: var(--amber); color: var(--pine-deep); }
.btn-accent:hover { background: #d19530; }
.btn-outline-light { border-color: rgba(244, 241, 232, .45); color: var(--bone); }
.btn-outline-light:hover { border-color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.tag {
  display: inline-block; font-size: 13px; line-height: 1.4;
  color: var(--pine); border: 1px solid var(--pine);
  padding: 4px 12px; border-radius: 999px;
}

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 232, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.logo { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-links, .lang-switch, .footer-links { list-style: none; display: flex; }
.nav-links { gap: 30px; font-size: 14px; }
.nav-links a:hover { color: var(--pine); }
.lang-switch { gap: 4px; font-size: 13px; }
.lang-switch a { display: inline-block; padding: 6px 8px; color: var(--mute); border-radius: 6px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

/* Hero */
.hero { background: var(--pine); color: var(--bone); padding: 120px 0 110px; }
.hero-kicker { font-size: 14px; color: var(--amber); margin-bottom: 24px; }
.hero h1 { font-size: 64px; line-height: 1.06; max-width: 820px; }
.hero-lead { margin-top: 28px; font-size: 19px; color: var(--on-dark); max-width: 580px; }

/* Piliers */
.pillars { padding: 72px 0; }
.pillars p { margin-top: 12px; color: var(--mute); }

/* Services */
.services { margin-top: 52px; }
.service { display: block; border-top: 2px solid var(--pine); padding-top: 20px; }
.service p { margin-top: 10px; font-size: 14px; color: var(--mute); }
.service-accent { border-top-color: var(--amber); }
.service-link .more {
  display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--pine);
  text-decoration: underline; text-underline-offset: 3px;
}
.service-link:hover .more { color: var(--pine-deep); text-decoration-thickness: 2px; }

/* Packs */
.packs { margin-top: 52px; align-items: stretch; }
.pack {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.pack-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pack-name { font-size: 19px; }
.pack-sub { font-size: 13px; color: var(--mute); margin-top: 4px; }
.pack-price { font-family: var(--serif); font-size: 34px; font-weight: 600; margin-top: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pack-price span { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--mute); }
.pack ul { padding-left: 18px; margin: 18px 0 28px; font-size: 14px; color: var(--mute); line-height: 1.9; flex-grow: 1; }
.pack .btn { align-self: flex-start; }
.pack-featured { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.pack-featured .pack-sub, .pack-featured .pack-price span { color: var(--on-dark-mute); }
.pack-featured .pack-price { border-bottom-color: rgba(244, 241, 232, .2); }
.pack-featured ul { color: var(--on-dark); }
.badge { font-size: 12px; color: var(--pine-deep); background: var(--amber); padding: 3px 10px; border-radius: 999px; }
.fine-print { margin-top: 24px; font-size: 13px; color: var(--mute); }

/* Projets */
.projects { margin-top: 52px; }
.project { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.project-visual {
  height: 180px; background: var(--pine); color: var(--bone);
  display: flex; align-items: flex-end; padding: 22px;
  font-family: var(--serif); font-size: 26px; font-weight: 600;
}
.project-visual-dark { background: var(--pine-deep); }
.project-body { padding: 22px; }
.project-body .h4 { margin-top: 14px; font-size: 19px; }
.project-next {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 262px; padding: 28px; background: transparent;
  border: 1px dashed #b9b4a4; color: var(--mute); font-size: 15px;
}
.project-next:hover { border-color: var(--pine); color: var(--pine); }

/* Agence */
.agency { align-items: center; gap: 56px; }
.timeline { list-style: none; background: var(--pine-deep); color: var(--bone); border-radius: 16px; padding: 18px 40px; }
.timeline li {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid rgba(244, 241, 232, .15);
}
.timeline li:last-child { border-bottom: 0; }
.timeline-year { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--amber); line-height: 1.2; }
.timeline-title { font-weight: 600; font-size: 15px; }
.timeline li p + p { font-size: 14px; color: var(--on-dark-mute); margin-top: 4px; }
.agency-title { font-size: 38px; max-width: 460px; margin-top: 20px; }
.agency-text { margin-top: 20px; color: var(--mute); max-width: 480px; }
.stats { display: flex; gap: 40px; margin-top: 32px; }
.stat-num { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--pine); }
.stat-label { font-size: 13px; color: var(--mute); }
.callout { margin-top: 32px; padding: 22px 24px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); max-width: 480px; }
.callout-title { font-weight: 600; }
.callout p + p { margin-top: 6px; font-size: 14px; color: var(--mute); }

/* Contact */
.contact { background: var(--ink); color: var(--bone); padding: 100px 0; }
.contact-grid { gap: 56px; }
.contact-lead { margin-top: 16px; color: var(--on-dark-mute); max-width: 420px; }
.contact-details { list-style: none; margin-top: 32px; font-size: 15px; color: var(--on-dark-mute); line-height: 2.1; }
.contact-details a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(244, 241, 232, .4); }
.contact-details a:hover { text-decoration-color: var(--amber); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-size: 13px; color: var(--on-dark-mute); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 15px;
  font: 400 15px/1.4 var(--sans); color: var(--bone);
  background: rgba(244, 241, 232, .06); border: 1px solid rgba(244, 241, 232, .3); border-radius: 8px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--on-dark-mute) 50%), linear-gradient(135deg, var(--on-dark-mute) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { color: var(--ink); background: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(224, 165, 60, .35); }
.field-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--on-dark); }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); flex-shrink: 0; }
.field-check a { text-decoration: underline; text-underline-offset: 3px; }
.legal-info { font-size: 12px; line-height: 1.5; color: #9fb0a6; }
.contact-form .btn { align-self: flex-start; }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.is-success { color: #9fd9b4; }
.form-status.is-error { color: #f3b7a1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page */
.site-footer { background: var(--pine-deep); color: #9fb0a6; padding: 32px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer-links { gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--bone); }

/* Tablette */
@media (max-width: 1020px) {
  .nav-links { gap: 20px; }
  .site-nav { gap: 20px; }
  .hero h1 { font-size: 52px; }
}

/* Mobile */
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .h2 { font-size: 32px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px var(--gutter) 24px; background: var(--bone); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; font-size: 17px; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lang-switch { padding: 8px 0; }
  .lang-switch a { padding: 10px 12px; font-size: 15px; }
  .site-nav .btn { align-self: stretch; }

  .hero { padding: 72px 0 76px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .btn-row .btn { flex: 1 1 100%; }

  .pillars { padding: 56px 0; }
  .pillars .grid-3 { gap: 32px; }
  .services, .packs, .projects { margin-top: 40px; }
  .services { gap: 28px; }

  .project-next { min-height: 140px; }
  .agency { gap: 48px; }
  .agency > div { order: -1; }
  .timeline { padding: 8px 24px; }
  .timeline li { grid-template-columns: 72px 1fr; gap: 14px; }
  .timeline-year { font-size: 22px; }
  .agency-title { font-size: 32px; }

  .contact { padding: 72px 0; }
  .contact-grid { gap: 40px; }
  .contact-form .btn { align-self: stretch; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Pages internes ===== */

.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--on-dark-mute); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--bone); }

/* Page service */
.hero-service { padding: 48px 0 104px; }
.hero-service-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: end; margin-top: 64px; }
.hero-service h1 { font-size: 58px; }
.hero-facts { border: 1px solid rgba(244, 241, 232, .2); border-radius: var(--radius); padding: 8px 28px; list-style: none; }
.hero-facts li { padding: 18px 0; border-bottom: 1px solid rgba(244, 241, 232, .15); }
.hero-facts li:last-child { border-bottom: 0; }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--amber); line-height: 1.2; }
.hero-facts span { font-size: 14px; color: var(--on-dark-mute); }

.offer-grid { margin-top: 52px; gap: 24px; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.offer h3 { font-size: 24px; }
.offer p { margin-top: 12px; color: var(--mute); }
.offer .offer-plan { margin-top: 18px; font-size: 14px; color: var(--ink); font-weight: 500; }

.included { gap: 64px; align-items: start; }
.included-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 36px; list-style: none; }
.included-list p { margin-top: 8px; font-size: 14px; color: var(--mute); }

.process { background: var(--pine-deep); color: var(--bone); }
.process .section-lead { color: var(--on-dark-mute); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps { list-style: none; margin-top: 56px; counter-reset: step; }
.steps li { border-top: 2px solid var(--amber); padding-top: 22px; counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--amber); line-height: 1.2; }
.steps h3 { font-size: 19px; margin-top: 10px; }
.steps p { margin-top: 10px; font-size: 14px; color: var(--on-dark-mute); }

.pricing { margin-top: 48px; gap: 24px; }
.pricing .pack { padding: 34px; }
.pricing .pack-name { font-size: 22px; }
.pricing .pack-sub { font-size: 14px; }
.pricing .pack-price { font-size: 40px; }
.pricing .pack ul { font-size: 15px; }
.pack-price .from { font-family: var(--sans); font-size: 17px; font-weight: 400; }

.faq { gap: 64px; align-items: start; grid-template-columns: .7fr 1.3fr; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-child { padding-top: 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.3; }
.faq details p { margin-top: 12px; color: var(--mute); max-width: 680px; }

/* Pages légales */
.page-hero { background: var(--pine); color: var(--bone); padding: 48px 0 72px; }
.page-hero h1 { font-size: 48px; margin-top: 40px; max-width: 820px; }
.page-hero .updated { margin-top: 16px; font-size: 14px; color: var(--on-dark-mute); }
.prose { max-width: 740px; padding: 72px 0 100px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 14px; color: #33403a; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.prose dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 20px; margin: 0 0 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; color: #33403a; }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound h1 { font-size: 56px; }
.notfound p { margin-top: 16px; color: var(--mute); max-width: 520px; }
.notfound .lang-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.notfound .lang-blocks a { color: var(--pine); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .hero-service { padding: 32px 0 72px; }
  .hero-service-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .hero-service h1 { font-size: 38px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .included-list { grid-template-columns: 1fr; gap: 22px; }
  .included, .faq { grid-template-columns: 1fr; gap: 32px; }
  .offer { padding: 26px; }
  .page-hero h1 { font-size: 34px; margin-top: 28px; }
  .prose { padding: 48px 0 72px; }
  .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .prose dd { margin-bottom: 10px; }
  .notfound h1 { font-size: 40px; }
  .notfound .lang-blocks { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
.pack-price.pack-price-text { font-size: 28px; line-height: 1.25; }
.notfound .lang-blocks p + p { margin-top: 6px; }
/* Pied de page toujours en bas, même sur une page courte */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }

/* Encadré explicatif à côté d'un tarif unique */
.pricing-aside { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; align-self: start; }
.pricing-aside h3 { font-size: 22px; }
.pricing-aside p { margin-top: 12px; color: var(--mute); }

/* Autres services (bas des pages services) */
.related .services { margin-top: 40px; }
.related .service { padding-bottom: 4px; }
.related .service .more { margin-top: 8px; }
.services { row-gap: 44px; }
