/* IMOPRO by Alpium — site de présentation.
   Palette tirée du logo : marine #15243C et vert alpage #7EB43A.
   Le vert vif ne sert qu'aux marques graphiques ; le texte en vert utilise
   --alpage-deep (contraste 5,4:1 sur le fond). */

@property --brand {
  syntax: '<color>';
  inherits: true;
  initial-value: #0079BF;
}

:root {
  --ink: #15243C;
  --granite: #4E5D6C;
  --snow: #F5F7F4;
  --paper: #FFFFFF;
  --line: #D8E0DA;
  --alpage: #7EB43A;
  --alpage-deep: #43701A;
  --mist: #C9D4DE;
  --field: #77878F;
  --error: #B42318;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 72.5rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* Le pied de page reste en bas de l'écran sur les pages courtes. */
main { flex: 1 0 auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5vw, 3.9rem); font-weight: 720; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 680; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; font-weight: 640; letter-spacing: -0.005em; }
p { margin: 0; }

a { color: inherit; }
.link {
  color: var(--alpage-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.link:hover { text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: .6rem 1rem;
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

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

.btn {
  display: inline-block;
  padding: .8rem 1.3rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--alpage-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--alpage); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- En-tête ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
  margin-right: auto;
}
.brand img { height: 30px; width: auto; align-self: center; }
.brand__by {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--granite);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  display: inline-block;
  padding: .35rem 0;
  font-size: .97rem;
  font-weight: 560;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { border-bottom-color: var(--line); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--alpage); }
.site-nav__cta { padding: .65rem 1rem; font-size: .95rem; }

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: .45rem .9rem;
  cursor: pointer;
}

/* ---------- Accueil : en-tête et maquette ---------- */

.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { max-width: 14ch; }
.lede {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: 1.15rem;
  color: var(--granite);
}

.demo { margin: 0; }
.demo__frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 34px 60px -34px rgba(21, 36, 60, .45);
}
.demo__chrome {
  display: flex;
  align-items: center;
  gap: .9rem;
  height: 2.3rem;
  padding: 0 .9rem;
  background: #EEF2EE;
  border-bottom: 1px solid var(--line);
}
.demo__dots { display: flex; gap: .35rem; }
.demo__dots i { width: .6rem; height: .6rem; border-radius: 50%; background: #C7D0C9; }
.demo__url {
  flex: 0 1 60%;
  padding: .15rem .8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--granite);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo__site { transition: --brand .45s ease; }
.demo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1rem;
  border-bottom: 3px solid var(--brand);
}
.demo__logo { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.demo__logo b { width: 1.1rem; height: 1.1rem; border-radius: 4px; background: var(--brand); }
.demo__menu { display: flex; gap: .4rem; }
.demo__menu i { width: 1.7rem; height: .35rem; border-radius: 3px; background: #DCE2DD; }

.demo__hero { position: relative; }
.demo__landscape { width: 100%; height: 9.5rem; }
.demo__landscape .sky { fill: color-mix(in srgb, var(--brand) 20%, #FFFFFF); }
.demo__landscape .far { fill: color-mix(in srgb, var(--brand) 62%, #15243C); }
.demo__landscape .near { fill: color-mix(in srgb, var(--brand) 30%, #15243C); }
.demo__landscape .snow { fill: #FFFFFF; }

.demo__search {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: .9rem;
  display: flex;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 6px 16px -6px rgba(21, 36, 60, .4);
  overflow: hidden;
  font-size: .72rem;
}
.demo__search span { flex: 1; padding: .55rem .7rem; color: var(--granite); border-right: 1px solid var(--line); white-space: nowrap; }
.demo__search b { padding: .55rem .9rem; background: var(--brand); color: #FFFFFF; }

.demo__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: 1rem; }
.demo__card { font-size: .72rem; line-height: 1.35; }
.demo__card b { display: block; margin-top: .5rem; font-weight: 650; }
.demo__card em { display: block; font-style: normal; font-weight: 700; color: var(--brand); }
.demo__photo { display: block; height: 4.2rem; border-radius: 6px; }
.demo__photo--1 { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 25%, #FFFFFF) 0 45%, color-mix(in srgb, var(--brand) 55%, #15243C) 45% 100%); }
.demo__photo--2 { background: linear-gradient(200deg, color-mix(in srgb, var(--brand) 35%, #FFFFFF) 0 55%, color-mix(in srgb, var(--brand) 45%, #15243C) 55% 100%); }
.demo__photo--3 { background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 15%, #FFFFFF) 0 38%, color-mix(in srgb, var(--brand) 70%, #15243C) 38% 100%); }

.demo__switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem .8rem;
  margin-top: 1.1rem;
  font-size: .95rem;
  color: var(--granite);
}
.demo__choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.demo__choices button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .75rem;
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.demo__choices button:hover { border-color: var(--granite); }
.demo__choices button[aria-pressed="true"] { border-color: var(--ink); font-weight: 650; }
.demo__choices i { width: .75rem; height: .75rem; border-radius: 50%; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.25rem, 7vw, 5rem) 0; }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section h2 { margin-bottom: 1.6rem; }
.section__intro { max-width: 40rem; margin: -.6rem 0 1.8rem; color: var(--granite); }
.more { margin-top: 1.8rem; color: var(--granite); }

.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience { display: flex; flex-direction: column; gap: .8rem; padding-right: 2rem; }
.audience + .audience { border-left: 1px solid var(--line); padding-left: 2rem; }
.audience h3 { font-size: 1.45rem; font-weight: 680; }
.audience p { color: var(--granite); flex: 1; }

.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 1rem 2.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.row p { max-width: 42rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--alpage); }
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: .6rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 720;
  line-height: 1;
  color: var(--alpage-deep);
}
.steps h3 { margin-bottom: .45rem; }
.steps p { color: var(--granite); }

.examples { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.examples li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.examples a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.examples a:hover { color: var(--alpage-deep); }
.examples span { color: var(--granite); }

/* Captures des sites clients, dans un cadre de navigateur */
.refs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.refs--1 { grid-template-columns: minmax(0, 36rem); }
.refs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ref__frame {
  display: block;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 26px 44px -32px rgba(21, 36, 60, .5);
  text-decoration: none;
}
.ref__frame:hover { border-color: var(--granite); }
.ref__chrome {
  display: flex;
  align-items: center;
  gap: .6rem;
  height: 1.9rem;
  padding: 0 .7rem;
  background: #EEF2EE;
  border-bottom: 1px solid var(--line);
}
.ref__dots { display: flex; gap: .3rem; }
.ref__dots i { width: .5rem; height: .5rem; border-radius: 50%; background: #C7D0C9; }
.ref__url {
  overflow: hidden;
  padding: .05rem .7rem;
  font-size: .72rem;
  color: var(--granite);
  white-space: nowrap;
  text-overflow: ellipsis;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.ref img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.ref__name { margin-top: .9rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; }
.ref__kind { font-size: .92rem; color: var(--granite); }

.band { background: var(--ink); color: var(--paper); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; }
.band h2 { color: var(--paper); margin-bottom: .9rem; }
.band p { max-width: 40rem; color: var(--mist); }
.band__cta { margin: 0; }

/* ---------- Pages intérieures ---------- */

.page-hero { padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(2.5rem, 5vw, 3.5rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 21ch; }
.crumb { margin-bottom: 1.2rem; font-size: .9rem; color: var(--granite); }
.crumb a { color: inherit; }

.contact { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem 4rem; align-items: start; }
.contact h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.contact dl { margin: 0; }
.contact dt { font-size: .9rem; font-weight: 650; color: var(--granite); }
.contact dd { margin: .15rem 0 1.2rem; font-size: 1.1rem; }

/* ---------- Formulaire de contact ---------- */

.form { position: relative; }
.form h2 { margin-bottom: .4rem; }
.form__note { margin-bottom: 1.5rem; font-size: .92rem; color: var(--granite); }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1.15rem; }
.field label { font-size: .95rem; font-weight: 600; }
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  padding: .65rem .75rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--field);
  border-radius: var(--radius);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__hint { font-size: .9rem; color: var(--granite); }
.field__error { font-size: .9rem; font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .65rem; align-items: start; }
.field--check input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--ink); }
.field--check label { font-weight: 400; }
.field--check .field__error { grid-column: 2; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { margin-top: 1.4rem; }
.form__status { margin-top: 1rem; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }
.btn:disabled { opacity: .7; cursor: progress; }

.prose { max-width: 44rem; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: .8rem; }

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

.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: 3rem; font-size: .95rem; color: var(--granite); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; }
.site-footer__about img { height: 25px; width: auto; margin-bottom: .9rem; }
.site-footer__about p { max-width: 26rem; }
.site-footer__nav ul { margin: 0; padding: 0; list-style: none; }
.site-footer__nav li + li { margin-top: .35rem; }
.site-footer__nav a, .site-footer__contact a { color: var(--ink); }
.site-footer__contact { font-style: normal; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.2rem; padding-bottom: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- Écrans moyens et téléphones ---------- */

@media (max-width: 1060px) {
  .site-nav ul { gap: 1rem; }
  .site-nav ul a { font-size: .92rem; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: .5rem 0 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--alpage); }
  .site-nav__cta { text-align: center; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }

  .audiences { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .audience { padding-right: 0; }
  .audience + .audience { border-left: 0; padding-left: 0; padding-top: 1.8rem; border-top: 1px solid var(--line); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refs, .refs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .band__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .refs, .refs--1, .refs--2 { grid-template-columns: minmax(0, 1fr); }
  .demo__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo__card:nth-child(3) { display: none; }
  .demo__search span:nth-child(2) { display: none; }
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .demo__site { transition: none; }
}
