/* Adret – site vitrine. Identité de la marque : anthracite, ocre, roche, neige ; Cormorant Garamond et Jost. */
@font-face { font-family: 'Cormorant'; src: url('/fonts/cormorant-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/fonts/cormorant-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/fonts/cormorant-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/fonts/jost-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/fonts/jost-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --neige: #F4F1EA;
  --neige-2: #EAE4D8;
  --anthracite: #1C1B19;
  --ocre: #C8963E;
  --ocre-texte: #8A6420;
  --roche: #8A8378;
  --roche-texte: #5C5750;
  --trait: #D8D1C3;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(1rem, 5vw, 4rem);
  --max: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--neige);
  color: var(--anthracite);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: 'kern', 'liga';
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ocre-texte); }
:focus-visible { outline: 2px solid var(--ocre); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; }
h3 { font-family: var(--sans); font-weight: 500; font-size: 1.0625rem; line-height: 1.4; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--anthracite); color: var(--neige); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* ————— En-tête ————— */
.top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 1.5rem var(--gutter);
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 0.75rem; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1; }
.brand-sub { font-size: 0.875rem; color: var(--roche-texte); }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.9375rem; }
.top nav a { text-decoration: none; padding: 0.25rem 0; }
.top nav a:hover { text-decoration: underline; }
.top nav .lang { color: var(--roche-texte); }
.top nav .client { color: var(--ocre-texte); }

/* ————— Accueil : titre et ligne de crêtes ————— */
.hero { padding-top: clamp(2rem, 7vw, 6rem); }
.hero-text, .page-head, .band, .foot, .talk {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-left: auto; margin-right: auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.hero h1 {
  font-size: clamp(3.1rem, 10.5vw, 8.4rem); line-height: 0.92; letter-spacing: -0.02em; max-width: 10ch;
  margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 34em; color: var(--anthracite); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 2rem 0 0; }
.call { color: var(--roche-texte); font-size: 0.9375rem; }
.call a { color: var(--anthracite); white-space: nowrap; }

.button {
  display: inline-block; font: 500 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--anthracite); color: var(--neige); border: 0; border-radius: 2px; padding: 1rem 1.5rem;
}
.button:hover { background: var(--ocre-texte); color: var(--neige); }
.button:disabled { opacity: 0.6; cursor: wait; }

.hero-ridge { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.ridge { width: 100%; height: clamp(170px, 26vw, 400px); }
.ridge .mass { fill: var(--neige-2); }
.ridge .lit { fill: url(#sun); opacity: var(--o); }
.ridge .crest { fill: none; stroke: var(--anthracite); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero-ridge figcaption {
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--roche-texte);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0.9rem auto 0; padding: 0 var(--gutter); text-align: right;
}
/* Le seul mouvement du site : le soleil gagne les versants, de gauche à droite, à l'ouverture. */
@media (prefers-reduced-motion: no-preference) {
  .ridge .lit { animation: sun 1.1s ease-out both; animation-delay: calc(250ms + var(--i) * 85ms); }
  @keyframes sun { from { opacity: 0; } to { opacity: var(--o); } }
}

/* ————— Sections ————— */
.page-head { padding-top: clamp(2rem, 6vw, 5rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.98; letter-spacing: -0.015em; max-width: 14ch; margin-bottom: 1.5rem; }
.areas { color: var(--roche-texte); max-width: 40em; }

.band {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem clamp(2rem, 5vw, 5rem);
  padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: 0;
}
.band > * { grid-column: 2; }
.band > .band-head { grid-column: 1; align-self: start; }
.band-head p { color: var(--roche-texte); margin-top: 1rem; max-width: 26em; }
.band-dark {
  max-width: none; background: var(--anthracite); color: var(--neige);
  margin-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 7rem);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.band-dark .band-head p, .band-dark .pairs dd { color: #C9C2B5; }
.band-dark .pairs dt { color: var(--neige); }
.band-dark .pairs > div { border-color: #3A3833; }
.band-dark + .band { padding-top: clamp(3.5rem, 8vw, 7rem); }

.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; }
.pairs > div { border-top: 1px solid var(--trait); padding: 1.1rem 0 1.4rem; }
.pairs dt { font-weight: 500; margin-bottom: 0.35rem; }
.pairs dd { margin: 0; color: var(--roche-texte); }
.pairs.compact dt { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }

/* Arrivée : une vraie suite d'étapes, dans l'ordre. */
.timeline, .start { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.band > .timeline { grid-column: 1 / -1; grid-row: auto; margin-top: 1.5rem; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 0.95rem; height: 1px; background: var(--trait); }
.timeline li, .start li { counter-increment: step; position: relative; }
.timeline li::before, .start li::before {
  content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--neige); border: 1px solid var(--ocre); color: var(--ocre-texte);
  font: 500 1.05rem/1 var(--serif); position: relative; margin-bottom: 1rem;
}
.timeline li:last-child::before { background: var(--ocre); color: var(--anthracite); }
.timeline p, .start p { color: var(--roche-texte); margin-top: 0.4rem; }
.start { display: grid; gap: 1.5rem; }
.start li { display: grid; grid-template-columns: 2rem 1fr; column-gap: 1.25rem; }
.start li::before { grid-row: span 2; margin: 0; }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; }
.ticks li::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; background: var(--ocre); border-radius: 50%; margin-right: 0.6rem; vertical-align: 0.15em; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.plan { border-top: 1px solid var(--anthracite); padding-top: 1.25rem; }
.plan:last-child { border-top: 3px solid var(--ocre); padding-top: calc(1.25rem - 2px); }
.plan h3 { font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.1; }
.plan-lead { color: var(--roche-texte); margin: 0.35rem 0 1rem; }
.plan ul { margin: 0; padding-left: 1.1rem; }
.plan li { margin-bottom: 0.45rem; }
.plan li::marker { color: var(--ocre); }
.note { color: var(--roche-texte); font-size: 0.9375rem; margin-top: 1.5rem; }
.more { color: var(--ocre-texte); }

.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.towns a { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.3; text-decoration: none; }
.towns a:hover { color: var(--ocre-texte); text-decoration: underline; text-decoration-thickness: 1px; }

.prose { max-width: calc(48rem + 2 * var(--gutter)); margin-left: 0; }
.prose h2 { font-size: 1.75rem; margin: 2.25rem 0 0.75rem; }
.prose p { color: var(--roche-texte); }

/* ————— Formulaire ————— */
.talk {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 5vw, 5rem);
  margin-top: clamp(4rem, 9vw, 8rem); padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--neige-2); max-width: none;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.talk-intro p { color: var(--roche-texte); margin-top: 1rem; max-width: 24em; }
.talk-intro .direct { color: var(--anthracite); font-size: 1.125rem; }
.lead { display: grid; gap: 1rem; }
.lead .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lead label { display: grid; gap: 0.35rem; font-size: 0.9375rem; font-weight: 500; }
.lead input, .lead select, .lead textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--anthracite); background: var(--neige);
  border: 1px solid #C8C0B1; border-radius: 2px; padding: 0.8rem 0.9rem; width: 100%;
}
.lead textarea { resize: vertical; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: 2px solid var(--ocre); outline-offset: 0; border-color: var(--ocre); }
.lead .button { justify-self: start; }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.4em; color: #9A3B1E; }
.form-msg.ok { color: var(--anthracite); font-family: var(--serif); font-size: 1.6rem; line-height: 1.25; }
.form-msg:empty { min-height: 0; }
.fine { font-size: 0.875rem; color: var(--roche-texte); margin: 0; }

/* ————— Pied de page ————— */
.foot { display: grid; grid-template-columns: 2fr 3fr; gap: 2rem 4rem; padding-top: 3.5rem; padding-bottom: 3rem; font-size: 0.9375rem; }
.foot-brand { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 0.4rem; }
.foot p { color: var(--roche-texte); }
.foot p a { color: var(--anthracite); }
.foot-towns { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-content: start; }
.foot-towns a { text-decoration: none; }
.foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--roche-texte); border-top: 1px solid var(--trait); padding-top: 1.25rem; font-size: 0.875rem; }

/* ————— Téléphone et tablette ————— */
@media (max-width: 860px) {
  .band, .talk { grid-template-columns: 1fr; }
  .band > *, .band > .band-head, .band > .timeline { grid-column: 1; grid-row: auto; }
  .timeline { grid-template-columns: 1fr; gap: 1.25rem; }
  .timeline::before { left: 1rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 2rem 1fr; column-gap: 1.25rem; }
  .timeline li::before { grid-row: span 2; margin: 0; }
  .foot { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pairs, .plans, .lead .two { grid-template-columns: 1fr; }
  .top { padding-top: 1rem; }
  .brand-sub { display: none; }
  .hero-ridge figcaption { text-align: left; }
}
@media print { .top nav, .talk, .hero-ridge { display: none; } }
