/* Site vitrine T-Pay — charte graphique T-Oil.
 *
 * Mêmes couleurs que backoffice.css et que le visuel Play Store, dans une
 * feuille à part : une retouche du back-office ne doit rien déplacer sur la
 * page publique. Aucune dépendance JavaScript : les animations sont en CSS et
 * se coupent quand l'appareil demande moins de mouvement.
 */

:root {
  --vert: #44ab33;
  --vert-fonce: #2c6e27;
  --vert-profond: #0f3d1c;
  --jaune: #ffce00;
  --rouge: #e30613;
  --encre: #14251a;
  --texte-secondaire: #56655a;
  --lien: #2c6e27;
  --fond: #fff;
  --fond-teinte: #f4f6f3;
  --surface: #fff;
  --teinte-verte: #eaf4e8;
  --bordure: #e4e9e3;
  --entete: rgb(255 255 255 / 88%);
  --pied: #0f3d1c;
  --rayon: 20px;
  --ombre: 0 1px 2px rgb(15 61 28 / 6%), 0 12px 32px -12px rgb(15 61 28 / 18%);
  --ombre-forte: 0 30px 60px -20px rgb(15 61 28 / 45%);
  --degrade: linear-gradient(135deg, #0f3d1c 0%, #1e5f26 45%, #2a8c31 80%, #3fa736 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --encre: #e6ece6;
    --texte-secondaire: #a5b5a8;
    --lien: #8fd67f;
    --fond: #0d1610;
    --fond-teinte: #111c14;
    --surface: #16231a;
    --teinte-verte: #1b2e20;
    --bordure: #223527;
    --entete: rgb(13 22 16 / 85%);
    --pied: #08110b;
    --ombre: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 50%);
  }
}

/* Socle */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

a {
  color: var(--lien);
}

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

:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
}

.interieur {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.evitement {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: var(--jaune);
  color: #14251a;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
}

.evitement:focus {
  top: 12px;
}

/* Boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--vert-fonce);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.bouton svg {
  width: 20px;
  height: 20px;
}

.bouton:hover {
  background: var(--vert-profond);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgb(15 61 28 / 60%);
}

.bouton-petit {
  padding: 9px 20px;
  font-size: 0.95rem;
}

.bouton-contour {
  background: transparent;
  border-color: rgb(255 255 255 / 55%);
}

.bouton-contour:hover {
  background: rgb(255 255 255 / 12%);
  border-color: #fff;
  box-shadow: none;
}

.bouton-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0b140e;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px 10px 16px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 14px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.bouton-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgb(0 0 0 / 60%);
}

.bouton-play svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--jaune);
}

.bouton-play span {
  display: flex;
  flex-direction: column;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.15;
}

.bouton-play small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* En-tête */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--entete);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--bordure);
}

.entete-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 12px;
}

.marque img {
  display: block;
  height: 40px;
  width: auto;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
}

.navigation a {
  color: var(--encre);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}

.navigation a:hover,
.navigation a[aria-current="page"] {
  background: var(--teinte-verte);
  color: var(--lien);
}

/* Bandeaux verts : accueil et titres de page */

.etiquette {
  display: inline-block;
  background: var(--jaune);
  color: #0f3d1c;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 8px;
  margin: 0 0 20px;
}

.heros,
.bandeau-page {
  position: relative;
  overflow: hidden;
  background: var(--degrade);
  color: #fff;
}

.heros::before,
.bandeau-page::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 206 0 / 22%), transparent 65%);
}

.heros::after,
.bandeau-page::after {
  content: "";
  position: absolute;
  bottom: -280px;
  left: -220px;
  width: 540px;
  height: 540px;
  border: 64px solid rgb(255 255 255 / 5%);
  border-radius: 50%;
}

.vague {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 1;
  display: block;
  width: 100%;
  height: 72px;
  color: var(--fond);
}

.heros {
  padding-block: 72px 128px;
}

.heros-grille {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.heros h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.heros h1 em {
  display: block;
  font-style: normal;
  color: var(--jaune);
}

.heros-accroche {
  max-width: 34em;
  color: rgb(255 255 255 / 86%);
  font-size: 1.2rem;
  margin: 0 0 34px;
}

.heros-accroche strong {
  color: #fff;
}

.heros-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.heros-actions .bouton-contour {
  color: #fff;
}

/* Le téléphone de l'accueil : une maquette de l'écran de reçu, en CSS. Ses
 * couleurs sont celles de l'application, et ne suivent donc pas le thème. */

.heros-visuel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
}

.halo {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 20%), transparent 70%);
}

.telephone {
  position: relative;
  z-index: 1;
  width: 272px;
  aspect-ratio: 9 / 18.5;
  padding: 12px;
  background: #0b140e;
  border-radius: 44px;
  box-shadow:
    var(--ombre-forte),
    inset 0 0 0 2px rgb(255 255 255 / 14%);
  animation: flotter 6s ease-in-out infinite;
}

.telephone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: 84px;
  height: 22px;
  background: #0b140e;
  border-radius: 12px;
  transform: translateX(-50%);
}

.telephone-ecran {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 0 18px 22px;
  overflow: hidden;
  background: #f4f6f3;
  color: #14251a;
  text-align: center;
  border-radius: 34px;
}

.ecran-entete {
  align-self: stretch;
  margin-inline: -18px;
  padding: 54px 18px 58px;
  background: var(--degrade);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.ecran-coche {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-top: -34px;
  background: #44ab33;
  color: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px #f4f6f3,
    0 10px 20px -6px rgb(68 171 51 / 60%);
}

.ecran-coche svg {
  width: 34px;
  height: 34px;
}

.ecran-titre {
  margin: 14px 0 0;
  color: #2c6e27;
  font-size: 0.95rem;
  font-weight: 600;
}

.ecran-montant {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.ecran-lieu {
  margin: 0 0 16px;
  color: #5c6b60;
  font-size: 0.85rem;
}

.ecran-details {
  display: grid;
  gap: 8px;
  align-self: stretch;
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border-radius: 16px;
  font-size: 0.74rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
}

.ecran-details div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.35;
}

.ecran-details dt {
  color: #6b7a6e;
}

.ecran-details dd {
  margin: 0;
  font-weight: 600;
}

.ecran-bouton {
  align-self: stretch;
  margin-top: auto;
  padding: 10px;
  background: #2c6e27;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
}

/* Derrière le téléphone, dont elle dépasse : posée devant, elle en mangeait
 * le coin. */
.goutte {
  position: absolute;
  top: 1%;
  right: -1%;
  z-index: 0;
  width: 124px;
  filter: drop-shadow(0 14px 24px rgb(0 0 0 / 35%));
  animation: flotter 8s ease-in-out -1s infinite;
}

.pastille {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #fff;
  color: #14251a;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 14px;
  box-shadow: var(--ombre-forte);
  animation: flotter 7s ease-in-out infinite;
}

.pastille::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #44ab33;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(68 171 51 / 25%);
}

.pastille-qr {
  top: 20%;
  left: 0;
  animation-delay: -2s;
}

.pastille-pin {
  bottom: 18%;
  right: 0;
  animation-delay: -4s;
}

.pastille-pin::before {
  background: #ffce00;
  box-shadow: 0 0 0 4px rgb(255 206 0 / 30%);
}

@keyframes flotter {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes apparaitre {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.apparition {
  animation: apparaitre 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* Les blocs se dévoilent en entrant dans l'écran, là où le navigateur sait
 * lier une animation au défilement ; ailleurs, ils sont simplement visibles. */
@supports (animation-timeline: view()) {
  .revele {
    animation: apparaitre linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 80%;
  }
}

/* Sections */

.section {
  padding-block: 96px;
}

.section-teinte {
  background: var(--fond-teinte);
}

.section-entete {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-entete h2,
.securite h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin: 0;
}

.section-entete p:not(.surtitre) {
  margin: 14px 0 0;
  color: var(--texte-secondaire);
  font-size: 1.1rem;
}

.surtitre {
  margin: 0 0 12px;
  color: var(--lien);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Services */

.cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carte {
  position: relative;
  overflow: hidden;
  padding: 34px 30px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.carte::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent, var(--vert));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.carte:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgb(15 61 28 / 35%);
}

.carte:hover::after {
  transform: scaleX(1);
}

.carte h3 {
  font-size: 1.3rem;
  margin: 22px 0 8px;
}

.carte p {
  margin: 0;
  color: var(--texte-secondaire);
}

.carte-jaune {
  --accent: var(--jaune);
}

.carte-rouge {
  --accent: var(--rouge);
}

.icone {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

.icone svg {
  width: 30px;
  height: 30px;
}

.icone-petite {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.icone-petite svg {
  width: 24px;
  height: 24px;
}

.icone-vert {
  background: rgb(68 171 51 / 14%);
  color: #2c6e27;
}

.icone-jaune {
  background: rgb(255 206 0 / 22%);
  color: #7a5700;
}

.icone-rouge {
  background: rgb(227 6 19 / 11%);
  color: #b8050f;
}

.icone-sur-vert {
  background: rgb(255 255 255 / 16%);
  color: var(--jaune);
}

@media (prefers-color-scheme: dark) {
  .icone-vert {
    color: #8fd67f;
  }

  .icone-jaune {
    color: #ffce00;
  }

  .icone-rouge {
    color: #ff7a82;
  }
}

/* Étapes */

.etapes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.etapes::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 17%;
  right: 17%;
  border-top: 2px dashed rgb(68 171 51 / 50%);
}

.etapes li {
  position: relative;
  padding-inline: 12px;
  text-align: center;
}

.etape-numero {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  background: var(--degrade);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px var(--fond-teinte),
    0 14px 28px -10px rgb(15 61 28 / 60%);
}

.etapes h3 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.etapes p {
  margin: 0;
  color: var(--texte-secondaire);
}

/* Sécurité */

.securite {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.securite-texte > p:not(.surtitre) {
  margin: 16px 0 32px;
  color: var(--texte-secondaire);
  font-size: 1.1rem;
}

.liste-coches {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.liste-coches li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.liste-coches strong {
  display: block;
  font-size: 1.1rem;
}

.liste-coches span {
  color: var(--texte-secondaire);
}

.securite-visuel {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--degrade);
  border-radius: 32px;
  box-shadow: var(--ombre-forte);
}

.securite-visuel::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 2px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgb(255 255 255 / 4%),
    0 0 0 80px rgb(255 255 255 / 3%);
}

.securite-visuel svg {
  position: relative;
  width: 40%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgb(0 0 0 / 35%));
  animation: flotter 7s ease-in-out infinite;
}

.securite-code {
  position: absolute;
  bottom: 11%;
  left: 50%;
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  background: rgb(255 255 255 / 14%);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transform: translateX(-50%);
}

.securite-code span {
  width: 14px;
  height: 14px;
  background: var(--jaune);
  border-radius: 50%;
}

/* Questions fréquentes */

.faq {
  max-width: 840px;
}

.faq details {
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 16px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}

.faq details[open] {
  border-color: rgb(68 171 51 / 50%);
  box-shadow: var(--ombre);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--teinte-verte);
  color: var(--lien);
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: 50%;
  transition: transform 0.25s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--texte-secondaire);
}

/* Appel au téléchargement */

.appel {
  padding-block: 96px;
}

.appel-boite {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 56px;
  overflow: hidden;
  background: var(--degrade);
  color: #fff;
  border-radius: 32px;
  box-shadow: var(--ombre-forte);
}

.appel-boite::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgb(255 206 0 / 35%), transparent 70%);
  border-radius: 50%;
}

.appel-boite > * {
  position: relative;
}

.appel-boite h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin: 0 0 8px;
}

.appel-boite p {
  margin: 0;
  color: rgb(255 255 255 / 86%);
  font-size: 1.1rem;
}

/* Pages intérieures */

.bandeau-page {
  padding-block: 64px 120px;
}

.bandeau-page .interieur {
  position: relative;
  z-index: 1;
}

.bandeau-page h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  margin: 0 0 12px;
}

.bandeau-page-texte {
  max-width: 40em;
  margin: 0;
  color: rgb(255 255 255 / 84%);
  font-size: 1.12rem;
}

.page-corps {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  padding-bottom: 96px;
}

.colonnes {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.colonnes-contact {
  grid-template-columns: 1.6fr 1fr;
}

.feuille,
.sommaire,
.encart {
  background: var(--surface);
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre);
}

.feuille {
  padding: 48px;
  border-radius: 24px;
}

.sommaire {
  position: sticky;
  top: 100px;
  padding: 24px;
  border-radius: 20px;
}

.sommaire h2 {
  margin: 0 0 12px;
  color: var(--texte-secondaire);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sommaire ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sommaire a {
  display: block;
  padding: 7px 12px;
  color: var(--encre);
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
}

.sommaire a:hover {
  background: var(--teinte-verte);
  color: var(--lien);
}

.texte h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  margin: 40px 0 12px;
}

.texte h2:first-child {
  margin-top: 0;
}

.texte h2::before {
  content: "";
  flex: none;
  width: 6px;
  height: 26px;
  background: linear-gradient(var(--vert), var(--jaune));
  border-radius: 3px;
}

.texte p {
  margin: 0 0 12px;
  color: var(--texte-secondaire);
}

.encarts {
  display: grid;
  gap: 20px;
}

.encart {
  padding: 28px;
  border-radius: 20px;
}

.encart h2 {
  font-size: 1.15rem;
  margin: 16px 0 6px;
}

.encart p,
.encart address {
  margin: 0;
  color: var(--texte-secondaire);
  font-style: normal;
}

.encart-vert {
  background: var(--degrade);
  color: #fff;
  border: 0;
}

.encart-vert p {
  color: rgb(255 255 255 / 86%);
}

.encart-vert code {
  color: var(--jaune);
  font-family: inherit;
  font-weight: 600;
}

/* Formulaire de contact */

.feuille-titre {
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.feuille-chapo {
  margin: 0 0 28px;
  color: var(--texte-secondaire);
}

.formulaire {
  display: grid;
  gap: 20px;
}

.formulaire-deux {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.champ label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.champ input,
.champ textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--fond-teinte);
  color: var(--encre);
  font: inherit;
  border: 1.5px solid var(--bordure);
  border-radius: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.champ textarea {
  min-height: 170px;
  resize: vertical;
}

.champ input:focus,
.champ textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--vert);
  box-shadow: 0 0 0 4px rgb(68 171 51 / 18%);
}

.champ-invalide input,
.champ-invalide textarea {
  border-color: var(--rouge);
}

.champ .erreur {
  margin: 6px 0 0;
  color: var(--rouge);
  font-size: 0.92rem;
}

.formulaire .bouton {
  justify-self: start;
  padding-inline: 34px;
}

/* Hors écran plutôt que display:none : certains robots sautent les champs
 * masqués, pas ceux qu'ils croient visibles. */
.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.avis {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 14px;
}

.avis p {
  margin: 0;
}

.avis-echec {
  background: color-mix(in srgb, var(--rouge) 10%, var(--surface));
  border: 1px solid var(--rouge);
}

.confirmation {
  padding-block: 24px;
  text-align: center;
}

.confirmation-coche {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  background: var(--vert);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgb(68 171 51 / 16%);
  animation: apparaitre 0.6s both;
}

.confirmation-coche svg {
  width: 44px;
  height: 44px;
}

.confirmation h2 {
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.confirmation p {
  margin: 0 0 28px;
  color: var(--texte-secondaire);
}

/* Pied de page */

.pied {
  padding-top: 64px;
  background: var(--pied);
  color: rgb(255 255 255 / 76%);
  font-size: 0.97rem;
}

.pied-grille {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.pied-marque img {
  display: block;
  height: 42px;
  width: auto;
  margin-bottom: 16px;
}

.pied-marque p {
  max-width: 24em;
  margin: 0;
}

.pied h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pied a {
  color: rgb(255 255 255 / 86%);
  text-decoration: none;
}

.pied a:hover {
  color: var(--jaune);
}

.pied-liens {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pied address {
  font-style: normal;
  line-height: 1.75;
}

.pied-bas {
  padding-block: 22px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.88rem;
}

.pied-bas p {
  margin: 0;
}

/* Écrans moyens et petits */

@media (max-width: 960px) {
  .heros {
    padding-block: 48px 110px;
  }

  .heros-grille,
  .securite,
  .colonnes,
  .colonnes-contact {
    grid-template-columns: 1fr;
  }

  .heros-visuel {
    min-height: 480px;
  }

  .securite {
    gap: 48px;
  }

  .securite-visuel {
    max-width: 360px;
  }

  .sommaire {
    display: none;
  }

  .pied-grille {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .etapes {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .etapes::before {
    display: none;
  }

  .navigation {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .navigation a {
    padding: 6px 12px;
  }

  .entete .bouton-petit {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .section,
  .appel {
    padding-block: 72px;
  }

  .feuille {
    padding: 28px 22px;
  }

  .formulaire-deux,
  .pied-grille {
    grid-template-columns: 1fr;
  }

  .appel-boite {
    padding: 36px 24px;
  }

  /* Plus haut que le téléphone, pour que les pastilles tiennent au-dessus et
   * en dessous au lieu de masquer le reçu. */
  .heros-visuel {
    min-height: 580px;
  }

  .telephone {
    width: 232px;
  }

  .goutte {
    top: 9%;
    right: 2%;
    width: 88px;
  }

  .pastille {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .pastille-qr {
    top: 0;
  }

  .pastille-pin {
    bottom: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
