@font-face {
  font-family: "Barlow Regular";
  src: url("../fonts/Barlow-Regular.ttf") format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "Barlow Bold";
  src: url("../fonts/Barlow-Bold.ttf") format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "Barlow Black";
  src: url("../fonts/Barlow-Black.ttf");
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  font-size: 20px;
  scroll-behavior: smooth;
}

:root {
  --lightred: #f5a78b;
  --red: #d64916;
  --lightorange: #fbc582;
  --orange: #f18509;
  --lightbeige: #f8f1de;
  --beige: #e7cb8e;
  --lightblue: #c5e3f7;
  --blue: #83cee8;
  --lightmoon: #8398cd;
  --moon: #213c82;
  --green: #436c36;
}

body {
  background-color: var(--lightbeige);
  overflow-x: hidden;
}

#loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  background-color: var(--lightbeige);
}

#loading-screen.active {
  transform: translateY(-100vh);
}
#loading-video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

#name-span {
  text-transform: uppercase;
  font-family: "Barlow Black";
}

ul {
  list-style-type: none;
}

a {
  transition: 0.3s;
}

a,
a:hover,
a:active,
a:visited {
  color: black;
  font-family: "Barlow Regular";
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  display: flex;
  gap: 4.167vw;
}

nav {
  display: flex;
  justify-content: space-between;
  position: fixed;
  padding: 1.302vw 1.979vw;
  background-color: #dbccac00;
  width: max-content;
  width: 100vw;
  box-sizing: border-box;
  z-index: 999;
  transition: 0.3s;
}

nav.active {
  background-color: #dbccac;
}

spline-viewer {
  width: 1280px;
  height: 620px;
}

#spline {
  width: 1280px;
  height: 620px;
}

section {
  display: flex;
  padding: 330px 300px 230px;
  justify-content: space-between;
}

.selector-container svg {
  width: 96px;
  opacity: 0.3;
  height: fit-content;
  transition: 0.3s;
}

.selector-container:hover {
  cursor: pointer;
}

.selector-container:hover svg {
  transform: scale(1.2);
}

.selector-container.active svg {
  opacity: 1;
  transform: scale(1.42105);
}

header {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.selector-section {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.selector-container svg:nth-child(2) {
  color: red;
}

#video {
  justify-content: center;
}

header img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
}

header img {
  opacity: 0;
  transition: 500ms;
}

header img.active {
  opacity: 1;
}

nav svg {
  width: 56px;
  height: fit-content;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.name-hidder {
  overflow: hidden;
}

#name-span {
  transform: translateX(-290px);
  transition: 0.5s ease-in-out;
}

#name-span.active {
  transform: translateX(0px);
}

.nav-right {
  display: flex;
  align-items: center;
}

.contact-footer {
  background: #dfd1b0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 40px 5vw;
  font-family: "Arial", sans-serif;
  font-weight: bold;
  font-size: 1.05em;
  margin: 40px 0 0 0;
  border-radius: 5px;
  min-height: 140px;
  box-sizing: border-box;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.address {
  justify-content: center;
  text-align: center;
}

#information {
  padding: 0px;
  height: 100vh;
}

#information {
  display: flex;
}
.information-left,
.information-right {
  width: 50%;
}

.information-left {
  background-color: red;
  padding: 0 160px;
}

p {
  font-family: "Barlow Regular";
  font-size: 36px;
}

/* Romain */
.scroll-top-btn {
  display: flex;
  position: fixed;
  right: 4vw;
  bottom: 3vh;
  z-index: 100;
  width: 56px;
  height: 56px;
  background: #dfd1b0;
  border: none;
  aspect-ratio: 1/1;
  box-shadow: 0 4px 16px rgba(20, 20, 20, 0.2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.scroll-top-btn:hover {
  box-shadow: 0 6px 24px rgba(44, 44, 44, 0.5);
  background: #faf3e3;
}

.scroll-top-btn svg {
  width: 36px;
  height: 36px;
  display: block;
  stroke: #2e5135;
  pointer-events: none;
}

.scroll-top-btn:hover svg {
  stroke: #dfd1b0;
}

.scroll-top-btn svg path {
  stroke: #faf3e3;
  /* couleur initiale (vert foncé) */
  /* transition: stroke 0.2s; */
}

.scroll-top-btn:hover svg path {
  stroke: #dfd1b0; /* couleur de survol (beige clair, ou remplace par ce que tu veux) */
}

::-webkit-scrollbar {
  display: none;
}

.main-banner-title {
  position: absolute;
  top: 77px;
  line-height: 0.9;
  line-height: 1;
  width: 100%;
  font-family: "Barlow Black", Arial, sans-serif;
  font-size: 8vw;
  letter-spacing: 2px;
  font-weight: 900;
  color: rgba(0, 0, 0, 1);
  padding: 24px 40px 18px 40px;
  border-radius: 10px;
  z-index: 10;
  text-transform: uppercase;
  text-align: left;
}

/* Styles de base */
.S3 {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
}

.container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  height: 100vh;
}

.left-section {
  padding: 60px 160px;
  position: relative;
}

.right-section {
  padding: 60px 60px 80px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.title {
  position: absolute;
  top: 120px;
  left: 160px;
  z-index: 10;
  font-size: 5rem;
  text-transform: uppercase;
  line-height: 96px; /* 96% */
  letter-spacing: 2px;
  width: calc(100% - 100px);
  font-family: "Barlow Black", Arial, sans-serif;
}

.text-content {
  font-size: 2rem;
  line-height: 1.8;
  font-weight: 400;
  margin-top: 250px;
  font-family: "Barlow Regular", Arial, sans-serif;
}

.shape-placeholder {
  padding: 4rem;
  width: 50%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shape-placeholder svg {
  width: 100%;
  height: 100%;
}

.shape-stroke {
  fill: none;
  stroke-miterlimit: 10;
  stroke-width: 3px;
}

.shape-fill {
  stroke-miterlimit: 10;
  stroke-width: 1px;
}

/* Section Rouge */
.section-red .left-section {
  background: #f5a78b;
}

.section-red .title {
  color: #a33820;
}

.section-red .text-content {
  color: #8b3d24;
}

.section-red .shape-stroke {
  stroke: #d64916;
}

.section-red .shape-fill {
  fill: #d64916;
  stroke: #d64916;
}

/* Section Orange */
.section-orange .left-section {
  background: #fbc582;
}

.section-orange .title {
  color: #b85f07;
}

.section-orange .text-content {
  color: #9d5106;
}

.section-orange .shape-stroke {
  stroke: #f18509;
}

.section-orange .shape-fill {
  fill: #f18509;
  stroke: #f18509;
}

/* Section vert */
.section-vert .left-section {
  background: #c1cdbc;
}

.section-vert .title {
  color: #456d36;
}

.section-vert .text-content {
  color: #456d36;
}

.section-vert .shape-stroke {
  stroke: #456d36;
}

.section-vert .shape-fill {
  fill: #456d36;
  stroke: #456d36;
}

/* Section Bleu Clair */
.section-lightblue .left-section {
  background: #c5e3f7;
}

.section-lightblue .title {
  color: #6facfc;
}

.section-lightblue .text-content {
  color: #6facfc;
}

.section-lightblue .shape-stroke {
  stroke: #6facfc;
}

.section-lightblue .shape-fill {
  fill: #6facfc;
  stroke: #6facfc;
}

/* Section Bleu Foncé */
.section-darkblue .left-section {
  background: #8398cd;
}

.section-darkblue .title {
  color: #213c82;
}

.section-darkblue .text-content {
  color: #213c82;
}

.section-darkblue .shape-stroke {
  stroke: #213c82;
}

.section-darkblue .shape-fill {
  fill: #213c82;
  stroke: #213c82;
}

.S3 {
  display: none;
}

.S3.active {
  display: block;
}

.cta {
  position: absolute;
  bottom: 100px;
  font-family: "Barlow Regular";
  font-size: 24px;
  text-transform: uppercase;
  padding: 10px;
  background-color: #dbccac;
  right: 210px;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20, 20, 20, 0.2);
}

section:nth-child(1) {
  position: relative;
}

#scrollTopBtn {
  opacity: 0;
  transition: 0.1s;
}

#scrollTopBtn.active {
  opacity: 1;
}
