/* Tallia, page publique.
   Les couleurs sont celles de src/ui/tokens.ts, recopiees a l'identique.
   Toute divergence ici est un bug: le produit et le site doivent etre la meme chose. */

@font-face {
  font-family: 'Wix Madefor Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/wix-madefor-display-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: 'Wix Madefor Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/wix-madefor-display-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: 'Chivo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/chivo-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: 'Chivo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/chivo-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;
}

:root {
  --t-dom: #0c5c68;
  --t-dom2: #073f48;
  --t-h1: #0e8296;
  --t-h2: #4fc5b0;
  --t-bg: #fbfcfc;
  --t-bg2: #f1f6f7;
  --t-ink: #04191c;
  --t-soft: #4f686c;
  --t-rule: #dfeaec;
  --t-tint: #dcf2f3;
  --t-crit: #d63b33;
  --t-warn: #8a5a0b;
  --t-ok: #0a7350;
  --f-ui: 'Wix Madefor Display', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'Chivo', ui-monospace, monospace;
  --gouttiere: 24px;
}

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

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

body {
  margin: 0;
  background: var(--t-bg);
  color: var(--t-ink);
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--t-dom);
}

:focus-visible {
  outline: 2px solid var(--t-dom);
  outline-offset: 2px;
  border-radius: 2px;
}
.nuit :focus-visible {
  outline-color: #fff;
}

.saut {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--t-dom);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}
.saut:focus {
  left: 8px;
  top: 8px;
}

.bande {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

/* En-tete */

.entete {
  border-bottom: 1px solid var(--t-rule);
  background: var(--t-bg);
}
.entete .bande {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.marque {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--t-ink);
  text-decoration: none;
  margin-right: auto;
}
.marque span {
  color: var(--t-dom);
}
.entete nav {
  display: none;
  gap: 22px;
}
.entete nav a {
  color: var(--t-soft);
  text-decoration: none;
  font-size: 15px;
}
.entete nav a:hover {
  color: var(--t-ink);
  text-decoration: underline;
}
/* Le telephone dans l'en-tete. Les sites de courtiers le mettent en haut de
   page: c'est un code de credibilite du metier, releve dans l'audit. */
.tel {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--t-dom);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
}
.tel:hover {
  text-decoration: underline;
}

.langues {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-family: var(--f-mono);
}
.langues a {
  color: var(--t-soft);
  text-decoration: none;
  padding: 4px 6px;
}
.langues a[aria-current='true'] {
  color: var(--t-ink);
  font-weight: 700;
}
@media (min-width: 900px) {
  .entete nav {
    display: flex;
  }
}

/* Le blanc pur, decision assumee et verifiee.
   tokens.ts ne nomme aucun blanc: sa teinte la plus claire est --t-bg #FBFCFC,
   qui est un FOND, pas une encre. L'encre claire de la charte est le blanc pur:
   les treize ecrans de design/artboards l'utilisent 74 fois, et le commentaire
   de tokens.ts ("Blanc dessus: 7,65:1") ne tombe juste qu'avec #FFF. Avec
   #FBFCFC le rapport vaut 7,44:1 et le nombre ecrit dans le fichier source
   devient faux. Donc: #FFF pour du texte sur fond sombre, jamais pour un fond. */

/* Boutons */

.bouton,
.bouton2 {
  display: inline-block;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  min-height: 44px;
}
.bouton {
  background: var(--t-dom);
  color: #fff;
  border: 1px solid var(--t-dom);
}
.bouton:hover {
  background: var(--t-dom2);
  border-color: var(--t-dom2);
}
.bouton2 {
  background: transparent;
  color: var(--t-dom);
  border: 1px solid var(--t-rule);
}
.bouton2:hover {
  border-color: var(--t-dom);
}
.nuit .bouton {
  background: #fff;
  color: var(--t-dom2);
  border-color: #fff;
}
.nuit .bouton:hover {
  background: var(--t-tint);
  border-color: var(--t-tint);
}

/* Sections */

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--t-rule);
}
section.creux {
  background: var(--t-bg2);
}
h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 700;
  margin: 0 0 18px;
  max-width: 15ch;
}
h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin: 0 0 12px;
  max-width: 24ch;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 6px;
}
p {
  margin: 0 0 16px;
  max-width: 62ch;
}
.chapeau {
  font-size: 19px;
  color: var(--t-soft);
  max-width: 54ch;
}
.sur {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-soft);
  margin: 0 0 14px;
}
.mono {
  font-family: var(--f-mono);
  font-size: 0.94em;
  font-weight: 600;
  background: var(--t-tint);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Premier ecran */

.ouverture .bande {
  display: grid;
  gap: 32px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
figure {
  margin: 0;
}
figure img {
  border: 1px solid var(--t-rule);
  border-radius: 10px;
}
figcaption {
  font-size: 15px;
  color: var(--t-soft);
  margin-top: 12px;
  max-width: 62ch;
}
@media (min-width: 980px) {
  .ouverture .bande {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }
  .ouverture {
    padding: 64px 0 56px;
  }
}

/* Les trois usages */

.usages {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}
.usage {
  border-top: 2px solid var(--t-dom);
  padding-top: 18px;
}
.usage blockquote {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--t-ink);
}
.usage blockquote p {
  margin: 0;
}
.usage cite {
  display: block;
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--t-soft);
  margin-top: 8px;
}
.usage .fait {
  font-size: 16px;
  color: var(--t-soft);
  margin: 0;
}
@media (min-width: 860px) {
  .usages {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* Les deux ecrans */

.ecrans {
  display: grid;
  gap: 36px;
  margin-top: 32px;
  align-items: start;
}
.panneau img {
  width: 320px;
  max-width: 100%;
}
@media (min-width: 980px) {
  .ecrans {
    grid-template-columns: 320px 1fr;
    gap: 44px;
  }
}

/* Bandeau nuit */

.nuit {
  position: relative;
  overflow: hidden;
  background: var(--t-dom2);
  color: #fff;
  border-bottom: none;
}
.nuit::before,
.nuit::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.nuit::before {
  width: 420px;
  height: 340px;
  left: -8%;
  top: -30%;
  background: var(--t-h1);
  opacity: 0.5;
  filter: blur(46px);
}
.nuit::after {
  width: 380px;
  height: 320px;
  right: -6%;
  bottom: -40%;
  background: var(--t-h2);
  opacity: 0.3;
  filter: blur(52px);
}
.nuit .bande {
  position: relative;
}
.nuit .sur {
  color: var(--t-tint);
}
.nuit .chapeau {
  color: var(--t-tint);
}
.nuit p {
  color: var(--t-tint);
}
.garanties {
  display: grid;
  gap: 28px;
  margin-top: 30px;
}
.garanties h3 {
  color: #fff;
}
.garanties p {
  font-size: 16px;
  margin: 0;
}
@media (min-width: 860px) {
  .garanties {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
  }
}

/* Listes de faits */

.faits {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  max-width: 68ch;
}
.faits li {
  border-top: 1px solid var(--t-rule);
  padding: 14px 0 14px 28px;
  position: relative;
}
.faits li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 22px;
  width: 10px;
  height: 2px;
  background: var(--t-crit);
}
.faits b {
  font-weight: 700;
}
.faits span {
  color: var(--t-soft);
}

/* Demarrer */

.etapes {
  list-style: none;
  counter-reset: e;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 22px;
}
.etapes li {
  counter-increment: e;
  padding-left: 44px;
  position: relative;
}
.etapes li::before {
  content: counter(e);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--t-tint);
  color: var(--t-dom);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.etapes p {
  margin: 0;
  color: var(--t-soft);
  font-size: 16px;
}
.etapes b {
  color: var(--t-ink);
  font-weight: 600;
}
@media (min-width: 860px) {
  .etapes {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.prix {
  margin-top: 36px;
  border-left: 2px solid var(--t-dom);
  padding: 4px 0 4px 18px;
}

/* Pages de texte long */

.prose h1 {
  max-width: 22ch;
}
.prose h2 {
  margin-top: 38px;
}
.prose .faits {
  margin-bottom: 8px;
}
.prose .faits li::before {
  background: var(--t-dom);
}
/* Pied */

footer {
  padding: 32px 0 48px;
  font-size: 15px;
  color: var(--t-soft);
}
footer p {
  max-width: 68ch;
}
footer .legal {
  font-family: var(--f-mono);
  font-size: 13px;
}
