@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=JetBrains+Mono:wght@400;700&display=swap");
@font-face {
  font-family: "Blendher";
  src: url("./ressources/fonts/Blend\ Her.otf") format("truetype");
}
@font-face {
  font-family: "Angleblock";
  src: url("./ressources/fonts/angleblock.ttf") format("truetype");
}

:root {
  --bg: #f0e8dc; /* crème chaud — fond principal */
  --surface: #e8ddd0; /* crème légèrement plus foncé */
  --card: #ede3d5; /* cartes */
  --border: #c9b99a; /* séparateurs */
  --accent: #8a6a1a; /* or/olive — couleur principale */
  --accent2: #5c3d11; /* brun foncé */
  --text: #2c1e0f; /* brun très foncé — texte principal */
  --muted: #7a6350; /* brun moyen — texte secondaire */
  --mono: "JetBrains Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --display: "Bebas Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain texture subtile par-dessus tout */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 1rem;
  background: #ffffff;
  opacity: 0.9;
  /* backdrop-filter: blur(12px); */
  /* border-bottom: 1px solid transparent; */
  transition: border-color 0.3s;
}

.nav-logo {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  background-color: #ffffff;
  padding: 1.5%;

  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-link-item {
  display: inline-block;
  padding: 0.3rem 0.6rem; /* Un padding propre pour créer le bouton */
  border-radius: 3px;
  background: transparent;
  transition: background-color 0.2s, color 0.2s;
}
.nav-link-item:hover {
  color: #ffffff;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #714bdd;
  border: 1px solid;
  border-color: #714bdd;
  border-radius: 3px;
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.link-red {
  color: #e43242;
}
.link-red:hover {
  background-color: #e43242;
}
.link-purple {
  color: #714bdd;
}
.link-purple:hover {
  background-color: #714bdd;
}
.link-blue {
  color: #3282e4; 
}
.link-blue:hover {
  background-color: #3282e4;
}
.link-yellow {
  color: #e4b432;
}
.link-yellow:hover {
  background-color: #e4b432;
}
.nav-cta:hover {
  background: #714bdd;
  color: #ffffff;
}
/* ── HIRE ME MODAL ── */
#hire-modal {
  border: none;
  border-radius: 4px;
  padding: 0;
  background: var(--card);
  width: min(520px, 90vw);
  box-shadow: 0 8px 40px rgba(44, 30, 15, 0.18);
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

#hire-modal::backdrop {
  background: rgba(44, 30, 15, 0.45);
  backdrop-filter: blur(4px);
}

#hire-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.5rem;
  position: relative;
}

#hire-form h2 {
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

#hire-form label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -0.6rem;
}

#hire-form input,
#hire-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

#hire-form input:focus,
#hire-form textarea:focus {
  border-color: #714bdd;
}

#hire-form button[type="submit"] {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #714bdd;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.2s;
  margin-top: 0.25rem;
}

#hire-form button[type="submit"]:hover {
  background: #5a3ab8;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text);
}

#form-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-height: 1rem;
}
/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 3rem;
  background: linear-gradient(to top, #bbedf5, #7bedfe);
}
.plane {
  position: absolute;
  top: 50%;
  left: 0%;
  z-index: 0;
}
.hand {
  position: absolute;
  scale: 1.5;
  bottom: 10%;
  left: 55%;
  z-index: 5;
}
#clouds-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2; /* derrière votre contenu */
  overflow: hidden;
}
.cloud {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  max-width: 300px; /* ou la taille que tu veux */
}
.hero-content {
  position: relative;
  z-index: 2;
  margin-left: 5%;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h1.hero-name {
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 9rem); /* massif comme le "still" de Grainwell */
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

h1.hero-name .accent {
  color: var(--accent);
}

.hero-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 40ch;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}


.btn-primary {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  
  background: #ffffff; 
  border: none;
  
  padding: 0.9rem 2rem;
  cursor: pointer;
  border-radius: 2px;
  

  transition: background-color 0.2s, color 0.2s;
}


.btn-primary:hover {
  color: #ffffff !important;
}
.btn-primary.link-red {
  color: #e43242;
}
.btn-primary.link-red:hover {
  background-color: #e43242;
}

.btn-primary.link-purple {
  color: #714bdd;
}
.btn-primary.link-purple:hover {
  background-color: #714bdd;
}
.btn-outline {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.9rem 2rem;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2px;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--text);
  color: var(--text);
  transform: translateY(-2px);
}

/* ── SECTIONS — base ── */
section {
  padding: 6rem 4rem;
  position: relative;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 3.5rem;
  color: var(--text);
}
/* ── PORTRAIT ── */
#portrait {
  background-color: #7bedfe;
  position: relative;
  height: 120vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.background-portrait {
  position: absolute;
  z-index: 4;
  filter: drop-shadow(0 0 110px rgba(255, 255, 255, 1));
  scale: 1.5;
  bottom: 0;
  pointer-events: none;
}

/* ─── Clouds ─── */
.clouds {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

#cloud1 {
  top: 10%;
  left: 3%;
  animation: float1 6s ease-in-out infinite;
}
#cloud2 {
  top: 33%;
  left: 22%;
  animation: float2 8s ease-in-out infinite;
}
#cloud3 {
  left: 55%;
  top: 10%;
  animation: float3 7s ease-in-out infinite;
}
#cloud4 {
  left: 75%;
  top: 38%;
  animation: float1 9s ease-in-out infinite reverse;
}

@keyframes float1 {
  0% {
    transform: translate(0px, 0px);
  }
  33% {
    transform: translate(6px, -8px);
  }
  66% {
    transform: translate(-4px, 5px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}
@keyframes float2 {
  0% {
    transform: translate(0px, 0px);
  }
  33% {
    transform: translate(-7px, 6px);
  }
  66% {
    transform: translate(5px, -4px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}
@keyframes float3 {
  0% {
    transform: translate(0px, 0px);
  }
  25% {
    transform: translate(4px, -6px);
  }
  50% {
    transform: translate(-6px, -3px);
  }
  75% {
    transform: translate(3px, 7px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

.clouds img {
  width: 25rem;
  z-index: 10;
  position: relative;
  pointer-events: none;
}

/* ─── Button portrait ─── */
.button-portrait {
  width: 17rem;
  z-index: 9;
  border-radius: 20px;
  padding-top: 2rem;
  margin-top: -4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  cursor: pointer;


  height: fit-content;


  max-height: 8rem;

  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.35s ease;
}

#blue {
  background-color: #016beb;
}
#red {
  background-color: #e43242;
}
#yellow {
  background-color: #eac435;
}
#purple {
  background-color: #714bdd;
}

/* ─── Hover sur le nuage ─── */
.clouds:hover .button-portrait {
  max-height: 50rem;
}

/* ─── Label & contenu ─── */
.btn-label {
  color: white;
  padding-left: 5%;
  padding-top: 2%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.btn-label h1 {
  font-size: 2rem;
  margin: 0;
}

.btn-label p {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding-bottom: 0%;
  padding-right: 3%;

  /* Transition fluide pour l'apparition et la disparition du texte */
  transition:
    opacity 0.2s ease,
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.4s ease;
}

.clouds:hover .btn-label p {
  padding-bottom: 5%;
  opacity: 1;
  /* Même logique ici : une valeur max-height sécurisée */
  max-height: 40rem;
}

/* ─── Down arrow ─── */
.down-arrow {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.clouds:hover .down-arrow {
  opacity: 0;
}

/* ─── Divers ─── */
.portrait-text {
  position: absolute;
  top: 35rem;
  z-index: 8;
  color: #c28024;
}
/* ── ABOUT ── */
#about {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-right {
  display: flex;
  gap: 2%;
  align-self: stretch;
}
.about-stats-reveal-1,
.about-stats-reveal-2 {
  /* supprime position/top/left */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  flex: 1; /* chaque tableau prend la même largeur */
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: start;
}
.logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10rem;
  gap: 3%;
  padding: 1%;
  border-radius: 4px;
  background-color: #f0e8dc;
}
.stat-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
}
.about-text p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
#white-text {
  color: white;
}
#blue-text {
  color: #016beb;
}
#red-text {
  color: #e43242;
}
#yellow-text {
  color: #e7b948;
}
#purple-text {
  color: #714bdd;
}
.about-text .hi {
  color: var(--text);
  font-weight: 500;
}

.about-stats {
  border: 2px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.stat {
  background: var(--card);
  padding: 2rem;
  height: 9rem;
}

.stat-num {
  font-family: var(--display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.4rem;
}
.logo img {
  align-items: center;
  justify-content: center;
  width: 7rem;
  height: 7rem;
}
.logo button {
  border-style: none;
  background: none;
}
#too-big {
  width: 5rem;
  height: 5rem;
}
.lang-flags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.lang-tag {
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.08em;
}

.lang-tag.strong {
  border-color: #e7b948;
  border-width: 3px;
  color: var(--accent);
}

/* ── SKILLS ── */
#skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
}

.skill-col {
  border-top: 2px solid var(--text);
  padding-top: 1.5rem;
}

.skill-col-title {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-item {
  margin-bottom: 1.2rem;
}

.skill-name {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
}

.skill-lvl {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.skill-bar {
  height: 3px;
  background: var(--border);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  transform: scaleX(0);
  transform-origin: left;
  animation: fillBar 1s ease forwards;
  animation-play-state: paused;
}
#advanced {
  background-color: #016beb;
}
#intermediate {
  background-color: #e43242;
}
#learning {
  background-color: #e7b948;
}
#coming {
  background-color: #714bdd;
}

.skill-fill.animate {
  animation-play-state: running;
}

@keyframes fillBar {
  to {
    transform: scaleX(1);
  }
}

.soon {
  color: var(--muted);
  font-style: italic;
  opacity: 0.6;
  font-size: 0.65rem;
}
/* ── MOODBOARD ── */
#moodboard {
  background-color: #7bedfe;
  height: 100vh;
}
/* .moodcard {
  background-color: white;
  padding-top: 1%;
  padding-left: 1%;
  padding-right: 1%;
  padding-bottom: 3%;
  height: fit-content;
  width: fit-content;
}
.moodcard img {
  border-radius: 3px;
  height: 13rem;
  width: 13rem;
} */
/* ── EXPERIENCE ── */
#experience {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.swipe-responsive{
  display: none;
}

/* --- Layout côte à côte ------------------------------------ */
.experience-inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* ── CAROUSEL ──────────────────────────────────────────────── */
.carousel {
  position: sticky;
  top: 2rem;
  align-self: flex-start;
  flex-shrink: 0;
  width: 25rem;
}

.carousel-track-wrapper {
  width: 30rem;
  height: 40rem;
  border-radius: 300px 300px 12px 12px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-slide h1 {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-family: var(--display);
  font-size: 2.5rem;
  margin: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ── TIMELINE ───────────────────────────────────────────────── */
.timeline {
  flex: 1;
  position: relative;
  margin-left: 10rem;
  overflow-y: auto;
  height: 600px;
  scrollbar-width: thin;
  scrollbar-color: transparent;
}

.tl-item {
  padding-left: 4rem;
  padding-bottom: 3rem;
  height: 20rem;
  position: relative;
  transition: opacity 0.3s ease;
}

.tl-item:last-child {
  padding-bottom: 0;
}

#dot-red {
  background-color: #e43242;
}
#dot-blue {
  background-color: #016beb;
}
#dot-yellow {
  background-color: #e7b948;
}
#dot-purple {
  background-color: #714bdd;
}

.tl-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.tl-role {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.tl-org {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.tl-desc {
  color: var(--muted);
  line-height: 1.75;
  max-width: 60ch;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tl-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  color: var(--muted);
}
/* ── EDUCATION ── */
#education {
  background: var(--bg);
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

/* ── Carte ── */
.edu-card {
  background: var(--card);
  padding: 2rem 4rem;
  position: relative;
  overflow: hidden;
  transform: translateY(-60px);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease,
    background 0.3s;
}

.edu-card:nth-child(1) {
  transition-delay: 0s;
}
.edu-card:nth-child(2) {
  transition-delay: 0.12s;
}
.edu-card:nth-child(3) {
  transition-delay: 0.24s;
}
.edu-card:nth-child(4) {
  transition-delay: 0.36s;
}
.edu-card:nth-child(5) {
  transition-delay: 0.48s;
}
.edu-card:nth-child(6) {
  transition-delay: 0.6s;
}

.edu-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.edu-card:hover {
  background: var(--surface);
}

/* ── Barre colorée ── */
.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.edu-card:nth-child(1)::before {
  transition-delay: 0.1s;
}
.edu-card:nth-child(2)::before {
  transition-delay: 0.22s;
}
.edu-card:nth-child(3)::before {
  transition-delay: 0.34s;
}
.edu-card:nth-child(4)::before {
  transition-delay: 0.46s;
}
.edu-card:nth-child(5)::before {
  transition-delay: 0.58s;
}
.edu-card:nth-child(6)::before {
  transition-delay: 0.7s;
}

.edu-card--blue::before {
  background: #016beb;
}
.edu-card--red::before {
  background: #e43242;
}
.edu-card--yellow::before {
  background: #e7b948;
}
.edu-card--purple::before {
  background: #714bdd;
}

.edu-card.visible::before {
  transform: scaleY(1);
}

/* ── Textes ── */
.edu-year {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.edu-school {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.edu-degree {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── CONTACT ── */
#contact {
  background-color: #7bedfe;
  text-align: center;
  overflow: hidden;
}
.cloud-background {
  scale: 1;
  transform: scaleX(1.5);
  pointer-events: none;
  z-index: 1;
  position: absolute;
  left: -20%;
}
#contact-label {
  color: white;
}
#contact .section-label::after {
  background: white;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-headline {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.contact-headline span {
  margin: 0%;
  padding: 0%;
}

.contact-sub {
  font-size: large;
  color: white;
  margin-bottom: 3rem;
  line-height: 1.75;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Le socle commun pour TOUTES les cartes (liens ET bouton email) */
.contact-card {
  border-radius: 30px;
  /* On garde tes styles de base */
  background:#ffffff;
  padding: 1rem 1.5rem;
  font-family: var(--mono);
  font-size: 1rem;
  text-decoration: none;
  
  /* Alignement parfait */
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  
  /* Reset des bordures natives pour le bouton */
  border: 1px solid transparent; 
  
  /* Transitions fluides */
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

/* Effet Hover Global : le texte devient blanc pur */
.contact-card:hover {
  color: #ffffff !important;
}

/* Style des petites icônes (elles prennent la couleur du texte par défaut) */
.contact-card .ci {
  font-size: 1rem;
  transition: color 0.2s;
}

/* --- Déclinaisons des 4 couleurs à l'état normal --- */
.contact-card.link-red    { color: #e43242; }
.contact-card.link-blue   { color: #3282e4; }
.contact-card.link-purple { color: #714bdd; }
.contact-card.link-yellow { color: #e4b432; }

/* --- Comportement au Hover pour chaque couleur --- */
.contact-card.link-red:hover {
  background-color: #e43242;
  border-color: #e43242;
}

.contact-card.link-blue:hover {
  background-color: #3282e4;
  border-color: #3282e4;
}

.contact-card.link-purple:hover {
  background-color: #714bdd;
  border-color: #714bdd;
}

.contact-card.link-yellow:hover {
  background-color: #e4b432;
  border-color: #e4b432;
}

/* On garde tes styles pour le bouton principal du formulaire de contact */
#contact .btn-primary {
  background: var(--accent);
  color: var(--bg);
}

#contact .btn-primary:hover {
  background: #a07820;
}

/* ── FOOTER ── */
footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.footer-back {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-back:hover {
  color: var(--text);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  #hero {
    grid-template-columns: 1fr;
    padding: 7rem 1.5rem 4rem;
  }
  section {
    padding: 4rem 1.5rem;
  }
  .about-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .carousel-btn {
    width: 34px;
    height: 34px;
  }
  .carousel-btn svg {
    width: 14px;
    height: 14px;
  }
}
