/* ==========================================================================
   EXOES - "Bancs d'essais Cooling & power Datacenter" page (ExoRack range)
   File: /site/assets/css/datacenter.css
   Used only by /realisations/bancs-essais-cooling-power-datacenter/.
   Every rule is scoped under .dc (the page <main>), so the shared header,
   menu and footer of the site are not affected.
   Colours and fonts follow the ExoRack datasheet (navy gradient, blue glow,
   IBM Plex Sans - SIL Open Font License, self-hosted in /assets/fonts/).
   Assisté par IA
   ========================================================================== */

/* ---------- Fonts (self-hosted, no external request) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-condensed-500-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-condensed-600-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-condensed-700-latin.woff2") format("woff2"); }

/* ---------- Page tokens (change colours here) ---------- */
.dc {
  --dc-night: #06081A;          /* Darkest navy (top of the datasheet gradient) */
  --dc-navy: #0E163A;
  --dc-indigo: #1E2C66;
  --dc-violet: #33357A;         /* Bottom of the datasheet gradient */
  --dc-blue: #1B9DE0;           /* Accent blue */
  --dc-blue-dark: #0B6FB0;      /* Buttons (white text stays readable) */
  --dc-sky: #35B1EE;
  --dc-glow: #7FDBFF;           /* Glowing highlights on dark backgrounds */
  --dc-ice: #E6F8FF;
  --dc-mist: #9FB4C6;           /* Muted text on dark backgrounds */
  --dc-ink: #0E163A;            /* Text on light backgrounds */
  --dc-muted: #4A5878;          /* Muted text on light backgrounds */
  --dc-line: #DCE3EF;
  --dc-band: #F2F5FA;           /* Light alternate section background */
  --dc-font: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --dc-font-label: "IBM Plex Sans Condensed", "IBM Plex Sans", Arial, sans-serif;
  --dc-max: 1200px;

  font-family: var(--dc-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dc-ink);
  background: #FFFFFF;
}
.dc *,
.dc *::before,
.dc *::after { box-sizing: border-box; }
.dc :where(h1, h2, h3) { font-family: var(--dc-font); margin: 0; line-height: 1.15; color: inherit; }
.dc :where(p) { margin: 0; }
.dc img { display: block; max-width: 100%; height: auto; }
.dc a { color: var(--dc-blue-dark); }
.dc a:focus-visible, .dc button:focus-visible, .dc summary:focus-visible, .dc input:focus-visible, .dc textarea:focus-visible {
  outline: 3px solid var(--dc-sky);
  outline-offset: 2px;
}
.dc-container { width: 100%; max-width: var(--dc-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Shared text styles ---------- */
.dc-eyebrow {
  font-family: var(--dc-font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dc-blue-dark);
  margin-bottom: 14px;
}
.dc-h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.01em; }
.dc-h2--narrow { max-width: 780px; margin-bottom: 40px; }
.dc-lead { font-size: 18px; line-height: 1.6; color: var(--dc-muted); }
.dc-muted { color: var(--dc-muted); }
.dc-subhead {
  font-family: var(--dc-font-label);
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dc-ink); margin: 26px 0 10px;
}
.dc-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }

/* ---------- Buttons and links ---------- */
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 4px; border: 1px solid transparent;
  font-family: var(--dc-font); font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.dc .dc-btn--primary { background: var(--dc-blue-dark); color: #FFFFFF; }
.dc .dc-btn--primary:hover { background: #095C93; }
.dc .dc-btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #FFFFFF; background: transparent; }
.dc .dc-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.dc-btn--sm { padding: 8px 16px; font-size: 14px; }
.dc .dc-link-arrow { font-weight: 600; text-decoration: none; }
.dc .dc-link-arrow::after { content: " \2192"; }
.dc .dc-link-arrow:hover { text-decoration: underline; }

/* ---------- In-page navigation ---------- */
.dc-subnav {
  position: sticky; top: var(--header-height, 90px); z-index: 20;
  background: rgba(6, 8, 26, 0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(127, 219, 255, 0.15);
}
.dc-subnav__inner { display: flex; align-items: center; justify-content: flex-end; gap: 28px; min-height: 56px; }
.dc .dc-subnav a:not(.dc-btn) { color: var(--dc-ice); font-size: 15px; text-decoration: none; }
.dc .dc-subnav a:not(.dc-btn):hover { color: var(--dc-glow); }

/* ---------- Hero ---------- */
.dc-hero {
  position: relative; overflow: hidden; color: #FFFFFF;
  background: linear-gradient(180deg, var(--dc-night) 0%, var(--dc-navy) 42%, var(--dc-indigo) 78%, var(--dc-violet) 100%);
  padding: 96px 0 72px;
}
.dc-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.dc-hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 8, 26, 0.85) 0%, rgba(14, 22, 58, 0.7) 50%, rgba(30, 44, 102, 0.92) 100%); }
.dc-hero__inner { position: relative; z-index: 1; }
.dc-hero .dc-eyebrow { color: var(--dc-glow); }
.dc-hero__title { font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; letter-spacing: -0.02em; max-width: 900px; }
.dc-hero__title em { display: block; font-style: normal; color: var(--dc-glow); text-shadow: 0 0 22px rgba(53, 177, 238, 0.65); }
.dc-hero__text { margin-top: 24px; max-width: 700px; font-size: 19px; color: var(--dc-ice); }
.dc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Power scale (log scale: 1 kW = 0 %, 10 kW = 25 %, 100 kW = 50 %, 1 MW = 75 %, 10 MW = 100 %) */
.dc-scale {
  margin-top: 56px; padding: 26px 28px 34px; border-radius: 8px;
  background: rgba(6, 8, 26, 0.55); border: 1px solid rgba(127, 219, 255, 0.18);
}
.dc-scale__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.dc-scale__title { font-weight: 600; font-size: 17px; }
.dc-scale__unit { font-family: var(--dc-font-label); font-size: 12px; letter-spacing: 0.14em; color: var(--dc-mist); }
.dc-scale__lanes { position: relative; display: grid; gap: 14px; }
.dc-scale__grid { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(159, 180, 198, 0.25); }
.dc-scale__lane { position: relative; display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 16px; }
.dc .dc-scale__label { color: var(--dc-ice); font-family: var(--dc-font-label); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
.dc .dc-scale__label:hover { color: var(--dc-glow); }
.dc-scale__track { position: relative; height: 12px; border-radius: 6px; background: rgba(159, 180, 198, 0.12); }
.dc-scale__bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--dc-blue), var(--dc-glow)); box-shadow: 0 0 14px rgba(53, 177, 238, 0.55); }
.dc-scale__bar--lab { left: 0; width: 36.9%; }        /* 1 kW to 30 kW */
.dc-scale__bar--rack { left: 33.6%; width: 31.5%; }   /* 22 kW to 400 kW */
.dc-scale__bar--center { left: 75%; width: 25%; }     /* 1 MW to 10 MW */
.dc-scale__axis { position: relative; height: 20px; margin: 10px 0 0 246px; font-size: 12px; color: var(--dc-mist); }
.dc-scale__axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.dc-scale__axis span:first-child { transform: none; }
.dc-scale__axis span:last-child { transform: translateX(-100%); }
/* Grid lines at 10 kW, 100 kW and 1 MW, drawn over the track column only
   (the label column is 230px wide + 16px gap = 246px) */
.dc-scale__grid--25 { left: calc(246px + (100% - 246px) * 0.25); }
.dc-scale__grid--50 { left: calc(246px + (100% - 246px) * 0.5); }
.dc-scale__grid--75 { left: calc(246px + (100% - 246px) * 0.75); }

/* ---------- Bands and sections ---------- */
.dc-band { background: var(--dc-band); }
.dc-section { padding: 88px 0; }
.dc-section--tight-bottom { padding-bottom: 48px; }
.dc-section--tight-top { padding-top: 56px; }

/* Key figures */
.dc-figures { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 40px; padding-bottom: 40px; }
.dc-figure { padding: 6px 24px; border-left: 2px solid var(--dc-blue); }
.dc-figure__value { font-size: 44px; font-weight: 600; line-height: 1.1; color: var(--dc-ink); }
.dc-figure__label { font-size: 15px; color: var(--dc-muted); }

/* Range cards */
.dc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dc-card { display: flex; flex-direction: column; border: 1px solid var(--dc-line); border-radius: 8px; overflow: hidden; background: #FFFFFF; }
.dc-card__media { aspect-ratio: 16 / 10; background: linear-gradient(180deg, #1E2125 0%, #4E5358 42%, #9DA1A6 100%); overflow: hidden; }
.dc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dc-card__media--studio img { object-fit: contain; padding: 14px; }
.dc-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 22px 24px 26px; }
.dc-card__top { display: flex; justify-content: space-between; align-items: baseline; }
.dc-card__tag { font-family: var(--dc-font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--dc-blue-dark); }
.dc-card__power { font-size: 28px; font-weight: 600; color: var(--dc-ink); }
.dc-card__power small { font-size: 14px; font-weight: 500; color: var(--dc-muted); }
.dc-card__title { font-size: 21px; font-weight: 600; }
.dc-card .dc-link-arrow { margin-top: auto; }

/* Product detail blocks */
.dc-product { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dc-product--reverse .dc-product__media { order: 2; }
.dc-product__media { border-radius: 8px; overflow: hidden; background: linear-gradient(180deg, #1E2125 0%, #4E5358 42%, #9DA1A6 100%); }
.dc-product__media img { width: 100%; }
.dc-product__media--studio { display: flex; justify-content: center; padding: 28px; }
.dc-product__media--studio img { width: auto; max-height: 560px; }
.dc-product__title { font-size: clamp(28px, 3.6vw, 38px); font-weight: 600; }
.dc-product__intro { margin-top: 16px; }
.dc-product__cta { margin-top: 30px; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-chip { display: inline-block; padding: 6px 12px; border-radius: 4px; background: rgba(27, 157, 224, 0.1); color: var(--dc-blue-dark); font-size: 14px; font-weight: 500; }
.dc-chip--plain { background: #FFFFFF; border: 1px solid var(--dc-line); color: var(--dc-ink); }
.dc-checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.dc-checklist li { position: relative; padding-left: 26px; }
.dc-checklist li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--dc-blue); border-bottom: 2px solid var(--dc-blue); transform: rotate(-45deg); }
.dc-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 26px 0 0; border-top: 1px solid var(--dc-line); }
.dc-specs div { padding: 14px 0; border-bottom: 1px solid var(--dc-line); }
.dc-specs dt { font-family: var(--dc-font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dc-muted); }
.dc-specs dd { margin: 4px 0 0; font-size: 18px; font-weight: 600; }

/* Who it is for */
.dc-audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dc .dc-audience {
  display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 8px;
  background: #FFFFFF; border: 1px solid var(--dc-line); color: var(--dc-ink); text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dc .dc-audience:hover { border-color: var(--dc-blue); box-shadow: 0 6px 20px rgba(14, 22, 58, 0.08); }
.dc-audience__range { font-family: var(--dc-font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--dc-blue-dark); }
.dc-audience__title { font-size: 19px; font-weight: 600; }
.dc-audience__text { color: var(--dc-muted); }
.dc .dc-audience--cta { background: var(--dc-navy); border-color: var(--dc-navy); color: #FFFFFF; }
.dc-audience--cta .dc-audience__range { color: var(--dc-glow); }
.dc-audience--cta .dc-audience__text { color: var(--dc-ice); }
.dc-sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }
.dc-sectors__label { font-family: var(--dc-font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--dc-muted); margin-right: 8px; }

/* Approach */
.dc-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dc-pillar { padding: 28px; border-radius: 8px; border: 1px solid var(--dc-line); border-top: 3px solid var(--dc-blue); }
.dc-pillar__tag { font-family: var(--dc-font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--dc-blue-dark); margin-bottom: 8px; }
.dc-pillar__title { font-size: 21px; font-weight: 600; }
.dc-pillar .dc-checklist { margin-top: 16px; }
.dc-dna { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--dc-line); }
.dc-dna__item { font-weight: 600; font-size: 17px; }
.dc-dna__item span { display: block; font-family: var(--dc-font-label); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--dc-muted); margin-bottom: 4px; }

/* Process */
.dc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.dc-step { position: relative; padding: 26px 24px; border-radius: 8px; background: #FFFFFF; border: 1px solid var(--dc-line); }
.dc-step__num { font-family: var(--dc-font-label); font-size: 32px; font-weight: 700; color: var(--dc-blue); line-height: 1; margin-bottom: 14px; }
.dc-step__title { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.dc-step__text { color: var(--dc-muted); }
.dc-step__where { display: inline-block; margin-top: 14px; font-family: var(--dc-font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--dc-blue-dark); }

/* FAQ */
.dc-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.dc-faq__intro .dc-h2 { margin-bottom: 18px; }
.dc-faq details { border-bottom: 1px solid var(--dc-line); }
.dc-faq details:first-child { border-top: 1px solid var(--dc-line); }
.dc-faq summary {
  position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600;
}
.dc-faq summary::-webkit-details-marker { display: none; }
.dc-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--dc-blue-dark); }
.dc-faq details[open] summary::after { content: "\2212"; }
.dc-faq details p { padding: 0 0 20px; color: var(--dc-muted); }

/* Contact (dark, like the datasheet) */
.dc-contact { color: #FFFFFF; background: linear-gradient(180deg, var(--dc-night) 0%, var(--dc-navy) 45%, var(--dc-indigo) 100%); }
.dc-contact .dc-eyebrow { color: var(--dc-glow); }
.dc-contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.dc-contact__title { font-size: clamp(34px, 5vw, 52px); font-weight: 700; }
.dc-contact__lead { margin-top: 20px; max-width: 440px; color: var(--dc-ice); }
.dc-contact__meta { margin-top: 36px; }
.dc-contact .dc-subhead { color: var(--dc-glow); margin-top: 0; }
.dc-contact address { font-style: normal; color: var(--dc-ice); }
.dc-form { display: grid; gap: 18px; padding: 32px; border-radius: 8px; background: #FFFFFF; color: var(--dc-ink); }
.dc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dc-field label, .dc-form legend { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.dc-field input, .dc-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #A9B4C8; border-radius: 4px;
  font: inherit; color: var(--dc-ink); background: #FFFFFF;
}
.dc-field textarea { resize: vertical; min-height: 110px; }
.dc-form fieldset { margin: 0; padding: 0; border: 0; }
.dc-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.dc-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--dc-line); border-radius: 4px; font-size: 14px; cursor: pointer; }
.dc-toggle input { accent-color: var(--dc-blue-dark); }
.dc-form .dc-btn { justify-self: start; }
.dc-form__note { font-size: 13px; color: var(--dc-muted); }
.dc-form__error { padding: 12px 14px; border-left: 4px solid #E04562; background: #FDEEF1; color: var(--dc-ink); }
.dc-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .dc-subnav { top: var(--header-height-sm, 73px); }
  .dc-section-head, .dc-product, .dc-faq, .dc-contact__inner { grid-template-columns: 1fr; gap: 32px; }
  .dc-product--reverse .dc-product__media { order: 0; }
  .dc-cards, .dc-audiences, .dc-pillars { grid-template-columns: 1fr 1fr; }
  .dc-steps, .dc-dna { grid-template-columns: 1fr 1fr; }
  .dc-figures { grid-template-columns: 1fr 1fr; row-gap: 24px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .dc-container { padding: 0 16px; }
  .dc-section { padding: 60px 0; }
  .dc-hero { padding: 64px 0 48px; }
  .dc-subnav__inner { justify-content: flex-start; gap: 18px; overflow-x: auto; white-space: nowrap; }
  .dc-cards, .dc-audiences, .dc-pillars, .dc-steps, .dc-dna, .dc-form__row { grid-template-columns: 1fr; }
  .dc-specs { grid-template-columns: 1fr; }
  .dc-scale { padding: 20px 16px 26px; }
  .dc-scale__lane { grid-template-columns: 1fr; gap: 6px; }
  .dc-scale__axis { margin-left: 0; }
  .dc-scale__grid { display: none; }
  .dc-form { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .dc * { transition: none !important; }
}
