/* =====================================================================
   Feuille de style du site corporate.
   Les couleurs de marque passent par les tokens --cmc-* (design-system/).
   Ordre : variables, base, conteneurs, boutons, puis chaque partie du site
   dans l'ordre de la page, et enfin le responsive (media queries).
   ===================================================================== */


/* ---------- Variables ---------- */

:root {
  /* Couleurs du site, toutes dérivées des tokens du design system */
  --bg: var(--cmc-color-neutral-solid-0);
  --tint: var(--cmc-color-brand-blue-100);
  --accent: var(--cmc-color-brand-blue-700);
  --dark: var(--cmc-color-brand-blue-900);
  --dark-alt: var(--cmc-color-brand-blue-800);
  --ink: var(--cmc-color-neutral-solid-900);
  --muted: var(--cmc-color-neutral-solid-800);
  --line: var(--cmc-color-neutral-solid-300);
  --on-dark: var(--cmc-color-brand-blue-100);
  --on-accent: var(--cmc-color-neutral-solid-0);
  /* Couleurs des médailles : celles du composant CmcCertificate (design-system/components/certificates.css) */
  --gold: var(--cmc-certificate-rank-gold);
  --silver: var(--cmc-certificate-rank-silver);
  --bronze: var(--cmc-certificate-rank-bronze);
  --platinum: var(--cmc-certificate-rank-platinum);
  box-sizing: border-box;
  /* Laisse la place à l'encoche et à la barre d'accueil des téléphones */
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
}


/* ---------- Base : page, titres, liens ---------- */

html {
  scroll-behavior: smooth;
  /* Une ancre atteinte par le menu s'arrête sous l'en-tête collant (80 px) */
  scroll-padding-top: calc(env(safe-area-inset-top,0px) + 80px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--cmc-text-font-family-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--cmc-radius-6);
}

h1,
h2,
h3 {
  font-family: var(--cmc-text-font-family-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -.015em;
}

/* h2.h1 : un h2 qui a l'apparence d'un h1 (titre de page) ; clamp() fait varier la taille avec la largeur de l'écran */
h1,
h2.h1 {
  font-size: clamp(32px,4.6vw,64px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(26px,3vw,36px);
  line-height: 1.18;
  font-weight: 600;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

p {
  margin: 0;
}

/* Textes : chapeau, texte secondaire, petit texte, surtitre */
.lead {
  font-size: clamp(18px,1.6vw,21px);
  color: var(--muted);
  /* 62ch : environ 62 caractères par ligne, pour le confort de lecture */
  max-width: 62ch;
}

/* Chapeau en plusieurs paragraphes : un span par ligne */
.lead-lines span {
  display: block;
}

.lead-lines span + span {
  margin-top: 10px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.kicker {
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}


/* ---------- Conteneurs et utilitaires ---------- */

/* Largeur maximale du contenu, centré, avec des marges latérales qui grandissent avec l'écran */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,80px);
}

section {
  padding: clamp(56px,8vw,104px) 0;
}

/* Fonds de section : vert clair (tint) ou vert foncé (night) */
.tint {
  background: var(--tint);
}

.night {
  background: var(--dark);
  color: var(--on-dark);
}

.night h2,
.night h3 {
  color: var(--cmc-color-neutral-solid-0);
}

/* Empilement vertical avec un espace régulier */
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* En-tête de section : texte à gauche, bouton(s) à droite, qui passent dessous si la place manque */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.section-head .stack {
  max-width: 760px;
}

/* Grilles de 2, 3 ou 4 colonnes égales ; minmax(0,1fr) empêche un contenu long d'élargir sa colonne */
.grid {
  display: grid;
  gap: 22px;
}

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

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

.g4 {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

/* Cartes : blanche par défaut, vert clair (fill) ou vert foncé (dark) */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--cmc-radius-20);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tint .card {
  border-color: transparent;
}

.card.fill {
  background: var(--tint);
  border-color: transparent;
}

.card.dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--on-dark);
}

.card.dark h2,
.card.dark h3 {
  color: var(--cmc-color-neutral-solid-0);
}

/* Pastille carrée contenant une icône au trait */
.icon {
  width: 56px;
  height: 56px;
  border-radius: var(--cmc-radius-6);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--cmc-color-neutral-solid-0);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Étiquettes */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  border-radius: var(--cmc-radius-4);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}

/* Lignes libellé / valeur séparées par un filet */
.rows > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rows > div:first-child {
  border-top: 1px solid var(--line);
}

/* Deux colonnes égales (texte et photo) */
.split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 48px;
  align-items: center;
}

.cta-end {
  border-top: 1px solid var(--line);
}

/* Pages du site (accueil, offre…) : un filet entre deux pages qui se suivent */
[data-page] {
  display: block;
}

[data-page] + [data-page] {
  border-top: 1px solid var(--line);
}

/* Introduction en tête de chaque page */
.page-intro {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

/* Espacements */
.section-flush-top {
  padding-top: 0;
}

.stack-loose {
  gap: 22px;
}

.intro-spacing {
  margin-bottom: 32px;
}

.heading-tight {
  margin-bottom: 12px;
}

.logos-caption {
  margin-top: 28px;
}

.closing-note {
  margin-top: 32px;
}

.price-note {
  margin-top: 24px;
}

.scales-note {
  margin-top: 20px;
}

.medals-caption {
  margin: 40px 0 20px;
  text-align: center;
}

/* Bandeau titre + bouton(s), seul dans sa section */
.section-head.cta-band {
  margin-bottom: 0;
}

.cta-band .hero-ctas {
  margin-top: 0;
}


/* ---------- Boutons ---------- */

/* Les boutons sont ceux du design system (CmcButton, design-system/components/button.css) :
   class="button button--default button--solid" (plein) ou "button button--default button--outline" (contour).
   Seul l'espacement est propre au site. */


/* ---------- En-tête et menu ---------- */

/* Ancre invisible en haut de page */
.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 1px;
}

/* En-tête collé en haut de l'écran pendant le défilement */
header.site {
  position: sticky;
  top: env(safe-area-inset-top,0px);
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* L'en-tête utilise la même largeur que le contenu (.wrap) : le logo est aligné sur le texte de la page */
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--cmc-text-font-family-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
}

/* Le logo ne rétrécit jamais */
.brand,
.brand img {
  flex: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

nav.main {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Liens du menu ; les boutons (CmcButton) gardent leur propre style */
nav.main a:not(.button) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 5px;
  border-radius: var(--cmc-radius-8);
}

/* Lien de la page affichée, marqué par site.js pendant le défilement */
nav.main a:not(.button)[aria-current="page"] {
  color: var(--accent);
  background: var(--tint);
}

nav.main .button {
  margin-left: 6px;
}

nav.main .button.nav-demo-btn {
  margin-left: 8px;
}

/* Bouton « Menu » : caché sur grand écran, affiché par le responsive */
.menu-toggle {
  display: none;
}

/* Le menu et le sélecteur de langue sont regroupés à droite du logo */
nav.main {
  margin-left: auto;
}

/* Sélecteur de langue (CmcSelect), rempli par l'assemblage, vide dans l'aperçu.
   Fermé, il n'affiche que le code de la langue : le menu remplit déjà presque tout l'en-tête (en portugais surtout) */
.language-select {
  flex: none;
}

.language-select .select__multiselect .multiselect__tags {
  padding-left: var(--cmc-spacing-8);
  padding-right: var(--cmc-spacing-28);
}

/* La liste ouverte, plus large que le sélecteur fermé, s'aligne sur son bord droit */
.language-select .multiselect__content-wrapper {
  left: auto;
  right: 0;
  width: max-content;
  min-width: 100%;
}

.language-select:empty {
  display: none;
}

.language-select .multiselect__content-wrapper[hidden] {
  display: none;
}


/* ---------- Accueil ---------- */

/* Héros : texte à gauche (7 parts), roue des parties prenantes à droite (5 parts) */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0,7fr) minmax(0,5fr);
  gap: 48px;
  align-items: center;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Chiffres clés sous le héros */
.facts {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.facts b {
  display: block;
  font-family: var(--cmc-text-font-family-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  /* Chiffres de même largeur, pour qu'ils s'alignent */
  font-variant-numeric: tabular-nums;
}

.facts span {
  font-size: 14px;
  color: var(--muted);
}

/* Roue des parties prenantes (SVG dessiné par site.js) */
.wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.wheel svg {
  width: 100%;
  height: auto;
  max-width: 500px;
}

.wheel .ring {
  stroke: var(--tint);
}

.wheel .spoke {
  stroke: var(--line);
}

.wheel .center {
  fill: var(--dark);
}

.wheel .node-p {
  fill: var(--accent);
}

.wheel .node-b {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
}

.wheel text {
  font-family: var(--cmc-text-font-family-primary);
}

/* Libellé du centre (« Votre organisation »), en police de titre */
.wheel .t-center {
  font-family: var(--cmc-text-font-family-display);
  fill: var(--on-accent);
}

/* Libellé blanc (sur pastille pleine) ou foncé (sur pastille claire) */
.wheel .t-w {
  fill: var(--on-accent);
}

.wheel .t-b {
  fill: var(--ink);
}

.wheel .node-a {
  fill: var(--tint);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

/* Légende de la roue : une pastille par sphère */
.legend {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}

.legend i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -1px;
}

.legend .p {
  background: var(--accent);
}

.legend .b {
  border: 2px solid var(--accent);
}

.legend .a {
  border: 2px dashed var(--accent);
  background: var(--tint);
}

/* Bandeau « Ils nous font confiance » : chiffres, logos clients, presse */
.trust {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.trust-figs {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.trust-figs b {
  display: block;
  font-family: var(--cmc-text-font-family-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.trust-figs span {
  font-size: 14px;
  color: var(--muted);
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 20px;
}

.logo-item {
  /* 6 logos par ligne : la largeur moins les 5 espaces de 12 px, divisée par 6 */
  width: calc((100% - 60px)/6);
  min-width: 130px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--cmc-radius-4);
  background: var(--cmc-color-neutral-solid-0);
}

/* Logos en gris, en couleur au survol */
.logo-item img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .2s,opacity .2s;
}

.logo-item:hover img {
  filter: none;
  opacity: 1;
}

.press {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.stack.press-intro {
  max-width: 520px;
}

.press-names {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}

/* Noms des journaux composés en police à empattements, façon titre de presse */
.press-names span {
  font-family: Georgia,"Times New Roman",serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.press-names small {
  font-family: var(--cmc-text-font-family-primary);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* Cartes « Décider » et « Communiquer » */
.card.value-card {
  padding: 40px;
  gap: 18px;
}

.value-card h3 {
  font-size: 32px;
  font-weight: 800;
}

.value-card p {
  font-size: 19px;
}

.icon.icon-inverted {
  background: var(--cmc-color-neutral-solid-0);
}

.icon.icon-inverted svg {
  stroke: var(--cmc-color-brand-blue-700);
}

.tags-on-dark .tag {
  background: transparent;
  color: var(--cmc-color-neutral-solid-0);
  border-color: var(--cmc-color-brand-blue-500);
}

/* Carte sans marge intérieure, pour un tableau collé aux bords */
.card.flush {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

/* Tableau des parties prenantes et de leur médaille */
table.rel-table {
  width: 100%;
  border-collapse: collapse;
}

table.rel-table thead th {
  text-align: left;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

table.rel-table thead th:last-child {
  text-align: center;
  width: 200px;
}

tr.st-group-row th {
  background: var(--tint);
  padding: 12px 32px;
  text-align: left;
}

tr.st-group-row th span {
  font-family: var(--cmc-text-font-family-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

/* Nombre d'Index, poussé à droite de la ligne de groupe */
tr.st-group-row th .st-count {
  float: right;
  font-family: var(--cmc-text-font-family-primary);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

table.rel-table td {
  padding: 16px 32px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

table.rel-table td b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

table.rel-table .st-sub {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

table.rel-table .st-index {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

td.st-cert-cell {
  text-align: center;
  width: 200px;
}

/* Preuves (hébergement, anonymat…) : icône au trait et court texte */
.proof svg {
  width: 36px;
  height: 36px;
  stroke: var(--cmc-color-brand-blue-300);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof h3 {
  font-size: 20px;
  margin: 10px 0 6px;
}


/* ---------- Offre ---------- */

.quick-links {
  gap: 10px;
  margin-top: 8px;
}

.kicker.kicker-on-dark {
  color: var(--cmc-color-brand-blue-300);
}

/* Parcours : colonne principale (7 parts) et colonne latérale (5 parts) */
.parcours {
  grid-template-columns: minmax(0,7fr) minmax(0,5fr);
}

/* Étapes du parcours : vert moyen dans une carte foncée, vert clair ailleurs */
.step {
  padding: 18px 20px;
  border-radius: var(--cmc-radius-12);
  background: var(--dark-alt);
  color: var(--on-dark);
}

.step b {
  color: var(--cmc-color-neutral-solid-0);
  display: block;
}

.card:not(.dark) .step {
  background: var(--tint);
  color: var(--muted);
}

.card:not(.dark) .step b {
  color: var(--ink);
}

.step-price {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

/* Data products : raccourcis (boutons-étiquettes) et cartes */
.dp-chip {
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}

.dp-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Une carte atteinte par un raccourci s'arrête sous l'en-tête collant */
.dp-card {
  scroll-margin-top: 100px;
}

.dp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Offres packagées : contour bleu et composition de l'offre */
.bundle-card {
  border: 2px solid var(--accent);
}

.bundle-includes {
  font-family: var(--cmc-text-font-family-display);
  font-weight: 700;
  color: var(--accent);
}

/* Prix d'un data product */
.price-line {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.price-line div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-line span {
  font-size: 12.5px;
  color: var(--muted);
}

.price-line b {
  font-family: var(--cmc-text-font-family-display);
  font-size: 17px;
  color: var(--ink);
}

/* !important : l'emporte sur la couleur grise de .price-line span */
.price-free {
  font-family: var(--cmc-text-font-family-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent) !important;
}

.opt-group h3 {
  font-size: 18px;
  margin-bottom: 6px;
}


/* ---------- Certifications ---------- */

.stack.ecovadis-intro {
  max-width: 800px;
}

/* Cartes des certifications (générées par site.js) */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}

.cert-card {
  align-items: center;
  text-align: center;
}

.cert-card svg,
.cert-card > img {
  width: 170px;
  height: 170px;
}

.cert-card .meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.cert-card .meta span {
  padding: 4px 10px;
  border-radius: var(--cmc-radius-full);
  background: var(--tint);
  color: var(--accent);
  font-weight: 700;
}

/* Médailles CmcCertificate (design-system/components/certificates/) */
.badge-image {
  object-fit: contain;
  display: block;
}

/* Médaille du tableau des parties prenantes : toute la largeur de sa cellule, 170 px au plus */
.mini-badge img {
  width: 100%;
  max-width: 170px;
  height: auto;
}

/* Score : anneau (donut) et répartition des points */
.score-layout {
  gap: 56px;
  align-items: center;
}

.score-points {
  white-space: nowrap;
}

.donut .seg1 {
  stroke: var(--cmc-color-brand-blue-700);
}

.donut .seg2 {
  stroke: var(--cmc-color-brand-blue-500);
}

.donut .seg3 {
  stroke: var(--cmc-color-brand-blue-900);
}

.donut .seg4 {
  stroke: var(--cmc-color-brand-blue-300);
}

.donut text {
  fill: var(--ink);
  font-family: var(--cmc-text-font-family-display);
}

.donut .sub {
  fill: var(--muted);
  font-family: var(--cmc-text-font-family-primary);
}

/* Carré de couleur devant chaque part du score, assorti au segment du donut */
.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: -1px;
}

.swatch.segment-1 {
  background: var(--cmc-color-brand-blue-700);
}

.swatch.segment-2 {
  background: var(--cmc-color-brand-blue-500);
}

.swatch.segment-3 {
  background: var(--cmc-color-brand-blue-900);
}

.swatch.segment-4 {
  background: var(--cmc-color-brand-blue-300);
}

/* Médailles */
.medal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border-radius: var(--cmc-radius-20);
  background: var(--tint);
}

.medal b {
  font-family: var(--cmc-text-font-family-display);
  font-size: 24px;
}

.medal .pts {
  font-family: var(--cmc-text-font-family-display);
  font-weight: 800;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.medal.medal-card {
  background: var(--bg);
  align-items: center;
  text-align: center;
}

.medal-image {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

/* Couleur de chaque niveau, reprise par les pastilles (.dot) et les cartes mobiles (.cm-card) */
.level-attestation {
  --level-color: var(--line);
}

.level-bronze {
  --level-color: var(--bronze);
}

.level-silver {
  --level-color: var(--silver);
}

.level-gold {
  --level-color: var(--gold);
}

.level-platinum {
  --level-color: var(--platinum);
}

/* Tableau des critères par niveau (grand écran) ; défile horizontalement s'il est trop large */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--cmc-radius-20);
  background: var(--bg);
}

.crit-wrap {
  background: var(--bg);
}

table.crit {
  border-collapse: collapse;
  width: 100%;
  min-width: 860px;
  font-size: 15px;
}

table.crit th,
table.crit td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

table.crit thead th {
  font-family: var(--cmc-text-font-family-display);
  font-size: 15px;
  font-weight: 700;
  background: var(--tint);
  white-space: nowrap;
}

table.crit thead th:first-child,
table.crit tbody th {
  text-align: left;
}

table.crit tbody th {
  font-weight: 700;
  width: 24%;
}

table.crit tbody th span {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

table.crit td {
  font-variant-numeric: tabular-nums;
}

/* Cellule fusionnée sur plusieurs niveaux : fond vert à 5 % d'opacité */
table.crit td.span {
  background: color-mix(in srgb,var(--cmc-color-brand-blue-700) 5%,transparent);
}

table.crit td.na {
  color: var(--muted);
}

/* Filet vertical après la colonne « Attestation » */
table.crit .c-att {
  border-right: 2px solid var(--line);
}

table.crit tbody td:nth-child(2) {
  border-right: 2px solid var(--line);
}

table.crit tr.crit-lvl td {
  font-weight: 700;
  color: var(--accent);
}

/* Pastille de couleur du niveau */
.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 0;
  background: var(--level-color);
}

/* Version mobile du tableau : une carte par niveau, cachée sur grand écran */
.crit-mobile {
  display: none;
}

.cm-card {
  background: var(--bg);
  border: 1px solid var(--line);
  /* Bandeau supérieur épais, à la couleur du niveau */
  border-top: 4px solid;
  border-radius: var(--cmc-radius-6);
  padding: 18px 18px 8px;
  margin-bottom: 12px;
  border-top-color: var(--level-color);
}

.cm-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.cm-card dl {
  margin: 0;
}

.cm-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.cm-card dt {
  color: var(--muted);
}

.cm-card dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}


/* ---------- Méthodologie ---------- */

/* Carte d'Index : titre à 18 px, rien ne déborde de la carte */
.idx {
  min-width: 0;
}

.idx h3 {
  font-size: 18px;
  overflow-wrap: break-word;
}

/* Liste des Index */
.idx ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.idx li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

.stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.stats b {
  display: block;
  font-family: var(--cmc-text-font-family-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.match-block {
  margin-top: 22px;
}

.match-card {
  gap: 32px;
  align-items: center;
}

.card.security-card {
  background: var(--dark-alt);
  border-color: transparent;
  color: var(--on-dark);
}

/* Bloc C-FAIRR® : les six critères */
.cfairr-compact {
  padding: clamp(40px,5vw,64px) 0;
  border-top: 1px solid var(--line);
}

.cf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cf-head h2 {
  font-size: clamp(22px,2.2vw,28px);
}

.cf-head p {
  max-width: 560px;
  font-size: 15px;
}

.cf-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 12px;
}

.cf-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--cmc-radius-6);
  background: var(--bg);
}

.cf-letter {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--cmc-radius-4);
  background: var(--accent);
  color: var(--cmc-color-neutral-solid-0);
  font-family: var(--cmc-text-font-family-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-item b {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.cf-item p {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
}


/* ---------- Réputation et marque employeur ---------- */

.stack.reliability-intro {
  max-width: 720px;
}

/* Ligne texte + photo ; « reversed » met la photo à droite */
.feature-row {
  align-items: center;
}

.feature-row.reversed > .photo {
  order: 2;
}

.feature-row.reversed > .stack {
  order: 1;
}

.trainees-block {
  margin-top: 40px;
}

.proof-figure {
  font-family: var(--cmc-text-font-family-display);
  font-size: 32px;
  font-weight: 800;
  display: block;
}


/* ---------- CSRD ---------- */

.stack.csrd-proof-intro {
  max-width: 820px;
}

/* Tableau de correspondance ESRS : 4 colonnes de largeurs proportionnelles */
.csrd-row {
  display: grid;
  grid-template-columns: minmax(0,.7fr) minmax(0,1fr) minmax(0,1.6fr) minmax(0,.6fr);
  gap: 20px;
  align-items: center;
  padding: 16px 32px;
  border-top: 1px solid var(--line);
}

.csrd-head {
  border-top: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--tint);
}

.csrd-row .esrs {
  color: var(--accent);
}


/* ---------- Photos ---------- */

/* Dégradé vert visible tant que la photo n'est pas chargée ; la photo couvre tout le cadre */
.photo {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--cmc-radius-6);
  background: linear-gradient(135deg,var(--cmc-color-brand-blue-900) 0%,var(--cmc-color-brand-blue-700) 60%,var(--cmc-color-brand-blue-300) 100%);
  display: flex;
  align-items: flex-end;
  min-height: 320px;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo en pleine largeur, bord à bord */
.photo.wide {
  min-height: clamp(260px,38vw,520px);
  border-radius: 0;
}

.photo.tall {
  min-height: 460px;
}

.photo.framed {
  min-height: clamp(260px,34vw,420px);
}

.photo-spaced {
  margin-bottom: clamp(56px,8vw,104px);
}

/* Cadrage vertical des photos : partie de l'image gardée visible */
.photo-focus-20 {
  object-position: center 20%;
}

.photo-focus-25 {
  object-position: center 25%;
}

.photo-focus-60 {
  object-position: center 60%;
}


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

footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: 56px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

footer a {
  color: var(--cmc-color-neutral-solid-0);
  text-decoration: none;
}

footer .cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  font-size: 15px;
}

footer .cols div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand {
  gap: 8px;
}

.footer-name {
  font-family: var(--cmc-text-font-family-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--cmc-color-neutral-solid-0);
}

/* ---------- Responsive ----------
   Toutes les media queries sont ici, de la plus large à la plus étroite :
   une règle plus bas l'emporte sur une règle plus haut. */

/* Jusqu'à 1320 px : le menu se replie derrière le bouton « Menu » */
@media (max-width: 1320px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  /* Menu déroulant sous l'en-tête, ouvert par site.js (classe .open) */
  nav.main {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px clamp(20px,5vw,80px) 20px;
    white-space: normal;
  }

  nav.main.open {
    display: flex;
  }

  nav.main .button,
  nav.main .button.nav-demo-btn {
    margin: 8px 0 0;
  }

  header.site .wrap {
    position: relative;
  }
}

/* Jusqu'à 1100 px */
@media (max-width: 1100px) {
  /* Méthodologie : critères C-FAIRR® sur 3 colonnes */
  .cf-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

/* Jusqu'à 1000 px (tablette) */
@media (max-width: 1000px) {
  /* Conteneurs : grilles réduites */
  .g4 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .g3 {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  /* Accueil et offre : une seule colonne */
  .hero .wrap,
  .parcours {
    grid-template-columns: 1fr;
  }

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

  /* 3 logos par ligne : la largeur moins les 2 espaces de 12 px, divisée par 3 */
  .logo-item {
    width: calc((100% - 24px)/3);
  }

  /* Certifications */
  .cert-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  /* Photos */
  .photo.tall {
    min-height: 320px;
  }
}

/* Jusqu'à 760 px : le tableau des critères laisse place aux cartes mobiles */
@media (max-width: 760px) {
  .crit-wrap {
    display: none;
  }

  .crit-mobile {
    display: block;
  }
}

/* Jusqu'à 640 px (téléphone) */
@media (max-width: 640px) {
  /* Conteneurs : une seule colonne, cartes moins rembourrées */
  .g2,
  .g4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  /* Accueil : le tableau des parties prenantes devient une liste de lignes flexibles */
  table.rel-table thead {
    display: none;
  }

  table.rel-table,
  table.rel-table tbody {
    display: block;
    width: 100%;
  }

  table.rel-table tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
  }

  tr.st-group-row {
    padding: 12px 20px;
  }

  tr.st-group-row th {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
  }

  table.rel-table td {
    padding: 0;
    border: 0;
    width: auto;
  }

  /* Médaille de taille fixe (celle de l'ordinateur), quelle que soit la longueur du texte à gauche */
  td.st-cert-cell {
    flex: 0 0 136px;
    width: 136px;
  }


  /* Certifications */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* Méthodologie */
  .cf-grid {
    grid-template-columns: 1fr;
  }

  /* CSRD : on garde 2 colonnes sur 4 (la 1re et la 3e sont masquées) */
  .csrd-row {
    grid-template-columns: 1fr 1fr;
    padding: 14px 20px;
  }

  .csrd-row > :nth-child(1),
  .csrd-row > :nth-child(3) {
    display: none;
  }
}

/* Mouvement réduit demandé par le système : pas de défilement animé */
/* Jusqu'à 400 px : logo réduit pour garder le bouton « Menu » et le sélecteur de langue sur la même ligne */
@media (max-width: 400px) {
  .brand-logo {
    height: 32px;
  }
}

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