@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #14213D;
  --ink-70: #14213Db3;
  --ivory: #F4F4F2;
  --paper: #FFFFFF;
  --brass: #A9812F;
  --brass-soft: #A9812F26;
  --muted: #6B6B63;
  --line: #DAD7CB;
  --danger: #B3261E;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 168px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  animation: brand-in 1.4s cubic-bezier(.2,.7,.3,1) forwards .2s;
}

.brand svg { height: 140px; width: auto; display: block; position: relative; z-index: 1; }

.brand::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -70%;
  width: 38%;
  height: 140%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(169, 129, 47, 0) 30%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(169, 129, 47, 0) 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 2;
  animation: brand-shine 11s ease-in-out infinite;
  animation-delay: 2.2s;
}

@keyframes brand-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brand-shine {
  0%   { left: -70%; }
  16%  { left: 130%; }
  100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand { opacity: 1; transform: none; animation: none; }
  .brand::after { display: none; }
}

.brand-word {
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-word span {
  color: var(--muted);
  font-weight: 500;
}

nav.main-nav {
  display: flex;
  gap: 36px;
}

nav.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

nav.main-nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

h1.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

h1.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-70);
  max-width: 46ch;
  margin: 0 0 34px;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover { transform: translateY(-1px); background: #1c2c50; }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

/* Hero mark: engraved line-draw */

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mark svg { width: 100%; max-width: 260px; height: auto; }

.mark-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw 3.6s ease forwards .4s;
}

.mark-bolt {
  fill: var(--brass);
  opacity: 0;
  animation: appear 1s ease forwards 3.4s;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .mark-line { animation: none; stroke-dashoffset: 0; }
  .mark-bolt { animation: none; opacity: 1; }
}

/* ---------- Sections ---------- */

section { padding: 88px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

h2.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0;
  letter-spacing: -0.01em;
}

.section-note {
  font-size: 15px;
  color: var(--muted);
  max-width: 34ch;
  text-align: right;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.about-grid p { color: var(--ink-70); font-size: 16px; }

.values {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.values li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: baseline;
}

.values .mark {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 13px;
}

.values strong { font-family: var(--body); font-weight: 700; }
.values span.desc { color: var(--muted); display: block; font-size: 14.5px; margin-top: 2px; }

/* Projects */

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

.project-card {
  background: var(--paper);
  border: 1px solid #EDEBE2;
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04), 0 10px 28px rgba(20, 33, 61, 0.06);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.project-card:not(.placeholder):hover {
  border-color: var(--brass);
  transform: translateY(-3px);
  box-shadow: 0 2px 6px rgba(20, 33, 61, 0.06), 0 18px 44px rgba(20, 33, 61, 0.11);
}


.status-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  background: var(--brass-soft);
  color: var(--brass);
}

.project-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
}

.project-card-top .status-tag {
  align-self: center;
}

.project-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 1px 3px rgba(20, 33, 61, 0.14), 0 4px 10px rgba(20, 33, 61, 0.12);
}

.project-logo-wordmark {
  height: 40px;
  width: auto;
  max-width: 55%;
  display: block;
  flex-shrink: 0;
}

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

.project-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  flex-grow: 1;
}

.project-card.placeholder {
  border-style: dashed;
  border-color: var(--line);
  box-shadow: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--muted);
}

.project-card.placeholder .status-tag {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--brass); }

.footer-copy {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Legal / Privacy page ---------- */

.legal {
  padding: 64px 0 96px;
  max-width: 760px;
}

.legal h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 40px;
  display: block;
}

.legal h2 {
  font-family: var(--body);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass);
  margin: 44px 0 12px;
}

.legal p, .legal li { color: var(--ink-70); font-size: 15.5px; }
.legal ul { padding-left: 20px; }

.app-policy-block {
  border-left: 2px solid var(--brass);
  padding-left: 20px;
  margin: 20px 0;
}

.legal .lead { font-size: 16.5px; color: var(--ink); }

/* ---------- Bilingue FR / EN ---------- */

html[data-lang="fr"] [data-lang="en"],
html[data-lang="en"] [data-lang="fr"] { display: none !important; }

.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-switch button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }

/* ---------- Page contact / demande de devis ---------- */

.contact-page { padding: 56px 0 100px; }

.contact-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 52px;
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: 190px;
  align-self: start;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.contact-aside h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.contact-intro {
  font-size: 15px;
  color: var(--ink-70);
  line-height: 1.6;
  margin: 0 0 32px;
}
.contact-aside h2 {
  font-family: var(--body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin: 0 0 18px;
}
.steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 16px; }
.steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 13px;
  align-items: start;
  font-size: 14.5px;
  color: var(--ink-70);
  line-height: 1.5;
}
.step-n {
  font-family: var(--mono);
  font-size: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brass);
}
.contact-direct { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.contact-direct a { color: var(--brass); font-weight: 600; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: var(--paper);
  border: 1px solid #EDEBE2;
  border-radius: 8px;
  padding: 36px;
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04), 0 12px 32px rgba(20, 33, 61, 0.06);
}

.contact-form fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.contact-form fieldset:last-of-type { margin-bottom: 18px; }
.contact-form legend {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 18px;
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label,
.field .field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .opt { font-weight: 400; color: var(--muted); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.contact-form textarea { resize: vertical; min-height: 128px; line-height: 1.55; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--brass-soft);
}
.contact-form [aria-invalid="true"] { border-color: var(--danger); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-70);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-selected { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.field-hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.field-error { font-size: 12.5px; color: var(--danger); font-weight: 500; margin: 6px 0 0; }

.field.consent label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-70);
  line-height: 1.5;
  margin-bottom: 0;
  cursor: pointer;
}
.field.consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--brass);
}
.field.consent a { color: var(--brass); font-weight: 600; }

.form-error-banner {
  background: #FBEAE8;
  border: 1px solid #E7B7B1;
  color: #8A2015;
  border-radius: 5px;
  padding: 11px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

#submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
}
#submit-btn:disabled { opacity: .7; cursor: progress; }

.form-foot { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-success { text-align: center; padding: 28px 8px; }
.contact-success-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--brass-soft);
  color: var(--brass);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.contact-success h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
}
.contact-success p { color: var(--ink-70); font-size: 15px; margin: 0; line-height: 1.6; }
.contact-success a { color: var(--brass); font-weight: 600; text-decoration: none; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .site-header .wrap { height: auto; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .brand svg { height: 72px; }
  .header-right { width: 100%; justify-content: space-between; gap: 16px; }
  nav.main-nav { gap: 20px; flex-wrap: wrap; }
  nav.main-nav a { font-size: 13px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { order: -1; max-width: 160px; margin: 0 auto 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-note { text-align: left; }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .contact-aside { position: static; max-height: none; overflow: visible; }
  .contact-form-wrap { padding: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
