/* Vivabrief /cabinets — CSCE 8870 (tour 4). Jetons : design/cabinets/DESIGN.md. */
@font-face {
  font-family: "General Sans";
  src: url("/polices/general-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/polices/general-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/polices/general-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/polices/general-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/polices/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/polices/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --lavande: #eceeff;
  --fond: #f7f8fc;
  --surface: #ffffff;
  --filet: #d8dff2;
  --filet-doux: #e6ebf7;
  --bord-controle: #7e88a8;
  --encre: #112240;
  --encre-2: #3b4661;
  --encre-3: #525e7a;
  --bleu: #1f64d8;
  --bleu-fonce: #184eb0;
  --violet: #6224c8;
  --cadre: #132342;
  --vert-point: #10b981;
  --degrade: linear-gradient(95deg, #1f64d8 0%, #6224c8 100%);
  --rayon-s: 12px;
  --rayon-m: 16px;
  --rayon-l: 20px;
  --ombre: 0 18px 40px -24px rgb(17 34 64 / 0.18);
  --max: 1120px;
  --sans: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 600;
  z-index: 30;
}
.evitement:focus { left: 16px; top: 16px; }

.enveloppe {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* En-tête collant : unique bandeau lavande (signature du flyer) */
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--lavande);
  border-bottom: 1px solid var(--filet);
}
.entete-inner {
  min-height: 68px;
  padding-block: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.marque {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.marque img { height: 34px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-lien {
  color: var(--encre);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  min-height: 44px;
  padding-inline: 8px;
  display: inline-flex;
  align-items: center;
  transition: color 160ms ease-out;
}
.nav-lien:hover { color: var(--violet); }

/* Bouton unique sur toute la page : bleu plein du flyer */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--rayon-s);
  background: var(--bleu);
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease-out, transform 140ms ease-out;
}
.bouton:hover {
  background: var(--bleu-fonce);
  color: #ffffff;
}
.bouton:active { transform: translateY(1px); }

.bouton-entete {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 15px;
}
.bouton-mobile-entete {
  display: none;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 15px;
}
.bouton-clair {
  background: #ffffff;
  color: var(--encre);
}
.bouton-clair:hover {
  background: var(--fond);
  color: var(--encre);
}

/* Héros : colonne gauche centrée face à la feuille de compte rendu client */
.heros {
  padding: 48px 0 64px;
}
.heros-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 48px;
  align-items: start;
}
.heros-texte {
  display: grid;
  gap: 20px;
  padding-top: 12px;
}
.repere-metier {
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
}

h1 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--encre);
  text-wrap: balance;
}
.chapo {
  font-size: 17px;
  line-height: 1.55;
  color: var(--encre-2);
  max-width: 46ch;
}

.action-bloc {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding-top: 4px;
}
.offre-ligne {
  font-size: 15px;
  line-height: 1.5;
  color: var(--encre-2);
  max-width: 44ch;
}

/* Élément signature : feuille de compte rendu client avec colonne de marge horodatée */
.document-feuille {
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-m);
  box-shadow: var(--ombre);
  overflow: hidden;
}
.document-bandeau {
  background: var(--cadre);
  color: #ffffff;
  padding: 12px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 13px;
}
.document-seance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.document-seance::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vert-point);
  flex: none;
}
.document-aide {
  color: #d6e0f5;
  font-size: 13px;
}

.courriel-tete {
  padding: 16px 24px;
  border-bottom: 1px solid var(--filet);
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.courriel-champ {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
}
.courriel-champ dt { color: var(--encre-3); font-weight: 500; }
.courriel-champ dd { color: var(--encre); font-weight: 500; }

.courriel-corps {
  padding: 20px 24px 24px;
  display: grid;
  gap: 16px;
}
.courriel-salut {
  font-size: 15px;
  color: var(--encre-2);
}

/* Vraie colonne de marge conservée à 1440 px (104 px) ET à 390 px (72 px) */
.marge-table {
  border-top: 1px solid var(--filet-doux);
}
.marge-ligne {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--filet-doux);
  align-items: start;
}
.marge-bouton {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  min-height: 44px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--bord-controle);
  background: var(--surface);
  color: var(--violet);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
.marge-bouton:hover {
  border-color: var(--violet);
  background: var(--fond);
}
.marge-bouton[aria-pressed="true"] {
  background: var(--encre);
  border-color: var(--encre);
  color: #ffffff;
}
.marge-texte {
  display: grid;
  gap: 4px;
  padding-top: 2px;
}
.marge-rubrique {
  font-size: 14px;
  font-weight: 600;
  color: var(--encre);
  line-height: 1.35;
}
.marge-texte p {
  font-size: 14px;
  color: var(--encre-2);
  line-height: 1.5;
}
.marge-actions {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
  color: var(--encre-2);
}
.marge-actions li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 12px;
}
.marge-actions strong { color: var(--encre); font-weight: 600; }
.marge-date { font-weight: 500; color: var(--encre); white-space: nowrap; }

/* Parole d'origine dépliée sur place (visible immédiatement en 390 px, séparée du mail envoyé) */
.marge-parole {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--fond);
  border: 1px solid var(--filet);
  border-left: 3px solid var(--violet);
  border-radius: 0 8px 8px 0;
  display: grid;
  gap: 4px;
}
.marge-parole[hidden] { display: none; }
.marge-parole-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--encre-2);
}
.marge-parole-citation {
  font-size: 14px;
  color: var(--encre);
  line-height: 1.45;
}

.courriel-signature {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  padding-top: 4px;
}
.courriel-signature p {
  font-size: 14px;
  color: var(--encre-2);
  line-height: 1.45;
}
.courriel-signature strong {
  display: block;
  color: var(--encre);
  font-weight: 600;
}
.etat-envoi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--encre-3);
}
.etat-envoi svg {
  width: 15px;
  height: 15px;
  color: var(--vert-point);
  flex: none;
}

/* Sections : deux surfaces claires uniquement (#ffffff et #f7f8fc) */
.section { padding: 56px 0; }
.section-blanche {
  background: var(--surface);
  border-block: 1px solid var(--filet);
}
.section-tete {
  display: grid;
  gap: 8px;
  max-width: 58ch;
  margin-bottom: 32px;
}
h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--encre);
  text-wrap: balance;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--encre);
}
.section-tete p { color: var(--encre-2); font-size: 16px; }

/* Section 2 : Le fil de la séance en marge horodatée (remplace les 2 rangées génériques 3×3) */
.fil-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: start;
}
.fil-intro {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 96px;
}
.fil-intro p {
  font-size: 16px;
  color: var(--encre-2);
  max-width: 38ch;
}
.fil-liste {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--filet);
}
.fil-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--filet);
  align-items: start;
}
.fil-minute {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--encre-3);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  white-space: nowrap;
}
.fil-corps {
  display: grid;
  gap: 6px;
}
.fil-corps p {
  font-size: 15px;
  color: var(--encre-2);
  line-height: 1.55;
  max-width: 56ch;
}

/* Section 3 : Panneau Essai et tarifs à plat (aucune carte imbriquée) */
.offre-panneau {
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-m);
  overflow: hidden;
}
.offre-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.offre-col {
  padding: 32px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.offre-col + .offre-col {
  border-left: 1px solid var(--filet);
}
.offre-col h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
}
.offre-col p { color: var(--encre-2); font-size: 15px; }
.offre-cta { justify-self: start; margin-top: 4px; }

.tarifs-liste {
  border-top: 1px solid var(--filet);
}
.tarif-ligne {
  padding: 16px 0;
  border-bottom: 1px solid var(--filet);
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: baseline;
  gap: 8px 16px;
}
.tarif-repere {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--encre-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tarif-info { display: grid; gap: 2px; }
.tarif-nom { font-size: 16px; font-weight: 600; color: var(--encre); }
.tarif-detail { font-size: 14px; color: var(--encre-3); }
.tarif-prix {
  text-align: right;
  display: grid;
  gap: 2px;
  flex: none;
}
.tarif-montant {
  font-size: 18px;
  font-weight: 600;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tarif-periode {
  font-size: 13px;
  color: var(--encre-3);
  white-space: nowrap;
}

.appel-repere {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--encre-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.offre-pied {
  border-top: 1px solid var(--filet);
  padding: 16px 32px;
  background: var(--fond);
  font-size: 14px;
  color: var(--encre-2);
}

/* Section 4 : Bandeau final du flyer allégé (unique dégradé de la page) */
.appel-section { padding: 32px 0 40px; }
.appel-carte {
  background: var(--degrade);
  color: #ffffff;
  border-radius: var(--rayon-l);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.appel-texte { display: grid; gap: 4px; }
.appel-carte h2 {
  color: #ffffff;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.appel-carte p {
  color: #eef2ff;
  font-size: 15px;
}
.appel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.appel-lien {
  color: #eef2ff;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.appel-lien:hover { color: #ffffff; }

.signature-vivamata {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--encre-3);
  font-size: 14px;
}
.vivamata-marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--encre-3);
}
.vivamata-marque img {
  width: 112px;
  height: auto;
}

/* Pied de page */
.pied {
  border-top: 1px solid var(--filet);
  padding: 24px 0 36px;
  color: var(--encre-3);
  font-size: 14px;
  line-height: 1.55;
}
.pied-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.pied p { line-height: 1.55; }
.pied p a { color: var(--encre-2); display: inline; }
.pied ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.pied ul a {
  color: var(--encre-2);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.pied a:hover { color: var(--violet); }

/* Page Installer l'appli */
.page-install { padding: 48px 0 64px; }
.install-boite {
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: var(--rayon-m);
  padding: 32px;
  display: grid;
  gap: 16px;
}
.install-boite p { color: var(--encre-2); }

/* Apparition douce au défilement (visible sans JS) */
.js-pret .reveler {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms ease-out, transform 280ms ease-out;
}
.js-pret .reveler.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .heros-grille,
  .fil-grille,
  .offre-colonnes {
    grid-template-columns: 1fr;
  }
  .fil-intro { position: static; }
  .offre-col + .offre-col {
    border-left: 0;
    border-top: 1px solid var(--filet);
  }
}

@media (max-width: 640px) {
  .enveloppe { width: calc(100% - 32px); }
  .entete-inner { min-height: 60px; }
  .marque img { height: 28px; }
  .nav-lien,
  .bouton-entete { display: none; }
  .bouton-mobile-entete { display: inline-flex; }
  .heros { padding: 28px 0 40px; }
  .heros-grille { gap: 28px; }
  .heros-texte { gap: 16px; }
  .action-bloc { justify-items: stretch; }
  .action-bloc .bouton { width: 100%; }
  .document-bandeau,
  .courriel-tete,
  .courriel-corps { padding-inline: 16px; }
  /* Marge conservée sur une seule ligne à 390 px (88 px) : pastilles nettes sans coupure */
  .marge-ligne {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }
  .marge-bouton {
    flex-direction: row;
    white-space: nowrap;
    gap: 3px;
    padding: 0 8px;
    font-size: 12.5px;
  }
  .fil-item {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 16px 0;
  }
  .fil-minute { font-size: 13px; }
  .section { padding: 40px 0; }
  .offre-col { padding: 24px 16px; }
  .offre-cta { width: 100%; }
  .offre-pied { padding: 16px; }
  .tarif-ligne { grid-template-columns: 84px 1fr; gap: 6px 12px; }
  .tarif-prix { grid-column: 2; text-align: left; }
  .appel-section { padding: 28px 0 36px; }
  .appel-carte { padding: 24px 20px; }
  .appel-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .appel-actions .bouton { width: 100%; }
  .appel-lien { justify-content: center; }
  .signature-vivamata { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton, .nav-lien, .marge-bouton, .js-pret .reveler {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
