:root {
  color-scheme: dark;
  --bg: #06111b;
  --bg-soft: #0a1b29;
  --panel: rgba(12, 31, 45, 0.78);
  --panel-solid: #0d2232;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f8fa;
  --muted: #a9b7c3;
  --orange: #ef7600;
  --red: #d9043d;
  --green: #2da92f;
  --cyan: #79d9dc;
  --max-width: 1840px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(239, 118, 0, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 88%, rgba(45, 169, 47, 0.12), transparent 32rem),
    linear-gradient(145deg, #050d15 0%, var(--bg) 52%, #06131e 100%);
}

a {
  color: inherit;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
  pointer-events: none;
}

.ambient-one {
  top: -14rem;
  right: -12rem;
  background: var(--red);
}

.ambient-two {
  bottom: -18rem;
  left: -12rem;
  background: var(--green);
}

.site-shell {
  width: min(var(--max-width), calc(100% - clamp(28px, 5vw, 96px)));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  min-height: clamp(92px, 10vh, 124px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: block;
  width: clamp(300px, 31vw, 560px);
  max-width: 58%;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 42px);
}

.country {
  color: var(--muted);
  font-size: clamp(0.72rem, 0.8vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.language-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.lang-button {
  display: inline-flex;
  min-width: 68px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: 180ms ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: var(--text);
  outline: none;
}

.lang-button.is-active {
  color: #fff;
  background: rgba(239, 118, 0, 0.96);
  box-shadow: 0 8px 24px rgba(239, 118, 0, 0.22);
}

.flag {
  font-size: 1.05rem;
  line-height: 1;
}

main {
  display: grid;
  align-content: center;
  padding: clamp(34px, 5.5vh, 78px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(400px, 0.78fr);
  gap: clamp(42px, 4.5vw, 86px);
  align-items: center;
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #91d4b0;
  font-size: clamp(0.76rem, 0.82vw, 0.92rem);
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(3rem, 4.1vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.title-line {
  display: block;
}

.intro {
  max-width: 820px;
  margin: clamp(24px, 3.2vh, 38px) 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.32rem);
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: clamp(30px, 4vh, 48px);
}

.contact-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dd6500, var(--orange));
  box-shadow: 0 16px 36px rgba(239, 118, 0, 0.23);
  text-decoration: none;
  font-weight: 850;
  transition: transform 180ms ease, filter 180ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  outline: 3px solid rgba(239, 118, 0, 0.25);
  outline-offset: 3px;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 0.93rem;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(45, 169, 47, 0.13);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero-visual {
  position: relative;
  min-height: clamp(420px, 48vh, 590px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(24px, 2vw, 34px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--panel-solid);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  isolation: isolate;
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 84%);
}

.solar-panel {
  position: absolute;
  z-index: -1;
  width: 74%;
  height: 44%;
  right: -9%;
  bottom: -9%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 7px;
  transform: perspective(800px) rotateX(56deg) rotateZ(-9deg);
  border: 1px solid rgba(121, 217, 220, 0.38);
  background: rgba(7, 25, 38, 0.9);
  box-shadow: 0 0 55px rgba(121, 217, 220, 0.13);
}

.solar-panel span {
  border: 1px solid rgba(121, 217, 220, 0.22);
  background:
    linear-gradient(145deg, rgba(48, 141, 160, 0.45), rgba(7, 36, 54, 0.88));
}

.route {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--green));
  box-shadow: 0 0 14px rgba(239, 118, 0, 0.45);
}

.route::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.1);
}

.route-one {
  width: 41%;
  top: 39%;
  left: 13%;
  transform: rotate(8deg);
}

.route-two {
  width: 38%;
  top: 56%;
  left: 50%;
  transform: rotate(-17deg);
}

.visual-center {
  position: absolute;
  top: 44%;
  left: 50%;
  width: clamp(170px, 15vw, 235px);
  min-height: 112px;
  transform: translate(-50%, -50%);
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  text-align: center;
  background: rgba(5, 17, 27, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.visual-center span {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.visual-center b {
  color: #d6e1e8;
  font-size: 0.86rem;
  line-height: 1.35;
}

.visual-label {
  position: absolute;
  display: grid;
  gap: 5px;
  min-width: 160px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(6, 19, 29, 0.77);
  backdrop-filter: blur(10px);
}

.visual-label small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.visual-label strong {
  font-size: 0.94rem;
}

.label-factory {
  top: 18%;
  left: 7%;
}

.label-recipient {
  right: 7%;
  bottom: 18%;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(34px, 5vh, 66px);
}

.service-card {
  position: relative;
  min-height: 172px;
  padding: clamp(21px, 2vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--orange), var(--red), var(--green));
}

.service-number {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.service-card h2 {
  margin: 13px 0 10px;
  font-size: clamp(1.08rem, 1.25vw, 1.35rem);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 0.92vw, 1rem);
  line-height: 1.55;
}

.site-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: #8293a1;
  font-size: 0.82rem;
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@media (min-width: 1200px) and (max-height: 820px) {
  .site-header {
    min-height: 88px;
  }

  main {
    padding: 28px 0;
  }

  h1 {
    font-size: clamp(3rem, 3.9vw, 4.1rem);
  }

  .hero-visual {
    min-height: 410px;
  }

  .services {
    margin-top: 28px;
  }

  .service-card {
    min-height: 145px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .site-footer {
    min-height: 58px;
  }
}

@media (max-width: 1120px) {
  .site-shell {
    width: min(960px, calc(100% - 40px));
  }

  .country {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 900px;
    font-size: clamp(3rem, 6.2vw, 4.7rem);
  }

  .hero-visual {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, 640px);
  }

  .site-header {
    min-height: 82px;
    gap: 14px;
  }

  .brand {
    width: min(300px, 58vw);
    max-width: none;
  }

  .lang-button {
    min-width: 51px;
    height: 38px;
    padding: 0 8px;
  }

  .lang-button span:last-child {
    display: none;
  }

  main {
    padding: 34px 0 44px;
  }

  .hero {
    gap: 34px;
  }

  h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.75rem);
  }

  .intro {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .contact-button {
    width: 100%;
  }

  .coming-soon {
    width: 100%;
    padding-left: 5px;
  }

  .hero-visual {
    min-height: 390px;
    border-radius: 23px;
  }

  .visual-label {
    min-width: 138px;
    padding: 12px 13px;
  }

  .label-factory {
    top: 8%;
    left: 5%;
  }

  .label-recipient {
    right: 5%;
    bottom: 9%;
  }

  .visual-center {
    top: 48%;
    width: 180px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    padding: 21px 0;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .site-shell {
    width: min(100% - 22px, 410px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand {
    width: min(245px, 61vw);
  }

  .language-switcher {
    padding: 3px;
  }

  .lang-button {
    min-width: 43px;
    height: 35px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .visual-center {
    width: 155px;
    min-height: 96px;
    padding: 14px;
  }

  .visual-label {
    min-width: 120px;
  }

  .visual-label small {
    font-size: 0.62rem;
  }

  .visual-label strong {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .visual-center,
  .visual-label {
    backdrop-filter: none;
    background: #071722;
  }
}


@media (min-width: 1500px) {
  .title-line {
    white-space: nowrap;
  }
}

@media (min-width: 1121px) and (max-width: 1499px) {
  h1 {
    font-size: clamp(3rem, 4.4vw, 4rem);
  }
}


/* V3 — readability fixes for the distribution diagram */
.visual-label {
  z-index: 3;
  max-width: 190px;
}

.visual-center {
  z-index: 4;
  top: 47%;
  left: 57%;
  width: clamp(180px, 14vw, 225px);
}

.label-factory {
  top: 12%;
  left: 7%;
  right: auto;
}

.label-recipient {
  right: 6%;
  bottom: 10%;
}

.route {
  z-index: 1;
}

.route-one {
  width: 38%;
  top: 36%;
  left: 15%;
  transform: rotate(7deg);
}

.route-two {
  width: 31%;
  top: 58%;
  left: 61%;
  transform: rotate(-17deg);
}

@media (max-width: 1120px) {
  .visual-center {
    left: 56%;
  }
}

@media (max-width: 760px) {
  .visual-center {
    top: 49%;
    left: 56%;
    width: 170px;
  }

  .label-factory {
    top: 7%;
    left: 5%;
  }

  .label-recipient {
    right: 5%;
    bottom: 8%;
  }
}

@media (max-width: 430px) {
  .visual-center {
    left: 55%;
    width: 148px;
  }

  .visual-label {
    max-width: 126px;
  }
}


/* V5 — stabilité de la mise en page lors du changement de langue */
main {
  align-content: start;
}

@media (min-width: 1121px) {
  .hero-copy .eyebrow {
    min-height: 1.5em;
  }

  .hero-copy h1 {
    min-height: 2.08em;
  }

  .hero-copy .intro {
    min-height: 8.6em;
  }

  .service-card h2 {
    min-height: 2.7em;
  }

  .service-card p {
    min-height: 4.9em;
  }

  .visual-label {
    min-height: 76px;
    align-content: center;
  }

  .visual-center {
    min-height: 118px;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .hero-copy h1 {
    min-height: 2.08em;
  }

  .hero-copy .intro {
    min-height: 7.8em;
  }

  .service-card h2 {
    min-height: 2.6em;
  }
}


/* Production V2 — logo complet et signature visibles sur smartphone */
@media (max-width: 600px) {
  .site-header {
    min-height: auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 11px;
    padding: 16px 0 14px;
  }

  .brand {
    width: min(330px, 94vw);
    max-width: 100%;
  }

  .brand img {
    width: 100%;
    height: auto;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .brand {
    width: min(305px, 93vw);
  }
}
