/* Page d'accueil. Trois couleurs seulement, celles de Méridien : la nuit, la crème et l'or. Les sections alternent
   nuit et crème ; l'or est réservé aux actions et aux traits fins. San Francisco (la police
   d'Apple, Inter en secours) pour tout, Instrument Serif pour la voix de la lettre. */

body.accueil {
  --nuit: #070706;
  --creme: #ede8dc;
  --creme-fonce: #e2dccd;
  --or: #c4a35a;
  --or-texte: #7a5e22;
  --nuit-relevee: #141310;
  --trait-nuit: rgba(242, 238, 228, 0.14);
  --trait-creme: rgba(26, 24, 19, 0.12);
  --papier: #ffffff;
  --texte-nuit: #f2eee4;
  --texte-nuit-doux: rgba(242, 238, 228, 0.72);
  --texte-papier: #1a1813;
  --texte-papier-doux: #575247;
  --rayon-grand: 22px;
  --rayon: 16px;
  margin: 0;
  background: var(--nuit);
  color: var(--texte-papier);
  font-family: var(--police-texte);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.accueil .contenu,
body.accueil main {
  padding: 0;
  max-width: none;
}

.a-page {
  overflow-x: clip;
}

.a-page h1,
.a-page h2 {
  font-family: var(--police-titres);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.a-page h2 {
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.06;
  max-width: 17ch;
}

.a-chapeau {
  max-width: 54ch;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.3vw, 19px);
  color: var(--texte-papier-doux);
}

.a-invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* --- Boutons --- */

.a-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  color: inherit;
  background: transparent;
  font: 600 15px/1 var(--police-texte);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.a-bouton:hover {
  transform: translateY(-1px);
}

.a-bouton-plein {
  background: var(--or);
  border-color: var(--or);
  color: var(--nuit);
}

.a-bouton-plein:hover {
  background: #d4b66f;
}

.a-page :focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
}

/* --- Bouton de menu, visible sur petit écran seulement --- */

.a-menu-bouton,
.menu-bouton {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--trait-nuit);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  order: 3;
}

.a-menu-bouton span:not(.a-invisible) {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--texte-nuit);
  transition: transform 0.25s, opacity 0.25s;
}

.a-entete.est-ouverte .a-menu-bouton span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.a-entete.est-ouverte .a-menu-bouton span:nth-child(2) {
  opacity: 0;
}

.a-entete.est-ouverte .a-menu-bouton span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- En-tête : transparent sur l'ouverture, puis fond de nuit dès qu'on descend --- */

.a-entete {
  position: fixed;
  inset: 0 0 auto;
  transition: background-color 0.3s, padding 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 26px clamp(20px, 5vw, 64px);
  color: var(--texte-nuit);
}

.a-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-family: var(--police-titres);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.a-logo em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--or);
}

.a-entete nav {
  margin-left: auto;
}

.a-entete ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.a-entete nav a {
  color: var(--texte-nuit-doux);
  text-decoration: none;
  font-size: 15px;
}

.a-entete nav a:hover {
  color: var(--texte-nuit);
}

/* --- Ouverture --- */

.a-ouverture {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px clamp(20px, 5vw, 64px) 80px;
  color: var(--texte-nuit);
  background: var(--nuit);
}

.a-ouverture-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.18;
  filter: grayscale(1) contrast(1.1);
}

.a-ouverture::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--nuit) 30%, rgba(7, 7, 6, 0.7) 70%, rgba(7, 7, 6, 0.85));
}

.a-ouverture-interieur {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.a-ouverture h1 {
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.98;
  max-width: 11ch;
}

.a-paraphe {
  display: block;
  width: min(420px, 80%);
  height: auto;
  margin: 14px 0 0 -4px;
  fill: none;
  stroke: var(--or);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: a-ecrire 1.8s cubic-bezier(0.45, 0.05, 0.25, 1) 0.5s forwards;
}

@keyframes a-ecrire {
  to {
    stroke-dashoffset: 0;
  }
}

.a-ouverture-chapeau {
  max-width: 44ch;
  margin: 26px 0 0;
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--texte-nuit-doux);
}

.a-demo {
  margin-top: 36px;
  max-width: 560px;
}

.a-demo > label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 17px;
  color: var(--texte-nuit);
}

.a-demo-ligne {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(242, 238, 228, 0.08);
  border: 1px solid rgba(242, 238, 228, 0.22);
}

.a-demo-ligne:focus-within {
  border-color: var(--or);
}

.a-demo input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--texte-nuit);
  font: 400 17px var(--police-texte);
  outline: none;
}

.a-demo input::placeholder {
  color: rgba(242, 238, 228, 0.45);
}

.a-demo-nom {
  margin-top: 12px;
  font-size: 15px;
  color: var(--texte-nuit-doux);
}

.a-demo-nom summary {
  cursor: pointer;
  width: fit-content;
}

.a-demo-nom input {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(242, 238, 228, 0.22) !important;
  background: rgba(242, 238, 228, 0.06) !important;
}

.a-demo-etat {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(242, 238, 228, 0.55);
}

.a-demo-etat.est-erreur {
  color: #f0b4ab;
}

/* Le mail : une feuille posée sur le bureau, légèrement de travers. */
.a-courrier {
  position: relative;
  margin: 0;
  padding: 0 0 18px;
  background: var(--papier);
  color: var(--texte-papier);
  border-radius: var(--rayon-grand);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-1.2deg);
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
  font-size: 15px;
}

.a-courrier-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid #ece8df;
  font-weight: 600;
  font-size: 14px;
}

.cachet {
  color: var(--or-texte);
}

.cachet text {
  fill: currentColor;
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.cachet .cachet-date {
  font-size: 15px;
  letter-spacing: 0.06em;
}

.a-courrier-cachet {
  position: absolute;
  top: -34px;
  right: -22px;
  width: 190px;
  transform: rotate(-9deg);
  opacity: 0;
  animation: a-obliterer 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 2.2s forwards;
  mix-blend-mode: multiply;
}

@keyframes a-obliterer {
  from {
    opacity: 0;
    transform: rotate(-9deg) scale(1.25);
  }
  to {
    opacity: 0.82;
    transform: rotate(-9deg) scale(1);
  }
}

.a-courrier-champ {
  display: flex;
  gap: 14px;
  padding: 10px 22px;
  border-bottom: 1px solid #f1eee7;
  color: var(--texte-papier-doux);
}

.a-courrier-champ span {
  width: 46px;
}

.a-courrier-champ b {
  color: var(--texte-papier);
  font-weight: 500;
}

.a-courrier-corps {
  padding: 18px 22px 4px;
  color: #2c2a25;
}

.a-courrier-corps p {
  margin: 0 0 10px;
}

.a-courrier-signatures {
  display: grid;
  padding: 6px 22px 0;
  min-height: 250px;
}

.a-courrier-signature {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.6s;
  overflow: hidden;
}

.a-courrier-signature.est-visible {
  opacity: 1;
}

.a-courrier-signature table {
  max-width: 100%;
}

.a-courrier-legende {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 22px 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--texte-papier-doux);
}

.a-courrier-pastilles {
  display: flex;
  gap: 6px;
}

.a-courrier-pastilles i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8d3c7;
}

.a-courrier-pastilles i.est-active {
  background: var(--or);
}

.a-courrier-onglets {
  display: flex;
  gap: 6px;
  margin: 10px 22px 0;
}

.a-courrier-onglets button {
  border: 1px solid #ddd8cd;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 14px;
  font: 500 14px var(--police-texte);
  cursor: pointer;
}

.a-courrier-onglets button[aria-pressed="true"] {
  background: var(--texte-papier);
  border-color: var(--texte-papier);
  color: #ffffff;
}

.a-courrier-suite {
  margin: 14px 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.a-courrier-suite .a-bouton {
  min-height: 44px;
  font-size: 14px;
}

.a-courrier.est-en-cours .a-courrier-signatures {
  opacity: 0.35;
  filter: blur(1px);
  transition: opacity 0.3s, filter 0.3s;
}


.a-entete.est-replie {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(7, 7, 6, 0.94);
  border-bottom-color: var(--trait-nuit);
  backdrop-filter: blur(10px);
}

.a-compatible {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--texte-nuit-doux);
}

/* --- Sections --- */

.a-section {
  padding: clamp(72px, 8vw, 112px) clamp(20px, 5vw, 64px);
  scroll-margin-top: 70px;
}

/* Une section « suite » continue la surface de la précédente : un filet, pas un changement de fond. */
.a-suite {
  padding-top: 0;
}

.a-suite > .a-cadre {
  padding-top: clamp(56px, 6vw, 88px);
  border-top: 1px solid var(--trait-creme);
}

.a-nuit.a-suite > .a-cadre {
  border-top-color: var(--trait-nuit);
}

.a-suite h2,
.a-deux-questions h2 {
  font-size: clamp(26px, 2.7vw, 38px);
  max-width: 20ch;
}

.a-cadre {
  max-width: 1200px;
  margin: 0 auto;
}

.a-creme {
  background: var(--creme);
  color: var(--texte-papier);
}

.a-nuit {
  background: var(--nuit);
  color: var(--texte-nuit);
}

.a-nuit .a-chapeau {
  color: var(--texte-nuit-doux);
}

.a-tete-large h2 {
  max-width: 22ch;
}

.a-deux {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.a-deux-inverse {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.a-chapeau a {
  color: inherit;
  text-decoration-color: var(--or);
  text-underline-offset: 4px;
}

.a-bouton-nuit {
  margin-top: 32px;
  background: var(--nuit);
  border-color: var(--nuit);
  color: var(--texte-nuit);
}

.a-bouton-nuit:hover {
  background: #2a2823;
}

/* --- Bascules à deux positions --- */

.a-bascule {
  display: inline-flex;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--trait-creme);
  background: rgba(26, 24, 19, 0.05);
}

.a-nuit .a-bascule {
  border-color: var(--trait-nuit);
  background: rgba(242, 238, 228, 0.06);
}

.a-bascule button {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: transparent;
  color: inherit;
  opacity: 0.72;
  font: 500 15px var(--police-texte);
  cursor: pointer;
}

.a-bascule button[aria-pressed="true"] {
  opacity: 1;
  background: var(--nuit);
  color: var(--texte-nuit);
}

.a-nuit .a-bascule button[aria-pressed="true"] {
  background: var(--or);
  color: var(--nuit);
}

/* --- Le poste de pilotage : l'espace à gauche, les mails de l'équipe à droite --- */

.a-chapeau-suite {
  margin-top: 14px;
}

.a-lien-plus {
  display: inline-block;
  margin-top: 22px;
  color: #7d6125;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.a-nuit .a-lien-plus {
  color: var(--or);
}

.a-lien-plus:hover {
  text-decoration-thickness: 2px;
}

.a-bouton + .a-lien-plus {
  margin-left: 18px;
}

.a-pilotage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  margin-top: 56px;
  align-items: start;
}

.a-console {
  border-radius: var(--rayon-grand);
  background: var(--nuit-relevee);
  border: 1px solid var(--trait-nuit);
  color: var(--texte-nuit);
  font-size: 15px;
  overflow: hidden;
}

.a-console-barre {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--trait-nuit);
  font-size: 13px;
  color: var(--texte-nuit-doux);
}

.a-console-pastilles i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--trait-nuit);
}

.a-console-bloc {
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--trait-nuit);
}

.a-console-bloc:last-child {
  border-bottom: 0;
}

.a-console-titre {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-nuit-doux);
}

.a-console-titre span {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.a-console-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.a-console-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--texte-nuit-doux);
}

.a-console-etat {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(242, 238, 228, 0.08);
  color: var(--texte-nuit-doux);
  transition: background-color 0.25s, color 0.25s;
}

.a-console-etat.est-ok {
  background: rgba(196, 163, 90, 0.18);
  color: var(--or);
}

.a-console-etat.est-attente {
  background: rgba(242, 238, 228, 0.12);
  color: var(--texte-nuit);
}

.a-campagnes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.a-campagnes button {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--trait-nuit);
  border-radius: 12px;
  background: transparent;
  color: var(--texte-nuit-doux);
  text-align: left;
  font: 500 13px/1.35 var(--police-texte);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.a-campagnes button b {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  color: var(--texte-nuit);
}

.a-campagnes button span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.a-campagnes button:hover {
  border-color: rgba(196, 163, 90, 0.5);
}

.a-campagnes button[aria-pressed="true"] {
  border-color: var(--or);
  background: rgba(196, 163, 90, 0.14);
  color: var(--texte-nuit);
}

.a-console-boites {
  margin: 0;
  padding: 0;
  list-style: none;
}

.a-console-boites li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--trait-nuit);
}

.a-console-boites li:first-child {
  border-top: 0;
  padding-top: 0;
}

.a-console-personne {
  display: grid;
  min-width: 0;
}

.a-console-personne b {
  font-weight: 600;
  font-size: 14px;
}

.a-console-personne small {
  font-size: 12px;
  color: var(--texte-nuit-doux);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Carrousels : un élément visible à la fois, les autres glissent derrière --- */

.a-carrousel {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.a-carrousel-piste {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow: hidden;
  border-radius: var(--rayon);
}

.a-carrousel-piste > * {
  transform: translateX(calc(var(--courant, 0) * -100%));
  transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.4s;
  opacity: 0.35;
  min-width: 0;
}

.a-carrousel-piste > .est-courant {
  opacity: 1;
}

.a-carrousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.a-carrousel-fleche {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--trait-creme);
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.a-nuit .a-carrousel-fleche {
  border-color: var(--trait-nuit);
}

.a-carrousel-fleche:hover {
  border-color: var(--or);
  background: rgba(196, 163, 90, 0.14);
}

.a-carrousel-points {
  display: inline-flex;
  gap: 8px;
}

.a-carrousel-points button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--trait-creme);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.a-nuit .a-carrousel-points button {
  background: var(--trait-nuit);
}

.a-carrousel-points button[aria-current="true"] {
  background: var(--or);
  transform: scale(1.25);
}

.a-boite-mail {
  position: relative;
  padding: 22px 26px 24px;
  border-radius: var(--rayon);
  background: var(--papier);
  color: var(--texte-papier);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  font-size: 14px;
}

.a-boite-mail.est-a-jour {
  animation: a-boite-pulse 0.7s ease-out;
}

@keyframes a-boite-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 163, 90, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
  100% { box-shadow: 0 0 0 14px rgba(196, 163, 90, 0), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
}

.a-boite-mail header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: baseline;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eeebe4;
  color: var(--texte-papier);
}

.a-boite-mail header span {
  color: var(--texte-papier-doux);
  font-size: 13px;
}

.a-boite-mail header b {
  color: var(--texte-papier);
}

.a-boite-mail > p {
  margin: 0 0 12px;
  color: var(--texte-papier);
}

.a-boite-signature {
  max-width: 420px;
}

.a-boite-bannieres {
  display: grid;
  max-width: 420px;
  margin-top: 10px;
}

.a-boite-bannieres img {
  grid-area: 1 / 1;
  width: 420px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.35s;
}

.a-boite-bannieres img.est-visible {
  opacity: 1;
}

/* --- Un changement, toute l'équipe à jour : la fiche de l'entreprise à gauche, les boîtes à droite --- */

.a-registre {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: 56px;
}

.a-fiche {
  position: sticky;
  top: 96px;
}

.a-fiche-titre {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--or-texte);
}

.a-fiche-ligne {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--trait-creme);
  font-size: 17px;
}

.a-fiche-ligne:last-child {
  border-bottom: 1px solid var(--trait-creme);
}

.a-fiche-nom {
  font-size: 13px;
  font-weight: 600;
  color: var(--texte-papier-doux);
}

.a-fiche-ligne-saisie {
  padding: 22px 0;
}

.a-fiche-saisie {
  width: 100%;
  max-width: 250px;
  padding: 12px 16px;
  border: 1.5px solid var(--trait-creme);
  border-radius: 12px;
  background: var(--papier);
  font: 600 21px var(--police-texte);
  color: var(--texte-papier);
  box-shadow: 0 1px 0 var(--trait-creme), 0 16px 30px -22px rgba(40, 32, 12, 0.35);
}

.a-fiche-saisie:focus {
  border-color: var(--or);
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.4);
}

.a-fiche-saisie:disabled {
  color: var(--texte-papier-doux);
  background: var(--creme-fonce);
}

.a-fiche-conseil {
  grid-column: 2;
  font-size: 13px;
  color: var(--or-texte);
}

.a-fiche-etat {
  font-style: normal;
  color: var(--or-texte);
  transition: color 0.25s;
}

/* Les boîtes : trois mails sur un même fil, le point d'or marque chacun. */
.a-boites-liste {
  position: relative;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.a-equipe-mail {
  min-width: 0;
}

.a-boites-liste::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 28px;
  bottom: 28px;
  width: 1.5px;
  background: var(--or);
  opacity: 0.55;
}

.a-equipe-mail {
  position: relative;
  padding: 14px 22px 18px;
  border-radius: var(--rayon);
  background: var(--papier);
  box-shadow: 0 1px 0 var(--trait-creme), 0 24px 48px -24px rgba(40, 32, 12, 0.25);
}

.a-equipe-mail::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--or);
  box-shadow: 0 0 0 4px var(--creme);
}

.a-equipe-mail header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eeebe4;
  font-size: 13px;
  color: var(--texte-papier-doux);
}

.a-equipe-mail header b {
  font-size: 14px;
  color: var(--texte-papier);
}

.a-equipe-etat {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  background: rgba(196, 163, 90, 0.16);
  color: var(--or-texte);
  transition: background-color 0.25s, color 0.25s;
}

.a-equipe-etat.est-attente {
  background: var(--nuit);
  color: var(--texte-nuit);
}

.a-equipe-signature {
  font-size: 14px;
}

.a-equipe-mail.est-a-jour {
  animation: a-a-jour 0.9s;
}

@keyframes a-a-jour {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 163, 90, 0.6);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(196, 163, 90, 0);
  }
}

.a-etapes {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
  display: grid;
  gap: 18px;
}

.a-etapes li {
  position: relative;
  padding-left: 48px;
  font-size: 16px;
  color: var(--texte-papier-doux);
  counter-increment: etape;
}

.a-etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--or);
  font: 600 14px var(--police-titres);
  color: var(--texte-papier);
}

.a-etapes b {
  color: var(--texte-papier);
}

/* Les trois étapes, en rang sous le registre. */
.a-etapes-rang {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--trait-creme);
}

/* --- La bannière du mois, sous une vraie signature --- */

.a-mois {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.a-mois button {
  padding: 10px 16px;
  border: 1px solid var(--trait-nuit);
  border-radius: 999px;
  background: transparent;
  color: var(--texte-nuit-doux);
  font: 500 15px var(--police-texte);
  cursor: pointer;
}

.a-mois button:hover {
  color: var(--texte-nuit);
  border-color: rgba(242, 238, 228, 0.4);
}

.a-mois button[aria-selected="true"] {
  background: var(--or);
  border-color: var(--or);
  color: var(--nuit);
}

.a-mois-periode {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--texte-nuit-doux);
}

.a-lettre-mail {
  width: fit-content;
  max-width: 100%;
  justify-self: end;
  padding: 22px 24px 26px;
  border-radius: var(--rayon-grand);
  background: var(--papier);
  color: var(--texte-papier);
  font-size: 15px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.a-lettre-mail-tete {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eeebe4;
  font-size: 14px;
}

.a-lettre-mail-tete span {
  color: var(--texte-papier-doux);
}

.a-lettre-mail > p {
  max-width: 46ch;
  margin: 0 0 18px;
}

.a-lettre-mail-bannieres {
  display: grid;
  margin-top: 14px;
}

.a-lettre-mail-bannieres img {
  grid-area: 1 / 1;
  width: 480px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.35s;
}

.a-lettre-mail-bannieres img.est-visible {
  opacity: 1;
}

/* --- Bulletin d'analyse --- */

.a-bulletin {
  justify-self: center;
  width: min(100%, 460px);
  padding: 28px;
  border-radius: var(--rayon-grand);
  background: var(--papier);
  box-shadow: 0 1px 0 var(--trait-creme), 0 40px 70px -30px rgba(40, 32, 12, 0.35);
  transform: rotate(-1.2deg);
  font-size: 15px;
}

.a-bulletin-tete {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid #eeebe4;
}

/* La note dans un anneau qui se remplit à proportion. */
.a-bulletin-note {
  flex: none;
  display: grid;
  place-items: center;
  align-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--papier) 82%, transparent 83%),
    conic-gradient(var(--or) calc(var(--note) * 1%), #ece7da 0);
}

.a-bulletin-note b {
  font: 600 30px/1 var(--police-titres);
}

.a-bulletin-note span {
  font-size: 11px;
  color: var(--texte-papier-doux);
}

.a-bulletin-titre {
  margin: 0;
  font-weight: 600;
}

.a-bulletin-palier {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--or-texte);
}

.a-bulletin ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.a-bulletin li {
  position: relative;
  padding-left: 26px;
  color: var(--texte-papier-doux);
  line-height: 1.45;
}

.a-bulletin li b {
  display: block;
  color: var(--texte-papier);
  font-weight: 600;
}

.a-bulletin li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--or);
}

.a-bulletin li.grave::before {
  background: var(--nuit);
  border-color: var(--nuit);
}

/* --- Tarifs --- */

.a-calcul {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 28px 48px;
  align-items: end;
  margin-top: 56px;
  padding: 32px 0 0;
  border-top: 1px solid var(--trait-nuit);
}

.a-reglage-ligne {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  color: var(--texte-nuit-doux);
}

.a-reglage output {
  font: 600 18px var(--police-titres);
  color: var(--texte-nuit);
}

.a-reglage input {
  width: 100%;
  margin-top: 12px;
  accent-color: var(--or);
}

.a-calcul-resultat {
  margin: 0;
  font-size: 16px;
  color: var(--texte-nuit-doux);
}

.a-calcul-resultat b {
  display: block;
  font: 600 clamp(28px, 3vw, 40px)/1.1 var(--police-titres);
  color: var(--texte-nuit);
}

.a-calcul-resultat span {
  display: block;
  margin-top: 6px;
  color: var(--or);
}

.a-formules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--trait-nuit);
}

.a-formule {
  display: flex;
  flex-direction: column;
  margin-top: -1px;
  padding: 28px 24px 8px 0;
  border-top: 2px solid transparent;
  transition: border-color 0.3s;
}

.a-formule + .a-formule {
  padding-left: 24px;
  border-left: 1px solid var(--trait-nuit);
}

.a-formule-nom {
  margin: 0 0 4px;
  font: 700 22px/1 var(--police-titres);
  letter-spacing: -0.02em;
}

.a-formule-boites {
  margin: 0;
  font-size: 15px;
  color: var(--texte-nuit-doux);
}

.a-formule-prix {
  margin: 14px 0 0;
}

.a-formule-prix b {
  display: block;
  font: 600 clamp(34px, 3.4vw, 46px)/1 var(--police-titres);
  letter-spacing: -0.03em;
}

.a-formule-sur-mesure .a-formule-prix b {
  font-size: clamp(26px, 2.4vw, 32px);
}

.a-formule-prix span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--texte-nuit-doux);
}

.a-formule-conseil {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--or);
  visibility: hidden;
}

.a-formule .a-bouton {
  margin-top: auto;
}

.a-formule-conseil + .a-bouton {
  margin-top: 22px;
}

.a-formule.est-conseillee {
  border-top-color: var(--or);
}

.a-formule + .a-formule.est-conseillee {
  border-left-color: var(--trait-nuit);
}

.a-formule.est-conseillee .a-formule-conseil {
  visibility: visible;
}

.a-inclus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 32px;
  margin: 48px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--trait-nuit);
  list-style: none;
  font-size: 15px;
  color: var(--texte-nuit-doux);
}

.a-inclus li {
  position: relative;
  padding-left: 28px;
}

.a-inclus li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--or);
  border-bottom: 2px solid var(--or);
  transform: rotate(-45deg);
}

/* --- Questions --- */

.a-deux-questions {
  align-items: start;
}

.a-questions {
  border-top: 1px solid var(--trait-creme);
}

.a-questions details {
  border-bottom: 1px solid var(--trait-creme);
}

.a-questions summary {
  position: relative;
  padding: 22px 48px 22px 0;
  list-style: none;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
}

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

.a-questions summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background:
    linear-gradient(var(--texte-papier), var(--texte-papier)) center / 100% 2px no-repeat,
    linear-gradient(var(--texte-papier), var(--texte-papier)) center / 2px 100% no-repeat;
  transition: transform 0.25s;
}

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

.a-questions details p {
  margin: -6px 0 24px;
  max-width: 62ch;
  color: var(--texte-papier-doux);
}

/* --- Fin de page : l'essai et le contact, deux vrais formulaires --- */

.a-nfc-cadre {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.a-nfc .a-tete h2 {
  max-width: 14ch;
}

.a-nfc-mosaique {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}

.a-nfc-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--creme-fonce);
  color: var(--texte-nuit);
  text-decoration: none;
  box-shadow: 0 30px 50px -30px rgba(7, 7, 6, 0.6);
}

.a-nfc-photo-0 {
  grid-row: 1 / 3;
}

.a-nfc-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.a-nfc-photo-rendu {
  background: var(--or);
}

.a-nfc-photo-rendu img {
  object-fit: contain;
  padding: 14px 14px 64px;
  box-sizing: border-box;
}

.a-nfc-photo:hover img,
.a-nfc-photo:focus-visible img {
  transform: scale(1.04);
}

.a-nfc-photo span {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 16px 14px;
  background: linear-gradient(to top, rgba(7, 7, 6, 0.82), rgba(7, 7, 6, 0));
  font-size: 14px;
  line-height: 1.3;
}

.a-nfc-photo b {
  display: block;
  font-size: 15px;
}

.a-nfc-photo i {
  font-style: normal;
  color: var(--or);
}

@media (max-width: 980px) {
  .a-nfc-cadre {
    grid-template-columns: minmax(0, 1fr);
  }

  .a-nfc-mosaique {
    display: flex;
    gap: 10px;
    margin: 0 calc(-1 * clamp(20px, 5vw, 64px));
    padding: 0 clamp(20px, 5vw, 64px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: clamp(20px, 5vw, 64px);
    scrollbar-width: none;
  }

  .a-nfc-mosaique::-webkit-scrollbar {
    display: none;
  }

  .a-nfc-photo {
    flex: 0 0 min(72vw, 320px);
    height: 230px;
    scroll-snap-align: start;
  }
}

.a-formulaires {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: 56px;
  align-items: start;
}

.a-formulaire {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--rayon-grand);
}

.a-formulaire h3 {
  margin: 0;
  font: 600 22px/1.2 var(--police-titres);
  letter-spacing: -0.02em;
}

.a-formulaire-essai {
  background: var(--creme);
  color: var(--texte-papier);
}

.a-formulaire-contact {
  padding-top: 8px;
  padding-bottom: 0;
}

.a-champ-bloc {
  display: grid;
  gap: 8px;
}

.a-champ-bloc label {
  font-size: 14px;
  font-weight: 500;
}

.a-formulaire input,
.a-formulaire select,
.a-formulaire textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border-radius: 12px;
  font: 16px var(--police-texte);
}

.a-formulaire-essai input {
  border: 1.5px solid var(--trait-creme);
  background: var(--papier);
  color: var(--texte-papier);
}

.a-formulaire-contact input,
.a-formulaire-contact select,
.a-formulaire-contact textarea {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--trait-nuit);
  border-radius: 0;
  background: transparent;
  color: var(--texte-nuit);
}

.a-formulaire-contact select option {
  color: var(--texte-papier);
}

.a-formulaire-contact label {
  color: var(--texte-nuit-doux);
}

.a-formulaire input:focus,
.a-formulaire select:focus,
.a-formulaire textarea:focus {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.4);
}

.a-formulaire .a-bouton {
  justify-self: start;
}

.a-formulaire-essai .a-bouton {
  justify-self: stretch;
  min-height: 56px;
  font-size: 16px;
}

.a-rassurance {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--texte-papier-doux);
}

.a-rassurance li {
  position: relative;
  padding-left: 24px;
}

.a-rassurance li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--or-texte);
  border-bottom: 2px solid var(--or-texte);
  transform: rotate(-45deg);
}

.a-formulaire-auteur {
  display: flex;
  align-items: center;
  gap: 18px;
}

.a-formulaire-auteur img {
  width: 120px;
  height: auto;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--creme);
}

.a-formulaire-auteur p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--texte-nuit-doux);
}

.a-champs-deux {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.a-piege {
  position: absolute;
  left: -9999px;
}

/* --- Petits écrans --- */

@media (max-width: 1080px) {
  .a-formules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a-formule {
    border-bottom: 1px solid var(--trait-nuit);
    padding-bottom: 24px;
  }

  .a-formule:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .a-calcul {
    grid-template-columns: 1fr 1fr;
  }

  .a-calcul-resultat {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .a-fil,
  .a-formulaires,
  .a-inclus {
    grid-template-columns: 1fr;
  }

  .a-entete nav {
    display: none;
  }

  .a-entete.est-ouverte nav {
    display: block;
    position: absolute;
    inset: 100% 0 auto;
    padding: 8px clamp(20px, 5vw, 64px) 22px;
    background: var(--nuit);
    border-bottom: 1px solid var(--trait-nuit);
  }

  .a-entete.est-ouverte nav ul {
    flex-direction: column;
    gap: 0;
  }

  .a-entete.est-ouverte nav a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--trait-nuit);
    font-size: 17px;
    color: var(--texte-nuit);
  }

  .a-menu-bouton {
    display: inline-flex;
  }

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

  .a-ouverture-interieur,
  .a-deux,
  .a-deux-inverse {
    grid-template-columns: 1fr;
  }

  .a-deux-inverse > :first-child {
    order: 2;
  }

  .a-courrier {
    transform: none;
  }

  .a-lettre-mail {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body.accueil {
    font-size: 17px;
  }

  .a-console-personne small {
    white-space: normal;
  }

  .a-entete {
    gap: 10px;
    padding: 14px 16px;
  }

  .a-entete.est-replie {
    padding: 10px 16px;
  }

  .a-logo {
    gap: 8px;
  }

  .a-logo span {
    font-size: 13px;
  }

  .a-logo img {
    width: 28px;
    height: 28px;
  }

  .a-entete .a-bouton {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .a-menu-bouton {
    width: 40px;
    height: 40px;
    order: 4;
    flex: none;
  }
}

@media (max-width: 400px) {
  .a-logo span {
    display: none;
  }

  .a-ouverture {
    padding: 104px 16px 56px;
  }

  .a-demo-ligne {
    flex-direction: column;
    border-radius: 22px;
  }

  .a-demo input[type="text"] {
    padding: 12px 14px;
  }

  .a-courrier-cachet {
    width: 140px;
    right: -6px;
  }

  .a-courrier-signatures {
    padding: 6px 12px 0;
    overflow-x: auto;
  }

  .a-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .a-formules,
  .a-calcul,
  .a-champs-deux {
    grid-template-columns: 1fr;
  }

  .a-calcul {
    padding: 22px 20px;
  }


  .a-lettre-mail {
    padding: 16px;
  }

  .a-bulletin {
    transform: none;
    padding: 22px;
  }

  .a-formulaire-auteur {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Une signature de 480 pixels est réduite à l'échelle de son cadre (script `ajusterSignatures`), comme le fait
   l'application mail sur un petit écran. Les cadres cachent le reste en attendant. */
.a-courrier-signature,
.a-boite-signature,
.a-equipe-signature,
.a-lettre-mail-signature,
.a-lettre-mail-bannieres {
  overflow: hidden;
}

[data-echelle] {
  transform-origin: top left;
}

/* Une signature en texte ne se replie jamais sur elle-même dans un cadre étroit : elle garde sa largeur de mail,
   puis le script la réduit à l'échelle. */
.a-boite-signature > table,
.a-equipe-signature > table {
  width: max-content;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .a-lettre-mail-bannieres img {
    max-width: none;
  }

  .a-entete .a-bouton {
    white-space: nowrap;
  }

  .a-fil-versions {
    min-height: 0;
  }

  .a-courrier-signatures {
    min-height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a-paraphe {
    animation: none;
    stroke-dashoffset: 0;
  }

  .a-courrier-cachet {
    animation: none;
    opacity: 0.82;
  }

  .a-ouverture-video {
    display: none;
  }

  .a-courrier-signature,
  .a-lettre-mail-bannieres img,
  .a-formule {
    transition: none;
  }
}

@media (max-width: 640px) {
  .a-logo span {
    white-space: nowrap;
  }

  .a-logo em {
    font-size: 18px;
  }

  .a-formule-conseil {
    display: none;
  }

  .a-formule.est-conseillee .a-formule-conseil {
    display: block;
  }
}

/* --- Bannière animée sous les exemples du haut de page --- */

.a-courrier-banniere {
  display: block;
  width: 480px;
  max-width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 8px;
}


/* --- Gratuit pour les adresses Gmail --- */

.a-gmail {
  max-width: 70ch;
  margin: 40px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--or);
  font-size: 15px;
  line-height: 1.6;
  color: var(--texte-nuit-doux);
}

.a-gmail b {
  color: var(--or);
}

@media (max-width: 520px) {
  .a-courrier-banniere {
    max-width: none;
  }
}

/* --- Preuves, sous l'ouverture --- */

.a-preuves {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1200px;
  margin: 72px auto 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--trait-nuit);
  list-style: none;
}

.a-preuves li {
  flex: 1 1 180px;
  padding: 0 24px 0 0;
  margin-right: 24px;
  border-right: 1px solid var(--trait-nuit);
  font-size: 14px;
  color: var(--texte-nuit-doux);
}

.a-preuves li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.a-preuves b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--texte-nuit);
}

/* --- Note « aux couleurs de » posée après la démonstration --- */

.a-marque-note:not(:empty) {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--or-texte);
}

.a-nuit .a-marque-note:not(:empty) {
  color: var(--or);
}

/* --- Rappel qui suit, une fois la signature composée --- */

.a-rappel {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(calc(100% - 32px), 820px);
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  background: var(--creme);
  color: var(--texte-papier);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 140%);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.a-rappel[hidden] {
  display: none;
}

.a-rappel-fermer {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 7, 6, 0.08);
  color: var(--texte-papier);
  font: 400 22px/1 var(--police-texte);
  cursor: pointer;
}

.a-rappel.est-visible {
  transform: translate(-50%, 0);
}

.a-rappel p {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.a-rappel .a-bouton {
  flex: none;
  min-height: 44px;
}


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

.a-pied {
  padding: 64px clamp(20px, 5vw, 64px) 48px;
  background: var(--nuit);
  color: var(--texte-nuit-doux);
  border-top: 1px solid var(--trait-nuit);
  font-size: 15px;
}

.a-pied-interieur {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.a-pied-marque p {
  max-width: 36ch;
  margin: 16px 0 0;
}

.a-pied nav > p {
  margin: 8px 0 14px;
  font-weight: 600;
  color: var(--texte-nuit);
}

.a-pied ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.a-pied a {
  color: inherit;
  text-decoration: none;
}

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

@media (max-width: 980px) {
  .a-pied-interieur {
    grid-template-columns: 1fr 1fr;
  }

  .a-rappel {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--rayon);
    padding: 16px;
  }

  .a-rappel .a-bouton {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .a-preuves {
    margin-top: 48px;
    gap: 18px;
  }

  .a-preuves li {
    flex-basis: 100%;
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
  }

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

/* Les cadres de signature ne forcent jamais la largeur de leur colonne : la mise à l'échelle fait le reste. */
.a-courrier,
.a-boite-mail,
.a-console,
.a-registre,
.a-lettre-mail {
  min-width: 0;
}

@media (max-width: 980px) {
  .a-lettre-mail {
    width: auto;
  }

  .a-pilotage,
  .a-registre,
  .a-etapes-rang {
    grid-template-columns: minmax(0, 1fr);
  }

  .a-fiche {
    position: static;
  }

  .a-etapes-rang {
    gap: 18px;
  }

  .a-campagnes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Le mot final du slogan, en or : « Gratuite. » */
#titre-ouverture em {
  font-style: normal;
  color: var(--or);
}
