/* ==========================================================================
   Export & Shipping page (/export-shipping, /fr/exportation-expedition)
   Loaded only on this page, AFTER /css/style.css (shared styles, colours,
   motion system). Rules used on more than one page belong in style.css.
   ========================================================================== */


/* ---- Products ------------------------------------------------------------ */
.spec-list { margin: 1.25rem 0 1.5rem; }
.spec-list div { display: grid; gap: 0.15rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.spec-list dt { font-weight: 600; font-size: 0.9rem; }
.spec-list dd { margin: 0; color: var(--muted); }
.spec-list--compact { margin: 0; }
.spec-list--compact div { padding: 0.5rem 0; }

/* ---- Export -------------------------------------------------------------- */
.incoterm-code {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.6rem; color: var(--ember); margin-bottom: 0.4rem;
}
/* ---- How your order ships: 5 steps, line drawn through them ------------- */
.ship-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.75rem; }
.ship-steps::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px;
  background: linear-gradient(180deg, var(--ember), rgba(232, 116, 42, 0.25));
  transform-origin: top; transition: transform 1.6s var(--ease-out);
}
.js-motion .ship-steps[data-reveal-line]:not(.is-revealed)::before { transform: scaleY(0); }
.ship-step { position: relative; padding-left: 4.5rem; }
.ship-step-icon {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); color: var(--ember-text);
  border: 2px solid var(--ember); box-shadow: 0 0 0 6px var(--off-white);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.ship-step:hover .ship-step-icon { background: var(--ember); color: var(--charcoal); transform: scale(1.06); }
.ship-step-num {
  position: absolute; right: -4px; top: -4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--charcoal); color: var(--off-white); font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center;
}
.ship-step h3 { font-size: 1.1rem; margin: 0.2rem 0 0.35rem; }
.ship-step p { color: var(--muted); margin: 0 0 0.6rem; font-size: 0.95rem; }
.who { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; }
.who--us { background: var(--charcoal); color: var(--off-white); }
.who--you { background: var(--ember); color: var(--charcoal); }
.who--both { background: var(--beige); color: var(--charcoal); }
@media (min-width: 900px) {
  .ship-steps { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .ship-steps::before {
      left: 28px; right: calc(20% - 28px); top: 27px; bottom: auto; width: auto; height: 2px;
      background: linear-gradient(90deg, var(--ember), rgba(232, 116, 42, 0.3)); transform-origin: left;
    }
  .js-motion .ship-steps[data-reveal-line]:not(.is-revealed)::before { transform: scaleX(0); }
  .ship-step { padding-left: 0; padding-top: 4.5rem; }
}
/* ---- Truck vs container cards ------------------------------------------- */
.mode-grid { display: grid; gap: 1.5rem; }
.mode-card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out); }
.mode-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.mode-card-media { position: relative; }
.mode-card-media .photo { border-radius: 0; }
.mode-card-tag {
  position: absolute; left: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(30, 27, 24, 0.85); color: var(--off-white);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.mode-card-tag .icon { color: var(--ember); }
.mode-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.mode-card-body h3 { margin: 0; font-size: 1.45rem; }
.mode-card-body h3 .muted { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; }
.mode-card-body > .btn { align-self: flex-start; margin-top: auto; }
.mode-figures { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mode-figure { flex: 1 1 9rem; margin: 0; padding: 0.85rem 1rem; border-radius: var(--radius); background: var(--beige-soft); display: grid; gap: 0.1rem; }
.mode-figure-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; color: var(--charcoal); font-variant-numeric: tabular-nums; }
.mode-figure-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.mode-figure-sub { font-size: 0.78rem; color: var(--muted); }
.mode-facts { margin: 0; display: grid; gap: 0.6rem; }
.mode-facts div { display: grid; gap: 0.1rem; }
.mode-facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember-text); }
.mode-facts dd { margin: 0; color: var(--charcoal-80); }
@media (min-width: 900px) {
  .mode-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
/* ---- Units per load: table from 700 px, cards below --------------------- */
.load-table-wrap, .load-cards { margin: 0; }
.load-table-wrap { display: none; }
.load-table { min-width: 640px; }
.load-table thead th .icon { color: var(--ember); margin-right: 0.3rem; }
.load-table tbody th, .load-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.load-table thead th:first-child { background: var(--charcoal); }
.load-table tbody tr { transition: background-color 0.2s ease; }
.load-table tbody tr:hover, .load-table tbody tr:hover th { background: var(--beige-soft); }
.load-table td strong { font-family: var(--font-display); font-size: 1.1rem; }
.load-pack { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; }
.load-pack-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(232, 116, 42, 0.14); color: var(--ember-text); flex-shrink: 0; }
.load-cards { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.load-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.1rem; }
.load-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.load-card dl { margin: 0; }
.load-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.load-card dt { color: var(--muted); }
.load-card dd { margin: 0; text-align: right; }
@media (min-width: 600px) {
  .load-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 700px) {
  .load-table-wrap { display: block; }
  .load-cards { display: none; }
}
/* ---- Incoterms explainer ------------------------------------------------- */
.incoterms { background: rgba(250, 247, 242, 0.04); border: 1px solid var(--line-light); border-radius: var(--radius-lg); padding: 1.25rem; }
/* Tabs only exist with JavaScript; without it the three panels are stacked */
.incoterm-tabs { display: none; }
.incoterms.is-enhanced .incoterm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1.5rem; }
.incoterm-tab {
  display: grid; gap: 0.1rem; justify-items: center; min-height: 64px; padding: 0.6rem 0.5rem;
  border-radius: var(--radius); border: 1.5px solid var(--line-light); background: transparent; color: var(--off-white);
  font: inherit; cursor: pointer; transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.incoterm-tab:hover { border-color: var(--ember); }
.incoterm-tab[aria-selected="true"] { background: var(--ember); border-color: var(--ember); color: var(--charcoal); }
.incoterm-tab:focus-visible { outline: 3px solid var(--off-white); outline-offset: 2px; }
.incoterm-tab-code { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; }
.incoterm-tab-name { font-size: 0.75rem; line-height: 1.25; text-align: center; }
.incoterm-panel + .incoterm-panel { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line-light); }
.incoterms.is-enhanced .incoterm-panel + .incoterm-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.incoterm-panel[hidden] { display: none; }
.incoterm-panel:focus-visible { outline: 2px solid var(--ember); outline-offset: 6px; border-radius: 4px; }
.incoterm-panel-title { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.5rem; }
.incoterm-code { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 6px; background: var(--ember); color: var(--charcoal); font-family: var(--font-display); font-weight: 700; }
.journey { position: relative; padding: 3.1rem 0 0; }
.journey-bar { position: relative; height: 10px; margin: 0 12px; border-radius: 999px; background: rgba(250, 247, 242, 0.14); }
.journey-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #f4a66d, var(--ember)); transition: width 0.8s var(--ease-out); }
.journey-marker { position: absolute; top: 50%; transform: translate(-50%, -50%); transition: left 0.8s var(--ease-out); }
.journey-marker-dot { display: block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--charcoal); }
.journey-marker--costs .journey-marker-dot { background: var(--ember); }
.journey-marker--risk .journey-marker-dot { background: var(--off-white); border-radius: 4px; transform: rotate(45deg) scale(0.85); }
.journey-marker--risk { z-index: 1; }
.journey-marker-label { display: none; }
.journey-stops { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.25rem; font-size: 0.72rem; line-height: 1.25; color: var(--muted-light); }
.journey-stops li { text-align: center; }
.journey-stops li:first-child { text-align: left; }
.journey-stops li:last-child { text-align: right; }
.journey-legend { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.92rem; color: var(--muted-light); }
.journey-legend strong { color: var(--off-white); }
.journey-legend li { display: block; padding-left: 1.4rem; position: relative; }
.journey-legend .journey-key { position: absolute; left: 0; top: 0.3rem; }
.journey-key { width: 14px; height: 14px; border-radius: 50%; background: var(--ember); flex-shrink: 0; }
.journey-legend--risk .journey-key { background: var(--off-white); border-radius: 2px; transform: rotate(45deg) scale(0.85); }
.incoterm-plain { margin: 1.25rem 0 0; font-size: 1.05rem; color: var(--off-white) !important; max-width: 75ch; }
.incoterm-split { display: grid; gap: 1rem; margin-top: 1.25rem; }
.incoterm-split > div { padding: 1rem 1.1rem; border-radius: var(--radius); background: rgba(250, 247, 242, 0.06); }
.incoterm-split > div:first-child { border-left: 3px solid var(--ember); }
.incoterm-split > div:last-child { border-left: 3px solid var(--off-white); }
.incoterm-split h4 { margin: 0 0 0.25rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--off-white); }
.incoterm-split p { margin: 0; font-size: 0.95rem; }
.incoterm-choose { margin-top: 2rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-lg); background: rgba(232, 116, 42, 0.12); border: 1px solid rgba(232, 116, 42, 0.35); }
.incoterm-choose h3 { margin-bottom: 0.6rem; }
.incoterm-choose ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; color: var(--muted-light); }
.incoterm-choose strong { color: var(--off-white); }
@media (min-width: 700px) {
  .incoterms { padding: 2rem; }
  .journey { padding-top: 3.4rem; padding-bottom: 2.4rem; }
  .journey-marker-label {
      display: block; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
      font-size: 0.78rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 6px;
    }
  .journey-marker--costs .journey-marker-label { bottom: calc(100% + 10px); background: var(--ember); color: var(--charcoal); }
  .journey-marker--risk .journey-marker-label { top: calc(100% + 10px); background: var(--off-white); color: var(--charcoal); }
  /* Keep end labels inside the box */
  .journey-marker[style*="left: 100"] .journey-marker-label { left: auto; right: -10px; transform: none; }
  .journey-marker[style*="left: 0"] .journey-marker-label { left: -10px; transform: none; }
  .journey-stops { font-size: 0.85rem; margin-top: 3.4rem; }
  .journey-legend { display: none; }
  .incoterm-split { grid-template-columns: 1fr 1fr; }
  .incoterm-tab-name { font-size: 0.82rem; }
}
/* ---- Export documents ---------------------------------------------------- */
.doc-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.doc-card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.4rem; border: 1px solid var(--line); transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.doc-card h3 { margin: 0.9rem 0 0.6rem; }
.doc-card dl { margin: 0; display: grid; gap: 0.55rem; }
.doc-card dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember-text); }
.doc-card dd { margin: 0; color: var(--charcoal-80); font-size: 0.95rem; }
.doc-card--other { display: flex; align-items: center; gap: 0.75rem; background: transparent; border: 1.5px dashed rgba(30, 27, 24, 0.3); color: var(--charcoal-80); font-weight: 600; }
.doc-card--other:hover { transform: none; box-shadow: none; }
.doc-card--other .icon { color: var(--ember-text); flex-shrink: 0; }
@media (min-width: 600px) {
  .doc-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .doc-cards { grid-template-columns: repeat(3, 1fr); }
}
/* ---- Import rules -------------------------------------------------------- */
.rule-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.rule-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; }
.rule-card h3 { margin: 0.8rem 0 0.4rem; }
.rule-card p { margin: 0 0 0.6rem; color: var(--charcoal-80); }
.rule-card p:last-child { margin-bottom: 0; }
.rule-card--eudr { border-left: 4px solid var(--ember); }
.rule-offer { font-weight: 600; }
.rule-flag { display: inline-flex; align-items: center; gap: 0.35rem; height: 44px; }
.rule-card .feature-icon { height: 44px; }
.rules-disclaimer { display: flex; align-items: flex-start; gap: 0.6rem; margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--beige-soft); }
.rules-disclaimer .icon { color: var(--ember-text); margin-top: 0.1rem; }
@media (min-width: 900px) {
  .rule-cards { grid-template-columns: repeat(3, 1fr); }
}
/* ---- CTA band with photo ------------------------------------------------- */
