/* ==========================================================================
   Cédric Louard Architecte — feuille de style
   ========================================================================== */

:root {
  --bg: #0C0B07;          /* noir du logo */
  --bg-raised: #15130E;   /* bandes sombres */
  --surface: #1C1A14;     /* fonds d'images */
  --line: #2E2A22;        /* filets */
  --line-strong: #4A4436; /* bordures de champs */
  --text: #EDE6D8;        /* ivoire */
  --text-2: #C9C2B4;      /* texte secondaire */
  --muted: #A39C8E;       /* légendes */
  --gold: #DCB271;        /* doré du logo */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 32px;
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--gold); color: var(--bg); padding: 10px 16px; text-decoration: none;
}
.skip:focus { left: 8px; }

/* ---------- Typographie ---------- */
.eyebrow {
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
}
.display-xl {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em;
  font-size: clamp(44px, 6vw, 84px); line-height: 1.02;
}
.display-xl em, .display-md em { font-style: italic; color: var(--gold); }
.display-lg { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
.display-md { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.08; }
.display-sm { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.serif { font-family: var(--serif); }
.lead { font-size: 18px; color: var(--text-2); }
.text-2 { color: var(--text-2); }
.muted { color: var(--muted); font-size: 15px; }
.caption { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 400; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-primary:hover { background: #E8C58B; color: var(--bg); }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--gold); }
.link-arrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
  text-decoration: none; border-bottom: 1px solid var(--gold);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 22px; padding-bottom: 22px;
}
.brand img { height: 64px; width: auto; }
.main-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400;
}
.main-nav a { text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; }
.main-nav a.is-active { color: var(--gold); border-bottom-color: var(--gold); }
.main-nav a.lang { color: var(--muted); }
.main-nav a.lang:hover { color: var(--gold); }

/* ---------- Mises en page ---------- */
.section { padding-top: var(--section); padding-bottom: var(--section); }
.band { background: var(--bg-raised); }
.rule-top { border-top: 1px solid var(--line); }
.rule-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.hero {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end;
  padding-top: clamp(56px, 8vw, 96px); padding-bottom: 64px;
}
.hero-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.split { display: flex; flex-wrap: wrap; gap: 64px; }
.split-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-aside .display-lg { font-size: clamp(30px, 3vw, 40px); hyphens: auto; -webkit-hyphens: auto; }
.split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

.stack { display: flex; flex-direction: column; gap: 20px; }
.head-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 56px;
}

.hero-figure { display: flex; flex-direction: column; gap: 14px; }
.hero-figure img { width: 100%; height: clamp(320px, 48vw, 640px); object-fit: cover; }
.hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.wide-img { width: 100%; height: clamp(260px, 36vw, 480px); object-fit: cover; }

/* ---------- Typologies ---------- */
.typo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.typo { padding: 48px 32px 48px 0; display: flex; flex-direction: column; gap: 14px; }
.typo .num { font-family: var(--serif); font-size: 22px; color: var(--gold); }
.typo h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }

/* ---------- Cartes projets ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 32px; }
.cards-fill { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 56px 32px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 18px; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.cards-fill .card img { aspect-ratio: 4 / 3; }
.card-meta { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.card-row { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; }
.card-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--text); }
.cards-fill .card-title { font-size: 26px; }
.card-year { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; }
.card:hover .card-title { color: var(--gold); }
.card[hidden] { display: none; }

/* ---------- Filtres ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 44px; padding: 0 22px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--text); font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer;
}
.filters button:hover { border-color: var(--gold); }
.filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.no-js .filter-bar { display: none; }

/* ---------- Listes en lignes ---------- */
.rows li {
  display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 26px 0;
  border-top: 1px solid var(--line); align-items: baseline;
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .n { flex: 0 0 48px; font-family: var(--serif); font-size: 20px; color: var(--gold); }
.rows .t { flex: 1 1 260px; font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.rows .d { flex: 1 1 300px; font-size: 15px; color: var(--muted); }

.list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.list-grid li { padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.list-grid .t { font-family: var(--serif); font-size: 24px; line-height: 1.25; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.pillar { border-top: 1px solid var(--gold); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; }

.timeline li { display: flex; gap: 32px; padding: 20px 0; border-top: 1px solid var(--line); align-items: baseline; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .y { flex: 0 0 72px; font-family: var(--serif); font-size: 24px; color: var(--gold); }
.timeline .d { flex: 1 1 auto; min-width: 0; color: var(--text-2); font-size: 16px; }

.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.phases li { display: flex; flex-direction: column; gap: 10px; padding: 28px 0 36px; border-top: 1px solid var(--line); }
.phases .n { font-family: var(--serif); font-size: 22px; color: var(--gold); }
.phases .t { font-family: var(--serif); font-size: 26px; line-height: 1.2; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; }

/* ---------- Agence : portrait ---------- */
.agence-hero { align-items: center; padding-bottom: clamp(72px, 9vw, 112px); }
.portrait { flex: 1 1 300px; min-width: 0; max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.portrait-frame { padding: 0 16px 16px 0; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Bandeau d'appel et pied de page ---------- */
.site-footer { background: var(--bg-raised); border-top: 1px solid #3A3427; }
.cta {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; justify-content: space-between;
  padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px);
}
.cta-text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.cta-text .lead { max-width: 620px; }
.cta .btn { min-height: 52px; padding: 0 30px; }
.footer-bar { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between;
  padding-top: 32px; padding-bottom: 32px; font-size: 13px; color: var(--muted);
}
.footer-inner a { color: var(--muted); text-underline-offset: 3px; }
.footer-inner a:hover { color: var(--gold); }

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-bottom: var(--section); }
.contact-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.info-block { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 24px; }
.info-block:first-child { border-top-color: var(--gold); }
.info-label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.info-value { font-family: var(--serif); font-size: 26px; line-height: 1.3; text-decoration: none; }
a.info-value { min-height: 44px; display: inline-flex; align-items: center; }
.reveal-btn {
  align-self: flex-start; min-height: 44px; padding: 0 18px; background: transparent;
  border: 1px solid var(--line-strong); color: var(--text); font-family: var(--sans); font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.reveal-btn:hover { border-color: var(--gold); }
.map { width: 100%; height: 280px; border: 1px solid var(--line); filter: grayscale(1) invert(0.92) contrast(0.85); }

.form {
  flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px;
  background: var(--bg-raised); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px);
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 0; min-height: 48px; padding: 0 14px; width: 100%;
}
.field textarea { padding: 12px 14px; min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field .req { color: var(--gold); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--gold); flex: 0 0 auto; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border: 1px solid var(--line-strong); font-size: 15px; }
.notice-ok { border-color: var(--gold); color: var(--text); }
.notice-err { border-color: #C8705A; color: #F0C2B4; }
.notice ul { margin-top: 6px; padding-left: 18px; list-style: disc; }

/* ---------- Petits écrans ---------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .brand img { height: 52px; }
  .main-nav { gap: 4px 22px; font-size: 12px; }
  .split, .contact-grid, .two-col { gap: 40px; }
  .typo { padding: 32px 0; border-top: 1px solid var(--line); }
  .typo:first-child { border-top: 0; }
  .timeline li { gap: 20px; }
  .timeline .y { flex-basis: 56px; font-size: 21px; }
}

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