/* Onima V5 : pages légales (onima.ch/conditions, onima.ch/confidentialite). Même identité que la page de connexion
   (verts, marine, polices système, panneau marine avec halo vert), thème clair seulement. Aucun style en ligne (CSP). */

:root {
  --green: #4fae37;
  --green-deep: #259204;
  --green-soft: #8cce88;
  --green-tint: #e8f5e4;
  --navy: #000a16;
  --navy-2: #0a1628;
  --ink: #101828;
  --ink-2: #344054;
  --ink-soft: #475467;
  --ink-faint: #6b7684;
  --line: #e5e7eb;
  --bg: #f7f8f7;
  --card: #ffffff;
  --titre: #0a1628;
  --lien: #259204;
  --radius-sm: 10px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .08);
  --gradient-navy: linear-gradient(135deg, #000a16 0%, #0a1628 100%);
  --halo-green: radial-gradient(circle, rgba(79, 174, 55, .30) 0%, rgba(79, 174, 55, 0) 68%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}

[hidden] { display: none !important; }

/* Depuis le 01.11.2026, ces pages portent l'en-tête et le pied de l'accueil (landing.css, chargé avant ce fichier, et
   blocs recopiés par tools/gabarit_site.py). Ce fichier ne garde que l'ouverture de la page et le corps du texte. */
.cadre-texte { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 32px; }
.cadre-texte--large { max-width: 1040px; }

/* 1. Ouverture marine sous l'en-tête : titre, chapeau, date de mise à jour */
.ouverture--page { min-height: 0; display: block; padding: calc(var(--entete-haut) + var(--entete-barre) + 48px) 0 120px; }
.ouverture--page::after { right: -260px; bottom: -560px; }
.ouverture--page .ouverture__titre { font-size: clamp(32px, 3.4vw, 46px); }
.ouverture--page .ouverture__lead { margin-top: 16px; max-width: 680px; font-size: 17px; }
.hero__surtitre {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-soft);
}
.hero__meta {
  margin: 22px 0 0; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .9);
}
.hero__meta::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--green-soft); }
.hero__note { margin: 8px 0 0; max-width: 640px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .62); }

/* 2. Carte du texte, posée à cheval sur le bandeau */
.contenu { position: relative; z-index: 2; margin-top: -64px; padding-bottom: 72px; }
.carte {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 48px 36px;
}

.sommaire {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px 16px; margin: 0 0 8px;
}
.sommaire__titre {
  margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint);
}
.sommaire__liste { margin: 0; padding: 0 0 0 22px; columns: 2; column-gap: 32px; }
.sommaire__liste li { break-inside: avoid; padding: 3px 0; font-size: 14px; color: var(--ink-faint); }
.sommaire__liste a { color: var(--ink-2); text-decoration: none; }
.sommaire__liste a:hover { color: var(--lien); text-decoration: underline; }

.texte h2 {
  margin: 36px 0 10px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; color: var(--titre);
}
.texte h2:first-child { border-top: 0; padding-top: 0; margin-top: 28px; }
.texte h2 .num { color: var(--green-deep); margin-right: 4px; }
.texte p, .texte li { font-size: 15.5px; line-height: 1.68; color: var(--ink-2); }
.texte p { margin: 0 0 12px; }
.texte ul { margin: 0 0 14px; padding-left: 22px; }
.texte li { margin: 0 0 8px; }
.texte li::marker { color: var(--green); }
.texte strong { color: var(--ink); font-weight: 700; }
.texte a { color: var(--lien); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.texte a:hover { text-decoration-thickness: 2px; }

.encadre {
  margin: 16px 0 18px; padding: 14px 18px;
  background: var(--green-tint); border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.encadre p { margin: 0 0 8px; color: var(--ink); }
.encadre p:last-child { margin-bottom: 0; }

.maj {
  margin: 32px 0 0 !important; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13.5px !important; color: var(--ink-faint) !important;
}

a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }

@media (max-width: 720px) {
  .ouverture--page { padding: calc(var(--entete-haut) + var(--entete-barre) + 32px) 0 96px; }
  .ouverture--page .ouverture__lead { font-size: 15.5px; }
  .cadre-texte { padding: 0 20px; }
  .carte { padding: 24px 20px 24px; }
  .sommaire { padding: 14px 16px 12px; }
  .sommaire__liste { columns: 1; }
  .texte h2 { font-size: 17.5px; margin-top: 30px; padding-top: 24px; }
  .texte p, .texte li { font-size: 15px; }
}

@media print {
  .entete, .pied, .ouverture--page::before, .ouverture--page::after { display: none; }
  .ouverture--page { background: none; color: var(--ink); padding: 0 0 16px; margin-top: 0; }
  .ouverture--page .ouverture__titre { color: var(--ink); }
  .ouverture--page .ouverture__lead, .hero__meta, .hero__note { color: var(--ink-2); }
  .contenu { margin-top: 0; }
  .carte { box-shadow: none; border: 0; padding: 0; }
}

/* Page /ia/ : déclaration swiss made software plus AI. Le label à gauche, sur fond blanc, à 180 px de large (jamais
   étiré, jamais sous 56 px de haut : règle du label) ; c'est le seul endroit d'où part le lien vers swissmadesoftware.org. */
.hero__surtitre {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-soft);
}
.ia { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 44px; align-items: start; }
.ia__label { text-align: center; }
.ia__tuile { display: inline-block; line-height: 0; border-radius: var(--radius-sm); transition: transform .15s ease; }
.ia__tuile:hover { transform: translateY(-2px); }
.ia__tuile img { display: block; width: 180px; height: auto; margin: 0 auto; }
.ia__legende { margin: 18px 0 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.ia__lien { margin: 0; font-size: 13px; }
.ia__lien a { color: var(--lien); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ia__lien a::after { content: '\00a0\2197'; }
.texte .ia__titre {
  margin: 0 0 10px; padding: 0; border: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-deep);
}
.texte.ia__texte p { font-size: 17px; line-height: 1.75; }
.texte.ia__texte .ia__questions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .ia { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ia__label { text-align: left; }
  .ia__tuile img { margin: 0; width: 150px; }
}

/* Page /tarifs/ : trois offres en cartes blanches, puis ce que chaque offre contient. */
.offres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offre {
  display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.offre__nom { margin: 0; font-size: 19px; font-weight: 800; color: var(--titre); letter-spacing: -.01em; }
.offre__pour { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); flex: 1 1 auto; }
.offre__prix { margin: 22px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; color: var(--ink-soft); font-size: 14px; }
.offre__montant { font-size: 32px; font-weight: 800; color: var(--titre); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offre__bouton {
  margin-top: 22px; display: inline-flex; justify-content: center; padding: 12px 18px; border-radius: var(--radius-sm);
  background: #2a8514; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none;
}
.offre__bouton:hover { background: #22700f; }
.inclus { margin-top: 28px; padding: 26px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.inclus__titre { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.inclus__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.inclus__liste li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.inclus__liste svg { flex: 0 0 auto; margin-top: 3px; color: var(--green-deep); }
.tarifs__question { margin: 24px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.tarifs__question a { color: var(--lien); font-weight: 600; }
@media (max-width: 860px) {
  .offres { grid-template-columns: minmax(0, 1fr); }
  .inclus__liste { grid-template-columns: minmax(0, 1fr); }
}

/* Tarifs, seconde version (31.10.2026) : caractéristiques par offre, offre du milieu mise en avant, comparatif, note. */
.offre { position: relative; }
.offre--avant { border: 2px solid var(--green); box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 14px 32px rgba(37, 146, 4, .14); }
.offre__reco {
  position: absolute; top: -12px; left: 24px; margin: 0; padding: 3px 10px; border-radius: 999px;
  background: var(--green-deep); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.offre__pour { flex: 0 0 auto; }
.offre__liste { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1 1 auto; align-content: start; }
.offre__liste li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.offre__liste svg { flex: 0 0 auto; margin-top: 2px; color: var(--green-deep); }
.offre__cle { display: block; font-size: 12px; color: var(--ink-faint); }
.comparatif { margin-top: 28px; padding: 26px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.comparatif__defile { overflow-x: auto; }
.comparatif__table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; }
.comparatif__table th, .comparatif__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.comparatif__table thead th { font-size: 15px; font-weight: 800; color: var(--titre); }
.comparatif__table tbody th { font-weight: 600; color: var(--ink-soft); width: 22%; }
.comparatif__table td { color: var(--ink-2); }
.comparatif__table tr:last-child th, .comparatif__table tr:last-child td { border-bottom: 0; }
.comparatif__table strong { color: var(--titre); }
.tarifs__note { margin: 22px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-faint); }
@media (max-width: 860px) {
  .offres { gap: 26px; }
  .comparatif { padding: 20px 16px; }
  .inclus { padding: 22px 20px; }
}
/* prix à la même hauteur d'une carte à l'autre (la phrase « pour qui » réserve trois lignes) ; colonnes égales */
.offre__pour { min-height: calc(3 * 1.55em); }
.comparatif__table { table-layout: fixed; }
.comparatif__table thead td { width: 22%; }
@media (max-width: 860px) { .offre__pour { min-height: 0; } }

/* Page /confidentialite/, section « Mesure d'audience » (03.11.2026, ordre de l'opérateur : le choix vit ici, plus de
   barre fixe) : l'état du choix sur ce navigateur et le bouton qui le bascule, posés par mesure.js dans [data-mesure]. */
.mesure-choix {
  margin: 18px 0 20px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.mesure-choix[data-mesure-choix="refus"] { border-left-color: var(--ink-faint); }
.texte .mesure-choix .mesure-etat { flex: 1 1 260px; margin: 0; font-size: 15px; line-height: 1.55; font-weight: 600; color: var(--ink); }
.mesure-choix .mesure-bouton {
  flex: 0 0 auto; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center;
  color: #fff; background: #2a8514; border: 1px solid #2a8514;
}
.mesure-choix .mesure-bouton:hover { background: #22700f; border-color: #22700f; }
.mesure-choix[data-mesure-choix="refus"] .mesure-bouton { color: var(--ink); background: var(--card); border-color: var(--line); }
.mesure-choix[data-mesure-choix="refus"] .mesure-bouton:hover { border-color: var(--ink-faint); }
.mesure-choix .mesure-bouton:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.texte .mesure-choix--sans-script { display: block; font-size: 15px; color: var(--ink-2); }
@media (max-width: 720px) {
  .mesure-choix { padding: 14px 14px; }
  .mesure-choix .mesure-bouton { flex: 1 1 100%; }
}
