/* ==========================================================================
   Dilcap - feuille de style unique
   1. Polices  2. Jetons  3. Base  4. En-tete  5. Heros  6. Blocs
   7. Formulaire  8. Pied de page  9. Utilitaires  10. Responsive
   ========================================================================== */

/* 1. Polices ------------------------------------------------------------- */
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/source-serif-4-latin-var.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Jetons -------------------------------------------------------------- */
:root {
  --ink: #0A1C33;
  --navy: #143C72;
  --navy-mid: #123055;
  --brass: #8A6A30;
  --brass-light: #C6A961;
  --stone: #F4F1EC;
  --stone-2: #E7E2D9;
  --line: #D9D3C7;
  --line-dark: rgba(255, 255, 255, .16);
  --muted: #5C6675;
  --body: #33404F;
  --white: #fff;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 9vw, 116px);
  --header-h: 72px;
}

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }
p { margin: 0 0 1.1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brass); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--section); }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: #C9D4E4; }
.section--ink h2, .section--ink h3 { color: var(--white); }

.eyebrow {
  font-size: .69rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass);
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: var(--brass-light); }

.rule { width: 56px; height: 2px; background: var(--brass); border: 0; margin: 0 0 1.6rem; }
.rule--light { background: var(--brass-light); }

.lead { font-size: clamp(1.05rem, 1.9vw, 1.28rem); line-height: 1.6; color: var(--body); }
.section--ink .lead { color: #C9D4E4; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--brass { background: var(--brass-light); color: var(--ink); }
.btn--brass:hover { background: #D8BE7C; color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .38); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); border-color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--ink); color: var(--white); }
.btn + .btn { margin-left: 10px; }

/* 4. En-tete ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
}
.site-header__logo img { height: 30px; width: auto; }
.site-header__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: .015em;
}
.nav__list { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav__link {
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 500;
  color: #D6DEE9;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}
.nav__link:hover { color: var(--white); border-bottom-color: var(--brass-light); }
.nav__link[aria-current="page"] { color: var(--white); border-bottom-color: var(--brass-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 2px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--white); }
.nav-toggle span + span { margin-top: 5px; }

/* 5. Heros --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy-mid);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(10, 28, 51, .95) 0%, rgba(10, 28, 51, .86) 44%, rgba(18, 48, 85, .62) 100%);
}
.hero__inner { padding-block: clamp(72px, 13vw, 148px); }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero .lead { color: #C9D4E4; max-width: 50ch; }
.hero__actions { margin-top: 2rem; }

.hero--page .hero__inner { padding-block: clamp(58px, 9vw, 104px); }
.hero--page h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 20ch; }

/* 6. Blocs --------------------------------------------------------------- */
.grid { display: grid; gap: clamp(24px, 3.5vw, 46px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }

.pillar { border-top: 1px solid var(--line); padding-top: 22px; }
.section--ink .pillar { border-top-color: var(--line-dark); }
.pillar__num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--brass);
  display: block;
  margin-bottom: .7rem;
}
.section--ink .pillar__num { color: var(--brass-light); }
.pillar h3 { margin-bottom: .5rem; }
.pillar p { margin: 0; font-size: .97rem; color: var(--muted); }
.section--ink .pillar p { color: #A9B7CA; }

.audience__icon { color: var(--navy); margin-bottom: 16px; }
.section--ink .audience__icon { color: var(--brass-light); }
.audience h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.audience p { margin: 0; font-size: .92rem; color: var(--muted); }
.section--ink .audience p { color: #A9B7CA; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px 28px 26px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--navy); transform: translateY(-2px); color: inherit; }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .95rem; color: var(--muted); margin-bottom: 1.4rem; }
.card__more {
  margin-top: auto;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy);
}
.card:hover .card__more { color: var(--brass); }

.statement { border-left: 2px solid var(--brass); padding-left: clamp(20px, 3vw, 34px); }
.statement h2 { margin-bottom: .45em; }
.section--ink .statement { border-left-color: var(--brass-light); }

.quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.section--ink .quote { color: var(--white); }
.quote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 1.5rem;
}
.section--ink .quote cite { color: var(--brass-light); }

/* Listes de references et de projets */
.refs { border-top: 1px solid var(--line); }
.ref {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(12px, 3vw, 34px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.ref__year { font-family: var(--serif); font-size: 1.02rem; color: var(--brass); padding-top: 2px; }
.ref__body p { margin: 0; }
.ref__body p + p { margin-top: .5em; color: var(--muted); font-size: .95rem; }

.project {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: clamp(12px, 3vw, 34px);
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color .18s ease;
}
.project:hover { color: inherit; background: var(--stone); }
.project:hover .project__name { color: var(--brass); }
.project__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 .35em;
  transition: color .18s ease;
}
.project p { margin: 0; font-size: .95rem; color: var(--muted); }
.project__go { font-size: 1.1rem; color: var(--navy); padding-top: 4px; }

/* Recit A propos */
.story { max-width: 68ch; }
.story p { margin-bottom: 1.35em; }
.story strong { font-weight: 500; color: var(--ink); }
.portrait { margin: 0; }
.portrait img { border: 1px solid var(--line); }
.portrait figcaption { font-size: .8rem; color: var(--muted); padding-top: 12px; }

/* Mentions legales */
.legal { max-width: 60ch; }
.legal dt {
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 1.7rem;
}
.legal dd { margin: .3rem 0 0; color: var(--ink); }

/* 7. Formulaire ---------------------------------------------------------- */
.form { max-width: 620px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  transition: border-color .18s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { min-height: 148px; resize: vertical; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 1rem; font-size: .95rem; min-height: 1.6em; }
.form__status[data-state="ok"] { color: #1D6E3F; }
.form__status[data-state="error"] { color: #A32D2D; }

/* 8. Pied de page -------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #A9B7CA;
  padding-block: clamp(48px, 7vw, 76px) 30px;
  font-size: .92rem;
}
.site-footer a { color: #D6DEE9; text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); text-decoration: underline; }
.footer__top {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) repeat(4, minmax(140px, 1fr));
  gap: clamp(28px, 4vw, 52px);
}
.footer__lockup { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.footer__lockup img { height: 34px; width: auto; }
.footer__lockup span {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--white);
  letter-spacing: .015em;
}
.footer__address { font-style: normal; line-height: 1.7; color: #A9B7CA; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brass-light);
  margin: 0 0 1.1rem;
}
.site-footer li + li { margin-top: .6rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  color: #7E8EA3;
}
.footer__bottom a { color: #7E8EA3; }
.footer__social { display: inline-flex; align-items: center; gap: 8px; }

/* 9. Utilitaires --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass-light);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* 10. Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .grid--split { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 8px var(--gut) 22px;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    width: 100%;
    padding: 13px 0;
    font-size: .78rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav__link:hover, .nav__link[aria-current="page"] { border-bottom-color: var(--brass-light); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header__logo img { height: 26px; }
  .site-header__name { font-size: 1.3rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .ref, .project { grid-template-columns: 1fr; gap: 6px; }
  .project__go { display: none; }
  .btn { display: block; text-align: center; }
  .btn + .btn { margin-left: 0; margin-top: 10px; }
  .footer__top { grid-template-columns: 1fr; }
}
