/* Base */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden;}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #0f1220;
  background: #ffffff;
}

a { color: inherit; text-decoration: none; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.sectionAlt { background: #f4f6ff; }
.center { text-align: center; }
.form { padding: 1.5rem 0; }
h1, h2, h3 { margin: 0 0 12px 0; }
p { margin: 0 0 12px 0; color: rgba(15, 18, 32, 0.78); }

/* Hero */

.hero {
  background: #0a0f2c;
  color: #ffffff;
  padding: 88px 0 72px 0;
}

.hero h1 { font-size: clamp(28px, 4vw, 44px); }
.hero p { color: rgba(207, 214, 255, 0.92); max-width: 680px; }

.heroActions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
}

.btnPrimary {
  background: #ffffff;
  color: #0a0f2c;
  font-weight: 650;
}

.btn:hover {
  cursor: pointer;
}

.btnGhost {
  border: 1px solid rgba(207, 214, 255, 0.85);
  color: #ffffff;
}

.btnGhost:hover {
  background-color: #ffffff;
  color: #0a0f2c;
}

.btn-outline {
  border: 1px solid rgba(0, 0, 0, 0);
}

.btn-outline:hover {
  background: none;
  border: 1px solid rgba(207, 214, 255, 0.85);
  color: #ffffff;
}


.dark-outline {
  border: 1px solid #0a0f2c;
  color: #0a0f2c;
  transition: all 0.3s linear;
}

.light-pdn {
  padding: 0.25rem 1rem;
  border: 1px solid #0a0f2c;
}

.dark-outline:hover,
.light-pdn:hover {
  background-color: #0a0f2c;
  color: #ffffff;
}

.mxw-600 { 
  max-width: 600px; 
  margin: 0 auto;;
}

/* Types of projects */

.types {
  min-height: 60vh;
  background: url('./assets/laptop.png');
  color: #ffffff;

  .card {
    background-color: rgba(0, 0, 0, 0.08);

    p {
      color: #ffffff !important;
    }

  }
}

/* Cards and grids */

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 880px) {
  .grid3 { grid-template-columns: 1fr; }
}

.card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.card p { margin: 8px 0 0 0; }

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
}

.panel {
  background: #ffffff;
  border: 1px dashed rgba(10, 15, 44, 0.35);
  border-radius: 14px;
  padding: 18px;
}

.panel strong { display: block; margin-bottom: 10px; }
.panel p { margin: 6px 0; }

/* Micro note */

.micro {
  margin-top: 18px;
  font-size: 0.88rem;
  opacity: 0.7;
}
.micro a { text-decoration: underline; }

/* Footer */

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 22px 0;
  background-color: #0a0f2c;
  color: #ffffff;
}

.footerInner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footerLinks {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footerLink {
  text-decoration: none !important;
  opacity: 0.7;
}
.footerLink:hover { opacity: 0.95; text-decoration: underline; }

.footerTool {
  text-decoration: none !important;
  opacity: 0.35;
}
.footerTool:hover { opacity: 0.6; text-decoration: underline; }

/* Tool page */
.toolTitle { font-size: 1.75rem; }
.toolSub { max-width: 740px; }

.toolGrid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 880px) {
  .toolGrid { grid-template-columns: 1fr; }
}

.toolCard {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
}
.toolCard:hover { border-color: rgba(0, 0, 0, 0.20); }
.toolCard small { display: block; opacity: 0.7; margin-top: 6px; }

//  Reveal on scroll

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;

  &.fadeInLeft {
    transform: translateX(-40px);
  }

  &.fadeInRight {
    transform: translateX(40px);
  }

  &.fadeInUp {
    transform: translateY(40px);
  }

  &.fadeInDown {
    transform: translateY(-40px);
  }

  &.show {
    opacity: 1;
    transform: none;
  }
}

/* Cards initial state */

.reveal .card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.show .card {
  opacity: 1;
  transform: none;
}

.slideRight {
  opacity: 0;
  transform: translateX(60px);
  transition: all 1.5s ease-out;

  &.show {
    opacity: 1;
    transform: none;
  }

}

/* Forms */

.label {
  display: block;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: .01em;
}

.row {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}

.input {
  width: 100%;
  margin: 0.5rem 0;
  padding: .85rem 1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14,165,233,.15);
}

/* Parallax */

.sectionParallax {
  position: relative;
  overflow: hidden;
  background: #0a0f2c;
  color: #ffffff;

  .container {
    position: relative;
    z-index: 2;
  }
}

.parallaxTitle { color: #ffffff; }

.sectionParallax p { color: rgba(207, 214, 255, 0.9); }

/* Le fond laptop */

.parallaxBg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: url("assets/laptop.png") no-repeat center;
  background-size: min(900px, 92vw);

  opacity: 0.9;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Voile pour lisibilité */
.sectionParallax::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 35%, rgba(10,15,44,0.15), rgba(10,15,44,0.85));
}

/* Cards dark */
.cardDark {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(207, 214, 255, 0.18);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(6px);

  h3 { color: #ffffff; }
  p { color: rgba(207, 214, 255, 0.88); margin: 8px 0 0 0; }
}

/* Illustrated Sections */

img {
  width: clamp(72px, 10vw, 140px);
  max-width: 100%;
  height: auto;
}

/* Stats */

.stats .grid h3 {
  font-size: 35px;
}

.stats .grid p {
  font-size: 20px;
  font-weight: bold;
}

/* Cli */

.cli .grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.cli .grid > *:first-child {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

/* Cloud */

.cloud .grid {
  grid-template-columns: 4fr 3fr;
}

/* Languages */

.languages .flex {
  flex-wrap: wrap;
}

.languages .card {
  text-align: center;
  margin: 18px 10px 40px;
  transition: transform 0.2s ease-in;
}

.languages .card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.languages .card:hover {
  transform: translateY(-15px);
}

/* Features */

.features-head img,
.docs-head img {
  width: 200px;
  justify-self: flex-end;
}

.sectionAlt img {
  width: 300px;
  justify-self: flex-end;
}

.contact {
  background-color: #0a0f2c;

  h2, p {
    color: #ffffff;
  }

  img {
    width: 300px;
    justify-self: flex-end;
  } 
}

.callUs p {
  margin-bottom: 2rem;
}

.features-main .card > i {
  margin-right: 20px;
}

.features-main .grid {
  padding: 30px;
}

.features-main .grid > *:first-child {
  grid-column: 1 / span 3;
}

.features-main .grid > *:nth-child(2) {
  grid-column: 1 / span 2;
}

/* Docs */

.docs-main h3 {
  margin: 20px 0;
}

.docs-main .grid {
  grid-template-columns: 1fr 2fr;
  align-items: flex-start;
}

.docs-main nav li {
  font-size: 17px;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px #ccc solid;
}

.docs-main a:hover {
  font-weight: bold;
}

/* Tablets and under */

@media (max-width: 768px) {
  .sectionAlt .grid,
  .contact .grid,
  .showcase .grid,
  .stats .grid,
  .cli .grid,
  .cloud .grid,
  .features-main .grid,
  .docs-main .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .cli .grid > *:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .features-head,
  .sectionAlt,
  .contact,
  .docs-head {
    text-align: center;
  }

  .features-head img,
  .sectionAlt img,
  .contact img,
  .docs-head img {
    justify-self: center;
  }

  .features-main .grid > *:first-child,
  .features-main .grid > *:nth-child(2) {
    grid-column: 1;
  }
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* equivalent to:  grid-template-columns: 1fr 1fr */
    gap: 20px;
    /* we need to add a height to the grid to see the alignement */
    justify-content: center;
    align-items: center;
    height: 100%;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr); /* 3 even grid columns */
}

.text-center {
    text-align: center;
}
  
/* Margin */

.my-1 {
    margin: 1rem 0;
  }
  
.my-2 {
    margin: 1.5rem 0;
}

.my-3 {
    margin: 2rem 0;
}

.my-4 {
    margin: 3rem 0;
}

.my-5 {
    margin: 4rem 0;
}

.m-1 {
    margin: 1rem;
}

.m-2 {
margin: 1.5rem;
}

.m-3 {
margin: 2rem;
}

.m-4 {
margin: 3rem;
}

.m-5 {
margin: 4rem;
}

/* Padding */

.py-1 {
    padding: 1rem 0;
}
  
.py-2 {
    padding: 1.5rem 0;
}
  
.py-3 {
    padding: 2rem 0;
}
  
.py-4 {
    padding: 3rem 0;
}
  
.py-5 {
    padding: 4rem 0;
}
  
.p-1 {
    padding: 1rem;
}
  
.p-2 {
    padding: 1.5rem;
}
  
.p-3 {
    padding: 2rem;
}
  
.p-4 {
    padding: 3rem;
}
  
.p-5 {
    padding: 4rem;
}
  
/* Backgrounds & colored buttons */

.bg-primary,
.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.bg-secondary,
.btn-secondary {
  background-color: var(--secondary-color);
  color: #fff;
}

.bg-dark,
.btn-dark {
  background-color: var(--dark-color);
  color: #fff;
}

.bg-light,
.btn-light {
  background-color: var(--light-color);
  color: #333;
}

.bg-primary a,
.btn-primary a,
.bg-secondary a,
.btn-secondary a,
.bg-dark a,
.btn-dark a {
  color: #fff;
}

fa-icon {
  font-size: 3rem;
  color: #0a0f2c;
}