/* Site vitrine Tribuno — polices système, aucune ressource externe.
   Contrastes vérifiés (WCAG 2) : texte 16,6:1 et 15,8:1 ; texte secondaire 7,3:1 et 8,9:1 ;
   vert sur blanc 7,9:1 ; vert clair sur fond sombre 10,2:1. */

:root {
  color-scheme: light dark;
  --fond: #ffffff;
  --fond-alt: #f3f6f4;
  --texte: #15211b;
  --texte-2: #4b5a53;
  --accent: #0b5d3b;
  --sur-accent: #ffffff;
  --accent-fonce: #073d27;
  --bordure: #d5ddd8;
  --rayon: 14px;
  --largeur: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0e1411;
    --fond-alt: #16201b;
    --texte: #e7eee9;
    --texte-2: #a8b7af;
    --accent: #6fd3a0;
    --sur-accent: #0e1411;
    --accent-fonce: #0b2a1c;
    --bordure: #2c3a33;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.conteneur--etroit {
  max-width: 48rem;
}

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

.evitement {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--sur-accent);
  border-radius: 8px;
  font-weight: 600;
}

.evitement:focus {
  top: 1rem;
}

/* En-tête */
.entete {
  border-bottom: 1px solid var(--bordure);
}

.entete__barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--texte);
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.marque::before {
  content: "T";
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--sur-accent);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--texte);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Premier écran */
.hero {
  padding: 2.5rem 0 3rem;
}

.hero__grille {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero__accroche {
  font-size: 1.15rem;
  color: var(--texte);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 1rem;
}

.actions--centre {
  justify-content: center;
}

.bouton {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  min-height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.bouton:hover {
  background: var(--accent-fonce);
  color: #ffffff;
}

.bouton--inverse {
  background: #ffffff;
  color: #0b5d3b;
}

.bouton--inverse:hover {
  background: #e7eee9;
  color: #073d27;
}

.lien-secondaire {
  font-weight: 600;
}

.note {
  font-size: 0.95rem;
  color: var(--texte-2);
}

/* Captures */
.capture {
  margin: 0 auto;
  max-width: 270px;
}

.capture img {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--bordure);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
}

.capture figcaption {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--texte-2);
  text-align: center;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

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

.intro {
  max-width: 48rem;
}

.bloc {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.bloc:last-child {
  margin-bottom: 0;
}

.bloc__texte h3:not(:first-child) {
  margin-top: 1.75rem;
}

.liste {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.liste li {
  margin-bottom: 0.5rem;
}

.liste li::marker {
  color: var(--accent);
}

.liste--coches {
  padding-left: 0;
  list-style: none;
}

.liste--coches li {
  position: relative;
  padding-left: 1.6rem;
}

.liste--coches li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Formules */
.formules {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

.formule {
  padding: 1.5rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond);
}

.formule--pro {
  border: 2px solid var(--accent);
}

.prix {
  margin-bottom: 1rem;
}

.prix__montant {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.prix__periode {
  display: block;
  color: var(--texte-2);
  font-size: 0.95rem;
}

.formule__base {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tableau-defilant {
  overflow-x: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: var(--fond);
}

.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tableau th,
.tableau td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--bordure);
  text-align: center;
}

.tableau tbody tr:last-child th,
.tableau tbody tr:last-child td {
  border-bottom: 0;
}

.tableau th[scope="row"] {
  text-align: left;
  font-weight: 500;
}

.tableau thead th {
  font-weight: 700;
}

/* Étapes */
.etapes {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.etapes li {
  position: relative;
  padding: 1.5rem 1.5rem 1rem 4.25rem;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  counter-increment: etape;
}

.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--sur-accent);
  font-weight: 800;
}

/* Questions */
details {
  border-bottom: 1px solid var(--bordure);
}

details:first-of-type {
  border-top: 1px solid var(--bordure);
}

summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 650;
  font-size: 1.1rem;
}

summary:hover {
  color: var(--accent);
}

details p {
  color: var(--texte);
}

/* Appel final */
.appel {
  background: #0b5d3b;
  color: #ffffff;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .appel {
    background: #0b2a1c;
  }
}

.appel :focus-visible {
  outline-color: #ffffff;
}

/* Pied de page */
.pied {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--bordure);
  font-size: 0.95rem;
}

.pied__grille p {
  margin-bottom: 0.5rem;
}

.pied__note {
  color: var(--texte-2);
  font-size: 0.875rem;
}

/* Pages de texte (mentions légales) */
.page-texte {
  padding: 2.5rem 0 3.5rem;
}

.page-texte h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.a-completer {
  background: #fff3c4;
  color: #3d2e00;
  padding: 0 0.25rem;
  border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  .a-completer {
    background: #4a3b00;
    color: #fff3c4;
  }
}

/* Écrans plus larges */
@media (min-width: 48rem) {
  .hero {
    padding: 4rem 0;
  }

  .hero__grille {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
  }

  .bloc {
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
  }

  .bloc--inverse .bloc__texte {
    order: 2;
  }

  .formules {
    grid-template-columns: repeat(3, 1fr);
  }

  .etapes {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    gap: 0.25rem 1.5rem;
    font-size: 1rem;
  }

  .tableau {
    font-size: 0.95rem;
  }

  .tableau th,
  .tableau td {
    padding: 0.7rem 0.9rem;
  }
}

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

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

/* Section « financer avec vos partenaires » : encadré d'exemple. */
.exemple {
  border-left: 4px solid var(--accent);
  background: var(--fond-alt);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0.25rem;
}
.exemple__etiquette {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  margin: 0 0 0.25rem;
}

/* Bouton « Voir la démo » : contour, à côté du bouton plein. */
.bouton--secondaire {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.bouton--secondaire:hover {
  background: var(--fond-alt);
  color: var(--texte);
}

.lien-secondaire--inverse {
  color: #ffffff;
}
