/* Solutions EBL inc. — feuille propre au site.
   Direction : fiche technique d'infrastructure. Bandes pleine largeur claires/sombres, filets bleus de marque,
   services numérotés, Archivo seule. Couleurs : uniquement les jetons de tokens.css. */

/* ---------- Typographie ---------- */
body { letter-spacing: 0.005em; }
h1, h2, h3 { letter-spacing: var(--head-tracking); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.wc-lead { max-width: 58ch; }
.wc-eyebrow { letter-spacing: 0.14em; }

/* Étiquette d'en-tête de bande (héros, en-têtes de page) */
.ebl-tag { display: inline-flex; align-items: center; gap: 0.75rem; margin: 0 0 1.1rem; font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-brand-on-dark); }
.ebl-tag::before { content: ""; width: 28px; height: 3px; background: var(--c-brand); flex: none; }

/* ---------- En-tête ---------- */
.wc-header { border-bottom: 1px solid rgba(var(--c-dark-rgb), 0.12); }
.wc-header__bar { gap: 0.75rem; }
.wc-brand img { height: 44px; max-height: 44px; }
.ebl-head-phone { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; margin-left: auto; padding: 0.25rem 0.35rem;
  color: var(--c-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.ebl-head-phone svg { width: 18px; height: 18px; fill: var(--c-brand-ink); flex: none; }
.ebl-head-phone:hover { color: var(--c-brand-ink); text-decoration: underline; }
@media (max-width: 399.98px) { .ebl-head-phone svg { display: none; } .ebl-head-phone { font-size: 0.95rem; } }
@media (min-width: 900px) {
  .wc-brand { order: 1; }
  .wc-brand img { height: 52px; max-height: 52px; }
  .wc-nav { order: 2; margin-left: auto; }
  .ebl-head-phone { order: 3; margin-left: 0.25rem; padding-left: 1rem; border-left: 1px solid rgba(var(--c-dark-rgb), 0.18); border-radius: 0; }
  .wc-nav__list a:not(.wc-btn) { padding-inline: 0.65rem; }
}
@media (min-width: 900px) and (max-width: 1139.98px) {
  .wc-nav__list a:not(.wc-btn) { padding-inline: 0.45rem; font-size: 0.95rem; }
  .wc-nav__cta .wc-btn { padding-inline: 0.9rem; font-size: 0.95rem; }
  .ebl-head-phone svg { display: none; }
  .ebl-head-phone { font-size: 0.95rem; padding-left: 0.75rem; }
}

/* ---------- Héros typographique ---------- */
.wc-hero--type.ebl-hero { background: var(--c-dark); color: var(--c-on-dark); border-top: 8px solid var(--c-brand);
  padding-block: clamp(2rem, 1rem + 5vw, 5.5rem); }
.ebl-hero__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.ebl-hero h1 { font-size: clamp(2.05rem, 1.2rem + 3.7vw, 4.1rem); line-height: 1.05; max-width: 17ch; margin-bottom: 0.6em; }
.ebl-hero .wc-lead { color: var(--c-on-dark-muted); }
.ebl-hero__plate { justify-self: start; width: 100%; max-width: 420px; margin: 0; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  background: var(--c-surface); color: var(--c-ink); border-radius: var(--radius); border-bottom: 8px solid var(--c-brand); }
.ebl-hero__plate img { width: 100%; max-width: 340px; height: auto; margin-inline: auto; }
.ebl-hero__plate p { margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(var(--c-dark-rgb), 0.14); color: var(--c-muted);
  font-size: 0.9rem; font-weight: 600; text-align: center; max-width: none; }
@media (min-width: 900px) {
  .ebl-hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .ebl-hero__plate { justify-self: end; }
}
@media (max-width: 899.98px) {
  .ebl-hero__plate { max-width: 300px; padding: 1.1rem 1.25rem; }
  .ebl-hero__plate img { max-width: 200px; }
}

/* ---------- En-têtes de page intérieure ---------- */
.ebl-pagehead { border-top: 8px solid var(--c-brand); padding-block: clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem); }
.ebl-pagehead h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); line-height: 1.08; max-width: 20ch; }
.ebl-pagehead .wc-lead { color: var(--c-on-dark-muted); }
.ebl-pagehead .wc-actions { margin-top: 1.5rem; }
.ebl-pagehead--short h1 { margin-bottom: 0; }

/* ---------- Titre de section + lien ---------- */
.ebl-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.ebl-head-row .wc-section-head { margin-bottom: 0; }
.ebl-head-row h2 { margin-bottom: 0; }

/* ---------- Index des services (accueil) ---------- */
.ebl-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 clamp(1rem, 0.5rem + 2vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ebl-index li { max-width: none; }
.ebl-index a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 0.15rem 1rem; height: 100%; padding: 1.25rem 0.75rem 1.4rem 0;
  border-top: 2px solid var(--c-ink); color: var(--c-ink); text-decoration: none; transition: border-color 0.18s ease, background-color 0.18s ease; }
.ebl-index a:hover { border-top-color: var(--c-brand); background: var(--c-surface-alt); }
.ebl-index a:hover .ebl-index__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.ebl-index__n { grid-row: span 2; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--c-brand-ink);
  min-width: 2.6ch; padding-left: 0.75rem; }
.ebl-index__t { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; line-height: 1.25; }
.ebl-index__d { color: var(--c-muted); font-size: 0.98rem; line-height: 1.5; }

/* ---------- Bande « Pour qui » ---------- */
.ebl-specs h3 { margin: 0 0 0.85rem; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-on-dark-muted); }
.ebl-specs h3:not(:first-child) { margin-top: 1.75rem; }
.ebl-specs p { margin: 0; color: var(--c-on-dark); }
.ebl-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.ebl-chips li { padding: 0.5rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.32); border-left: 4px solid var(--c-brand); border-radius: var(--radius);
  color: var(--c-on-dark); font-weight: 600; line-height: 1.3; max-width: none; }

/* ---------- Listes et panneaux ---------- */
.ebl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.ebl-list li { position: relative; padding-left: 1.25rem; }
.ebl-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--c-brand); }
.ebl-panel { background: var(--c-surface); border-left: 6px solid var(--c-brand); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.ebl-panel h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }
#entreprise .wc-split { align-items: start; }
#entreprise h2 { max-width: 22ch; }

/* ---------- Appel final ---------- */
.ebl-cta { border-top: 8px solid var(--c-brand); }
.ebl-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.ebl-cta__inner > div:first-child { flex: 1 1 420px; }
.ebl-cta h2 { max-width: 24ch; }
.ebl-cta .wc-lead { color: var(--c-muted); margin-bottom: 0; }

/* ---------- Page Services ---------- */
.ebl-toc { background: var(--c-surface-alt); border-bottom: 1px solid rgba(var(--c-dark-rgb), 0.1); }
.ebl-toc ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; margin: 0; padding: 0.25rem 0; }
.ebl-toc a { display: inline-flex; align-items: center; min-height: 48px; color: var(--c-ink); font-weight: 700; text-decoration: none;
  border-bottom: 3px solid transparent; }
.ebl-toc a:hover { border-bottom-color: var(--c-brand); color: var(--c-brand-ink); }
.ebl-cat__grid { display: grid; gap: clamp(1.25rem, 1rem + 2vw, 3rem); align-items: start; }
@media (max-width: 599.98px) { .ebl-toc ul { flex-direction: column; gap: 0; } }
@media (min-width: 900px) { .ebl-cat__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); } }
.ebl-cat__n { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1rem; background: var(--c-dark); color: var(--c-on-dark);
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; border-radius: var(--radius); }
.ebl-cat__head p { margin: 0; }
.ebl-cat__items { display: grid; gap: clamp(1rem, 0.6rem + 1.2vw, 1.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ebl-cat__items > .ebl-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ebl-cat__items > .ebl-card:last-child:nth-child(odd) .ebl-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); column-gap: 1.5rem; }
.ebl-card { border-radius: var(--radius); border-top: 4px solid var(--c-brand); scroll-margin-top: 100px; }
.ebl-card h3 { margin-bottom: 0.4rem; }
.ebl-card p { margin: 0; color: var(--c-muted); }
.ebl-card__n { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.1em; color: var(--c-brand-ink); }
.wc-section--alt .ebl-card { background: var(--c-surface); }

/* ---------- Page Contact ---------- */
.ebl-contact-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
@media (min-width: 960px) { .ebl-contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.ebl-formbox { scroll-margin-top: 96px; }
.ebl-formbox h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.ebl-formbox .wc-form { max-width: none; margin-top: 1.5rem; }
.ebl-formbox .wc-field { align-content: start; }
.ebl-coords { background: var(--c-surface-alt); border-top: 6px solid var(--c-brand); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.ebl-coords h2 { font-size: 1.5rem; }
.ebl-coords h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.ebl-coords .wc-map { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.ebl-coords .wc-hours { max-width: none; }
.ebl-coords .wc-hours tr.is-today { background: var(--c-surface); }
.ebl-form-status { margin: 0; padding: 1rem 1.15rem; background: var(--c-surface-alt); border-left: 6px solid var(--c-brand); border-radius: var(--radius);
  color: var(--c-ink); font-weight: 600; max-width: none; }
.ebl-form-status--error { border-left-color: var(--c-ink); }
.ebl-form-status:focus-visible { outline-offset: 2px; }
.ebl-small { font-size: 0.95rem; margin: 1.25rem 0 0; }

/* ---------- Politique ---------- */
.ebl-legal.wc-container--narrow { max-width: 1180px; }
.ebl-legal > * { max-width: 72ch; }
.ebl-legal h2 { font-size: 1.3rem; margin-top: 2rem; max-width: 100%; text-wrap: balance; }
.ebl-legal h2:first-child { margin-top: 0; }
.ebl-legal__actions { margin-top: 2.5rem; }

/* ---------- Pied de page ---------- */
.ebl-footer-logo { display: inline-block; padding: 0.6rem 0.8rem; background: var(--c-surface); border-radius: var(--radius); margin-bottom: 1rem; }
.ebl-footer-logo img { height: 56px; width: auto; }
.wc-footer p { color: var(--c-on-dark-muted); }
.wc-footer .wc-footer__legal { max-width: none; }
.ebl-hero__plate p, h1, h2 { text-wrap: balance; }
.wc-footer h2 { text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.12em; }
.wc-footer a[aria-current="page"] { text-decoration-thickness: 2px; }
