/* =========================================================
   Mathias Armand — Conseiller en gestion de patrimoine
   ========================================================= */

/* Police Montserrat hébergée avec le site : aucun appel à Google Fonts */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../assets/fonts/montserrat.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/montserrat-italique.woff2') format('woff2');
}

:root {
  --cream: #F7F1E8;
  --ivory: #FFFCF7;
  --sand: #F4ECE1;
  --bordeaux: #470F1C;
  --bordeaux-hover: #5E1B2B;
  --rose: #A63A50;
  --graphite: #535051;
  --muted: #6B6668;
  --muted-2: #8A8385;
  --taupe: #A39A92;
  --line: #EFE7DC;
  --line-cream: #DDD2C4;
  --field-border: #D3C6B7;
  --mist: #BAC3C4;

  --gutter: clamp(20px, 4.4vw, 64px);
  --section-y: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-card: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

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

html { scroll-padding-top: 84px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--bordeaux);
  font-family: 'Montserrat', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--bordeaux); color: var(--cream); }

a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, textarea { font-family: 'Montserrat', sans-serif; }
[hidden] { display: none !important; }

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

.container { max-width: 1360px; margin: 0 auto; }

/* Grain photographique posé sur les dégradés */
.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--noise-opacity, 0.22);
  mix-blend-mode: overlay;
  background-image: var(--noise);
}

.icon {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Typographie ---------- */

.section-title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(34px, 4.3vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--bordeaux);
}

.section-lead {
  margin: 22px 0 0;
  max-width: 52ch;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--graphite);
  text-wrap: pretty;
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
}

.eyebrow--xs { font-size: 9.5px; letter-spacing: 0.14em; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 200ms ease, translate 450ms var(--ease-out);
}

.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--bordeaux); color: var(--ivory); }
.btn--primary:hover { background: var(--bordeaux-hover); color: var(--ivory); }

.btn--light { background: var(--ivory); color: var(--bordeaux); }
.btn--light:hover { background: var(--sand); color: var(--bordeaux); }

.btn--s { height: 40px; padding: 0 16px 0 18px; font-size: 13.5px; white-space: nowrap; }
.btn--m { height: 42px; padding: 0 17px 0 20px; font-size: 14px; white-space: nowrap; }
.btn--l { height: 44px; padding: 0 17px 0 20px; font-size: 13.5px; }

.btn--xl {
  gap: 12px;
  height: 54px;
  padding: 0 22px 0 26px;
  border: none;
  font-size: 15px;
  cursor: pointer;
}

.btn--xl .icon { width: 15px; height: 15px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Navigation ---------- */

.nav { display: flex; font-weight: 500; }

.nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  background-origin: border-box;
  transition: background-size 400ms var(--ease-out);
}

/* Le soulignement se trace de gauche à droite */
.nav a:hover { background-position: 0 100%; background-size: 100% 1px; }

/* Barre fixe, affichée une fois le hero dépassé */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 400ms var(--ease), visibility 400ms;
  background: rgba(247, 241, 232, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(71, 15, 28, 0.1);
}

.topbar.is-visible { transform: translateY(0); visibility: visible; }

.topbar__inner {
  max-width: 1480px;
  margin: 0 auto;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
}

.topbar__logo { justify-self: start; display: block; }
.topbar__logo img { height: 22px; width: auto; }
.topbar .nav { gap: clamp(24px, 3.4vw, 52px); font-size: 13.5px; color: var(--bordeaux); }
.topbar__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }

/* Bouton rond à icône (ouverture et fermeture du menu) */
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
}

.icon-button .icon { width: 18px; height: 18px; }

/* Le menu n'apparaît que sur petit écran (voir Responsive) */
.menu-toggle { display: none; }

/* Libellé court du bouton de rendez-vous, pour les écrans étroits */
.btn__short { display: none; }

/* ---------- Menu des petits écrans ---------- */

.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0 var(--gutter) 40px;
  border: 0;
  background: var(--cream);
  color: var(--bordeaux);
}

.menu[open] { display: flex; flex-direction: column; }

/* La page ne défile pas derrière le menu ouvert */
html:has(.menu[open]) { overflow: hidden; }

.menu__top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.menu__top img { height: 22px; width: auto; }

.menu__links { display: flex; flex-direction: column; margin: 24px 0 36px; }

.menu__links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-cream);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.menu .btn { align-self: flex-start; }

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: max(700px, min(100vh, 1000px));
  display: flex;
  flex-direction: column;
  background: #2B2627;
  color: var(--ivory);
}

.hero__media {
  position: absolute;
  inset: 0;
  filter: brightness(0.62) saturate(0.66) contrast(1.04);
}

.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 8% 100%, rgba(42, 7, 16, 0.5) 0%, rgba(42, 7, 16, 0) 100%),
    linear-gradient(180deg, rgba(20, 12, 14, 0.55) 0%, rgba(20, 12, 14, 0) 24%, rgba(20, 12, 14, 0) 62%, rgba(20, 12, 14, 0.55) 100%);
}

/* Halo bordeaux sur un calque élargi : il peut suivre le curseur sans laisser de bord visible */
.hero__aura {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background: radial-gradient(28.333% 35% at 25.833% 61.667%, rgba(166, 58, 80, 0.72) 0%, rgba(140, 42, 62, 0.36) 48%, rgba(71, 15, 28, 0) 100%);
}

.hero__header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px var(--gutter);
}

.hero__logo { justify-self: start; display: block; }
.hero__logo img { height: 28px; width: auto; }
.hero__header .nav { gap: clamp(28px, 4vw, 64px); font-size: 14px; color: var(--ivory); }

.hero__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(48px, 6vw, 96px);
  padding: clamp(40px, 4.4vw, 72px) var(--gutter) clamp(44px, 5vw, 72px);
}

.hero__intro { display: flex; flex-direction: column; }

.hero__title {
  margin: 70px 0 0;
  font-weight: 500;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  color: var(--ivory);
  max-width: 16em;
  text-wrap: balance;
}

.hero__line { display: block; }

.hero__lead {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--sand);
}

.hero__meta {
  margin: 28px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--sand);
}

.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.hero__facts {
  flex: 1 1 auto;
  min-width: 0;
  list-style: none;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sand);
}

.hero__facts li { padding: 0 18px; border-left: 1px solid rgba(244, 236, 225, 0.35); }
.hero__facts li:first-child { padding: 0 18px 0 0; border-left: 0; }

/* Carte « Premier échange » (grands écrans uniquement) */
.hero-card {
  flex: none;
  align-self: flex-end;
  width: 300px;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  border-radius: 28px;
  background: #FFFFFF;
  color: var(--bordeaux);
  box-shadow: 0 30px 60px -24px rgba(20, 8, 10, 0.6);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 70px -26px rgba(20, 8, 10, 0.66);
  color: var(--bordeaux);
}

.hero-card__title { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.hero-card__rows { display: flex; flex-direction: column; margin-top: 22px; }

.hero-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(71, 15, 28, 0.16);
  font-size: 13px;
}

.hero-card__row:last-child { border-bottom: 1px solid rgba(71, 15, 28, 0.16); }
.hero-card__row span:first-child { color: var(--graphite); }
.hero-card__row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }

.hero-card__cta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 14px 0 16px;
  border-radius: 14px;
  background: var(--bordeaux);
  color: var(--sand);
  font-size: 13.5px;
  font-weight: 600;
}

.hero-card__cta .icon { width: 15px; height: 15px; }

/* ---------- Pour qui ---------- */

.audience { padding: var(--section-y) var(--gutter); }

.audience__panel {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(40px, 5vw, 96px);
  padding: clamp(40px, 5.5vw, 88px) clamp(24px, 5vw, 80px);
  background:
    radial-gradient(55% 75% at 100% 100%, rgba(166, 58, 80, 0.85) 0%, rgba(166, 58, 80, 0) 100%),
    radial-gradient(35% 55% at 100% 0%, rgba(42, 7, 16, 0.55) 0%, rgba(42, 7, 16, 0) 100%),
    radial-gradient(70% 90% at 0% 35%, #EEEBE5 0%, rgba(238, 235, 229, 0) 100%),
    linear-gradient(110deg, #D3D9D8 0%, #B9C2C3 45%, #9BA5A7 72%, #7A6A6E 100%);
}

.audience__text { position: relative; flex: 1 1 360px; display: flex; flex-direction: column; }
.audience__text .section-title { text-wrap: balance; }

.audience__list {
  list-style: none;
  margin: clamp(32px, 3.4vw, 48px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.audience__list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: clamp(20px, 2.2vw, 28px) 0;
  border-top: 1px solid rgba(71, 15, 28, 0.16);
}

.audience__list li:last-child { border-bottom: 1px solid rgba(71, 15, 28, 0.16); }

.audience__num {
  padding-top: 6px;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.audience__list p {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--graphite);
  text-wrap: pretty;
}

.audience__list strong { font-weight: 600; color: var(--bordeaux); }

.audience__visual {
  position: relative;
  flex: 1.2 1 420px;
  display: flex;
  justify-content: center;
  padding: clamp(12px, 2vw, 32px) 0;
}

.profiles {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: clamp(380px, 34vw, 440px);
}

.profile {
  position: absolute;
  width: min(80%, 300px);
  padding: clamp(18px, 2vw, 24px);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 1px 2px rgba(42, 7, 16, 0.08), 0 36px 70px -30px rgba(42, 7, 16, 0.55);
}

.profile--a { left: 0; top: 0; transform: rotate(-3deg); }
.profile--b { right: 0; bottom: 0; transform: rotate(2.5deg); }

.profile__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile__head img { height: 14px; width: auto; }

.profile h3 {
  margin: 18px 0 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--bordeaux);
}

.profile ul { list-style: none; margin: 12px 0 0; padding: 0; }

.profile li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--graphite);
}

.profile li::before,
.service__details li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
}

/* ---------- Qui je suis ---------- */

.about { padding: 0 0 var(--section-y); }

.about__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 44px;
}

.about__photo {
  position: relative;
  flex: 0 1 460px;
  margin-left: max(var(--gutter), calc((100vw - 1360px) / 2));
  max-width: calc(100% - 2 * max(var(--gutter), calc((100vw - 1360px) / 2)));
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: #2B2627;
}

.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.about__text {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  padding-left: clamp(24px, 5vw, 96px);
  padding-right: max(var(--gutter), calc((100vw - 1360px) / 2));
}

.about__quote {
  margin: 26px 0 0;
  max-width: 24ch;
  font-weight: 400;
  font-size: clamp(26px, 2.7vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--bordeaux);
  text-wrap: pretty;
}

.about__quote span { color: var(--rose); }

.about__sign {
  margin-top: clamp(32px, 3.4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line-cream);
  max-width: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.about__name { display: flex; flex-direction: column; gap: 4px; }
.about__name strong { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: var(--bordeaux); }
.about__name span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.about__sign img { flex: none; height: 30px; width: auto; }

/* ---------- Ce que je fais ---------- */

.services { padding: 0 clamp(10px, 1.4vw, 20px); }

.services__panel {
  position: relative;
  overflow: hidden;
  border-radius: clamp(24px, 2.6vw, 38px);
  min-height: clamp(620px, 60vw, 880px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(64px, 11vw, 200px);
  padding: clamp(36px, 4.8vw, 72px) clamp(18px, 2.6vw, 38px) clamp(40px, 8vw, 120px);
  background: #3A3B3D;
  color: var(--ivory);
}

.services__bg {
  position: absolute;
  inset: -6% 0;
  background: url(../assets/fond-ce-que-je-fais.jpg) center / cover no-repeat;
  filter: brightness(0.6) saturate(0.5);
}

.services__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 22, 23, 0.35) 0%, rgba(24, 22, 23, 0.05) 45%, rgba(24, 22, 23, 0.55) 100%);
}

.services__head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}

.services__head .section-title { font-size: clamp(36px, 4.4vw, 64px); color: var(--ivory); }

.services__intro {
  margin: 0;
  max-width: 36ch;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 252, 247, 0.86);
}

.services__cards {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 16px;
}

/* Carte d'expertise : vitre fumée au repos, carte ivoire une fois ouverte */
.service {
  position: relative;
  flex: 1 1 0px;
  min-height: 204px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.1);
  color: var(--ivory);
  border: 1px solid rgba(255, 252, 247, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 252, 247, 0.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  backdrop-filter: blur(20px) saturate(1.15);
  cursor: pointer;
  transition:
    flex-grow 550ms var(--ease-card),
    min-height 550ms var(--ease-card),
    padding 550ms var(--ease-card),
    background-color 400ms ease,
    color 400ms ease,
    border-color 400ms ease;
}

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

.service.is-active {
  flex: 1.9 1 0px;
  min-height: max(360px, calc(580px - 16vw));
  background: var(--ivory);
  color: var(--bordeaux);
  border-color: var(--ivory);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}

.service__index {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 252, 247, 0.72);
}

.service__plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 252, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__plus .icon { width: 12px; height: 12px; }

.service__talk {
  display: none;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px 0 15px;
  border-radius: 999px;
  background: var(--bordeaux);
  color: var(--ivory);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 200ms ease;
}

.service__talk:hover { background: var(--bordeaux-hover); color: var(--ivory); }
.service__talk .icon { width: 13px; height: 13px; stroke-width: 1.9; }

.service__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  left: 24px;
  right: 24px;
  bottom: 24px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 250ms ease, transform 250ms cubic-bezier(0.2, 0, 0, 1);
}

.service h3 {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 21px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: inherit;
}

.service__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 252, 247, 0.84);
  max-width: 40ch;
}

.service__details {
  display: none;
  list-style: none;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--graphite);
  max-width: 46ch;
}

.service__details li { display: flex; gap: 10px; }
.service__details li::before { margin-top: 8px; }

.service.is-active .service__index { color: var(--taupe); }
.service.is-active .service__plus { display: none; }
.service.is-active .service__talk { display: inline-flex; }
.service.is-active .service__desc { font-size: 15px; color: var(--graphite); }
.service.is-active .service__details { display: flex; }

/* Pendant l'animation, le texte sort du flux puis réapparaît en fondu */
.service.is-moving .service__body {
  position: absolute;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.service.is-active.is-moving .service__body { transition: none; }

/* ---------- Offres ---------- */

.offers { padding: var(--section-y) var(--gutter) 0; }

/* Trois colonnes dès la largeur d'un iPad, une seule sur téléphone */
.offers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(48px, 5vw, 72px) clamp(16px, 1.6vw, 22px);
  margin-top: clamp(44px, 4.6vw, 64px);
}

.offer {
  margin: 0;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 24px;
}

.offer__caption { display: flex; flex-direction: column; gap: 10px; padding: 0 2px; }

/* Navigateurs sans subgrid : les visuels restent alignés en bas de cartes de même hauteur */
@supports not (grid-template-rows: subgrid) {
  .offer { display: flex; flex-direction: column; gap: 24px; }
  .offer__caption { flex: 1; }
}

.offer h3 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(22px, 1.9vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--bordeaux);
  text-wrap: balance;
}

.offer__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
  text-wrap: pretty;
}

.offer__note {
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-cream);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--graphite);
  max-width: 40ch;
  text-wrap: pretty;
}

/* Un seul dégradé réparti sur les trois visuels */
.offer__visual {
  position: relative;
  aspect-ratio: 0.87;
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    radial-gradient(26% 42% at 86% 98%, rgba(192, 84, 107, 0.6) 0%, rgba(192, 84, 107, 0) 100%),
    radial-gradient(26% 40% at 16% 106%, rgba(71, 15, 28, 0.72) 0%, rgba(71, 15, 28, 0) 100%),
    radial-gradient(62% 52% at 50% 108%, rgba(166, 58, 80, 0.9) 0%, rgba(166, 58, 80, 0) 100%),
    radial-gradient(24% 50% at 0% 100%, rgba(63, 76, 83, 0.85) 0%, rgba(63, 76, 83, 0) 100%),
    radial-gradient(22% 46% at 100% 6%, rgba(126, 139, 144, 0.85) 0%, rgba(126, 139, 144, 0) 100%),
    radial-gradient(30% 50% at 10% 0%, #E6E7E2 0%, rgba(230, 231, 226, 0) 100%),
    radial-gradient(28% 46% at 56% 0%, rgba(230, 231, 226, 0.85) 0%, rgba(230, 231, 226, 0) 100%),
    linear-gradient(180deg, #C9D0D0 0%, #9AA6AA 100%);
  background-size: calc(300% + 2 * clamp(16px, 1.6vw, 22px)) 100%;
  background-position: 0% 0;
  background-repeat: no-repeat;
}

.offer:nth-child(2) .offer__visual { background-position: 50% 0; }
.offer:nth-child(3) .offer__visual { background-position: 100% 0; }

.outline-card {
  position: relative;
  width: min(80%, 300px);
  padding: 18px 18px 8px;
  border-radius: 22px;
  background: #221E1F;
  color: var(--ivory);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 26px 50px -22px rgba(20, 24, 28, 0.7);
}

.outline-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.outline-card__head span { font-size: 12px; font-weight: 600; color: var(--taupe); }
.outline-card__head img { flex: none; height: 12px; width: auto; }

.outline-card ol { list-style: none; margin: 14px 0 0; padding: 0; }

.outline-card li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 252, 247, 0.1);
  font-size: 14px;
  font-weight: 500;
  color: #D9C9C2;
}

.outline-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #6A6462;
}

.outline-card li:last-child { font-weight: 600; color: #E9B9C3; }
.outline-card li:last-child::before { box-shadow: none; background: #C0546B; }

/* ---------- Méthode ---------- */

.method { padding: var(--section-y) var(--gutter) 0; }

.method__stage {
  position: relative;
  margin-top: clamp(44px, 4.6vw, 64px);
  overflow: hidden;
  border-radius: 6px;
  min-height: clamp(460px, 40vw, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 96px) clamp(16px, 4vw, 72px);
  background:
    radial-gradient(60% 80% at 0% 0%, #F4ECE1 0%, rgba(244, 236, 225, 0) 100%),
    radial-gradient(60% 80% at 100% 100%, rgba(186, 195, 196, 0.95) 0%, rgba(186, 195, 196, 0) 100%),
    linear-gradient(135deg, #EFE8DD 0%, #DCDDD8 55%, #C6CDCD 100%);
}

.journey {
  position: relative;
  width: 100%;
  max-width: 1060px;
  padding: clamp(22px, 2.8vw, 40px);
  border-radius: 28px;
  background: var(--ivory);
  box-shadow: 0 1px 2px rgba(42, 7, 16, 0.06), 0 40px 80px -36px rgba(42, 7, 16, 0.5);
}

.journey__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: clamp(22px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line);
}

.journey__title { display: flex; flex-direction: column; gap: 4px; }

.journey__title strong {
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--bordeaux);
}

.journey__title span { font-size: 13px; color: var(--muted-2); }

/* 4 colonnes, puis 2, puis 1 selon la largeur disponible */
.journey__steps {
  list-style: none;
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(24.9%, min(49.9%, calc((880px - 100%) * 999)), min(100%, calc((440px - 100%) * 999))), 1fr));
  gap: 40px 0;
}

.step { display: flex; flex-direction: column; }
.step__track { display: flex; align-items: center; height: 14px; }

.step__dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: inset 0 0 0 1.5px #BDB2A4;
}

.step__line { flex: 1; height: 1px; margin-left: 12px; background: #E2D9CC; }

.step:first-child .step__dot { background: var(--bordeaux); box-shadow: 0 0 0 5px rgba(71, 15, 28, 0.1); }
.step:first-child .step__line { background: linear-gradient(90deg, #470F1C 0%, #E2D9CC 70%); }

.step__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: clamp(16px, 2vw, 32px);
}

.step:last-child .step__body { padding-right: 0; }
.step__body > .eyebrow { margin-top: 22px; }

.step__title {
  margin: 8px 0 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bordeaux);
}

.step__text { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--graphite); }

.step__meta {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.step__meta strong { font-size: 13.5px; font-weight: 600; color: var(--bordeaux); }

/* ---------- Rémunération ---------- */

.fees { padding: var(--section-y) var(--gutter); }

.fees__row {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(48px, 6vw, 110px);
}

.fees__visual {
  flex: 1.3 1 440px;
  position: relative;
  min-height: clamp(520px, 62vw, 880px);
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 56px);
  background:
    radial-gradient(45% 40% at 92% 6%, rgba(186, 195, 196, 0.5) 0%, rgba(186, 195, 196, 0) 100%),
    radial-gradient(55% 50% at 50% 55%, rgba(166, 58, 80, 0.55) 0%, rgba(166, 58, 80, 0) 100%),
    linear-gradient(160deg, #535051 0%, #470F1C 62%, #2A0710 100%);
}

.letter { position: relative; width: 100%; max-width: 420px; }

.letter__sheet {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #EAE3D8;
  transform: rotate(3deg) translate(10px, 8px);
  box-shadow: 0 30px 60px -30px rgba(42, 7, 16, 0.5);
}

.letter__doc {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 1px 2px rgba(42, 7, 16, 0.08), 0 36px 70px -30px rgba(42, 7, 16, 0.55);
}

.letter__ref {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.letter__ref small { font-size: 11px; color: var(--muted-2); }

.letter__doc h3 {
  margin: clamp(22px, 2.4vw, 30px) 0 0;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--bordeaux);
}

.letter__articles { list-style: none; margin: 16px 0 0; padding: 0; }

.letter__articles li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.letter__art {
  padding-top: 2px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
}

.letter__clause { font-size: 13.5px; line-height: 1.5; color: var(--graphite); }
.letter__clause strong { font-weight: 600; color: var(--bordeaux); }

.letter__foot { padding-top: 16px; border-top: 1px solid var(--line); }
.letter__foot > em { display: block; font-size: 11px; color: var(--muted-2); }

.letter__signs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}

.letter__sign { display: flex; flex-direction: column; gap: 8px; }
.letter__sign .eyebrow { font-size: 9.5px; }

.letter__sign-line {
  height: 36px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5px;
  border-bottom: 1px solid #D9CEC0;
  font-size: 11.5px;
  font-style: italic;
  color: var(--taupe);
}

.letter__sign-line img {
  height: 34px;
  width: auto;
  margin-bottom: -10px;
  transform: rotate(-6deg);
  transform-origin: left bottom;
}

.fees__text { flex: 1 1 360px; display: flex; flex-direction: column; }
.fees__text .section-title { text-wrap: balance; }
.fees__text .section-lead { max-width: 46ch; }
.fees__text .section-lead + .section-lead { margin-top: 14px; font-weight: 600; color: var(--bordeaux); }

.fees__list {
  list-style: none;
  margin: clamp(40px, 4vw, 56px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.fees__list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line-cream);
}

.fees__list li:last-child { border-bottom: 1px solid var(--line-cream); }
.fees__list .eyebrow { color: var(--muted); }

.fees__list h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--bordeaux);
}

.fees__list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--graphite);
  text-wrap: pretty;
}

/* ---------- Contact ---------- */

.contact { position: relative; padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(96px, 11vw, 160px); }

.contact__head {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  /* Les liens vers #contact arrivent sur le titre : l'étiquette (36 px + 20 px d'écart) passe sous la barre */
  scroll-margin-top: calc(-36px - 20px);
}

.contact__pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  background: #FBF7F1;
  border: 1.5px solid var(--bordeaux);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bordeaux);
}

.contact__head .section-title { font-weight: 500; font-size: clamp(34px, 4.6vw, 70px); max-width: 12ch; }
.contact__head p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--graphite); }

.contact__card {
  max-width: 1120px;
  margin: clamp(36px, 4.4vw, 60px) auto 0;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ivory);
  text-align: left;
}

.contact__main { flex: 1.6 1 440px; padding: clamp(22px, 3vw, 40px); }

.form { display: flex; flex-direction: column; gap: 22px; }

.form__topics { min-width: 0; margin: 0; padding: 0; border: 0; }

.form__topics legend {
  float: left;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.chips { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--field-border);
  background: var(--ivory);
  color: var(--bordeaux);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, scale 150ms ease;
}

.chip input:checked + span { background: var(--bordeaux); color: var(--ivory); border-color: var(--bordeaux); }
.chip input:focus-visible + span { outline: 2px solid var(--bordeaux); outline-offset: 2px; }

.form__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 14px;
  background: var(--sand);
  font-size: 15px;
  font-weight: 400;
  color: var(--bordeaux);
  outline: none;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.field input { height: 50px; padding: 0 16px; }
.field textarea { padding: 13px 16px; line-height: 1.5; resize: vertical; }

.field input:focus,
.field textarea:focus {
  border-color: var(--bordeaux);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--mist);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--graphite);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--bordeaux);
  cursor: pointer;
}

.form__error { margin: 0; font-size: 13.5px; font-weight: 500; color: #9B2335; }
.form__error a { border-bottom: 1px solid currentColor; }

/* Champ piège anti-robots : hors de l'écran, un visiteur ne le remplit jamais */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.form__privacy {
  flex: 1 1 220px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--graphite);
}

.form-success {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

.form-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success__icon .icon { width: 24px; height: 24px; stroke: var(--bordeaux); stroke-width: 2.2; }

.form-success h3 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(26px, 2.5vw, 36px);
  letter-spacing: -0.04em;
}

.form-success h3:focus { outline: none; }
.form-success p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--graphite); max-width: 44ch; }

.link-button {
  margin-top: 6px;
  background: none;
  border: none;
  border-bottom: 2px solid var(--mist);
  padding: 3px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--bordeaux);
  cursor: pointer;
}

.link-button:hover { border-bottom-color: var(--bordeaux); }

.contact__aside {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(22px, 3vw, 40px);
  background: radial-gradient(circle at 90% 100%, #8C2A3E 0%, rgba(140, 42, 62, 0) 55%), #470F1C;
  color: var(--sand);
}

.contact__call { display: flex; flex-direction: column; gap: 8px; }
.contact__call span { font-size: 13px; font-weight: 600; color: var(--mist); }

.contact__phone {
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.03em;
  color: var(--ivory);
}

.contact__phone:hover { color: var(--mist); }

.contact__infos {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #EDE4D8;
}

.contact__infos li { display: flex; gap: 12px; align-items: flex-start; }
.contact__infos .icon { width: 18px; height: 18px; margin-top: 2px; stroke: var(--mist); stroke-width: 1.7; }
.contact__infos a { color: var(--ivory); border-bottom: 1px solid #835C61; }
.contact__infos a:hover { border-bottom-color: var(--ivory); }

.contact__promise {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 236, 225, 0.2);
}

.contact__avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__avatar img { width: 32px; height: auto; }
.contact__promise p { margin: 0; font-size: 13px; line-height: 1.5; color: #EDE4D8; }

/* ---------- Pied de page ---------- */

.footer { padding: 0 clamp(10px, 1.4vw, 20px); }

.footer__panel {
  position: relative;
  overflow: hidden;
  border-radius: clamp(24px, 2.6vw, 38px);
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.8vw, 40px) 0;
  color: var(--ivory);
  background:
    radial-gradient(45% 80% at 32% 100%, rgba(180, 72, 95, 0.9) 0%, rgba(180, 72, 95, 0) 100%),
    radial-gradient(40% 70% at 0% 0%, #1A0408 0%, rgba(26, 4, 8, 0) 100%),
    radial-gradient(38% 65% at 100% 100%, rgba(217, 223, 223, 0.95) 0%, rgba(217, 223, 223, 0) 100%),
    linear-gradient(90deg, #2A0710 0%, #561524 35%, #6F6A6D 63%, #66767C 100%);
}

.footer__top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 14px;
  font-weight: 500;
}

.footer__top span { white-space: nowrap; }

/* Sur petit écran, la mention passe à la ligne au lieu d'être rognée */
.footer__top > span:last-child { margin-left: auto; }
.footer__top .footer__rule { flex: 1; height: 1px; background: rgba(255, 252, 247, 0.5); }

.footer__nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 28px;
  margin-top: clamp(36px, 4vw, 56px);
  font-size: 15px;
  font-weight: 500;
}

.footer__nav a {
  padding: 3px 0;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  background-origin: border-box;
  transition: background-size 400ms var(--ease-out);
}

.footer__nav a:hover { background-position: 0 100%; background-size: 100% 1px; color: var(--ivory); }

.footer__mark {
  position: relative;
  margin: clamp(40px, 5vw, 72px) calc(-1 * clamp(20px, 2.8vw, 40px)) 0;
  aspect-ratio: 4.75 / 1;
  overflow: hidden;
}

.footer__mark img { width: 100%; height: auto; }

.legal {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 110ch;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.legal a { color: var(--bordeaux); border-bottom: 1px solid #CDBFAF; }
.legal a:hover { border-bottom-color: var(--bordeaux); color: var(--bordeaux); }

.legal__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 12px; font-weight: 500; }

/* ---------- Page Mentions légales ---------- */

.legal-top {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-top__logo img { height: 22px; width: auto; }
.legal-top__back { font-size: 13.5px; font-weight: 500; border-bottom: 1px solid #CDBFAF; }
.legal-top__back:hover { border-bottom-color: var(--bordeaux); }

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(64px, 8vw, 120px);
}

.legal-page h2 { margin: 56px 0 14px; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.legal-page h3 { margin: 26px 0 6px; font-size: 15px; font-weight: 600; }

.legal-page p,
.legal-page li { font-size: 15px; line-height: 1.7; color: var(--graphite); text-wrap: pretty; }

.legal-page p { margin: 0 0 12px; }
.legal-page ul { margin: 0 0 12px; padding-left: 20px; }
.legal-page a { color: var(--bordeaux); border-bottom: 1px solid #CDBFAF; }
.legal-page a:hover { border-bottom-color: var(--bordeaux); }

.legal--page { max-width: 820px; }
.legal--page .legal__links { justify-content: flex-start; }

/* ---------- Micro-interactions ---------- */

.btn .icon,
.hero-card__cta .icon,
.service__talk .icon { transition: translate 350ms var(--ease-out); }

.chip:active span { scale: 0.96; }

@media (hover: hover) {
  /* La flèche avance vers l'action */
  .btn:hover .icon,
  .hero-card:hover .hero-card__cta .icon,
  .service__talk:hover .icon { translate: 3px 0; }

  .chip:hover input:not(:checked) + span { border-color: rgba(71, 15, 28, 0.45); }

  .field input:hover:not(:focus),
  .field textarea:hover:not(:focus) { border-color: #BFAF9E; }
}

/* ---------- Animations ---------- */

@media screen and (prefers-reduced-motion: no-preference) {
  /* Entrée du hero au chargement, dans l'ordre de lecture */
  @keyframes rise { from { opacity: 0; translate: 0 24px; } }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes settle { from { scale: 1.06; } }

  .hero__media img { animation: settle 2400ms var(--ease-out) both; }
  .hero__header { animation: fade-in 1000ms var(--ease-out) 100ms both; }
  .hero__line { animation: rise 1000ms var(--ease-out) 200ms both; }
  .hero__line + .hero__line { animation-delay: 320ms; }
  .hero__lead { animation: rise 1000ms var(--ease-out) 460ms both; }
  .hero__meta { animation: rise 1000ms var(--ease-out) 560ms both; }
  .hero__facts { animation: rise 1000ms var(--ease-out) 660ms both; }
  .hero-card { animation: rise 1100ms var(--ease-out) 780ms both; }

  /* Apparition au défilement (--reveal-delay : cascade calculée en JS) */
  .js [data-reveal] {
    opacity: 0;
    translate: 0 24px;
    transition:
      opacity 900ms var(--ease-out) var(--reveal-delay, 0ms),
      translate 900ms var(--ease-out) var(--reveal-delay, 0ms);
  }

  .js [data-reveal].is-revealed { opacity: 1; translate: 0 0; }

  /* Les cartes d'expertise gardent leurs propres transitions */
  .js .service[data-reveal] {
    transition:
      flex-grow 550ms var(--ease-card),
      min-height 550ms var(--ease-card),
      padding 550ms var(--ease-card),
      background-color 400ms ease,
      color 400ms ease,
      border-color 400ms ease,
      opacity 900ms var(--ease-out) var(--reveal-delay, 0ms),
      translate 900ms var(--ease-out) var(--reveal-delay, 0ms);
  }

  /* Portrait dévoilé de bas en haut (le masque est sur l'image : un élément
     entièrement masqué ne serait jamais détecté à l'écran) */
  .js [data-reveal="curtain"] { opacity: 1; translate: 0 0; background: transparent; }

  .js [data-reveal="curtain"] img {
    clip-path: inset(100% 0 0 0);
    scale: 1.12;
    transition:
      clip-path 1200ms var(--ease-out) var(--reveal-delay, 0ms),
      scale 1800ms var(--ease-out) var(--reveal-delay, 0ms);
  }

  .js [data-reveal="curtain"].is-revealed img { clip-path: inset(0 0 0 0); scale: 1; }

  /* Offres : le déroulé se lit étape par étape, le livrable s'allume en dernier */
  .js .offer[data-reveal] .outline-card li {
    opacity: 0;
    translate: -8px 0;
    transition: opacity 600ms var(--ease-out), translate 600ms var(--ease-out);
  }

  .js .offer[data-reveal] .outline-card li:nth-child(1) { transition-delay: calc(var(--reveal-delay, 0ms) + 400ms); }
  .js .offer[data-reveal] .outline-card li:nth-child(2) { transition-delay: calc(var(--reveal-delay, 0ms) + 550ms); }
  .js .offer[data-reveal] .outline-card li:nth-child(3) { transition-delay: calc(var(--reveal-delay, 0ms) + 700ms); }
  .js .offer.is-revealed .outline-card li { opacity: 1; translate: 0 0; }

  .js .offer[data-reveal] .outline-card li:last-child::before {
    scale: 0.3;
    transition: scale 600ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--reveal-delay, 0ms) + 900ms);
  }

  .js .offer.is-revealed .outline-card li:last-child::before { scale: 1; }

  /* Méthode : la ligne du parcours se trace d'une étape à l'autre */
  .js .step[data-reveal] .step__line {
    scale: 0 1;
    transform-origin: left center;
    transition: scale 1000ms var(--ease-out) calc(var(--reveal-delay, 0ms) + 250ms);
  }

  .js .step.is-revealed .step__line { scale: 1 1; }

  /* Lettre de mission : la seconde feuille s'écarte, puis la signature se pose */
  .js .letter[data-reveal] .letter__sheet {
    rotate: -3deg;
    transition: rotate 1100ms var(--ease-out) calc(var(--reveal-delay, 0ms) + 300ms);
  }

  .js .letter.is-revealed .letter__sheet { rotate: 0deg; }

  .js .letter[data-reveal] .letter__sign-line img {
    opacity: 0;
    scale: 1.3;
    transition:
      opacity 400ms ease calc(var(--reveal-delay, 0ms) + 900ms),
      scale 700ms var(--ease-out) calc(var(--reveal-delay, 0ms) + 900ms);
  }

  .js .letter.is-revealed .letter__sign-line img { opacity: 1; scale: 1; }

  [data-parallax] { will-change: translate; }
}

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

@media (max-width: 1239.98px) {
  .hero-card { display: none; }
}

@media (max-width: 979.98px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }

  /* Sans le menu central : logo à gauche, rendez-vous et menu à droite */
  .topbar__inner,
  .hero__header { display: flex; justify-content: space-between; }
  .hero__actions { gap: 10px; }

  .services__cards { flex-wrap: wrap; }
  .service { flex: 1 1 190px; }
  .service.is-active { flex: 1.9 1 360px; min-height: 340px; }
}

/* Téléphones, tablettes et fenêtres étroites : les deux fiches « Pour qui » s'empilent sans se chevaucher */
@media (max-width: 979.98px), (hover: none) and (pointer: coarse) {
  .profiles { display: flex; flex-direction: column; gap: 44px; height: auto; }
  .profile { position: relative; width: min(86%, 300px); }
  .profile--a { align-self: flex-start; }
  .profile--b { align-self: flex-end; }
}

@media (max-width: 479.98px) {
  .btn__full { display: none; }
  .btn__short { display: inline; }
  .hero__header { gap: 12px; }
}

@media (max-width: 639.98px) {
  .service { min-height: 160px; }
  .offer__visual { aspect-ratio: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
