/* ==========================================================================
   caisses.css — Composants spécifiques à la page « Caisses isothermes »
   S'appuie sur tokens.css + styles.css + bacs.css (hero, sections, cartes,
   tableaux, grilles .t-* réutilisés). Préfixe .ci- pour les blocs propres
   à cette page (compte à rebours, timeline, toggle M/F, marée, dashboard,
   simulateur, FAQ).
   ========================================================================== */

/* ---- compte à rebours 2030 (héro) ---- */
.ci-countdown {
  margin-top: 30px; display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-card); padding: 16px 20px; max-width: 540px;
  box-shadow: var(--shadow);
}
.ci-cd-n {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 2.8rem);
  color: var(--signal); line-height: 1; font-variant-numeric: tabular-nums; flex: none;
}
.ci-cd-t { font-size: .85rem; color: var(--muted); }

/* ---- bandeau de preuves ---- */
.ci-strip {
  margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow);
}
.ci-strip-it { padding: 20px 20px; border-left: 1px solid var(--line); }
.ci-strip-it:first-child { border-left: 0; }
.ci-strip-it b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--forest); }
.ci-strip-it span { display: block; margin-top: 4px; font-size: .84rem; color: var(--muted); }
@media (max-width: 820px){
  .ci-strip { grid-template-columns: 1fr 1fr; }
  .ci-strip-it:nth-child(3) { border-left: 0; }
  .ci-strip-it:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px){ .ci-strip { grid-template-columns: 1fr; } .ci-strip-it { border-left: 0; border-top: 1px solid var(--line); } .ci-strip-it:first-child { border-top: 0; } }

/* ---- timeline réglementaire ---- */
.ci-timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ci-tl {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line-strong);
  border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.ci-tl-d { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.ci-tl-y { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--ink); }
.ci-tl.now { border-top-color: var(--flux); }
.ci-tl.now .ci-tl-y { color: var(--flux-ink); }
.ci-tl h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.ci-tl p { font-size: .88rem; color: var(--muted); }
/* Jalon clé 2030 : tuile forêt pleine */
.ci-tl.key { background: var(--forest); border-color: transparent; border-top-color: var(--signal); }
.ci-tl.key .ci-tl-y { color: #fff; }
.ci-tl.key .ci-tl-d { color: #bff3df; }
.ci-tl.key h3 { color: #fff; }
.ci-tl.key p { color: #d9f4e8; }
@media (max-width: 900px){ .ci-timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .ci-timeline { grid-template-columns: 1fr; } }

/* ---- animation contextuelle : filières (pour qui) ---- */
#pourqui .t-prob-head { align-items: center; }
.ci-sectors-anim { flex: 0 0 280px; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
@media (max-width: 900px){ .ci-sectors-anim { flex: none; } }
.ci-sectors-scene { position: relative; width: 224px; height: 212px; display: grid; place-items: center; }
.ci-sectors-core {
  position: relative; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--forest) 90%, #000), var(--forest));
  color: #aee9ff; font-size: 2.1rem; box-shadow: 0 12px 26px -12px rgba(11,79,65,.6); z-index: 2;
}
/* 6 pastilles filières réparties en cercle (rotate · translate · rotate inverse) */
.ci-sectors-chip {
  position: absolute; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--flux-ink); font-size: 1.05rem;
  transform: rotate(calc(60deg * var(--i))) translate(86px) rotate(calc(-60deg * var(--i)));
  animation: ci-sectors-pop 4.2s ease-in-out infinite;
  animation-delay: calc(.35s * var(--i));
}
/* couleurs tournantes (frais/forest/ambre) pour varier */
.ci-sectors-chip:nth-child(3n+1) { color: var(--flux-ink); }
.ci-sectors-chip:nth-child(3n+2) { color: var(--forest); }
.ci-sectors-chip:nth-child(3n)   { color: var(--amber-ink); }
.ci-sectors-lab { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@keyframes ci-sectors-pop {
  0%, 100% { opacity: .45; }
  10%, 26% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-sectors-chip { animation: none; opacity: 1; }
}

/* ---- animation contextuelle : boucle fermée (modèle) ---- */
#modele .t-prob-head { align-items: center; }
.ci-loop-anim { flex: 0 0 280px; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
@media (max-width: 900px){ .ci-loop-anim { flex: none; } }
.ci-loop-scene { position: relative; width: 210px; height: 210px; display: grid; place-items: center; }
/* recyclage central */
.ci-loop-core {
  position: relative; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--forest) 90%, #000), var(--forest));
  color: #7fe7c4; font-size: 2.1rem; box-shadow: 0 12px 26px -12px rgba(11,79,65,.6); z-index: 2;
}
/* anneau rotatif portant les 4 étapes */
.ci-loop-orbit { position: absolute; inset: 0; animation: ci-loop-spin 14s linear infinite; }
.ci-loop-orbit::before {
  content: ""; position: absolute; inset: 24px; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--forest) 24%, transparent);
}
.ci-loop-node {
  position: absolute; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 1.1rem; /* contre-rotation pour garder les icônes droites */
  animation: ci-loop-spin-rev 14s linear infinite;
}
.ci-loop-node-1 { top: 2px; left: 50%; margin-left: -24px; color: var(--flux-ink); }
.ci-loop-node-2 { top: 50%; right: 2px; margin-top: -24px; color: var(--forest); }
.ci-loop-node-3 { bottom: 2px; left: 50%; margin-left: -24px; color: var(--amber-ink); }
.ci-loop-node-4 { top: 50%; left: 2px; margin-top: -24px; color: var(--flux-ink); }
.ci-loop-lab { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@keyframes ci-loop-spin { to { transform: rotate(360deg); } }
@keyframes ci-loop-spin-rev { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ci-loop-orbit, .ci-loop-node { animation: none; }
}

/* ---- animation contextuelle : radar temps réel (pilotage) ---- */
#pilotage .t-prob-head { align-items: center; }
.ci-radar-anim { flex: 0 0 280px; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
@media (max-width: 900px){ .ci-radar-anim { flex: none; } }
.ci-radar-scene { position: relative; width: 210px; height: 200px; display: grid; place-items: center; }
/* ondes émises par l'antenne */
.ci-radar-wave {
  position: absolute; width: 78px; height: 78px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--flux) 50%, transparent);
  animation: ci-radar-wave 3s ease-out infinite;
}
.ci-radar-wave-2 { animation-delay: 1.5s; }
.ci-radar-hub {
  position: relative; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--forest) 90%, #000), var(--forest));
  color: #eafff6; font-size: 2.2rem; box-shadow: 0 12px 26px -12px rgba(11,79,65,.6); z-index: 2;
}
/* puces des caisses détectées (clignotent quand l'onde les atteint) */
.ci-radar-tag {
  position: absolute; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--flux-ink); font-size: .95rem; animation: ci-radar-blink 3s ease-in-out infinite;
}
.ci-radar-tag-1 { top: 4px;    left: 16px;  animation-delay: .2s; }
.ci-radar-tag-2 { top: 12px;   right: 10px; animation-delay: 1.0s; }
.ci-radar-tag-3 { bottom: 10px; left: 10px;  animation-delay: 1.8s; }
.ci-radar-tag-4 { bottom: 2px; right: 24px; animation-delay: 2.5s; }
.ci-radar-lab { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ci-radar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flux); animation: ci-radar-pulse 1.6s ease-out infinite; }
@keyframes ci-radar-wave {
  0% { transform: scale(.6); opacity: 0; }
  25% { opacity: .85; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes ci-radar-blink {
  0%, 100% { transform: scale(.88); opacity: .5; border-color: var(--line); }
  12%, 30% { transform: scale(1); opacity: 1; border-color: color-mix(in srgb, var(--flux) 55%, var(--line)); }
}
@keyframes ci-radar-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--flux) 70%, transparent); }
  100% { box-shadow: 0 0 0 8px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-radar-wave { animation: none; opacity: 0; }
  .ci-radar-tag { animation: none; opacity: 1; }
  .ci-radar-dot { animation: none; }
}

/* ---- animation contextuelle : colis santé (froid · scellé · tracé) ---- */
#sante .t-prob-head { align-items: center; }
.ci-med-anim { flex: 0 0 280px; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
@media (max-width: 900px){ .ci-med-anim { flex: none; } }
.ci-med-scene { position: relative; width: 210px; height: 196px; display: grid; place-items: center; }
/* anneau de scan qui pulse */
.ci-med-scan {
  position: absolute; width: 126px; height: 126px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--flux) 55%, transparent);
  animation: ci-med-scan 2.4s ease-out infinite;
}
.ci-med-box {
  position: relative; width: 100px; height: 100px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--forest) 90%, #000), var(--forest));
  color: #eafff6; font-size: 2.6rem; box-shadow: 0 12px 26px -12px rgba(11,79,65,.6);
}
/* pastilles en orbite (température, scellé, traçabilité) */
.ci-med-chip {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 1.05rem; animation: ci-med-pop 3.6s ease-in-out infinite;
}
.ci-med-chip-temp  { top: 2px;   left: 8px;  color: var(--flux-ink);   animation-delay: 0s; }
.ci-med-chip-seal  { top: 6px;   right: 6px; color: var(--forest);     animation-delay: 1.2s; }
.ci-med-chip-trace { bottom: 6px; right: 18px; color: var(--amber-ink); animation-delay: 2.4s; }
.ci-med-lab { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@keyframes ci-med-scan {
  0% { transform: scale(.7); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes ci-med-pop {
  0%, 100% { transform: scale(.85); opacity: .55; }
  14%, 40% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ci-med-scan { animation: none; opacity: .4; }
  .ci-med-chip { animation: none; opacity: 1; }
}

/* ---- animation contextuelle : compte à rebours vers 2030 ---- */
/* Colonne de droite à largeur fixe, contenu centré (vertical + horizontal). */
#echeances .t-prob-head { align-items: center; }
.ci-cd-anim { flex: 0 0 280px; align-self: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
@media (max-width: 900px){ .ci-cd-anim { flex: none; } }
.ci-cda-ring { position: relative; width: 184px; height: 184px; display: grid; place-items: center; }
/* anneau de progression (part vide à gauche, se "remplit" vers l'échéance) */
.ci-cda-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--signal) 0 72%, color-mix(in srgb, var(--forest) 16%, transparent) 72% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
  animation: ci-cda-spin 8s linear infinite;
}
.ci-cda-track { position: absolute; inset: 18px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.ci-cda-core {
  position: relative; width: 98px; height: 98px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--forest) 90%, #000), var(--forest));
  color: #ffd9a8; font-size: 2.3rem; box-shadow: 0 10px 22px -10px rgba(11,79,65,.6);
}
.ci-cda-core i { animation: ci-cda-flip 3s ease-in-out infinite; }
/* grains qui tombent (déchets) */
.ci-cda-grain { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 1px; background: var(--amber); opacity: 0; }
.ci-cda-grain-1 { animation: ci-cda-fall 3s ease-in 0s infinite; }
.ci-cda-grain-2 { animation: ci-cda-fall 3s ease-in 1s infinite; }
.ci-cda-grain-3 { animation: ci-cda-fall 3s ease-in 2s infinite; }
.ci-cda-meta { text-align: center; display: flex; flex-direction: column; gap: 3px; max-width: 180px; }
.ci-cda-days { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--signal); font-variant-numeric: tabular-nums; }
.ci-cda-lab { font-size: .78rem; color: var(--muted); }
.ci-cda-badge { margin-top: 6px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em; color: var(--forest); background: color-mix(in srgb, var(--forest) 8%, var(--surface)); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 10px; align-self: center; }
@keyframes ci-cda-spin { to { transform: rotate(360deg); } }
@keyframes ci-cda-flip { 0%, 42% { transform: rotate(0); } 50%, 92% { transform: rotate(180deg); } 100% { transform: rotate(180deg); } }
@keyframes ci-cda-fall {
  0% { transform: translate(-50%, -4px); opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(-50%, 30px); opacity: 0; }
}
@media (max-width: 900px){ .ci-cd-anim { flex-direction: row; justify-content: center; gap: 22px; } .ci-cda-meta { text-align: left; align-items: flex-start; } .ci-cda-badge { align-self: flex-start; } }
@media (prefers-reduced-motion: reduce) {
  .ci-cda-ring::before, .ci-cda-core i, .ci-cda-grain { animation: none; }
  .ci-cda-grain { opacity: 0; }
}

.ci-callout {
  margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: color-mix(in srgb, var(--forest) 6%, var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 22px;
}
.ci-callout-ico { color: var(--flux-ink); font-size: 1.3rem; }
.ci-callout p { font-size: .92rem; color: var(--ink); }
.ci-callout b { font-family: var(--font-display); }

/* ---- toggle Marée / Frais ---- */
.ci-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 26px;
  background: color-mix(in srgb, var(--forest) 8%, var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-pill);
}
.ci-toggle button {
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  padding: 9px 18px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s ease, color .2s ease;
}
.ci-toggle button i { font-size: .85rem; }
.ci-toggle button[aria-pressed="true"] { background: var(--forest); color: #fff; }

/* ---- cartes produit (3 formats) ---- */
.ci-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px){ .ci-products { grid-template-columns: 1fr; } }
.ci-prod { gap: 16px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
/* En-tête produit : nom du bac en titre, dimensions marketing en sous-titre */
.ci-prod-hd { display: flex; flex-direction: column; gap: 4px; }
.ci-prod-ref { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.01em; color: var(--ink); line-height: 1; }
/* Suffixe M/F coloré à la teinte de la caisse : marée = teal, frais = orange */
.ci-prod-ref b { color: #1f93b0; font-weight: 800; }        /* M · marée (teal) */
.ci-ver-f .ci-prod-ref b { color: #c75f14; }                /* F · frais (orange) */
/* Lettre M/F dans le préfixe du texte d'usage (« Version marée (M) ») */
.ci-ver-let-m { color: #1f93b0; }
.ci-ver-let-f { color: #c75f14; }
/* Dimension marketing arrondie, en sous-titre (les cotes réelles sont dans le tableau) */
.ci-prod-dims { font-family: var(--font-mono); font-weight: 500; font-size: 1.15rem; letter-spacing: .02em; color: var(--muted); }
.ci-prod-dims small { font-size: 1em; color: var(--muted); }
.ci-prod-use { color: var(--muted); font-size: .92rem; min-height: 3.2em; }
/* Tableau de specs à sous-sections : compact pour tenir dans une colonne étroite */
.ci-spec { table-layout: fixed; width: 100%; }
.ci-spec th, .ci-spec td { padding: 8px 9px; }
.ci-spec th { width: 52%; font-size: .8rem; line-height: 1.25; }  /* libellé (peut wrapper) */
.ci-spec td { width: 48%; font-size: .78rem; text-align: right; white-space: nowrap; } /* valeur sur une ligne */
/* Lignes de groupe en eyebrow mono */
.ci-spec .ci-th-group td {
  width: auto; text-align: left;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--flux-ink);
  padding: 15px 10px 6px; background: transparent !important;
  border-bottom: 1px solid var(--line-strong);
}
.ci-spec .ci-th-group:first-child td { padding-top: 4px; }
.ci-spec tr.ci-th-group { background: transparent; }
/* Schéma à l'échelle (vue de dessus + coupe), dessiné par caisses.js */
.ci-plan {
  display: block; width: 100%; height: auto; aspect-ratio: 440 / 420;
  background: color-mix(in srgb, var(--forest) 5%, var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--r-card);
}

/* ---- commun à la gamme ---- */
.ci-common { margin-top: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card-lg); padding: 28px; box-shadow: var(--shadow); }
.ci-common h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.ci-common-lead { margin-top: 10px; color: var(--muted); font-size: .96rem; max-width: 80ch; }
.ci-common-grid { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px; }
@media (max-width: 820px){ .ci-common-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .ci-common-grid { grid-template-columns: 1fr; } }
.ci-common-grid dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--flux-ink); }
.ci-common-grid dd { margin: 6px 0 0; font-size: .92rem; color: var(--ink); }

/* Section marée : le swap occupe la colonne de droite, centré verticalement
   face au texte. */
#maree .t-prob-head { align-items: center; }
/* ---- marée : swap polystyrène → réutilisable (à droite du titre) ---- */
.ci-swap { display: flex; align-items: center; justify-content: center; gap: 16px; flex: 1 1 auto; }
.ci-swap figure { margin: 0; width: 100%; max-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.ci-swap img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--surface-2); padding: 12px; cursor: zoom-in; }
.ci-swap figcaption { padding: 10px 10px; font-size: .74rem; color: var(--muted); font-family: var(--font-mono); text-align: center; line-height: 1.3; }
.ci-swap-arrow { color: var(--signal); font-size: 1.4rem; flex: none; }
@media (max-width: 560px){ .ci-swap figure { width: 42%; max-width: 180px; } }

/* ---- marée : anti-mélange ---- */
.ci-nomix { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; margin: 48px 0 8px; }
@media (max-width: 900px){ .ci-nomix { grid-template-columns: 1fr; gap: 24px; } }
.ci-nomix-copy .eyebrow { display: block; }
.ci-nomix-copy h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-top: 8px; }
.ci-nomix-copy p { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.ci-nomix-table th[scope], .ci-nomix-table thead th { font-weight: 600; color: var(--ink); background: var(--surface-2); font-family: var(--font-display); }
.ci-nomix-table td { font-family: var(--font-body); font-weight: 500; font-size: .86rem; }
.ci-nomix-table td.ci-bad { color: var(--signal); }
.ci-nomix-table td.ci-good { color: var(--flux-ink); }

/* ---- marée : variante sur fond vert foncé ---- */
.ci-nomix-dark {
  background: linear-gradient(180deg, color-mix(in srgb, var(--forest) 92%, #000), var(--forest));
  border-radius: var(--r-card-lg); padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 22px 46px -24px rgba(11,79,65,.6);
}
/* Texte de gauche */
.ci-nomix-dark .ci-nomix-copy .eyebrow { color: #7fe7c4; }
.ci-nomix-dark .ci-nomix-copy h3 { color: #fff; }
.ci-nomix-dark .ci-nomix-copy p { color: #d2ece2; }
/* Tableau : carte claire posée sur le fond sombre pour garder la lisibilité */
.ci-nomix-dark .ci-nomix-table {
  background: color-mix(in srgb, var(--forest) 78%, #000);
  border-color: rgba(255,255,255,.14); box-shadow: none;
}
.ci-nomix-dark .ci-nomix-table tr { border-color: rgba(255,255,255,.12); }
.ci-nomix-dark .ci-nomix-table tr:nth-child(even) { background: rgba(255,255,255,.04); }
.ci-nomix-dark .ci-nomix-table thead th { background: rgba(255,255,255,.06); color: #fff; }
.ci-nomix-dark .ci-nomix-table tbody th { color: #eaf6f0; }   /* libellés de ligne */
.ci-nomix-dark .ci-nomix-table td.ci-bad { color: #ff8e82; }  /* rouge clair lisible sur sombre */
.ci-nomix-dark .ci-nomix-table td.ci-good { color: #6fe3b4; } /* vert clair lisible sur sombre */

/* ---- marée : flow 3 étapes ---- */
.ci-flow { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: ci-flow; }
@media (max-width: 900px){ .ci-flow { grid-template-columns: 1fr; } }
.ci-flow-step { display: flex; flex-direction: column; }
.ci-flow-st { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/* En-tête d'étape : icône + label sur la même ligne */
.ci-flow-head { display: flex; align-items: center; gap: 10px; }
.ci-flow-head .t-ico { margin: 0; flex: none; }
.ci-flow-step h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-top: 10px; }
.ci-flow-step p { margin-top: 8px; color: var(--muted); font-size: .9rem; }
/* Photo en tête d'étape (flow marée) */
.ci-flow-img {
  align-self: stretch;                 /* la boîte occupe toute la largeur de la carte */
  width: calc(100% + 44px); max-width: none; margin: -22px -22px 16px; display: block;
  height: auto; background: var(--surface-2); cursor: zoom-in;
  border-radius: var(--r-card) var(--r-card) 0 0; border-bottom: 1px solid var(--line);
}

/* ---- bloc « conçue pour la chaîne du froid » ---- */
.ci-cold { margin-top: 72px; max-width: 780px; }
.ci-cold .eyebrow { display: block; }
.ci-cold h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; margin-top: 8px; line-height: 1.12; }

/* ---- galerie (section gamme) ---- */
.ci-gallery { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px){ .ci-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px){ .ci-gallery { grid-template-columns: 1fr; } }
.ci-gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
/* ratio naturel : image pleine largeur, rien de coupé ni de bande latérale */
.ci-gallery img { display: block; width: 100%; height: auto; background: var(--surface-2); cursor: zoom-in; }
.ci-gallery figcaption { padding: 12px 16px; font-size: .84rem; color: var(--muted); font-family: var(--font-mono); }

/* ---- marée : double paroi (coupe + atouts) ---- */
.ci-cutrow { margin-top: 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px){ .ci-cutrow { grid-template-columns: 1fr; gap: 26px; } }
.ci-cutimg { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card-lg); overflow: hidden; box-shadow: var(--shadow); }
.ci-cutimg img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.ci-cutcopy .eyebrow { display: block; }
.ci-cutcopy h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; margin-top: 8px; }
.ci-cutcopy > p { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.ci-ticks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ci-ticks li { position: relative; padding-left: 34px; font-size: .95rem; color: var(--ink); }
.ci-ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: -2px;
  color: var(--flux-ink); font-weight: 700; font-size: 1.4rem; line-height: 1.2;
}

/* ---- dashboard pilotage (illustratif) ---- */
.ci-dash { margin-top: 32px; background: var(--forest); color: #eafff6; border-radius: var(--r-card-lg); padding: 26px 28px; box-shadow: 0 22px 46px -24px rgba(11,79,65,.7); }
.ci-dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ci-dash-live { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: #bff3df; }
.ci-dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--flux); box-shadow: 0 0 0 0 color-mix(in srgb, var(--flux) 70%, transparent); animation: ci-pulse 2s ease-out infinite; }
@keyframes ci-pulse { 0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--flux) 70%, transparent);} 100%{ box-shadow: 0 0 0 10px transparent;} }
.ci-dash-tag { font-family: var(--font-mono); font-size: .7rem; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); color: #eafff6; }
.ci-dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.ci-dash-kpi b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.ci-dash-kpi span { display: block; margin-top: 5px; font-size: .8rem; color: #bff3df; }
.ci-dash-sites { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 10px; }
.ci-dash-sites li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9rem; color: #d9f4e8; }
.ci-dash-sites b { font-family: var(--font-mono); color: #fff; }
.ci-dash-alert { margin-top: 18px; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--amber) 30%, var(--forest)); border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: #fff; }
.ci-dash-alert i { color: var(--amber); }
.ci-dash-note { margin-top: 12px; font-size: .74rem; color: #a9e6cf; }

/* ---- le modèle : barre segmentée (37 mois / +24 / recyclage) ---- */
.ci-model {
  margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: var(--r-card-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (max-width: 760px){ .ci-model { grid-template-columns: 1fr; } }
.ci-model-seg { padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.ci-model-lab { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.ci-model-val { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -.02em; }
.ci-model-seg p { font-size: .92rem; line-height: 1.5; margin-top: 2px; }
/* Phase 1 : forest foncé plein */
.ci-model-1 { background: linear-gradient(145deg, color-mix(in srgb, var(--forest) 90%, #000), var(--forest)); }
.ci-model-1 .ci-model-lab { color: #7fe7c4; }
.ci-model-1 .ci-model-val { color: #fff; }
.ci-model-1 p { color: #d2ece2; }
/* Phase 2 : flux (vert vif) plein */
.ci-model-2 { background: linear-gradient(145deg, var(--flux), color-mix(in srgb, var(--flux) 82%, #000)); }
.ci-model-2 .ci-model-lab { color: #eafff6; opacity: .9; }
.ci-model-2 .ci-model-val { color: #06241a; }
.ci-model-2 p { color: color-mix(in srgb, #06241a 80%, transparent); }
/* Fin de vie : surface claire */
.ci-model-3 { background: var(--surface); }
.ci-model-3 .ci-model-lab { color: var(--muted); }
.ci-model-3 .ci-model-val { color: var(--flux-ink); }
.ci-model-3 p { color: var(--muted); }

/* ---- simulateur polystyrène ---- */
.ci-sim { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card-lg); padding: 30px; box-shadow: var(--shadow); align-items: start; }
@media (max-width: 820px){ .ci-sim { grid-template-columns: 1fr; gap: 26px; } }
.ci-sim-controls { display: flex; flex-direction: column; gap: 22px; }
.ci-sim-results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.ci-sim-res { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.ci-sim-res-lab { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ci-sim-res b { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--signal); }
.ci-sim-res-sub { display: block; margin-top: 6px; font-size: .74rem; color: var(--muted); }
.ci-sim-res-hi { background: var(--forest); border-color: transparent; }
.ci-sim-res-hi .ci-sim-res-lab, .ci-sim-res-hi .ci-sim-res-sub { color: #bff3df; }
.ci-sim-res-hi b { color: #fff; }

/* ---- FAQ ---- */
.ci-faq { display: grid; gap: 12px; }
.ci-faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 20px; box-shadow: var(--shadow); }
.ci-faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.ci-faq-item summary::-webkit-details-marker { display: none; }
.ci-faq-item summary::after {
  content: "\002B"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-weight: 400; color: var(--flux-ink); font-size: 1.4rem; transition: transform .2s ease;
}
.ci-faq-item[open] summary::after { content: "\2212"; }
.ci-faq-item p { padding: 0 0 18px; color: var(--muted); font-size: .93rem; }

/* ---- responsive héro : le compte à rebours passe pleine largeur ---- */
@media (max-width: 560px){ .ci-countdown { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* ==========================================================================
   Responsive — grilles spécifiques à la page + ajustements mobile
   (remplace les styles inline qui bloquaient les media queries).
   ========================================================================== */
/* Garde-fou anti-débordement horizontal (scroll latéral mobile).
   NB : on ne met PAS overflow-x:hidden sur le body (ça casserait le header
   sticky). On corrige plutôt les causes : les enfants de grilles doivent
   pouvoir se rétrécir (sinon min-width:auto force la colonne à dépasser 100%). */
.t-hero-grid > *, .ci-nomix > *, .ci-cutrow > *, .ci-sim > *,
.t-tech-grid > *, .proof-grid > * { min-width: 0; }
/* Les images ne débordent jamais de leur conteneur (sauf .ci-flow-img qui
   déborde volontairement dans une carte à overflow:hidden). */
.t-visual-card img, .ci-cutimg img, .ci-gallery img, .ci-swap img { max-width: 100%; }
/* Les cartes du flow coupent proprement le débordement voulu de l'image. */
.ci-flow-step { overflow: hidden; }

/* Héro produit : passe en 1 colonne sur mobile (bacs.css n'a pas ce breakpoint,
   la photo passait sous le texte). */
@media (max-width: 820px){
  .t-hero-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 28px 44px; }
}
/* Compteur du héro : ne jamais dépasser la largeur dispo (max-width 540px
   débordait sous 540px d'écran). */
.ci-countdown { max-width: 100%; }

/* Grilles « atouts » à 4 / 3 colonnes (Santé, Modèle) */
.ci-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ci-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px){ .ci-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px){ .ci-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px){ .ci-grid-4 { grid-template-columns: 1fr; } }

/* Dashboard pilotage : KPIs et sites passent en 1 colonne sur mobile */
@media (max-width: 560px){
  .ci-dash-kpis { grid-template-columns: 1fr; gap: 12px; }
  .ci-dash { padding: 20px 18px; }
}

/* Simulateur : résultats en 1 colonne sur petit écran */
@media (max-width: 560px){
  .ci-sim-results { grid-template-columns: 1fr; }
  .ci-sim { padding: 20px; }
}

/* Panneau marée sombre : padding réduit sur mobile */
@media (max-width: 560px){ .ci-nomix-dark { padding: 20px; } }

/* Barre modèle : sur mobile, les segments empilés gardent un bon rythme */
@media (max-width: 760px){ .ci-model-seg { padding: 22px; } }

/* Tableau anti-mélange : réduit la police et autorise le retour à la ligne
   des valeurs pour ne pas déborder sur très petit écran. */
@media (max-width: 480px){
  .ci-nomix-table th, .ci-nomix-table td { padding: 8px 8px; font-size: .78rem; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .ci-dash-dot { animation: none; }
  .ci-faq-item summary::after { transition: none; }
}
