@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SFProDisplay-Regular.eot");
  src: url("assets/fonts/SFProDisplay-Regular.eot?#iefix") format("embedded-opentype"),
       url("assets/fonts/SFProDisplay-Regular.woff2") format("woff2"),
       url("assets/fonts/SFProDisplay-Regular.woff") format("woff"),
       url("assets/fonts/SFProDisplay-Regular.ttf") format("truetype"),
       url("assets/fonts/SFProDisplay-Regular.svg#SFProDisplay-Regular") format("svg");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("assets/fonts/SFProDisplay-Thin.eot");
  src: url("assets/fonts/SFProDisplay-Thin.eot?#iefix") format("embedded-opentype"),
       url("assets/fonts/SFProDisplay-Thin.woff2") format("woff2"),
       url("assets/fonts/SFProDisplay-Thin.woff") format("woff"),
       url("assets/fonts/SFProDisplay-Thin.ttf") format("truetype"),
       url("assets/fonts/SFProDisplay-Thin.svg#SFProDisplay-Thin") format("svg");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base / Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "SF Pro Display", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

textarea { resize: none; }

:root{
  --card-bg: rgba(245,245,245,0.70);
  --card-border: rgba(255,255,255,0.85);
  --shadow: 0 0 1px 0 rgba(24, 94, 224, 0.15), 0 6px 12px 0 rgba(24, 94, 224, 0.15);
  --pill-bg: rgba(245,245,245,0.68);
  --pill-bg-strong: rgba(248,248,248,0.95);
  --text-muted: #848484;
  --primary: #0091FF;
}

/* ---------- Background ---------- */
body{
  min-height: 100dvh;
  width: 100%;
  background:
    radial-gradient(900px 650px at 18% 82%, rgba(92, 170, 196, 0.75) 0%, rgba(137, 208, 231, 0) 70%),
    radial-gradient(900px 750px at 85% 45%, rgba(154, 138, 203, 0.60) 0%, rgba(154, 138, 203, 0) 72%),
    radial-gradient(600px 500px at 50% 55%, rgba(180, 210, 220, 0.35) 0%, rgba(180, 210, 220, 0) 70%),
    linear-gradient(180deg, #cfe9f7 0%, #d7e6e3 100%);
}

/* ---------- App container injected in #homePage ---------- */
#homePage{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 200px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: opacity 0.3s ease;
}

#homePage.fade-out {
  opacity: 0;
}

iframe {
  width: 100%;
  height: 600px;
  border-radius: 8px;
}

/* Text defaults */
p, ul{
  padding: 0;
  margin: 0;
  color: white;
}

/* ---------- Accueil ---------- */
.div-text{
  position: fixed;
  bottom: clamp(16px, 4vw, 40px);
  left: clamp(16px, 4vw, 40px);
  max-width: min(900px, 90vw);
}

.title{
  font-size: clamp(3rem, 6vw, 6rem);
}

.s-title{
  font-size: clamp(1.125rem, 1.25rem, 1.5rem);
  font-weight: 200;
  line-height: 1.35;
}

/* ---------- Navbar (top centered) ---------- */
.header-nav{
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.tabs{
  display: flex;
  position: relative;
  background-color: var(--pill-bg);
  box-shadow: var(--shadow);
  padding: 0.75rem;
  border-radius: 999px;
}

.tabs * { z-index: 2; }

.container input[type="radio"] { display: none; }

.tab{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 100px;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: color 150ms ease-in;
}

.container input[type="radio"]:checked + label { color: var(--text-muted); }

.container input[id="radio-1"]:checked ~ .glider { transform: translateX(0); }
.container input[id="radio-2"]:checked ~ .glider { transform: translateX(100%); }
.container input[id="radio-3"]:checked ~ .glider { transform: translateX(200%); }

.glider{
  position: absolute;
  height: 50px;
  width: 98px;
  background-color: var(--pill-bg-strong);
  border: 1px solid var(--card-border);
  z-index: 1;
  border-radius: 999px;
  transition: 250ms ease-out;
}

/* ---------- Projets ---------- */
.project-description {
  display: flex;
  flex-direction: column;
  height: 100%; /* Important */
}

.project-header {
  display: flex;
  gap: 2%;
  align-items: center;
}

.project-description-img {
  width: 128px;
  height: 128px;
  border-radius: 25px;
}

.project-button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1; /* Prend tout l'espace restant */
}

.btn-89 {
  width: 700px;
  height: 300px;
  transition: all 0.2s;
  position: relative;
  background: none;
  outline: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  padding: 0;
}

.button_text_89 {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #5c5c5c;
}

.circle_89 {
  width: 20px;
  height: 20px;
  background: radial-gradient(#0077ff, #e600ff);
  border-radius: 50%;
  position: absolute;
  animation: move_up_89 2s ease-in infinite alternate-reverse;
}

.circle_89:nth-child(1) {
  top: 8px;
  left: 7px;
}

.circle_89:nth-child(2) {
  bottom: 0px;
  right: 0px;
  animation-name: move_down_89;
}

@keyframes move_up_89 {
  100% {
    transform: translateY(-10px);
  }
}

@keyframes move_down_89 {
  100% {
    transform: translateY(5px);
  }
}

.div-projets{
  display: flex;
  width: 100%;
  gap: clamp(16px, 4vw, 48px);
  align-items: stretch;
}

/* Left card */
.div-projets p{ color: black; }

.div-p-main{
  width: min(320px, 100%);
  max-height: 350px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--card-bg);
  border-radius: 34px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  padding-bottom: 12px;
}

.div-para{
  margin-top: 12px;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 272px;
  padding: 8px 8px 12px 8px;
}

.p-title{ font-weight: 600; }

.container-p{ width: 100%; }

.tabs-projet{
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0.75rem;
  border-radius: 20px;
  align-items: center;
  gap: 8px;
}

.tabs-projet * { z-index: 2; }

.container-p input[type="radio"]{ display: none; }

.tab-p{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 220px;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: color 150ms ease-in;
}

.container-p input[id="radio-1-p"]:checked ~ .glider-p { transform: translateY(0px); }
.container-p input[id="radio-2-p"]:checked ~ .glider-p { transform: translateY(58px); }
.container-p input[id="radio-3-p"]:checked ~ .glider-p { transform: translateY(116px); }
.container-p input[id="radio-4-p"]:checked ~ .glider-p { transform: translateY(174px); }
.container-p input[id="radio-5-p"]:checked ~ .glider-p { transform: translateY(232px); }
.container-p input[id="radio-6-p"]:checked ~ .glider-p { transform: translateY(290px); }

.glider-p{
  position: absolute;
  height: 50px;
  width: 220px;
  background-color: var(--pill-bg-strong);
  border: 1px solid var(--card-border);
  z-index: 1;
  border-radius: 999px;
  transition: 250ms ease-out;
  top: 0.75rem;
}

/* Right panel */
#projectPage{
  flex: 1;
  min-height: 520px;
  width: 100%;
  background-color: var(--card-bg);
  border-radius: 34px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ---------- Contact ---------- */
.div-contact{
  display: flex;
  justify-content: center;
  width: 100%;
}

.div-c-main{
  width: min(772px, calc(100% - 32px));
  min-height: 520px;
  height: auto;
  display: flex;
  background-color: white;
  border-radius: 26px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}

.form{
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.form input[type="text"]{
  font-size: 16px;   /* avoids iOS zoom */
  height: 52px;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 0 10px;
  outline: none;
  background: transparent;
}

#msg{
  min-height: 220px;
  height: auto;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 16px;
  font-family: "SF Pro Display";
  background: transparent;
}

#msg::placeholder { color: #d6d6d6; }

.submit{
  color: white;
  background-color: var(--primary);
  font-size: 1.05rem;
  width: min(280px, 90%);
  height: 52px;
  border: 1px solid #dfdfdf;
  border-radius: 20px;
  margin: 8px auto 0;
  cursor: pointer;
  transition: 300ms;
}

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

.submit:disabled{
  background-color: #cfe9f7;
  cursor: not-allowed;
  opacity: 0.85;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  #homePage{
    width: min(1000px, calc(100% - 24px));
    padding-top: 150px;
    gap: 24px;
  }

  .div-projets{
    flex-direction: column;
  }

  .div-p-main{
    width: 100%;
    min-height: auto;
  }

  #projectPage{
    min-height: 420px;
  }
}

@media (max-width: 700px){
  .tabs{ transform: scale(0.85); transform-origin: center; }
}

@media (max-width: 520px){
  .tabs{ transform: scale(0.75); }
  .tab{ width: 90px; font-size: 1rem; }
  .glider{ width: 88px; }
}
