:root {
  --text: #0f0f0f;
  --muted: #7a7a7a;
  --accent: #1a1a1a;
  --border: #e3e3e3;
  --soft: #f8f8f8;
  --radius: 14px;
  --font: sans-serif;
  --bg: #def5;

/*Tokyo night Theme*/
  --background: #1a1b26; /*mauve foncé*/
  --foreground: #c0caf5; /*Mauve palme*/
  --selection: #283457; /*mauve semifoncé*/
  --black: #15161e;
  --red: #f7768e;
  --green: #9ece6a;
  --yellow: #e0af68;
  --blue: #7aa2f7;
  --magenta: #bb9af7;
  --cyan: #7dcfff;
  --white: #a9b1d6;
  --brightblack: #414868;
  --brightwhite: #c0caf5;
}

*{
    box-sizing: border-box ;
    margin: 0 auto;
}

body {
      margin: 0;
      padding: 0;
      font-family: var(--font);
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.6;
}

main.page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}
    header{
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 40px;
      background-color: linear-gradient(135deg, var(--selection), var(--foreground), var(--background));
    }

header.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav ul {
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

li ,a {
  list-style-type: none;
  text-decoration: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 700px) {
  nav ul {
    gap: 10px;
  }

  nav a {
    font-size: 0.85rem;
    padding: 6px 8px;
  }
}


.logo {
      font-weight: 600;
      font-size: 2rem;
      letter-spacing: 0.04em;
    }
.logo:hover{
  color:var(--foreground);
}
/* ICONS DESIGN */
.icon {
  width: 24px;
  height: 24px;
  fill: var(--background);
  margin-left: 20px;
}

.icon:hover {
  fill: var(--red);
}
.icon-nav {
  width: 24px;
  height: 24px;
  fill: var(--background);
}

.icons-ctn {
  width: 100%;
  height: 80px;
}
.icons-links{

}



.hero {
  display: grid;
  grid-template-columns: 1fr 500px;
  align-items: start;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 120px;
}


.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}


.hero-right {
  align-self: flex-start;
}


.hero h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}


.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}


.btn-cta {
  display: inline-block;
  padding: 14px 26px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.code {
  border: 2px solid var(--magenta);
  border-radius: 5px;
  height: 500px;
  width: 500px;
  background-color: var(--background);
}

.code-mainc {
  border-radius: 40px;
  border: solid 2px black;
  width: 500px;
  height: 500px;
  background-color: var(--background);
  color: var(--foreground);
}


@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    order: -1;
  }
}

    section{

      min-height: 100vh;
      margin-top: 50px;
    }

    /* SECTION */
    .section {
      margin-bottom: 100px;
      height: 100wh;
    }

    .section h2 {
      font-size: 1.8rem;
      margin-bottom: 16px;
      font-weight: 600;
      letter-spacing: -0.01em;
    }

    .section p {
      max-width: 640px;
      color: var(--muted);
      font-size: 1.05rem;
      margin-bottom: 40px;
    }

    /* CARDS */
    .cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px,1fr));
      gap: 28px;
    }

    .card {
      border: 1px solid var(--background);
      padding: 28px;
      border-radius: var(--radius);
      background: var(--brightwhite);
      transition: transform 0.2s ease;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 2px 2px 5px black, inset 0 0 10px white;
    }

    .card h3 {
      margin: 0 0 12px;
      font-size: 1.2rem;
      font-weight: 600;
    }

    .card p {
      color: var(--muted);
      font-size: 0.95rem;
      margin-bottom: 16px;
    }

    .card a {
      font-size: 0.9rem;
      color: var(--accent);
      text-decoration: none;
    }
    iframe.card-img{
        width: 100%;
        height: auto;
        overflow: hidden;
    }
    .img-soon{
      width: 100%;
        height: auto;
        overflow: hidden;
    }

    /* CTA FINAL */
    .cta {
      text-align: center;
      padding: 60px 40px;
      background: #f5f5f7;
      border-radius: var(--radius);
      margin-top: 120px;
    }

    .cta h2 {
      font-size: 2rem;
      margin-bottom: 20px;
      font-weight: 600;
    }

    .cta p {
      max-width: 520px;
      margin: 0 auto 32px;
      color: var(--muted);
      font-size: 1.05rem;
    }

    .cta a {
      display: inline-block;
      padding: 14px 28px;
      background: var(--accent);
      color: white;
      border-radius: var(--radius);
      text-decoration: none;
      font-size: 1rem;
      font-weight: 500;
    }

    /* FOOTER */
footer{
    width: auto;
    min-height: 100vh;
    margin-top: 80px;
    padding-top: 20px;
    border-top: 4px solid var(--brightblack);
    font-size: 0.9rem;
    color: var(--background);
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
#copyright{
  text-align: center;
}

.terminal {
  font-family: var(--font), monospace;
  color: var(--green);
}

.terminal span {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--green);
  width: 0;
  display: block;
  will-change: width, border-color;
  animation: typing 2s steps(30) forwards,
             blink 0.7s step-end infinite;
}

/* Ligne 1 */
.terminal div.line:nth-child(1) {
  animation-delay: 0s;
}

/* Ligne 2 */
.terminal div.line:nth-child(2) {
  animation-delay: 2.3s;
}

/* Ligne 3 */
.terminal div.line:nth-child(3) {
  animation-delay: 4.6s;
}

/* Ligne 4 */
.terminal div:nth-child(4) {
  animation-delay: 6.9s;
}

/* Écriture */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Curseur */
@keyframes blink {
  50% { border-color: transparent; }
}
