/* Groupe Electro Kingsey — 2026
   Couleurs tirées du logo (bleu #0072BA, noir #241F20) + béton et kraft de l'entrepôt. */

:root {
  --blue: #0072ba;
  --blue-dark: #00507f;
  --blue-deep: #0a2c44;
  --ink: #241f20;
  --ink-soft: #4d4849;
  --concrete: #e7e9e7;
  --concrete-dark: #c9cdca;
  --paper: #ffffff;
  --kraft: #b48a5a;
  --kraft-dark: #8c6a43;
  --error: #b3261e;
  --ok: #1d6b3a;
  --focus: var(--ink);   /* contour de focus : encre sur fonds clairs, blanc sur fonds sombres */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-stretch: 100%;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

a { color: var(--blue-dark); text-underline-offset: .18em; }
a:hover { color: var(--blue); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero, .hire, .cta-band, .footer { --focus: #ffffff; }

h1, h2, h3 {
  margin: 0;
  font-stretch: 62%;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h3 { font-size: 1.75rem; }
p { margin: 0; max-width: 62ch; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; background: var(--ink); color: var(--paper); font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .8rem 1.4rem;
  border: 2px solid transparent; border-radius: 2px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--blue); color: var(--paper); }
.btn--primary:hover { background: var(--blue-dark); color: var(--paper); }
.btn--ghost { border-color: var(--paper); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--concrete); color: var(--ink); }

/* ---------- En-tête ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--concrete-dark);
}
.masthead__inner {
  max-width: var(--wrap); margin-inline: auto; padding: .75rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { flex: none; margin-right: auto; }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav ul a {
  display: block; padding: .5rem 0;
  color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.nav ul a:hover { color: var(--blue); }
.nav ul a[aria-current="page"] { border-bottom-color: var(--blue); }
.nav__lang { color: var(--ink-soft) !important; font-weight: 500 !important; }
.nav__phone {
  padding: .55rem .9rem; border-radius: 2px;
  background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.nav__phone:hover { background: var(--blue); color: var(--paper); }

.menu-toggle {
  display: none; align-items: center; gap: .6rem;
  min-height: 2.75rem; padding: .5rem .9rem;
  border: 2px solid var(--ink); border-radius: 2px; background: none;
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

@media (max-width: 860px) {
  .js-ready .menu-toggle { display: inline-flex; }
  .brand img { height: 38px; }
  .js-ready .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--paper); border-bottom: 1px solid var(--concrete-dark);
    box-shadow: 0 12px 24px rgba(36, 31, 32, .12);
  }
  .js-ready .nav:not(.is-open) { display: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: .85rem 0; border-bottom: 1px solid var(--concrete); }
  .nav ul a[aria-current="page"] { border-bottom-color: var(--concrete); color: var(--blue); }
  .nav__phone { margin-top: 1rem; text-align: center; padding: .85rem; }
  .masthead__inner { flex-wrap: wrap; }
  html:not(.js-ready) .nav { width: 100%; flex-wrap: wrap; }
}

/* ---------- Héros ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(480px, 84vh, 860px);
  color: var(--paper);
  background: var(--blue-deep);
}
.hero picture, .hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 44, 68, .92) 0%, rgba(10, 44, 68, .55) 45%, rgba(10, 44, 68, .1) 80%),
    linear-gradient(to right, rgba(10, 44, 68, .6), transparent 70%);
}
.hero__body {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 8rem var(--gutter) clamp(3rem, 7vw, 5.5rem);
}
.hero__title {
  max-width: 11ch;
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  font-weight: 850;
  line-height: .88;
  letter-spacing: -.012em;
}
@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero__body { padding-top: 11rem; }
}
.hero__lead { margin-top: 1.75rem; max-width: 50ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: #e8f0f5; }

/* ---------- Têtes de section ---------- */
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { font-size: 1.1875rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
}

/* ---------- Plan de superficie (élément signature) ---------- */
.capacity { padding-block: var(--section); }
.floorplan { margin: 0; }
.floorplan__grid {
  display: grid;
  grid-template-columns: 35fr 90fr;   /* proportion réelle 35 000 : 90 000 pi² */
  gap: clamp(6px, 1vw, 12px);
}
.floorplan__zone { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.floorplan__dim {
  position: relative; display: block;
  padding-bottom: .9rem; margin-bottom: .5rem;
  font-stretch: 62%; font-weight: 800;
  font-size: clamp(1.25rem, 3.6vw, 2.75rem); line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* ligne de cote avec ses deux butées, comme sur un plan */
.floorplan__dim::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  border-inline: 2px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat;
}
.floorplan__area {
  display: block; height: clamp(150px, 24vw, 300px);
  border: 2px solid var(--ink);
  transform-origin: left center;
}
.floorplan__zone--raw .floorplan__area {
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(36, 31, 32, .22) 9px 11px),
    var(--kraft);
}
.floorplan__zone--fin .floorplan__area {
  /* grille de palettes */
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .28) 2px, transparent 2px) 0 0 / 44px 44px,
    linear-gradient(rgba(255, 255, 255, .28) 2px, transparent 2px) 0 0 / 44px 44px,
    var(--blue);
}
.floorplan__label { margin-top: .75rem; font-weight: 700; font-size: clamp(.9375rem, 1.6vw, 1.125rem); line-height: 1.25; }
.floorplan__total {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--concrete-dark);
  font-size: 1.125rem; color: var(--ink-soft);
}
.floorplan__total strong { color: var(--ink); font-stretch: 62%; font-size: 1.75rem; font-weight: 800; margin-right: .35rem; }

@media (prefers-reduced-motion: no-preference) {
  .js-ready .floorplan[data-reveal] .floorplan__area { transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
  .js-ready .floorplan[data-reveal] .floorplan__zone--fin .floorplan__area { transition-delay: .25s; }
  .js-ready .floorplan[data-reveal].is-visible .floorplan__area { transform: none; }
}

/* ---------- Index des services (accueil) ---------- */
.services-index { padding-bottom: var(--section); }
.svc-list { margin: 0; padding: 0; list-style: none; border-bottom: 2px solid var(--ink); }
.svc-list__row {
  display: grid; gap: .5rem 3rem;
  padding: 1.6rem 0;
  border-top: 2px solid var(--ink);
  color: var(--ink); text-decoration: none;
}
.svc-list__name { font-stretch: 62%; font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1; }
.svc-list__text { color: var(--ink-soft); max-width: 48ch; align-self: center; }
.svc-list__row:hover .svc-list__name { color: var(--blue); }
@media (min-width: 760px) {
  .svc-list__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}
.more { margin-top: 1.75rem; font-weight: 700; }

/* ---------- Sites (plans) ---------- */
.sites { padding-block: var(--section); background: var(--concrete); }
.sites__list {
  display: grid; gap: 2.5rem 2rem; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.site { display: flex; flex-direction: column; align-items: flex-start; }
.sites .section-head {
  display: flex; flex-wrap: nowrap; align-items: center;
  justify-content: flex-start; gap: .35rem 1rem;
}
.sites .section-head h2,
.sites__phone {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1;
}
.sites__phone {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink); text-decoration: none;
  font-stretch: 62%; font-weight: 800;
  white-space: nowrap;
}
.sites__phone svg { width: 1.05em; height: 1.05em; flex: none; }
.sites__phone:hover { color: var(--blue); }
.site__door {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 0 1.25rem; padding: .7rem 1rem;
  background: var(--blue); color: var(--paper);
  font-stretch: 62%; font-weight: 800; font-size: 1.35rem; line-height: 1;
  white-space: nowrap;
}
.site__use { margin-top: .4rem; font-weight: 600; }
.site__plan {
  margin: .9rem 0 0;
  font-stretch: 62%; font-weight: 800; font-size: 1.15rem;
  letter-spacing: .04em; line-height: 1;
}
.site__addr { margin-top: .3rem; color: var(--ink-soft); }
.site__map { margin-top: 1rem; font-weight: 700; }
@media (max-width: 600px) {
  .sites__list { gap: 2rem; }
  .site { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: start; }
  .site__door { grid-row: 1 / span 4; margin: 0; font-size: 1.05rem; padding: .65rem .8rem; }
  .site__map { justify-self: start; }
}

/* ---------- Bandeau emplois ---------- */
.hire { background: var(--blue-deep); color: var(--paper); }
.hire__inner { display: grid; max-width: var(--wrap); margin-inline: auto; }
.hire__photo img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.hire__text { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); align-self: center; }
.hire__text p { margin-top: 1rem; color: #d6e2ea; font-size: 1.125rem; }
.hire__text .btn { margin-top: 2rem; }
@media (min-width: 860px) {
  .hire__inner { grid-template-columns: 0.9fr 0.9fr 1.15fr; }
  .hire__text { padding-left: clamp(2rem, 4vw, 3.25rem); }
}

/* ---------- En-tête de page intérieure ---------- */
.page-head { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--concrete); }
.page-head h1 { font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: .88; }
.page-head__lead { margin-top: 1.5rem; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); color: var(--ink-soft); }
.page-head--nf { padding-bottom: var(--section); }

/* ---------- Détail des services ---------- */
.svc { display: grid; }
.svc__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.svc__text { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); align-self: center; }
.svc__text h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.svc__text p { margin-top: 1.25rem; font-size: 1.1875rem; max-width: 44ch; }
.svc:nth-child(even) { background: var(--concrete); }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; min-height: 480px; }
  .svc__photo { position: relative; }
  .svc__photo picture, .svc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .svc:nth-child(even) .svc__photo { order: 2; }
  .svc__text { padding-inline: clamp(3rem, 6vw, 6rem); }
}

.cta-band { padding-block: clamp(3rem, 6vw, 5rem); background: var(--blue); color: var(--paper); }
.cta-band__inner { display: grid; gap: 1rem; align-items: center; }
.cta-band p { font-stretch: 62%; font-weight: 800; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.05; max-width: 24ch; }
.cta-band .actions { margin-top: 0; }
.cta-band .btn--primary { background: var(--paper); color: var(--ink); }
.cta-band .btn--primary:hover { background: var(--concrete); }
.cta-band .btn--outline { border-color: var(--paper); color: var(--paper); }
.cta-band .btn--outline:hover { background: var(--paper); color: var(--ink); }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

/* ---------- Emplois ---------- */
.jobs { padding-block: var(--section); }
.jobs__inner { display: grid; gap: 3.5rem; }
.jobs__list { margin: 0; padding: 0; list-style: none; border-bottom: 2px solid var(--ink); }
.job { padding: 2rem 0 2.25rem; border-top: 2px solid var(--ink); }
.job__title { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.job p { margin: 1rem 0 1.5rem; font-size: 1.125rem; color: var(--ink-soft); }
.jobs__aside img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.75rem; }
.jobs__aside h2 { font-size: 2rem; }
.jobs__aside p { margin-top: .75rem; }
@media (min-width: 900px) { .jobs__inner { grid-template-columns: 1.4fr 1fr; gap: 5rem; } }

/* ---------- Contact ---------- */
.contact { padding-block: var(--section); }
.contact__inner { display: grid; gap: 3.5rem; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1fr 1.5fr; gap: 5rem; } }
.contact__info dl { margin: 0 0 2rem; display: grid; gap: 1.75rem; }
.contact__info dt { font-weight: 700; color: var(--ink-soft); font-size: .9375rem; }
.contact__info dd { margin: .25rem 0 0; font-size: 1.125rem; }
.contact__phone { font-stretch: 62%; font-weight: 800; font-size: 2.5rem; line-height: 1; color: var(--ink); text-decoration: none; }
.contact__phone:hover { color: var(--blue); }

.form-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 700; }
.field__req { font-weight: 400; color: var(--ink-soft); font-size: .9375rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem;
  border: 2px solid #8a8f8c; border-radius: 2px; background: var(--paper);
  font: inherit; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); }
.field__msg { margin-top: .4rem; color: var(--error); font-weight: 600; font-size: .9375rem; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin-bottom: 2rem; padding: 1.25rem 1.5rem; border-left: 6px solid; }
.notice h2 { font-size: 1.75rem; margin-bottom: .4rem; }
.notice--ok { border-color: var(--ok); background: #e6f2ea; }
.notice--error { border-color: var(--error); background: #fbeceb; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: #d9d6d6; }
.footer a { color: var(--paper); }
.footer__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 4rem var(--gutter) 2.5rem;
  display: grid; gap: 2.5rem;
}
@media (min-width: 860px) { .footer__inner { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__brand img { height: 52px; width: auto; margin-bottom: 1.25rem; }
.footer__contact { display: grid; gap: .5rem; font-style: normal; align-content: start; }
.footer__phone { font-stretch: 62%; font-weight: 800; font-size: 2rem; line-height: 1; text-decoration: none; }
.footer__nav { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; align-content: start; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; color: var(--paper); }
.footer__legal {
  max-width: var(--wrap); margin-inline: auto; padding: 1.25rem var(--gutter) 2rem;
  border-top: 1px solid #423c3d; font-size: .875rem; color: #a9a4a5;
}
