/* Group `info`: data, pricing, contact, legal pages, 404. Only kit tokens; animations through [data-anim]. */

/* ---------- Données: the twelve producers, a collage of their official marks ---------- */
.clg {
  list-style: none; margin: 0; padding: var(--e-2); display: grid; gap: var(--e-2); grid-auto-rows: 56px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--calque); border-radius: var(--r);
  grid-template-areas: "ign ign dgf dgf" "ign ign dgf dgf" "adm adm ins ins" "geo geo geo ana" "dat dat cer cer" "cst cst sde sde" "gpu gpu gpu bod";
}
.clg li { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; background: var(--feuille); border-radius: var(--r); }
.clg-m { position: absolute; inset: 0; margin: auto; width: var(--w); height: var(--h); }
.clg-m svg { display: block; width: 100%; height: 100%; }
.clg-word { font-size: var(--t-small); line-height: var(--l-small); font-weight: var(--g-fort); }
.anim .clg li { transition: opacity 360ms linear, transform 460ms var(--courbe); transition-delay: calc(var(--i) * 45ms); }
.anim .clg:not(.in) li { opacity: 0; transform: translateY(10px); }
@media (min-width: 640px) {
  .clg {
    max-width: 740px; aspect-ratio: 3 / 2; grid-auto-rows: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr));
    grid-template-areas: "ign ign dgf dgf adm adm" "ign ign dgf dgf ins ins" "geo geo geo ana cer cer" "dat dat cst cst sde sde" "gpu gpu gpu gpu bod bod";
  }
  .clg-word { font-size: var(--t-h3); line-height: var(--l-h3); }
}

/* ---------- Données: the table ---------- */
.dt .table { table-layout: fixed; }
.dt th:nth-child(1) { width: 26%; }
.dt th:nth-child(2) { width: 20%; }
.dt th:nth-child(3) { width: 18%; }
.dt th:nth-child(4) { width: 36%; }
.dt td:first-child { font-weight: var(--g-fort); }
.dt tbody tr { scroll-margin-top: var(--e-6); }
.dt tbody tr[hidden] { display: none; }
.dt tbody tr:target { background: var(--calque); box-shadow: inset 3px 0 0 var(--encre); }
.dt-page { display: inline-block; margin-top: var(--e-1); }
.dt-attr { display: block; margin-top: var(--e-1); color: var(--encre-2); }
@media (min-width: 760px) { .dt tbody tr:target td:first-child { padding-left: var(--e-3); } }
.dt-notes { display: grid; gap: var(--e-4); margin-top: var(--e-6); font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
@media (min-width: 760px) { .dt-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--inter-colonne); } }
@media (min-width: 1100px) { .dt-notes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Phone: one card per source; producer and licence share a secondary line. */
@media (max-width: 759px) {
  .dt .table { min-width: 0; table-layout: auto; }
  .dt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dt tbody { display: grid; gap: var(--e-2); }
  .dt tbody tr { display: flex; flex-wrap: wrap; column-gap: var(--e-3); row-gap: var(--e-1); padding: var(--e-4); background: var(--feuille); border: 1px solid var(--filet-doux); border-radius: var(--r); }
  .dt tbody tr:hover { background: var(--feuille); }
  .dt tbody tr:target { background: var(--calque); }
  .dt td { display: block; padding: 0; border: 0; }
  .dt td:first-child, .dt .dt-use { flex: 1 0 100%; }
  .dt td:first-child { font-size: var(--t-body); }
  .dt .dt-prod, .dt .dt-lic { color: var(--encre-2); }
  .dt .dt-lic { padding-left: var(--e-3); border-left: 1px solid var(--trait-fort); }
  .dt .dt-use { margin-top: var(--e-1); }
}

/* ---------- Tarifs ---------- */
.plans { display: grid; gap: var(--e-5); }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; }
.plan-in { display: flex; flex-direction: column; flex: 1; padding: var(--e-5); }
@media (min-width: 760px) and (max-width: 1099px), (min-width: 1280px) { .plan-in { padding: var(--e-6); } }
.plan-p { margin-top: var(--e-4); }
.plan-price {
  font-size: var(--t-h1); font-weight: var(--g-display); line-height: var(--l-h1);
  letter-spacing: var(--e-h1); font-stretch: var(--chasse-titre); white-space: nowrap;
}
/* Price not set yet: the words sit at h3 size on the baseline of the free price. */
.plan-price--soon {
  display: flex; align-items: flex-end; min-height: calc(var(--t-h1) * var(--l-h1));
  font-size: var(--t-h3); font-weight: var(--g-h3); line-height: var(--l-h3); letter-spacing: 0; font-stretch: var(--chasse-texte); white-space: normal;
}
/* The cote under the price: 1 px ink line, 45° ticks at its ends. */
.pr-cote { display: block; position: relative; height: 13px; margin-top: var(--e-3); }
.pr-cote::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--encre); transform-origin: left; }
.pr-cote i { position: absolute; top: 0; width: 1px; height: 13px; background: var(--encre); transform: rotate(45deg); }
.pr-cote i:first-child { left: 0; }
.pr-cote i:last-child { right: 0; }
.anim .plans .pr-cote::before { transition: transform 700ms var(--courbe) 160ms; }
.anim .plans .pr-cote i { transition: opacity 240ms linear 760ms; }
.anim .plans:not(.in) .pr-cote::before { transform: scaleX(0); }
.anim .plans:not(.in) .pr-cote i { opacity: 0; }
.plans .plan-price.a-rise { --a-delay: 0ms; }
.plan-unit { margin-top: var(--e-2); color: var(--encre-2); }
.plan-alt { margin-top: var(--e-1); font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
.plan-items { list-style: none; margin: var(--e-4) 0 0; padding: 0; border-top: 1px solid var(--trait-fin); }
.plan-items li { position: relative; padding: var(--e-3) 0 var(--e-3) var(--e-5); border-bottom: 1px solid var(--trait-fin); }
.plan-items li::before {
  content: ""; position: absolute; left: 0; top: calc(var(--e-3) + .55em); width: 10px; height: 10px;
  background: repeating-linear-gradient(135deg, var(--encre) 0 1px, transparent 1px 3px); border: 1px solid var(--encre);
}
.plan-act { margin-top: auto; padding-top: var(--e-5); }
.plan-act .cta { margin-top: 0; }
.plan-soon { display: grid; gap: var(--e-3); justify-items: start; }
.plan-soon p { color: var(--encre-2); max-width: 40ch; }
.faq-cols { display: grid; gap: 0 var(--e-7); }
.faq-cols .faq { max-width: none; }
@media (max-width: 1099px) { .faq-cols .faq + .faq { border-top: 0; } }
@media (min-width: 1100px) { .faq-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq-more { margin-top: var(--e-5); }

/* ---------- Contact ---------- */
.ct-hero { padding-bottom: 0; }
.ct { padding-top: var(--e-6); padding-bottom: var(--e-section); }
.ct-mail {
  display: inline-block; max-width: 100%; font-size: var(--t-h2); line-height: var(--l-h2); font-weight: var(--g-titre); font-stretch: var(--chasse-titre);
  letter-spacing: var(--e-h2); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; overflow-wrap: anywhere;
  -webkit-user-select: text; user-select: text;
}
.ct-mail:hover { text-decoration-thickness: 3px; }
.ct-rs { list-style: none; margin: var(--e-7) 0 0; padding: 0; max-width: 720px; display: grid; gap: var(--e-4); }
.ct-r { display: flex; flex-direction: column; align-items: flex-start; padding: var(--e-5); }
.ct-r p { margin-top: var(--e-2); margin-bottom: var(--e-5); max-width: var(--mesure); }
.ct-r .btn { margin-top: auto; }
@media (min-width: 760px) { .ct-r { padding: var(--e-6); } }
@media (min-width: 1100px) {
  .ct-rs { max-width: none; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; column-gap: var(--e-bloc); row-gap: var(--e-bloc); }
}

/* ---------- Legal pages ---------- */
.lg { display: grid; gap: var(--e-8); padding-bottom: var(--e-section); }
.lg-text { max-width: 68ch; min-width: 0; }
.lg-text > p, .lg-text > ul { max-width: var(--mesure); }
.lg-text > * + * { margin-top: var(--e-4); }
.lg-text h2 { margin-top: var(--e-7); }
.lg-text > h2:first-child, .lg-updated + h2 { margin-top: var(--e-6); }
.lg-art { display: inline-block; min-width: 2ch; margin-right: var(--e-2); color: var(--encre-2); font-size: var(--t-small); }
.lg-updated { color: var(--encre-2); margin-bottom: var(--e-3); }
.lg-text .tbl { margin-top: var(--e-5); }
.lg-text .table code { font-family: var(--f-ref); font-size: var(--t-ref); white-space: nowrap; }
.lg-facts { display: grid; margin: var(--e-3) 0 0; border-top: var(--filet-w) solid var(--encre); }
.lg-facts > div { display: grid; gap: var(--e-1); padding-block: var(--e-3); border-bottom: 1px solid var(--trait-fin); }
.lg-facts dt { font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
.lg-facts dd { margin: 0; }
@media (min-width: 760px) { .lg-facts > div { grid-template-columns: 13rem minmax(0, 1fr); column-gap: var(--e-5); } }
.lg-nav ul { list-style: none; margin: 0; padding: var(--e-4) 0 0; display: grid; gap: var(--e-3); border-top: var(--filet-w) solid var(--encre); }
.lg-nav a { color: var(--encre-2); text-decoration: none; }
.lg-nav a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: .2em; }
.lg-nav a[aria-current] { color: var(--encre); font-weight: var(--g-fort); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
/* Phone: each row a card, the column heads back as labels (data-th). */
@media (max-width: 759px) {
  .lg-text .table { min-width: 0; }
  .lg-text .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-text .table tbody { display: grid; gap: var(--e-2); }
  .lg-text .table tbody tr { display: grid; gap: var(--e-3); padding: var(--e-4); background: var(--feuille); border: 1px solid var(--filet-doux); border-radius: var(--r); }
  .lg-text .table tbody tr:hover { background: var(--feuille); }
  .lg-text .table td { display: block; padding: 0; border: 0; }
  .lg-text .table td::before { content: attr(data-th); display: block; font-size: var(--t-label); line-height: var(--l-label); color: var(--encre-2); }
  .lg-text .table code { white-space: normal; overflow-wrap: anywhere; }
}
.lg-hub { list-style: none; margin: 0; padding: 0; border-top: var(--filet-w) solid var(--encre); }
.lg-hub li { padding-block: var(--e-5); border-bottom: 1px solid var(--trait-fin); }
.lg-hub h2 { margin: 0; }
.lg-hub p { margin-top: var(--e-2); color: var(--encre-2); }
@media (min-width: 1200px) {
  .lg { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--e-7); }
  .lg-nav { grid-row: 1; grid-column: 1; position: sticky; top: var(--e-6); align-self: start; }
  .lg-text { grid-column: 2; }
}

/* ---------- 404 ---------- */
.e4-path { color: var(--encre); overflow-wrap: anywhere; }
.e4-links { list-style: none; margin: var(--e-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); }
.e4-draw { width: 100%; max-width: 360px; }
.e4-map { aspect-ratio: 360 / 200; }
@media (min-width: 1100px) { .e4-draw { justify-self: end; } }
.e4-draw .aer-sel { fill: var(--feuille); fill-opacity: .82; stroke: var(--encre); stroke-width: 1.5; stroke-dasharray: 6 5; }
