/* ================================================
   VARIABLES — modifiez ces valeurs pour changer

   tout le thème d'un seul coup

   ================================================ */
:root {
  --bg: #0f0f0f;
  --bg-alt: #161616;
  --text: #f0f0f0;
  --text-muted: #888;
  --text-faint: #555;
  --accent: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ================================================
   RESET

   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================================================
   BASE

   ================================================ */

html {
  scroll-behavior: smooth;
}


body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

/* ================================================
   HERO

   ================================================ */
.hero {
  padding: 5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.7s ease both;
  position: relative;
  overflow: hidden;
}

#snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  opacity: 0.45;
}

.hero > *:not(#snow) {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-faint);
  margin-bottom: 1.2rem;
}

.hero-name {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ================================================
   PROJECTS SLIDER

   ================================================ */
/* ================================================
   PROJECTS SLIDER

   ================================================ */
.projects-wrapper {
  width: 100%;
  overflow: hidden;
}

.projects-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 2rem 1rem;
  scroll-behavior: smooth;
  justify-content: flex-start;
}

.projects-slider::-webkit-scrollbar {
  height: 8px;
}

.projects-slider::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.project-card {
  flex: 0 0 340px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.project-card h3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.project-card p {
  opacity: 0.8;
  line-height: 1.6;
}

.project-tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  background: #24496f;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ================================================
   BOUTONS

   ================================================ */
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.8;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ================================================
   SECTIONS

   ================================================ */
.section {
  padding: 2rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Version alternative avec couleurs différentes */
.section-alt {
  max-width: 100%;
  background: #101827;
  border-top: 1px solid rgba(120,180,255,0.15);
  border-bottom: 1px solid rgba(120,180,255,0.15);
  color: #e8f1ff;
}

/* Même contenu intérieur que section */
.section-alt > * {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* Label différent */
.section-alt .section-label {
  color: #6f91c4;
}

/* Titres */
.section-alt .about-title,
.section-alt .card-title {
  color: #ffffff;
}

/* Textes */
.section-alt .about-text,
.section-alt .card-desc,
.section-alt .meta-value,
.section-alt .contact-line {
  color: #b8c8df;
}

/* Cartes dans section-alt */
.section-alt .card {
  border-color: rgba(120,180,255,0.15);
  background: rgba(255,255,255,0.03);
}

.section-alt .card:hover {
  border-color: rgba(120,180,255,0.35);
}

/* Tags */
.section-alt .card-tag,
.section-alt .meta-label {
  color: #789acb;
}

/* Liens */
.section-alt .card-link,
.section-alt .link {
  color: #c8dcff;
}

.section-alt .card-link:hover,
.section-alt .link:hover {
  color: #ffffff;
}

/* Contenu intérieur */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-faint);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-bottom: 1rem;
}

/* ================================================
   GRILLE DE CARTES

   ================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ================================================
   CARTE

   ================================================ */
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.card-title {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--text);
}

/* ================================================
   À PROPOS

   ================================================ */
.about-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.about-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--accent);
  margin-bottom: 2rem;
}

.about-text {
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.4rem;
  max-width: 100%;
}

.about-meta {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.about-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.meta-value {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================================================
   CONTACT

   ================================================ */
.contact-line {
  font-size: 1rem;
  color: var(--text-muted);
}

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.link:hover {
  border-color: var(--text);
}

/* ================================================
   ANIMATION D'ENTRÉE

   ================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cartes : apparition progressive */
.card:nth-child(1) {
  animation: fadeUp 0.5s 0.1s ease both;
}

.card:nth-child(2) {
  animation: fadeUp 0.5s 0.2s ease both;
}

.card:nth-child(3) {
  animation: fadeUp 0.5s 0.3s ease both;
}

.card:nth-child(4) {
  animation: fadeUp 0.5s 0.4s ease both;
}

/* ================================================
   RESPONSIVE MOBILE

   ================================================ */
@media (max-width: 600px) {

  .hero {
    padding: 3rem 1.25rem;
  }

  .section {
    padding: 3rem 1.25rem;
  }

  .hero-name {
    font-size: 2.2rem;
  }

.projects-slider {
  gap: 1rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}


  .project-card {
    flex: 0 0 280px;
    padding: 1.5rem;
  }

  .hero-buttons {
    gap: 10px;
  }

  .btn {
    padding: 9px 22px;
  }

  .about-title {
    font-size: 1.8rem;
  }

  .about-text {
    font-size: 1rem;
  }

  .about-meta {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .meta-value {
    font-size: 0.9rem;
  }
}
@media (min-width: 1600px) {
  .projects-slider {
    justify-content: center;
  }
}