@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Text";
  src: url("fonts/dm-serif-text.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Marianne;
  src: url("france-renov/marianne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Marianne;
  src: url("france-renov/marianne-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f9f7f0;
  --white: #fffcf7;
  --ink: #233a30;
  --text: #303b33;
  --muted: #4b574d;
  --green: #294c3d;
  --deep-green: #203e32;
  --sage: #e9eee4;
  --sand: #eee7d9;
  --line: #d9d7ca;
  --focus: #a1431e;
  --display: "DM Serif Text", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.125rem, 4vw, 3rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 1rem/1.62 var(--body);
}
h1, h2, h3, p { margin: 0; }
h1, h2 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.027em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 3.15rem); }
h3 { color: var(--ink); font-size: 1.15rem; line-height: 1.28; }
p { text-wrap: pretty; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.icon { flex: none; width: 1.125rem; height: 1.125rem; vertical-align: middle; }
.wrap { width: min(100% - var(--gutter) * 2, 76rem); margin-inline: auto; }
.section-space { margin-block: var(--section); }
#projets, #demande, #couverture, #avant-demande { scroll-margin-top: 1rem; }
.skip {
  position: absolute;
  z-index: 5;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(calc(-100% - 1rem));
  padding: 0.65rem 1rem;
  color: white;
  background: var(--deep-green);
}
.skip:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }
.header-inner, .header-nav, .brand {
  display: flex;
  align-items: center;
}
.header-inner { justify-content: space-between; gap: 0.65rem; min-height: 4.45rem; }
.header-nav { gap: clamp(0.85rem, 3vw, 2.3rem); }
.brand { gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background: var(--green);
  color: white;
}
.brand-mark .icon { width: 1.35rem; height: 1.35rem; }
.project-menu { position: relative; }
.project-menu summary, .faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
.project-menu summary { min-height: 2.75rem; color: var(--green); font-weight: 700; white-space: nowrap; }
details[open] > summary .icon { transform: rotate(180deg); }
.project-menu ul {
  position: absolute;
  z-index: 4;
  top: 100%;
  right: 0;
  width: min(20rem, 100vw - var(--gutter) * 2);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px #233a301a;
}
.project-menu a {
  display: block;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.4rem;
  text-decoration: none;
}
.project-menu a:hover, .project-menu a[aria-current="page"] { background: var(--sage); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #173729; }
.button-outline { background: transparent; color: var(--green); border-color: #8d9c90; }
.button-outline:hover { background: var(--sage); }
.header-nav .button { display: none; min-height: 2.75rem; padding-block: 0.55rem; }

.hero {
  display: grid;
  align-items: center;
  gap: clamp(1.75rem, 4.7vw, 4.75rem);
  margin-top: clamp(1.75rem, 4vw, 3rem);
}
.hero-copy { min-width: 0; }
.home-hero { margin-bottom: var(--section); }
.home-hero h1 { font-size: clamp(2.35rem, 4.3vw, 4.25rem); }
.topic-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.lead {
  margin-top: 1.05rem;
  max-width: 43ch;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.45vw, 1.22rem);
  line-height: 1.55;
}
.hero-coverage { margin-top: 0.55rem; font-size: 0.92rem; font-weight: 700; }
.topic-coverage {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--sage);
  line-height: 1.25;
  text-decoration: none;
}
.topic-coverage img { flex: none; width: 2.6rem; height: auto; }
.topic-coverage strong { text-decoration: underline; text-underline-offset: 0.18em; }
.topic-coverage small { display: block; color: var(--muted); font-size: 0.83rem; font-weight: 400; }
.topic-coverage:hover { border-color: #708477; }
.hero-actions { margin-top: 1.15rem; }
.hero-objection {
  max-width: 48ch;
  margin-top: 0.95rem;
  padding-left: 0.85rem;
  border-left: 2px solid #829580;
  color: var(--muted);
  font-size: 0.96rem;
}
.hero-objection strong { color: var(--ink); }
.hero-note {
  max-width: 45ch;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.91rem;
}
.topic-label {
  margin-bottom: 0.7rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-photo {
  background: var(--sand);
  border-radius: clamp(0.7rem, 2vw, 1.15rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.france-renov {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 700px);
}
.france-renov-banner { width: 100%; height: auto; }
.france-renov-mobile { display: none; }
.prep .qualification-note { margin-top: 0.8rem; }

@media (max-width: 64rem) {
  .france-renov { width: calc(100% + 2 * var(--gutter)); }
}

@media (width < 700px) {
  .france-renov { color: #000; text-decoration: none; }
  .france-renov-banner { display: none; }
  .france-renov-mobile {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(0.75rem, 4vw, 2rem);
    min-height: 150px;
    padding: 1rem clamp(1rem, 5vw, 2.5rem);
    border: 1px solid #000;
    background: #fff;
    font: 400 clamp(0.75rem, 3.2vw, 1rem)/1.35 Marianne, Arial, sans-serif;
  }
  .france-renov-mobile img { width: 100%; height: auto; }
}

.project-picker { margin-top: 1rem; }
.project-picker ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  text-decoration: none;
}
.project-choice:hover { background: var(--sage); border-color: #708477; }
.project-choice strong, .project-choice small { display: block; line-height: 1.3; }
.project-choice strong { color: var(--ink); }
.project-choice small { margin-top: 0.13rem; color: var(--muted); font-size: 0.86rem; }

.guide-grid, .steps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.guide-grid p, .steps p { margin-top: 0.55rem; }

.section-head p { max-width: 57ch; color: var(--muted); }
.guide-grid { gap: 0.3rem 1.65rem; }
.guide-grid li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.guide-grid p { color: var(--muted); }
.project-exchange {
  margin-top: 0.85rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border-left: 3px solid #829580;
  border-radius: 0.45rem;
  background: var(--sage);
}
.project-exchange p { max-width: 70ch; margin-top: 0.4rem; color: var(--muted); }

.request-section { background: var(--sage); padding-block: clamp(2rem, 5vw, 4.75rem); }
.request-layout { display: grid; align-items: start; gap: 1.65rem; }
.prep { padding-left: 1rem; border-left: 3px solid #829580; }
.prep h2 { font-size: clamp(1.5rem, 2.7vw, 2.35rem); }
.prep p { max-width: 39ch; margin-top: 0.4rem; color: var(--muted); }
.request-card {
  min-width: 0;
  padding: clamp(0.85rem, 2.5vw, 1.75rem);
  border-radius: 0.85rem;
  border: 1px solid #d3d8cb;
  background: var(--white);
}
.request-card h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); }
.form-callback { max-width: 58ch; margin-top: 0.65rem; line-height: 1.5; }
.form-notice { margin-top: 0.5rem; color: var(--muted); font-size: 0.91rem; line-height: 1.5; }
.form-status:not(:empty) { margin-top: 0.85rem; color: var(--muted); font-size: 0.91rem; }
.form-fallback { margin-top: 0.55rem; color: var(--muted); font-size: 0.91rem; }
.form-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-weight: 700;
}
.tally-frame { display: block; width: 100%; margin-top: 0.65rem; border: 0; background: transparent; }

.process {
  padding-block: clamp(2.75rem, 6vw, 5rem);
  background: var(--deep-green);
  color: #e4ece2;
}
.process h2, .process h3, .process a { color: #fdf9ef; }
.process :focus-visible, .footer :focus-visible { outline-color: #f4c5a3; }
.steps { list-style: decimal; padding-left: 1.6rem; }
.steps li { padding-left: 0.35rem; }
.steps li::marker { color: #eacbae; font-weight: 700; }

.coverage {
  display: grid;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.75rem);
}
.coverage-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}
.coverage-stats li { display: grid; gap: 0.25rem; color: var(--muted); }
.coverage-stats strong {
  color: var(--ink);
  font: 400 clamp(2.25rem, 4.2vw, 3.5rem)/1 var(--display);
}
.coverage-note { max-width: 42ch; color: var(--muted); font-size: 0.94rem; }
.coverage-copy .button { margin-top: 1rem; }
.coverage-atlas {
  display: grid;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: clamp(0.8rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--sage);
}
.coverage-atlas h3 { font-size: 0.95rem; }
.coverage-mainland { display: grid; justify-items: center; gap: 0.5rem; text-align: center; }
.coverage-mainland img { width: min(100%, 21rem); height: auto; }
.coverage-overseas { border-top: 1px solid #c7d0c4; padding-top: 1rem; }
.coverage-overseas ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}
.coverage-overseas li {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.25rem;
  border-radius: 0.35rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84rem;
  text-align: center;
}
.coverage-overseas img { width: 3rem; height: auto; }
.coverage-atlas figcaption { color: var(--muted); font-size: 0.79rem; }

.faq { display: grid; align-items: start; gap: 1.5rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 3.25rem; padding: 1rem 0.15rem; font-weight: 700; color: var(--ink); }
.faq-list summary:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.faq-list details p { max-width: 62ch; padding: 0 1.75rem 1.1rem 0.15rem; color: var(--muted); }
.faq-action { margin-top: 1.5rem; }

.related { padding-block: 1.6rem 3rem; border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.related-links { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; margin-top: 0.8rem; }
.related-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  background: var(--sage);
  border-radius: 0.45rem;
  font-weight: 700;
  text-decoration: none;
}
.related-links a:hover { text-decoration: underline; }

.legal { max-width: 50rem; margin-block: clamp(2.75rem, 7vw, 5.75rem); }
.legal h1 { margin-bottom: 1.55rem; }
.legal h2 { margin-top: 1.9rem; font-size: 1.65rem; }
.legal p, .legal dl { margin-top: 0.75rem; }
.legal dt { margin-top: 0.75rem; font-weight: 700; }
.legal dd { margin: 0; }
.missing { color: #76391e; font-weight: 700; }
.partners-list { display: grid; gap: 0.8rem; margin-block: 1.5rem; }
.partners-list section { padding: 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--white); }
.partners-list h2 { margin: 0; }
.not-found .button { margin-top: 1.5rem; }

.footer { padding-block: 2.15rem; background: #1a3027; color: #e2e8de; }
.footer-inner, .footer nav { display: flex; flex-wrap: wrap; }
.footer-inner { justify-content: space-between; gap: 1rem 2rem; }
.footer .brand { color: #fffaf0; width: fit-content; }
.footer-brand p { margin-top: 0.6rem; font-size: 0.93rem; }
.footer nav { gap: 0.05rem 1.2rem; align-items: flex-start; }
.footer nav a { display: flex; align-items: center; min-height: 2.75rem; color: #fffaf0; font-size: 0.93rem; }

@media (min-width: 40.625rem) {
  .header-nav .button { display: inline-flex; }
  .partners-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: center; }
  .guide-grid, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { gap: 2.8rem; }
  .coverage-atlas { grid-template-columns: 1.3fr 1fr; }
  .coverage-overseas { border-top: 0; border-left: 1px solid #c7d0c4; padding-top: 0; padding-left: 1rem; }
  .coverage-atlas figcaption { grid-column: 1 / -1; }
}

@media (min-width: 56.25rem) {
  .hero { grid-template-columns: minmax(0, 0.91fr) minmax(0, 1.09fr); }
  .hero > .hero-photo { grid-column: 2; grid-row: 1; }
  .hero > .france-renov { grid-row: 2; }
  .request-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(2rem, 5vw, 5rem); }
  .prep { margin-top: 0.85rem; }
  .faq { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr); gap: 2rem; }
}

@media (min-width: 64rem) {
  .coverage { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
