/*
 * AVENOR, la vitrine : l'accueil, nos valeurs, les mentions légales.
 *
 * Les polices sont servies par le site : aucune requête ne part vers un tiers. Un seul script,
 * celui du formulaire, qui envoie le message à la fonction d'envoi d'AVENOR, ou le prépare dans
 * la messagerie du visiteur.
 *
 * Quatre fonds, et chacun a son propriétaire : le blanc et l'encre d'AVENOR, le papier crème
 * de Terva, la nuit d'Elonora. Chaque logiciel se montre dans ses propres couleurs.
 */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("polices/instrument-serif-latin.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: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("polices/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("polices/archivo-latin.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: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("polices/figtree-latin.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: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("polices/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
/*
 * L'espace fine des milliers (U+202F). Instrument Serif et Figtree ne la portent pas : le
 * navigateur irait la chercher dans une autre police, plus large ou plus étroite. Une face d'un
 * seul glyphe vide, large d'un huitième de cadratin, reprise d'Elonora ; déclarée après les
 * autres pour l'emporter sur ce seul caractère.
 */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  src: url("polices/espace-fine.ttf") format("truetype");
  unicode-range: U+202F;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  src: url("polices/espace-fine.ttf") format("truetype");
  unicode-range: U+202F;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  src: url("polices/espace-fine.ttf") format("truetype");
  unicode-range: U+202F;
}

:root {
  /* L'encre et ses deux gris sont ceux des signatures de courriel d'AVENOR. */
  --papier: #ffffff;
  --table: #f2f3f5;
  --encre: #1f2126;
  --encre-douce: #4d525b;
  --encre-pale: #646973;
  --filet: #dcdfe3;
  --filet-fort: #c4c8ce;
  --sur-encre: #ffffff;
  --sur-encre-douce: #c9ccd2;
  --sur-encre-pale: #a1a6ae;
  --filet-sur-encre: rgb(255 255 255 / 0.16);

  /* Terva : son papier, son bordeaux, son or et son graphite, ceux de ses rapports. */
  --terva-papier: #fbf9f4;
  --terva-bordeaux: #7a2937;
  --terva-or: #9a7b3f;
  --terva-graphite: #45474d;
  --terva-encre: #18191c;
  --terva-gris: #63666c;

  /* Elonora : la nuit et la crème de son accueil ; le corail est une forme, jamais un texte. */
  --elonora-nuit: #1d1627;
  --elonora-creme: #f3ecdf;
  --elonora-corail: #d9705f;
  --elonora-corail-clair: #ff9a8b;
  --elonora-encre: #1a1524;
  --elonora-encre-douce: #5a5364;

  --marge: clamp(20px, 5vw, 64px);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* Une seule lumière, en haut à gauche : toutes les pièces posées jettent leur ombre du même côté. */
  --ombre: 0 1px 2px rgb(31 33 38 / 0.08), 14px 26px 50px -22px rgb(31 33 38 / 0.34);
  --ombre-nuit: 0 1px 2px rgb(0 0 0 / 0.3), 18px 34px 64px -26px rgb(0 0 0 / 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
p,
ul,
ol,
figure,
fieldset {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
p {
  text-wrap: pretty;
}
.insecable {
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

.cadre {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--marge);
}

.evitement {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--encre);
  color: #fff;
}
.evitement:focus {
  top: 12px;
}

/* Les boutons : des rectangles à peine adoucis, jamais des pilules. */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  font: 600 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.bouton-encre {
  background: var(--encre);
  color: #fff;
}
.bouton-encre:hover {
  background: #000;
}
.bouton-clair {
  background: #fff;
  color: var(--encre);
}
.bouton-clair:hover {
  background: #e6e8eb;
}
.bouton-terva {
  background: var(--terva-bordeaux);
  color: #fff;
}
.bouton-terva:hover {
  background: #62202c;
}
.bouton-elonora {
  background: var(--elonora-creme);
  color: var(--elonora-encre);
}
.bouton-elonora:hover {
  background: #fff;
}
.lien {
  font-weight: 600;
  text-decoration: underline;
}
.gestes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  margin-top: 36px;
}

/* ── L'en-tête ─────────────────────────────────────────────────────────── */

.tete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 36px;
  padding-block: 24px;
}
.marque {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  color: var(--encre);
  text-decoration: none;
}
.marque i {
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 14px;
  background: currentColor;
  transform: rotate(45deg);
}
.marque span {
  font: 400 26px/1 var(--serif);
  letter-spacing: 0.26em;
  margin-right: -0.26em;
}
.tete nav {
  display: flex;
  gap: 30px;
  font-size: 0.9375rem;
}
.tete nav a {
  color: var(--encre-douce);
  text-decoration: none;
}
.tete nav a:hover,
.tete nav a[aria-current="page"] {
  color: var(--encre);
  text-decoration: underline;
}
.tete .bouton {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

/* ── Le héros : le titre passe la couture, du jour à l'encre ─────────────── */

/*
 * « Le logement, avant » se lit sur le blanc, « et après les clés » sur l'encre : la couture
 * tombe entre les deux lignes, et c'est elle, le moment des clés. Sa hauteur se calcule sur le
 * corps du titre : deux lignes d'interligne 0,94, puis la moitié de l'écart qui les sépare.
 * Les deux pièces posées sur la photo la chevauchent : Terva au-dessus, Elonora au-dessous.
 */
.heros {
  --corps: clamp(3.1rem, 0.85rem + 6.9vw, 6.75rem);
  --haut: clamp(28px, 4.5vw, 64px);
  --couture: calc(var(--haut) + 1.97 * var(--corps));
  padding: var(--haut) 0 clamp(72px, 9vw, 120px);
  background: linear-gradient(var(--papier) var(--couture), var(--encre) 0);
  color: var(--sur-encre);
}
.heros-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.heros h1 {
  font: 400 var(--corps) / 0.94 var(--serif);
  letter-spacing: -0.015em;
}
.heros h1 span {
  display: block;
}
.heros .jour {
  color: var(--encre);
}
.heros .nuit {
  margin-top: 0.18em;
  color: #fff;
}
.chapeau {
  margin-top: clamp(26px, 3vw, 40px);
  max-width: 30em;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
}
.heros .chapeau {
  color: var(--sur-encre-douce);
  text-wrap: balance;
}
.heros .lien {
  color: #fff;
}

.heros-scene {
  position: relative;
  margin-top: clamp(48px, 7vw, 72px);
  max-width: 680px;
}
.heros-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1264 / 848;
  object-fit: cover;
  border-radius: 6px;
}
.heros-scene .carte-terva {
  position: relative;
  width: min(340px, 88%);
  margin: -110px 0 0 14px;
}
/* Empilées, la réponse d'Elonora ne mord pas sur le rapport : son offre à viser reste lisible. */
.heros-scene .carte-elonora {
  position: relative;
  width: min(330px, 88%);
  margin: 18px 14px 0 auto;
}
.heros-scene figcaption {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--sur-encre-pale);
}

/* Les deux pièces : un rapport de Terva, une réponse d'Elonora. */
.carte {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--ombre-nuit);
}
.carte-marque {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.carte-terva {
  padding: 18px 20px 16px;
  border: 1px solid #dadde2;
  font-family: "Archivo", sans-serif;
  color: var(--terva-encre);
}
.carte-terva .carte-marque span {
  font: 800 1.0625rem/1 "Archivo", sans-serif;
  letter-spacing: -0.02em;
  color: #201d18;
}
/* Trop étroite pour les deux, la ligne passe le prix dessous plutôt que de couper la ville. */
.annonce-ligne {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eceef1;
  font-size: 0.8125rem;
  color: var(--terva-gris);
}
.annonce-ligne strong {
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--terva-encre);
  white-space: nowrap;
}
.cout-etiquette {
  margin-top: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--terva-graphite);
}
.cout {
  margin-top: 4px;
  font-size: 2.375rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ecart {
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--terva-bordeaux);
}
.barre {
  display: flex;
  gap: 2px;
  height: 8px;
  margin-top: 12px;
}
.barre span {
  display: block;
  border-radius: 1px;
}
.b-prix {
  flex: 0 0 85.9%;
  background: var(--terva-graphite);
}
.b-notaire {
  flex: 0 0 6.9%;
  background: var(--terva-or);
}
.b-travaux {
  flex: 1 1 auto;
  background: var(--terva-bordeaux);
}
.sources {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--terva-gris);
}
.sources li {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.sources i {
  flex: none;
  width: 6px;
  height: 6px;
  transform: translateY(-1px) rotate(45deg);
}
.sources strong {
  font-weight: 600;
  color: var(--terva-encre);
}
.offre {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eceef1;
  font-size: 0.875rem;
  color: var(--terva-graphite);
}
.offre strong {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--terva-encre);
}

.carte-elonora {
  padding: 16px 18px 14px;
  border-radius: 18px;
  font-family: "Figtree", sans-serif;
  color: var(--elonora-encre);
}
.carte-elonora .carte-marque span {
  font: 400 1.375rem/1 var(--serif);
  color: var(--elonora-encre);
}
.question {
  width: fit-content;
  max-width: 88%;
  margin-left: auto;
  padding: 9px 13px;
  border-radius: 16px 16px 4px 16px;
  background: var(--elonora-encre);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.35;
}
.dit {
  margin-top: 12px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.dit strong {
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--elonora-corail);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.preuve {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0eae5;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--elonora-encre-douce);
}
.preuve span:last-child {
  font-weight: 600;
  color: #9f4536;
}

/* ── Les sections des logiciels ────────────────────────────────────────── */

.logiciel {
  padding-block: clamp(80px, 10vw, 144px);
}
.logiciel-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(48px, 6vw, 72px);
}
.produit {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logiciel h2 {
  margin-top: 26px;
  max-width: 12em;
  font: 400 clamp(2.5rem, 1.3rem + 3.3vw, 4.375rem) / 1 var(--serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.logiciel .texte {
  margin-top: 24px;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}
.logiciel figcaption {
  margin-top: 20px;
  font-size: 0.8125rem;
}

/* Terva, sur son papier. */
.terva {
  background: var(--terva-papier);
  color: var(--terva-encre);
}
.produit-terva span {
  font: 800 1.625rem/1 "Archivo", sans-serif;
  letter-spacing: -0.02em;
  color: #201d18;
}
.terva .texte {
  color: var(--terva-graphite);
}
.terva .lien {
  color: var(--terva-bordeaux);
}
.prix {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--terva-gris);
}
.terva figcaption {
  color: var(--terva-gris);
}

/* L'annonce relue : l'annonce telle qu'elle est écrite, et ce que Terva note dans la marge. */
.annonce-relue {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.annonce-feuille {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6e2d9;
  border-radius: 10px;
  box-shadow: var(--ombre);
}
.annonce-feuille img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.annonce-corps {
  padding: 18px 20px 22px;
}
.annonce-titre {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.annonce-prix {
  margin-top: 6px;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
}
.annonce-puces {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--terva-gris);
}
.annonce-texte {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #efece6;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--terva-graphite);
}
.annonce-texte mark {
  background: none;
  color: var(--terva-encre);
  text-decoration: underline;
  text-decoration-color: var(--terva-bordeaux);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.notes {
  border-left: 2px solid var(--terva-bordeaux);
}
.notes li {
  position: relative;
  padding: 0 0 22px 22px;
}
.notes li:last-child {
  padding-bottom: 0;
}
.notes li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--terva-bordeaux);
  transform: rotate(45deg);
}
.note-dit {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--terva-encre);
}
.note-source {
  margin-top: 3px;
  font-size: 0.8125rem;
  color: var(--terva-gris);
}

/* Elonora, dans sa nuit. */
.elonora {
  background: var(--elonora-nuit);
  color: var(--elonora-creme);
}
.produit-elonora img {
  width: 34px;
  height: 34px;
}
.produit-elonora span {
  font: 400 2.125rem/1 var(--serif);
  letter-spacing: -0.01em;
}
.elonora .texte {
  color: rgb(243 236 223 / 0.82);
}
.elonora .lien {
  color: var(--elonora-creme);
}
.elonora figcaption {
  color: rgb(243 236 223 / 0.62);
}
.atouts {
  margin-top: 32px;
  border-top: 1px solid rgb(243 236 223 / 0.16);
}
.atouts li {
  padding-block: 16px;
  border-bottom: 1px solid rgb(243 236 223 / 0.16);
  color: rgb(243 236 223 / 0.76);
}
.atouts strong {
  display: block;
  font-weight: 600;
  color: var(--elonora-creme);
}

.elonora-scene {
  position: relative;
}
.contrat {
  position: relative;
  width: min(92%, 380px);
  padding: 22px 24px 26px;
  background: #fff;
  border-radius: 3px;
  box-shadow: var(--ombre-nuit);
  transform: rotate(-2deg);
  font: 400 0.8125rem/1.6 Georgia, "Times New Roman", serif;
  color: #8b8791;
}
.contrat-tete {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 600 0.6875rem/1.3 var(--sans);
  color: var(--elonora-encre-douce);
}
.contrat-titre {
  margin-top: 6px;
  margin-bottom: 14px;
  font: 400 1.125rem/1.2 Georgia, "Times New Roman", serif;
  color: var(--elonora-encre);
}
.contrat p + p {
  margin-top: 8px;
}
.contrat mark {
  padding: 1px 2px;
  background: #ffe1da;
  color: var(--elonora-encre);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/*
 * Le téléphone : l'accueil de la démonstration, dans la police de l'application. Le ciel compte
 * les jours jusqu'à la première échéance ; dessous, les prochaines dates du logement.
 */
.telephone {
  position: relative;
  width: 270px;
  margin: -28px 0 0 auto;
  padding: 9px;
  border-radius: 44px;
  background: #0c0a10;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), var(--ombre-nuit);
}
.ecran {
  position: relative;
  overflow: hidden;
  border-radius: 35px;
  background: #f4f4f2;
  font-family: "Figtree", sans-serif;
  color: var(--elonora-encre);
}
.ecran::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 82px;
  height: 24px;
  margin-left: -41px;
  border-radius: 12px;
  background: #0c0a10;
}
.ciel {
  padding: 54px 18px 20px;
  background: #1f1929;
  color: var(--elonora-creme);
}
.ciel-avant {
  font-size: 0.8125rem;
  color: rgb(243 236 223 / 0.75);
}
.ciel-decompte {
  margin-top: 4px;
  font: 400 2.75rem/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--elonora-corail-clair);
}
.ciel-quoi {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.agenda {
  display: grid;
  gap: 6px;
  padding: 12px 10px 16px;
}
.agenda li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e3e3df;
  border-radius: 12px;
  background: #fff;
  font-size: 0.8125rem;
  line-height: 1.3;
}
.agenda-jour {
  grid-row: span 2;
  font: 400 1.375rem/1 var(--serif);
  text-align: center;
}
.agenda-jour small {
  display: block;
  margin-top: 2px;
  font: 600 0.625rem/1.2 "Figtree", sans-serif;
  color: #665e71;
}
.agenda-quoi {
  font-weight: 600;
}
.agenda-detail {
  font-size: 0.75rem;
  color: #665e71;
}

/* ── Le savoir-faire ───────────────────────────────────────────────────── */

.savoir {
  padding-block: clamp(88px, 11vw, 160px) clamp(80px, 10vw, 136px);
}
.titre-section {
  max-width: 14em;
  font: 400 clamp(2.5rem, 1.3rem + 3.3vw, 4.375rem) / 1 var(--serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.metier {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--encre);
}
.metier li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-block: 26px 30px;
  border-bottom: 1px solid var(--filet);
}
.verbe {
  font: 400 clamp(3rem, 1.3rem + 4.8vw, 6.25rem) / 0.95 var(--serif);
  letter-spacing: -0.02em;
}
.metier-texte {
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--encre-douce);
}
.vers-valeurs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-top: 36px;
  font-size: 1.0625rem;
  color: var(--encre-douce);
}
.vers-valeurs .lien {
  color: var(--encre);
}

/* ── Travaillons ensemble ──────────────────────────────────────────────── */

.travailler {
  padding-block: clamp(88px, 11vw, 152px) clamp(80px, 10vw, 128px);
  background: var(--encre);
  color: var(--sur-encre);
}
.travailler-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.travailler h2 {
  font: 400 clamp(2.75rem, 1.3rem + 4.2vw, 5.25rem) / 0.98 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.travailler-texte p {
  margin-top: 24px;
  max-width: 27em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--sur-encre-douce);
}
.travailler-texte .direct {
  font-size: 1rem;
  color: var(--sur-encre-pale);
}
.direct a {
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}

.formulaire {
  padding: clamp(22px, 3vw, 40px);
  border-radius: 8px;
  background: #fff;
  color: var(--encre);
}
.sujets {
  min-width: 0;
  padding: 0;
  border: 0;
}
.sujets legend {
  padding: 0;
  margin-bottom: 12px;
  font-weight: 600;
}
.sujets-choix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.choix {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--filet-fort);
  border-radius: 4px;
  line-height: 1.25;
  cursor: pointer;
}
.choix:hover {
  border-color: var(--encre-pale);
}
.choix:has(input:checked) {
  border-color: var(--encre);
  box-shadow: inset 0 0 0 1px var(--encre);
}
.choix input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--encre);
}
.champ {
  display: grid;
  gap: 6px;
  margin-top: 20px;
}
.champ label {
  font-weight: 600;
}
.champ label span {
  font-weight: 400;
  color: var(--encre-pale);
}
.champ input,
.champ textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--filet-fort);
  border-radius: 4px;
  background: #fff;
  color: var(--encre);
  font: inherit;
}
.champ textarea {
  min-height: 140px;
  resize: vertical;
}
.champ input:focus-visible,
.champ textarea:focus-visible,
.choix:has(input:focus-visible) {
  outline: 2px solid var(--encre);
  outline-offset: 1px;
}
.champs-cote {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 16px;
}
.formulaire .bouton {
  width: 100%;
  margin-top: 26px;
}
.note {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--encre-pale);
}
.etat:not(:empty) {
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}
/* Le champ piège : hors de l'écran pour les personnes, rempli par les robots. */
.champ-piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.repli {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--encre);
  font: 600 0.9375rem/1.4 var(--sans);
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}
.confirmation {
  padding-block: 8px;
}
.confirmation:focus {
  outline: none;
}
.confirmation-titre {
  font: 400 clamp(2.25rem, 1.7rem + 1.8vw, 3rem) / 1 var(--serif);
  letter-spacing: -0.01em;
}
.confirmation p + p {
  margin-top: 14px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--encre-douce);
}
.confirmation-adresse {
  color: var(--encre);
  overflow-wrap: anywhere;
}

/* ── Nos valeurs ───────────────────────────────────────────────────────── */

.ouverture {
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
}
.ouverture h1 {
  font: 400 clamp(3.25rem, 1rem + 7vw, 7rem) / 0.94 var(--serif);
  letter-spacing: -0.015em;
}
.ouverture .chapeau {
  max-width: 34em;
  color: var(--encre-douce);
}
.regles {
  border-top: 1px solid var(--encre);
}
.regle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: 32px 36px;
  border-bottom: 1px solid var(--filet);
}
.regle h2 {
  font: 400 clamp(2rem, 1.2rem + 2.4vw, 3.5rem) / 1.02 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.preuves {
  display: grid;
  gap: 16px;
}
.preuves li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  color: var(--encre-douce);
}
.qui {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  padding-top: 2px;
}
.qui-terva {
  font: 800 1rem/1 "Archivo", sans-serif;
  letter-spacing: -0.02em;
  color: #201d18;
}
.qui-elonora {
  font: 400 1.3125rem/1 var(--serif);
  color: var(--elonora-encre);
}
.qui img,
.qui svg {
  width: 20px;
  height: 20px;
}

.equipe {
  padding-block: clamp(88px, 11vw, 152px);
}
.personnes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: clamp(36px, 4vw, 56px);
}
.personne {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
}
.equipe-chapeau {
  margin-top: 20px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--encre-douce);
  text-wrap: balance;
}
.personne img {
  grid-row: span 3;
  width: 72px;
  height: 72px;
  border-radius: 50%;
}
.personne-nom {
  align-self: end;
  font-weight: 600;
  line-height: 1.3;
}
.personne-role {
  font-size: 0.9375rem;
  color: var(--encre-pale);
}
.personne-part {
  align-self: start;
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--encre-douce);
}

.appel {
  padding-block: clamp(80px, 10vw, 136px);
  background: var(--encre);
  color: #fff;
}
.appel-grille {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
}
.appel h2 {
  max-width: 13em;
  font: 400 clamp(2.5rem, 1.3rem + 3.3vw, 4.375rem) / 1 var(--serif);
  letter-spacing: -0.012em;
  text-wrap: balance;
}

/* ── Le pied ───────────────────────────────────────────────────────────── */

.fin {
  margin-top: clamp(96px, 11vw, 160px);
  background: var(--encre);
  color: var(--sur-encre-pale);
}
.fin.apres-encre {
  margin-top: 0;
}
.pied {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 40px;
  font-size: 0.8125rem;
}
/* Le filet ne court que sur la largeur du texte, pas sous les marges. */
.apres-encre .pied {
  position: relative;
}
.apres-encre .pied::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--marge);
  right: var(--marge);
  border-top: 1px solid var(--filet-sur-encre);
}
.pied a {
  color: #e3e5e8;
}

/* ── Les mentions légales ──────────────────────────────────────────────── */

.legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding-block: clamp(40px, 6vw, 88px) 0;
}
.legal h1 {
  font: 400 clamp(2.5rem, 1.4rem + 3vw, 4.25rem) / 1 var(--serif);
  letter-spacing: -0.01em;
}
.legal-corps {
  max-width: 36em;
}
.legal-corps h2 {
  margin-top: 36px;
  font: 600 1rem/1.4 var(--sans);
}
.legal-corps h2:first-child {
  margin-top: 0;
}
.legal-corps p {
  margin-top: 8px;
  color: var(--encre-douce);
}

/* ── La page introuvable ───────────────────────────────────────────────── */

/* Plus courte que l'écran : le pied descend jusqu'en bas, sans bande blanche dessous. */
.introuvable {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.introuvable main {
  flex: 1 0 auto;
}
/* Ses marges automatiques le feraient rétrécir à son contenu, dans la colonne. */
.introuvable .tete {
  width: 100%;
}
.introuvable h1 {
  text-wrap: balance;
}

/* ── Au téléphone ──────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .tete nav {
    order: 3;
    width: 100%;
    gap: 22px;
  }
  .sujets-choix {
    grid-template-columns: minmax(0, 1fr);
  }
  .preuves li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* ── À partir d'une tablette couchée ───────────────────────────────────── */

@media (min-width: 761px) {
  .metier li {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: 48px;
    align-items: baseline;
  }
  .regle {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
  }
  .personnes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
  .personne {
    display: block;
  }
  .personne img {
    width: 112px;
    height: 112px;
  }
  .personne-nom {
    margin-top: 18px;
  }
  .personne-role {
    margin-top: 2px;
  }
  .champs-cote {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .legal {
    grid-template-columns: 38% minmax(0, 1fr);
  }
  .legal h1 {
    padding-right: 40px;
  }
  .legal-corps {
    padding-left: 56px;
    max-width: calc(36em + 56px);
  }
}

@media (min-width: 900px) {
  .annonce-relue {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: 36px;
    align-items: center;
  }
  .annonce-relue figcaption {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

/* ── Au bureau ─────────────────────────────────────────────────────────── */

@media (min-width: 1100px) {
  .heros-grille {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(40px, 4vw, 64px);
  }
  /*
   * La photo passe la couture et file jusqu'au bord de la fenêtre. Terva se pose sur son coin
   * haut, côté jour ; Elonora sur son pied, côté encre. Aucune des deux ne cache la façade, et
   * elles ne se touchent pas : l'offre à viser reste lisible.
   */
  .heros {
    overflow-x: clip;
  }
  .heros-scene {
    max-width: none;
    min-height: 560px;
    margin: 0;
  }
  .heros-photo {
    position: absolute;
    top: 0;
    left: 20%;
    width: calc(80% + var(--marge) + max(0px, (100vw - 1320px) / 2));
    max-width: none;
    border-radius: 6px 0 0 6px;
  }
  .heros-scene .carte-terva {
    position: absolute;
    left: 0;
    top: 24px;
    width: min(280px, 50%);
    margin: 0;
  }
  .heros-scene .carte-elonora {
    position: absolute;
    right: -40px;
    top: calc(1.97 * var(--corps) + 64px);
    width: min(300px, 56%);
    margin: 0;
  }
  .heros-scene figcaption {
    position: absolute;
    left: 0;
    top: 404px;
    width: min(270px, 48%);
    margin: 0;
  }

  .logiciel-grille {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    column-gap: clamp(56px, 6vw, 96px);
    align-items: center;
  }
  .elonora .logiciel-grille {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  /* La page du contrat, et le téléphone posé sur son coin, sans jamais cacher le passage cité. */
  .elonora-scene {
    order: -1;
    min-height: 640px;
  }
  .contrat {
    position: absolute;
    left: 0;
    top: 0;
    width: 380px;
  }
  .telephone {
    position: absolute;
    right: 0;
    top: 176px;
    margin: 0;
  }
  .elonora-scene figcaption {
    position: absolute;
    left: 0;
    top: 300px;
    width: min(260px, 40%);
  }

  .travailler-grille {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: clamp(56px, 7vw, 112px);
    align-items: start;
  }
}

/*
 * Le seul mouvement du site : la barre du rapport se remplit dans l'ordre où le coût se forme,
 * le prix affiché, puis le notaire, puis les travaux. Rien sans lui si le visiteur a demandé
 * moins d'animations.
 */
@media (prefers-reduced-motion: no-preference) {
  .barre span {
    transform-origin: 0 50%;
    animation: remplir 0.55s cubic-bezier(0.3, 0.7, 0.2, 1) both;
  }
  .b-prix {
    animation-delay: 0.45s;
  }
  .b-notaire {
    animation-delay: 1s;
  }
  .b-travaux {
    animation-delay: 1.35s;
  }
}
@keyframes remplir {
  from {
    transform: scaleX(0);
  }
}
