/* ------------------------------------------------------------
   ALTEA ELEC — système visuel
   ------------------------------------------------------------ */

:root {
  --electric: #3198ec;
  --blue: #1f5bab;
  --blue-dark: #164a8d;
  --night: #091625;
  --anthracite: #18222d;
  --ink: #1c2733;
  --muted: #5c6874;
  --line: #dce2e8;
  --soft-line: #e9edf1;
  --surface: #f3f5f7;
  --white: #ffffff;
  --success: #18724b;
  --error: #b42318;
  --container: 1240px;
  --header-height: 76px;
  --radius: 6px;
  --font-body: "Segoe UI", Arial, Helvetica, sans-serif;
  --font-display: Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  color: var(--night);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: 58px;
}

h2 {
  font-size: 44px;
}

h3 {
  font-size: 21px;
  line-height: 1.25;
}

::selection {
  color: var(--white);
  background: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 112px;
}

.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-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--night);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  background: currentColor;
  content: "";
}

.eyebrow-light {
  color: #77bfff;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 56px;
}

.section-heading h2 {
  max-width: 720px;
}

.section-heading > p {
  max-width: 500px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 17px;
}

/* Boutons */

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: var(--white);
  background: var(--blue);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.button-small {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 14px;
}

.button-secondary {
  color: var(--night);
  border-color: #aab6c1;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(7px);
}

.button-secondary:hover {
  color: var(--night);
  border-color: var(--night);
  background: var(--white);
}

.button-white {
  color: var(--night);
  border-color: var(--white);
  background: var(--white);
}

.button-white:hover {
  color: var(--night);
  border-color: var(--surface);
  background: var(--surface);
}

.button-outline-white {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.66);
  background: transparent;
}

.button-outline-white:hover {
  color: var(--night);
  border-color: var(--white);
  background: var(--white);
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--blue);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.text-link span {
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link-light {
  color: #8ac9ff;
}

/* En-tête */

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid rgba(9, 22, 37, 0.08);
  background: var(--white);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--white);
}

.header-inner {
  display: flex;
  width: min(100% - 40px, 1380px);
  height: 100%;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand-link img {
  width: 188px;
  height: auto;
}

.main-nav,
.nav-panel {
  display: flex;
  align-items: center;
}

.nav-panel {
  gap: 24px;
}

.nav-panel > a:not(.button),
.nav-phone {
  position: relative;
  padding-block: 8px;
  color: #34414d;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-panel > a:not(.button)::after,
.nav-phone::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--electric);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.nav-panel > a:not(.button):hover::after,
.nav-phone:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--night);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle > span:nth-child(2) { transform: translateY(-6px); }
.menu-toggle > span:nth-child(4) { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(4) { transform: rotate(-45deg); }

/* Hero */

.hero {
  position: relative;
  display: flex;
  height: min(820px, calc(100svh - 44px));
  min-height: 680px;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
  background: #eef2f4;
}

.hero-media,
.hero-media img,
.hero-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center center;
}

.hero-wash {
  background: rgba(255, 255, 255, 0.08);
}

.hero-inner {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
}

.hero-content {
  width: min(59%, 700px);
  padding-block: 42px;
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 24px;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 22px;
  color: #33404c;
  font-size: 19px;
  line-height: 1.55;
}

.hero-slogan {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 30px;
  color: var(--night);
  font-size: 16px;
  font-weight: 750;
}

.hero-slogan span {
  width: 32px;
  height: 3px;
  background: var(--electric);
}

.hero-credit {
  position: absolute;
  right: max(18px, calc((100% - var(--container)) / 2));
  bottom: 18px;
  margin: 0;
  padding: 5px 8px;
  color: #48545f;
  background: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.2;
}

/* Bandeau de confiance */

.trust-strip {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid article {
  display: grid;
  min-height: 172px;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-content: center;
  padding: 32px 26px;
  border-left: 1px solid var(--line);
}

.trust-grid article:last-child {
  border-right: 1px solid var(--line);
}

.trust-index {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.trust-grid h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.trust-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Services */

.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  min-height: 440px;
  grid-column: span 2;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 180ms ease, transform 180ms ease;
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 3;
  min-height: 390px;
}

.service-card:hover {
  border-color: #9cb4ca;
  transform: translateY(-3px);
}

.service-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  padding: 9px;
  border: 1px solid #b9d9f5;
  border-radius: 4px;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.service-card h3 {
  min-height: 52px;
  margin-bottom: 14px;
}

.service-card > p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.service-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  color: #3f4b56;
  font-size: 14px;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 15px;
}

.service-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--electric);
  content: "";
  transform: translateY(-50%);
}

.service-card .text-link {
  margin-top: auto;
}

.service-card-featured {
  border-color: #a9c9e5;
  background: #f7fbff;
}

/* Entreprise */

.company-section {
  color: #d8e1ea;
  background: var(--night);
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 104px;
  align-items: start;
}

.company-copy h2 {
  margin-bottom: 28px;
  color: var(--white);
}

.company-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: #b9c5cf;
}

.company-copy .company-intro {
  color: var(--white);
  font-size: 20px;
  line-height: 1.5;
}

.company-copy .text-link {
  margin-top: 18px;
}

.principles-label {
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #2d3b49;
  color: #91a2b2;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.company-principles ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-principles li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 23px 0;
  border-bottom: 1px solid #2d3b49;
}

.company-principles li > span {
  grid-row: 1 / span 2;
  color: var(--electric);
  font-size: 12px;
  font-weight: 800;
}

.company-principles strong {
  color: var(--white);
  font-size: 17px;
}

.company-principles li p {
  margin: 5px 0 0;
  color: #aab7c3;
  font-size: 14px;
}

/* Méthode */

.method-section {
  background: var(--surface);
}

.method-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  min-height: 284px;
  padding: 27px 27px 0;
  border-top: 3px solid var(--night);
  border-left: 1px solid #ccd4db;
}

.method-list li:first-child {
  border-left: 0;
}

.method-number {
  display: block;
  margin-bottom: 44px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.method-list h3 {
  margin-bottom: 14px;
}

.method-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Galerie */

.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 340px 220px 340px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
}

.gallery-item img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 15px 16px;
  border-left: 3px solid var(--electric);
  color: var(--white);
  background: rgba(9, 22, 37, 0.88);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.gallery-item figcaption span {
  display: block;
  margin-bottom: 4px;
  color: #8ac9ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.gallery-item-panel {
  grid-column: 1 / span 7;
  grid-row: 1;
}

.gallery-item-wiring {
  grid-column: 8 / span 5;
  grid-row: 1 / span 2;
}

.gallery-item-device {
  grid-column: 1 / span 4;
  grid-row: 2 / span 2;
}

.gallery-item-light {
  grid-column: 5 / span 3;
  grid-row: 2 / span 2;
}

.gallery-item-office {
  grid-column: 8 / span 5;
  grid-row: 3;
}

.gallery-item-wiring img {
  object-position: center 64%;
}

.gallery-item-device img {
  object-position: center 55%;
}

.gallery-disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Secteur */

.area-section {
  color: #d8e1ea;
  background: #0d1824;
}

.area-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 80px;
  align-items: center;
}

.area-copy h2 {
  margin-bottom: 26px;
  color: var(--white);
}

.area-copy > p:not(.eyebrow) {
  max-width: 590px;
  color: #b5c1cc;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  padding: 16px 0;
  border-top: 1px solid #33404d;
}

.area-list strong,
.area-list span {
  display: block;
}

.area-list strong {
  color: var(--white);
  font-size: 15px;
}

.area-list span {
  margin-top: 2px;
  color: #91a0ad;
  font-size: 12px;
}

.area-graphic {
  border: 1px solid #304152;
  border-radius: var(--radius);
  background: #101e2d;
}

.area-graphic svg {
  width: 100%;
  height: auto;
}

.area-route {
  fill: none;
  stroke: #3c5872;
  stroke-dasharray: 5 8;
  stroke-width: 2;
}

.area-radius {
  fill: none;
  stroke: #27577f;
}

.area-radius-outer {
  stroke-width: 2;
  stroke-dasharray: 7 9;
}

.area-radius-inner {
  stroke-width: 1;
}

.area-point {
  fill: var(--electric);
  stroke: #dff1ff;
  stroke-width: 3;
}

.area-point-main {
  fill: var(--white);
  stroke: var(--electric);
  stroke-width: 5;
}

.area-label {
  fill: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.area-label-main {
  font-size: 19px;
}

.area-sublabel {
  fill: #8fa5b8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

.area-radius-label {
  fill: #72b6ef;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 750;
}

/* CTA */

.cta-section {
  color: var(--white);
  background: var(--blue);
}

.cta-inner {
  display: flex;
  min-height: 290px;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  padding-block: 64px;
}

.cta-inner h2 {
  margin-bottom: 14px;
  color: var(--white);
}

.cta-inner p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: #dceeff;
  font-size: 18px;
}

.cta-inner .button-group {
  flex: 0 0 auto;
}

/* Contact et formulaire */

.contact-section {
  background: var(--surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  gap: 92px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 36px);
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.contact-details {
  margin: 36px 0 28px;
}

.contact-details > div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid #cdd5dc;
}

.contact-details > div:last-child {
  border-bottom: 1px solid #cdd5dc;
}

.contact-details dt {
  color: #6a7681;
  font-size: 13px;
}

.contact-details dd {
  margin: 0;
  color: var(--night);
  font-size: 14px;
  font-weight: 700;
}

.contact-details a {
  color: var(--blue);
}

.contact-note {
  padding-left: 15px;
  border-left: 2px solid var(--electric);
  font-size: 13px;
}

.quote-form {
  padding: 42px;
  border: 1px solid #ccd4dc;
  border-radius: var(--radius);
  background: var(--white);
}

.form-heading {
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--soft-line);
}

.form-heading h3 {
  font-size: 28px;
}

.form-kicker {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px 18px;
}

.form-field {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #26323e;
  font-size: 14px;
  font-weight: 700;
}

.form-field label > span {
  color: var(--blue);
}

.form-field input:not([type="checkbox"]),
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #aeb9c3;
  border-radius: 3px;
  color: var(--night);
  background: var(--white);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-field textarea {
  min-height: 144px;
  resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #778794;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(49, 152, 236, 0.2);
}

.form-field [aria-invalid="true"] {
  border-color: var(--error) !important;
}

.field-help,
.field-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
}

.field-help {
  color: #687580;
}

.field-error {
  min-height: 17px;
  color: var(--error);
  font-weight: 650;
}

.consent-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0 10px;
  align-items: start;
}

.consent-field input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.consent-field label {
  margin: 0;
  color: #4e5a65;
  font-size: 13px;
  font-weight: 500;
}

.consent-field .field-error {
  grid-column: 2;
}

.form-explanation {
  margin: 26px 0 16px;
  color: #56626e;
  font-size: 13px;
}

.form-submit {
  width: 100%;
  gap: 12px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 650;
}

.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="success"] { color: var(--success); }

/* Pied de page */

.site-footer {
  padding: 72px 0 24px;
  color: #afbdc9;
  background: var(--night);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.7fr 1fr;
  gap: 54px;
  padding-bottom: 52px;
}

.footer-brand img {
  width: 205px;
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--white);
  font-size: 15px;
  font-weight: 650;
}

.site-footer h2 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 14px;
}

.site-footer a,
.site-footer p {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid #2b3947;
}

.footer-bottom p {
  margin: 0;
  color: #8292a0;
  font-size: 12px;
}

/* Pages éditoriales et légales */

.simple-main {
  padding-top: var(--header-height);
}

.simple-header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.simple-header-nav > a:not(.button) {
  color: #3a4652;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.legal-hero {
  padding: 84px 0 68px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.legal-hero h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: 50px;
}

.legal-hero > .container > p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-section {
  padding-block: 84px 112px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 88px;
  justify-content: center;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.legal-aside p {
  margin-bottom: 12px;
  color: #66727d;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.legal-aside nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.legal-aside a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #48545f;
  font-size: 13px;
  text-decoration: none;
}

.legal-aside a:hover {
  color: var(--blue);
}

.legal-content section {
  margin-bottom: 52px;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: #4d5964;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-note {
  padding: 18px 20px;
  border-left: 3px solid var(--electric);
  background: var(--surface);
  color: #4c5964;
  font-size: 14px;
}

.legal-data {
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.legal-data > div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.legal-data dt {
  color: #687580;
  font-size: 13px;
}

.legal-data dd {
  margin: 0;
  color: var(--night);
  font-size: 14px;
  font-weight: 650;
}

.legal-data .is-pending dd {
  color: #8b5a16;
  font-weight: 600;
}

.credits-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
}

.credit-entry {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.credit-entry h2 {
  margin-bottom: 7px;
  font-size: 20px;
}

.credit-entry p {
  margin-bottom: 5px;
  font-size: 14px;
}

.credit-entry a {
  color: var(--blue);
}

/* Apparition discrète */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablette */

@media (max-width: 1180px) {
  h1 { font-size: 50px; }
  h2 { font-size: 40px; }

  .nav-panel { gap: 16px; }
  .nav-panel > a:not(.button) { font-size: 13px; }
  .brand-link img { width: 168px; }

  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid article:nth-child(2) { border-right: 1px solid var(--line); }
  .trust-grid article:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .company-layout { gap: 64px; }
  .contact-layout { gap: 56px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 0.8fr 1fr; gap: 34px; }
}

@media (max-width: 1023px) {
  :root { --header-height: 70px; }
  .section { padding-block: 88px; }
  h1 { font-size: 46px; }
  h2 { font-size: 38px; }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: block;
    overflow: auto;
    background: rgba(9, 22, 37, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .main-nav[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-panel {
    display: grid;
    width: 100%;
    max-height: calc(100svh - var(--header-height));
    gap: 0;
    align-items: stretch;
    margin-left: auto;
    padding: 22px 24px 32px;
    background: var(--white);
    transform: translateY(-12px);
    transition: transform 180ms ease;
  }

  .main-nav[data-open="true"] .nav-panel {
    transform: translateY(0);
  }

  .nav-panel > a:not(.button),
  .nav-phone {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--night);
    font-size: 17px;
  }

  .nav-panel > a:not(.button)::after,
  .nav-phone::after { display: none; }
  .nav-cta { margin-top: 20px; }

  .hero { min-height: 650px; }
  .hero-content { width: min(68%, 620px); }
  .hero-wash { background: rgba(255, 255, 255, 0.22); }

  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 44px; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 1; min-height: 410px; }
  .service-card:last-child { grid-column: 1 / -1; min-height: 360px; }

  .company-layout,
  .area-layout { grid-template-columns: 1fr; }
  .company-layout { gap: 58px; }
  .area-layout { gap: 54px; }
  .area-graphic { width: min(100%, 670px); margin-inline: auto; }

  .method-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 0; }
  .method-list li:nth-child(3) { border-left: 0; }

  .gallery-grid { grid-template-rows: 300px 200px 310px; }

  .cta-inner { align-items: flex-start; flex-direction: column; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-copy { position: static; max-width: 680px; }
  .contact-details { max-width: 620px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .legal-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 50px; }
}

/* Mobile */

@media (max-width: 767px) {
  :root { --header-height: 68px; }
  .container { width: min(100% - 36px, var(--container)); }
  .section { padding-block: 72px; }
  h1 { font-size: 38px; }
  h2 { font-size: 33px; }
  h3 { font-size: 20px; }

  .header-inner { width: calc(100% - 28px); }
  .brand-link img { width: 150px; }

  .hero {
    height: auto;
    min-height: calc(100svh - 38px);
    align-items: flex-start;
    padding: calc(var(--header-height) + 34px) 0 42px;
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero-wash {
    background: rgba(255, 255, 255, 0.7);
  }

  .hero-inner {
    min-height: 0;
    height: auto;
    align-items: flex-start;
  }

  .hero-content {
    width: 100%;
    max-width: 570px;
    padding: 0 0 24px;
  }

  .hero h1 { margin-bottom: 18px; }
  .hero-lead { margin-bottom: 17px; font-size: 17px; line-height: 1.48; }
  .hero-slogan { margin-bottom: 24px; font-size: 14px; }
  .hero-credit { right: auto; bottom: 10px; left: 18px; }
  .hero .button-group { align-items: stretch; flex-direction: column; }
  .hero .button-group .button { width: 100%; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article {
    min-height: 0;
    padding: 25px 4px;
    border-right: 0 !important;
    border-left: 0;
  }
  .trust-grid article + article { border-top: 1px solid var(--line); }

  .services-grid { grid-template-columns: 1fr; }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5),
  .service-card:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 27px 24px;
  }
  .service-card h3 { min-height: 0; }
  .service-icon { margin-bottom: 22px; }

  .company-layout { grid-template-columns: 1fr; gap: 48px; }
  .company-copy .company-intro { font-size: 18px; }
  .company-principles li { grid-template-columns: 38px 1fr; }

  .method-list { grid-template-columns: 1fr; gap: 0; }
  .method-list li,
  .method-list li:nth-child(3) {
    display: grid;
    min-height: 0;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    padding: 24px 0;
    border-top-width: 1px;
    border-left: 0;
  }
  .method-list li:first-child { border-top-width: 3px; }
  .method-number { margin-bottom: 0; }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 14px;
  }
  .gallery-item-panel,
  .gallery-item-wiring,
  .gallery-item-device,
  .gallery-item-light,
  .gallery-item-office {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .gallery-item-wiring,
  .gallery-item-device,
  .gallery-item-light { aspect-ratio: 3 / 4; }
  .gallery-item figcaption { right: 10px; bottom: 10px; left: 10px; }

  .area-list { grid-template-columns: 1fr; }
  .area-graphic { margin-top: 4px; }

  .cta-inner { min-height: 0; padding-block: 54px; }
  .cta-inner h2 { font-size: 34px; }
  .cta-inner p:not(.eyebrow) { font-size: 16px; }
  .cta-inner .button-group { width: 100%; align-items: stretch; flex-direction: column; }
  .cta-inner .button { width: 100%; }

  .contact-layout { gap: 44px; }
  .contact-details > div { grid-template-columns: 92px 1fr; }
  .quote-form { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .form-field-wide { grid-column: auto; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
  .footer-brand,
  .footer-brand + div { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }

  .simple-header-nav .button { display: none; }
  .simple-header-nav > a:not(.button) { font-size: 13px; }
  .legal-hero { padding: 62px 0 52px; }
  .legal-hero h1 { font-size: 38px; }
  .legal-hero > .container > p:not(.eyebrow) { font-size: 16px; }
  .legal-section { padding-block: 62px 82px; }
  .legal-layout { grid-template-columns: 1fr; gap: 42px; }
  .legal-aside { position: static; }
  .legal-content h2 { font-size: 28px; }
  .legal-data > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 380px) {
  h1 { font-size: 32px; }
  h2 { font-size: 30px; }
  .legal-hero h1 { font-size: 32px; }
  .container { width: calc(100% - 28px); }
  .hero { padding: calc(var(--header-height) + 16px) 0 28px; }
  .hero .eyebrow { margin-bottom: 12px; font-size: 11px; }
  .hero-lead { font-size: 15px; }
  .hero-slogan { margin-bottom: 18px; }
  .button { min-height: 48px; }
  .area-label { font-size: 14px; }
}

@media (max-width: 340px) {
  h1 { font-size: 28px; }
  .legal-hero h1 { font-size: 30px; }
  .container { width: calc(100% - 20px); }
  .hero { padding: calc(var(--header-height) + 8px) 0 20px; }
  .hero-content { padding-bottom: 0; }
  .hero .eyebrow { margin-bottom: 8px; font-size: 10px; }
  .hero h1 { margin-bottom: 12px; }
  .hero-lead { margin-bottom: 11px; font-size: 14px; line-height: 1.42; }
  .hero-slogan { margin-bottom: 13px; font-size: 12px; }
  .hero .button-group { flex-direction: row; gap: 8px; }
  .hero .button-group .button {
    min-width: 0;
    min-height: 48px;
    flex: 1 1 0;
    padding: 8px 6px;
    font-size: 12px;
  }
  .hero-credit { bottom: 4px; left: 10px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

@media (prefers-contrast: more) {
  :root { --line: #84919d; --muted: #3f4a54; }
  .button-secondary { background: var(--white); }
}
