/* Opus Digitalis — feuille de styles
   1. Polices et variables
   2. Base
   3. En-tête
   4. Hero
   5. Le constat
   6. Prestations
   7. Méthode
   8. À propos
   9. FAQ
   10. Contact
   11. Pied de page
   12. Pages légales
   13. Animation au scroll
*/

/* 1. Polices et variables */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ivory: #f6f3ee;
  --paper: #fffcf7;
  --anthracite: #242421;
  --ink: #1f3a5f;
  --ink-deep: #14263f;
  --brass: #b08d4f;
  --muted: #4a463f;
  --line: #e3dcd1;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Inter", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --wrap: 72rem;
  --space: clamp(4.25rem, 8vw, 7.25rem);
}

/* 2. Base */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--anthracite);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

body.home {
  padding-top: var(--header-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  max-width: 18em;
}

h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

p {
  margin-bottom: 0;
}

a {
  color: var(--ink);
}

a:visited {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: var(--ivory);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 40;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
  padding: 0.7rem 1rem;
}

.skip:focus {
  transform: none;
}

.skip:visited {
  color: var(--ivory);
}

.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;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section {
  padding-block: var(--space);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  background: var(--ink);
  color: var(--ivory);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.btn:visited {
  color: var(--ivory);
}

.btn:hover {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
}

.link-arrow {
  font-weight: 600;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--brass);
}

.rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin: 0 0 1.35rem;
  background: var(--brass);
  border: 0;
}

/* 3. En-tête */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: var(--header-h);
  padding: 0.6rem 1.25rem;
  background: rgba(246, 243, 238, 0.94);
  border-bottom: 1px solid rgba(36, 36, 33, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-mark {
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
}

.logo:visited {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.2rem;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.nav summary::-webkit-details-marker {
  display: none;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--ink);
  content: "";
}

.burger {
  position: relative;
}

.burger::before,
.burger::after {
  position: absolute;
  left: 0;
}

.burger::before {
  top: -5px;
}

.burger::after {
  top: 5px;
}

.nav[open] .nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.22em;
}

.header-cta {
  flex-shrink: 0;
  padding-inline: 0.85rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-bar {
  display: none;
}

.nav-bar a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.nav-bar a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.22em;
}

@media (min-width: 900px) {
  .nav {
    display: none;
  }

  .nav-bar {
    display: flex;
    align-items: center;
    gap: 1.35rem;
  }
}

/* 4. Hero */

.hero {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.hero h1 {
  max-width: 14ch;
}

.lede {
  max-width: 38rem;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.trust li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: none;
  border-radius: 50%;
  background: var(--brass);
}

/* 5. Le constat */

.points {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  color: var(--brass);
}

.points h3 {
  margin-bottom: 0.4rem;
}

.points p {
  color: var(--muted);
  max-width: 36ch;
}

.transition {
  margin-top: 3rem;
  max-width: 28em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  color: var(--ink);
}

@media (min-width: 768px) {
  .points {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

/* 6. Prestations */

.cards {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: inset 0 3px 0 transparent;
}

.card p {
  color: var(--muted);
}

.card .link-arrow {
  margin-top: auto;
  padding-top: 0.4rem;
}

.card:hover {
  box-shadow: inset 0 3px 0 var(--brass);
}

.card-soon {
  background: transparent;
  border-style: dashed;
}

.card-soon:hover {
  box-shadow: none;
}

.badge {
  align-self: flex-start;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--brass);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 7. Méthode */

.steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 0 0 2rem 3.4rem;
  border-left: 1px solid var(--brass);
}

.step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.step-index {
  position: absolute;
  left: -1.15rem;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  background: var(--ivory);
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 600;
  line-height: 1;
}

.step p:last-child {
  color: var(--muted);
}

@media (min-width: 768px) {
  .steps {
    position: relative;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    width: calc(75% - 1.1rem);
    height: 1px;
    background: var(--brass);
  }

  .step {
    padding: 3.4rem 0.4rem 0 0;
    border-left: 0;
  }

  .step-index {
    left: 0;
    top: 0;
  }
}

/* 8. À propos */

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-copy {
  display: grid;
  gap: 1.15rem;
}

.about-copy p {
  max-width: 62ch;
}

.portrait {
  margin: 0;
  max-width: 22rem;
}

.portrait img {
  width: 100%;
  height: auto;
  background: #e7e1d8;
}

.portrait figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.7fr);
    gap: 4rem;
    align-items: start;
  }
}

/* 9. FAQ */

.faq-list {
  max-width: 44rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1rem 0;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--anthracite);
}

.faq-list summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  margin-right: 0.35rem;
  border-right: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: rotate(45deg);
}

.faq-list details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.3rem;
}

.faq-list details p {
  max-width: 65ch;
  margin: -0.15rem 0 1.15rem;
  color: var(--muted);
}

/* 10. Contact */

.contact {
  background: var(--ink-deep);
  color: var(--ivory);
}

.contact h2,
.contact h3 {
  color: var(--ivory);
}

.contact .lede {
  color: rgba(246, 243, 238, 0.88);
}

.contact :focus-visible {
  outline-color: var(--ivory);
}

.contact a {
  color: var(--ivory);
}

.contact a:visited {
  color: var(--ivory);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-intro {
  display: grid;
  align-content: start;
  gap: 1.25rem;
}

.contact a.btn-light,
.contact a.btn-light:visited {
  justify-self: start;
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

.contact a.btn-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(246, 243, 238, 0.35);
  border-radius: 2px;
  background: rgba(246, 243, 238, 0.06);
  color: var(--ivory);
  font: inherit;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.btn-line {
  justify-self: start;
  background: transparent;
  color: var(--ivory);
  border-color: rgba(246, 243, 238, 0.55);
  cursor: pointer;
}

.btn-line:visited {
  color: var(--ivory);
}

.btn-line:hover {
  background: rgba(246, 243, 238, 0.08);
  border-color: var(--ivory);
}

.form-status {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--brass);
  font-weight: 600;
}

.reassurance {
  margin: 0;
  color: rgba(246, 243, 238, 0.72);
  font-size: 0.9rem;
}

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

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* 11. Pied de page */

.site-footer {
  padding-block: 3rem 1.5rem;
  background: var(--ivory);
  color: var(--anthracite);
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 2rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-title {
  margin-bottom: 0.7rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 0.4rem;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.2em;
}

.legal-line {
  margin-top: 2.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1.4fr 0.8fr;
    gap: 2rem;
  }
}

/* 12. Pages légales */

.legal {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4rem;
}

.legal h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 0.6rem;
}

.legal .updated {
  margin-bottom: 2rem;
  color: var(--muted);
}

.legal h2 {
  margin-top: 2.2rem;
  font-size: 1.45rem;
}

.legal-copy {
  display: grid;
  gap: 0.85rem;
  max-width: 42rem;
}

.legal-copy ul {
  margin: 0;
  padding-left: 1.15rem;
}

.legal-copy li + li {
  margin-top: 0.35rem;
}

/* 13. Animation au scroll
   Le contenu reste visible sans la classe .js.
   prefers-reduced-motion annule le déplacement. */

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  html.js .reveal,
  .faq-list summary::after {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .faq-list details[open] summary::after {
    transform: rotate(225deg);
  }
}

.cta-short {
  display: none;
}

@media (max-width: 430px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.75rem));
  }

  .logo {
    gap: 0.4rem;
    font-size: 1rem;
  }

  .logo-mark {
    width: 1.85rem;
    height: 1.85rem;
  }

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

  .cta-full {
    display: none;
  }

  .cta-short {
    display: inline;
  }

  .header-cta {
    padding-inline: 0.75rem;
  }
}
