/* ============================================
   TEXELIS TRANSPORT - Landing Page Styles
   ============================================ */

/*
screens: {
  sm: '640px',
  md: '768px',
  lg: '1024px',
  xl: '1280px',
} */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --color-midnight-900: #1a273e;
  --color-midnight-100: #b0e0f2;
  --color-bg-base: #07060e;
  --color-white: #ffffff;
  --color-overlay: rgba(0, 0, 0, 0.9);

  /* Spacing */
  --spacing-0: 0px;
  --spacing-0-5: 4px;
  --spacing-1: 8px;
  --spacing-2: 16px;
  --spacing-3: 24px;
  --spacing-4: 32px;
  --spacing-5: 40px;

  /* Margins */
  --margin-12-col: 118px;
  --margin-10-col: 226px;
  --margin-section: 40px;

  /* Radius */
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Max width */
  --max-width: 1296px;

  /* Typography */
  --h1-size: 44px;
  --h1-leading: 52px;

  --h2-size: 40px;
  --h2-leading: 52px;

  --h3-size: 24px;
  --h3-leading: 34px;
}

@media (min-width: 768px) {
  :root {
    /* Margins */
    --margin-section: 100px;

    /* Typography */
    --h1-size: 48px;
    --h1-leading: 56px;

    --h3-size: 28px;
    --h3-leading: 38px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Exo 2', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-white);
  background-color: var(--color-midnight-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Typography --- */
.h1 {
  font-weight: 700;
  font-style: italic;
  font-size: var(--h1-size);
  line-height: var(--h1-leading);
  text-transform: uppercase;
}

h2 {
  font-weight: 700;
  font-style: italic;
  font-size: var(--h2-size);
  line-height: var(--h2-leading);
}

.h3 {
  font-weight: 600;
  font-size: var(--h3-size);
  line-height: var(--h3-leading);
}

.body-regular {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
}

.body-bold {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}

.label {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.accent {
  color: var(--color-midnight-100);
  font-size: 20px;
}

/* --- BG Lines (decorative center line) --- */
.bg-lines {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-color: rgb(from #e3dace r g b / 0.2);
}

.bg-lines span {
  display: block;
  position: sticky;
  left: 0;
  top: 80%;
  width: 1px;
  height: 300px;
  transform: translateY(-50%);
  background: linear-gradient(rgba(176, 224, 242, 0.00) 0%, rgba(176, 224, 242, 0.80) 95%, rgba(176, 224, 242, 0.00) 100%);
}

/* --- Header --- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--spacing-2);
  padding: 0 var(--spacing-2);
}

@media (min-width: 768px) {
  .header {
    padding: 0 var(--spacing-5);
  }
}

.header-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .header-logo {
    padding-top: var(--spacing-3);
  }
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-logo-transport {
  font-family: 'Exo 2', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 8.5px;
  text-transform: uppercase;
  color: var(--color-white);
  text-align: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: var(--spacing-1) var(--spacing-3);
  border: 1px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
}

.btn:hover {
  background-color: var(--color-white);
  color: var(--color-midnight-900);
}

.btn--dark {
  border-color: var(--color-midnight-900);
  color: var(--color-midnight-900);
}

.lang-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-0-5);
  height: 48px;
  padding: var(--spacing-1);
  cursor: pointer;
}

.lang-selector span {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lang-selector .chevron {
  width: 16px;
  height: 16px;
}

.lang-selector .chevron svg {
  width: 100%;
  height: 100%;
}

.lang-selector .lang-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  display: none;
}

.lang-selector .lang-list li a {
  display: block;
  padding: var(--spacing-1);
}

.lang-selector .lang-list li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-selector:hover,
.lang-selector:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-selector:hover .lang-list,
.lang-selector:focus .lang-list {
  display: block;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 800px;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: translateX(-50%);
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
  text-align: center;
  margin-top: -40px;
}

.hero-title {
  font-weight: 700;
  max-width: 680px;
  font-style: italic;
  text-transform: uppercase;
  color: var(--color-white);
  text-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  font-size: var(--h3-size);
  line-height: 1;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 68px;
  }
}

.hero-title .for {
  font-size: 22px;
}

@media (min-width: 640px) {
  .hero-title .for {
    font-size: 60px;
  }
}

.hero-title .mobility {
  font-size: 34px;
}

@media (min-width: 640px) {
  .hero-title .mobility {
    font-size: 84px;
  }
}

/* --- Content Sections --- */
.content-area {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-right: var(--spacing-2);
  padding-left: var(--spacing-2);
  padding-bottom: var(--spacing-5);
}

/* --- sections --- */
.section {
  padding-top: var(--margin-section);
  padding-bottom: var(--margin-section);
}

/* --- Narrow sections --- */
@media (min-width: 640px) {
  .section--narrow {
    width: calc(100% * (10 / 12));
    margin: 0 auto;
  }
}

/* --- Entreprise Section --- */
.section-entreprise {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--spacing-4);
}

@media (min-width: 1024px) {
  .section-entreprise {
    flex-direction: row;
  }
}

.entreprise-visual {
  position: relative;
  width: 308px;
  min-width: 308px;
  height: 331px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .entreprise-visual {
    width: 616px;
    min-width: 616px;
    height: 662px;
  }
}

.entreprise-visual .img-bg-figure {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  width: 150px;
  height: 300px;
  clip-path: path("M0 0V600H300V224.755C300 207.948 291.556 192.266 277.526 183.014L0 0Z");
}

@media (min-width: 768px) {
  .entreprise-visual .img-bg-figure {
    top: 32px;
    width: 300px;
    height: 600px;
  }
}

.entreprise-visual .img-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.entreprise-visual .img-outline {
  position: absolute;
  left: calc(50% - 1px);
  top: 48px;
  transform: translateX(-50%);
  width: 190px;
  height: 290px;
  opacity: 0;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .entreprise-visual .img-outline {
    top: 97px;
    width: 380px;
    height: 580px;
  }
}

.entreprise-visual .img-train {
  position: absolute;
  left: 50%;
  top: 13px;
  transform: translateX(-50%);
  width: 200px;
  height: 302px;
  object-fit: cover;
  transition: top 0.3s ease;
}

@media (min-width: 768px) {
  .entreprise-visual .img-train {
    top: 27px;
    width: 400px;
    height: 605px;
  }
}

.entreprise-visual.on-screen .img-bg {
  transform: scale(1.2);
}

.entreprise-visual.on-screen .img-outline {
  top: 12px;
  width: 240px;
  height: 365px;
  opacity: 1;
}

@media (min-width: 768px) {
  .entreprise-visual.on-screen .img-outline {
    top: 23px;
    width: 480px;
    height: 731px;
  }
}

.entreprise-visual.on-screen .img-train {
  top: 19px;
}

@media (min-width: 768px) {
  .entreprise-visual.on-screen .img-train {
    top: 37px;
  }
}

.entreprise-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-2);
}

@media (min-width: 768px) {
  .entreprise-content {
    padding: var(--spacing-5);
  }
}

.entreprise-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.entreprise-text p {
  font-size: 18px;
  line-height: 24px;
}

.entreprise-text p + p {
  margin-top: 16px;
}

.entreprise-text strong {
  font-weight: 600;
}

/* --- Solutions Section --- */
.section-solutions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
}

.solutions-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
}

.solutions-header p {
  font-size: 18px;
  line-height: 24px;
}

.solutions-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  align-items: flex-start;
}

.solution-card {
  flex: 1;
  min-width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-3);
  background-color: var(--color-midnight-900);
  border: 1px solid var(--color-midnight-100);
  border-radius: 0 var(--radius-lg) 0 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .solutions-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .solution-card {
    flex-direction: column;
    justify-content: flex-end;
    align-items: start;
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
  }
}

@media (min-width: 1024px) {
  .solutions-grid {
    flex-wrap: nowrap;
  }

  .solution-card {
    min-width: 0;
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .solution-card--offset {
    margin-top: var(--spacing-3);
  }
}


.solution-card .icon-wrapper {
  display: flex;
  align-items: center;
}

.solution-card .icon {
  width: 90px;
  height: 90px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .solution-card .icon {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 1024px) {
  .solution-card .icon {
    width: 120px;
    height: 120px;
  }
}

@media (min-width: 1280px) {
  .solution-card .icon {
    width: 140px;
    height: 140px;
  }
}

.solution-card .icon img,
.solution-card .icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.solution-card .card-title {
  font-weight: 600;
  font-size: var(--h3-size);
  line-height: var(--h3-leading);
  color: var(--color-midnight-100);
}

.solution-card .card-subtitle {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  margin-top: var(--spacing-0-5);
}

/* --- Innovation Section --- */
.section-innovation {
  display: flex;
  justify-content: center;
}

.innovation-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  color: var(--color-midnight-100);
  background-color: var(--color-midnight-900);
  text-align: center;
}

@media (min-width: 768px) {
  .innovation-content {
    padding: 0 80px;
  }
}

.innovation-content .subtitle {
  font-weight: 600;
  font-size: var(--h3-size);
  line-height: var(--h3-leading);
}

/* --- TELLi Section --- */
.section-telli {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: var(--spacing-4);
}

@media (min-width: 1024px) {
  .section-telli {
    flex-direction: row;
  }
}

.telli-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  padding: var(--spacing-2);
}

@media (min-width: 1024px) {
  .telli-content {
    padding: var(--spacing-5);
    flex: 1;
  }
}

.telli-content p {
  font-size: 18px;
  line-height: 24px;
}

.telli-content strong {
  font-weight: 600;
}

.telli-list {
  display: flex;
  flex-direction: column;
}

.telli-list li {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.telli-list li::before {
  content: '';
  display: block;
  width: 18px;
  height: 3px;
  background-color: var(--color-white);
  flex-shrink: 0;
  transform: skewX(-45deg);
}

.telli-list li span {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}

.telli-image {
  overflow: hidden;
  position: relative;
}

@media (min-width: 1024px) {
  .telli-image {
    flex: 1;
    width: 616px;
    height: 616px;
    flex-shrink: 0;
  }
}

.telli-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 768px) {
  .telli-image img {
    height: 100%;
  }
}

/* --- Experience Section --- */
.section-experience {
  display: flex;
  justify-content: center;
}

.experience-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  color: var(--color-midnight-100);
  background-color: var(--color-midnight-900);
  text-align: center;
}

@media (min-width: 768px) {
  .experience-content {
    padding: 0 80px;
  }
}

.experience-content .subtitle {
  font-weight: 600;
  font-size: var(--h3-size);
  line-height: var(--h3-leading);
}

/* --- Contact Section --- */
.section-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
  align-items: center;
}

.contact-top {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .contact-top {
    flex-direction: row;
  }
}

.contact-title {
  flex: 1;
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .contact-title {
    width: calc(50% - (var(--spacing-2) / 2));
  }
}

.contact-linkedin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap:  var(--spacing-3);
  padding: var(--spacing-2);
  background-color: var(--color-midnight-100);
  border-radius: 0 var(--radius-lg) 0 0;
}

@media (min-width: 640px) {
  .contact-linkedin {
    flex-direction: row;
    gap: var(--spacing-5);
    width: 100%;
  }
}

@media (min-width: 768px) {
  .contact-linkedin {
    min-height: 180px;
  }
}

@media (min-width: 1024px) {
  .contact-linkedin {
    gap: var(--spacing-3);
    min-height: unset;
  }
}

@media (min-width: 1024px) {
  .contact-linkedin {
    width: calc(50% - (var(--spacing-2) / 2));
    gap: 40px;
    padding: var(--spacing-5);
  }
}

.contact-linkedin .text {
  flex: 1;
  font-weight: 600;
  font-size: var(--h3-size);
  line-height: 34px;
  color: var(--color-midnight-900);
}

@media (min-width: 768px) {
  .contact-linkedin .text {
    line-height: var(--h3-leading);
  }
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  width: 100%;
}

@media (min-width: 1024px) {
  .contact-cards {
    flex-direction: row;
  }
}

.contact-card {
  flex: none;
  position: relative;
  height: 120px;
  overflow: hidden;
  border-radius: 0 var(--radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-3);
  cursor: pointer;
}

@media (min-width: 768px) {
  .contact-card {
    height: 180px;
  }
}

@media (min-width: 1024px) {
  .contact-card {
    flex: 1;
  }
}

.contact-card .card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1);
  transition: transform 0.3s;
}

.contact-card:hover .card-bg {
  transform: scale(1.1);
}

.contact-card .overlay {
  position: absolute;
  inset: -1px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}

.contact-card .card-label {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: var(--h3-size);
  line-height: var(--h3-leading);
}

.contact-card .card-arrow {
  width: 40px;
  height: 40px;
  padding: 6px;
  border: 1px solid white;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s;
}

@media (min-width: 768px) {
  .contact-card .card-arrow {
    opacity: 0;
  }
}

.contact-card:hover .card-arrow {
  opacity: 1;
}

.contact-card .card-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-bg-base);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-5);
  padding: var(--spacing-5) var(--spacing-2);
}

@media (min-width: 1024px) {
  .footer-inner {
    gap: var(--spacing-3);
    flex-direction: row;
    padding: var(--spacing-5) var(--margin-10-col);
  }
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-logo .logo-texelis {
  font-weight: 800;
  font-style: italic;
  font-size: var(--h3-size);
  line-height: 1;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.footer-logo .logo-transport {
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 8.5px;
  text-transform: uppercase;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-2);
}

@media (min-width: 1024px) {
  .footer-links {
    flex-wrap: nowrap;
    gap: var(--spacing-5);
  }
}

.footer-links .copyright {
  font-size: 18px;
  line-height: 24px;
  opacity: 0.7;
  width: 100%;
  order: 99;
  text-align: center;
}

@media (min-width: 1024px) {
  .footer-links .copyright {
    width: auto;
    order: -1;
  }
}

.footer-links .link-label {
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.footer-links .link-label:hover {
  opacity: 0.8;
}

.footer-links .linkedin-icon {
  width: 24px;
  height: 24px;
}

.footer-links .linkedin-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-white);
}

/* --- Outline SVG for train visual --- */
.outline-shape {
  stroke: url(#outlineGradient);
  fill: none;
  stroke-width: 1;
}

/* --- Usinage icon composite --- */
.icon-usinage {
  position: relative;
  width: 140px;
  height: 140px;
}

.icon-usinage img {
  position: absolute;
}

/* --- Scroll-reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.solution-card.reveal {
  transition-delay: 0s;
}

.solution-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.solution-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.solution-card.reveal:nth-child(4) { transition-delay: 0.3s; }

.contact-card.reveal:nth-child(2) { transition-delay: 0.15s; }

/* --- Scrolled header --- */
.header {
  transition: background-color 0.3s ease;
}

.header--scrolled {
  background-color: rgba(7, 6, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* --- Mentions légales --- */

.page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px var(--spacing-2) var(--spacing-5);
  text-align: center;
}

.page-title h1 {
  font-weight: 700;
  font-style: italic;
  font-size: var(--h1-size);
  line-height: var(--h1-leading);
  text-transform: uppercase;
}

.mentions-part {
  margin: var(--spacing-3) 0;
}

.mentions-part h2 {
  margin-bottom: var(--spacing-1);
}

.mentions-legales-page body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.mentions-legales-page .content-area {
  flex: 1;
  width: 100%;
}
