/* ==========================================================================
   Deux Mille — Benjamin Elleboudt
   Feuille de style de la landing page
   ========================================================================== */


/* 1. Variables
   ========================================================================== */

:root {
  /* Couleurs */
  --color-bg:        #081429;
  --color-surface:   #0d1c36;
  --color-border:    rgba(255, 255, 255, .09);
  --color-text:      #e8ecf5;
  --color-text-soft: #c9d1e3;
  --color-muted:     #9aa6bf;
  --color-success:   #35d49a;

  /* Identité : dégradé du logo */
  --color-pink:   #ff3d8b;
  --color-violet: #a24de0;
  --color-blue:   #3b5bff;
  --gradient: linear-gradient(90deg, var(--color-pink), var(--color-violet) 50%, var(--color-blue));

  /* Typographie */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Mise en page */
  --max-width: 760px;
  --radius:    14px;
}


/* 2. Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--color-bg);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 48px 16px 32px;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}


/* 3. Changement de langue
   ========================================================================== */

.lang-switch {
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}

.lang-switch:hover {
  border-color: rgba(255, 255, 255, .3);
  color: var(--color-text);
}

/* Fondu pendant la traduction */
.page {
  transition: opacity .15s ease;
}

.is-switching .page {
  opacity: 0;
}


/* 4. En-tête
   ========================================================================== */

.page {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
}

.logo {
  display: block;
  width: 170px;
  height: auto;
  margin-bottom: 32px;
}

.name {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.role {
  margin-top: 6px;
  font-size: clamp(16px, 2.4vw, 19px);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 14px;
}

.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(53, 212, 154, .15);
}

.pitch {
  max-width: 620px;
  margin-top: 28px;
  color: var(--color-text-soft);
  font-size: 17px;
  text-wrap: pretty;
}


/* 5. Valeurs
   ========================================================================== */

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: 40px;
  text-align: left;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient);
}

.card__title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
}

.card__text {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}


/* 6. Compétences
   ========================================================================== */

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 680px;
  margin-top: 32px;
  list-style: none;
}

.skills li {
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-soft);
  font-size: 13px;
}


/* 7. Contact
   ========================================================================== */

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 24px rgba(162, 77, 224, .3);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, .4);
}

.more {
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.more a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-violet);
  text-underline-offset: 3px;
}


/* 8. Pied de page
   ========================================================================== */

.footer {
  width: 100%;
  max-width: var(--max-width);
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

.footer strong {
  color: var(--color-text);
  font-weight: 700;
}


/* 9. Mobile
   ========================================================================== */

@media (max-width: 640px) {
  body {
    padding-top: 32px;
  }

  .logo {
    width: 140px;
  }

  .lang-switch {
    top: 14px;
    right: 16px;
  }

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

  .contact {
    width: 100%;
  }

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