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

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(
    135deg,
    #f2caca 0%,
    #f6dede 35%,
    #f4efea 65%,
    #fafafa 100%
  );
  color: #444;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p,
a,
span,
li,
button {
  max-width: 100%;
  overflow-wrap: break-word;
}

.logo,
.intro-text,
.about-text,
.parcours-text,
.skills-text,
.project-overlay-content,
.contact-text,
.contact-item,
.skill-card,
.menu li {
  min-width: 0;
}

.intro-content,
.parcours-content,
.skills-content,
.navbar,
.menu,
.projects-grid,
.skills-grid,
.contact-links {
  min-width: 0;
}

a,
button {
  font: inherit;
}

section[id] {
  scroll-margin-top: 120px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 20px;
  background: #ffffff;
  color: #111;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 2000;
}

.skip-link:focus {
  top: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 20px;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.navbar {
  position: relative;
  width: calc(100% - 40px);
  max-width: 760px;
  min-height: 64px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  gap: 24px;
  border-radius: 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.18)
  );
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: clamp(42px, 9vw, 72px);
  width: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #333;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 18px;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 900;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu a {
  text-decoration: none;
  color: #3f3f3f;
  font-weight: 700;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #c48a7a;
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a:focus-visible::after,
.menu a.active::after {
  width: 100%;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.active {
  color: #9f6455;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
  border-radius: 8px;
}

/* section intro */
.intro {
  background-color: #f4efea;
  padding: 160px 0 100px;
  position: relative;
  overflow: visible;
}

.intro .container {
  padding-top: 50px;
}

.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  pointer-events: none;
}

.intro-content {
  display: flex;
  align-items: center;
  gap: 80px;
  overflow: visible;
}

.intro-text {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.intro-kicker {
  color: #6e3f32;
}

.section-kicker,
.parcours-subtitle,
.projects-subtitle {
  color: #9f6455;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: clamp(12px, 2.8vw, 14px);
  margin-bottom: 14px;
}

.intro-text h1 {
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 900;
  margin: 0 0 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #1f1f1f, #4a4a4a, #1f1f1f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3),
    0 6px 20px rgba(0, 0, 0, 0.15);
}

.intro-text p {
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  margin-top: 30px;
  background-color: #f6d6d6;
  padding: 14px 32px;
  text-decoration: none;
  color: #333;
  border-radius: 10px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: #e9bcbc;
  transform: translateY(-2px);
}

.intro-image {
  display: flex;
  justify-content: center;
}

.intro-photo-wrapper {
  position: relative;
  width: clamp(140px, 45vw, 240px);
  aspect-ratio: 1 / 1;
}

/* shape créé directement par le wrapper */
.intro-photo-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #f6d6d6;

  transform: translate(12%, 12%);
  z-index: 1;
}

.intro-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.intro-photo:hover {
  transform: scale(1.05);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* section à propos */
.about {
  padding: 110px 0;
  background: linear-gradient(180deg, #fafafa 0%, #f7f1ec 100%);
}

.about-content {
  display: flex;
  justify-content: center;
}

.about-text {
  max-width: 820px;
  padding: 42px 48px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.about-text h3,
.parcours-text h3,
.skills-text h3,
.projects h3,
.contact h3 {
  font-size: clamp(24px, 5vw, 40px);
  margin: 0 0 20px;
  line-height: 1.2;
  color: #222;
}

.about-text p {
  margin-bottom: 18px;
  color: #555;
}

.about-intro {
  margin: 20px 0 30px;
  font-weight: 500;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 25px;
  align-items: stretch;
}

.about-block {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(246, 214, 214, 0.35),
    rgba(244, 239, 234, 0.7)
  );
  padding: 22px;
  border-radius: 18px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  transform-style: preserve-3d;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  animation: aboutFloat 4s ease-in-out infinite;
}

.about-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--x) var(--y),
    rgba(255, 255, 255, 0.4),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
}

.about-block:hover::before {
  opacity: 1;
}

.about-block:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.about-block h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #9f6455;
}

@keyframes aboutFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* section Parcours */

.parcours {
  padding: 120px 0;
  background: linear-gradient(180deg, #fffaf7 0%, #f6eeee 100%);
}

.parcours-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.parcours-image {
  position: relative;
  flex-shrink: 0;
  padding-left: 60px;
}

.parcours-image::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: #f6d6d6;
  border-radius: 50%;
  top: -40px;
  left: -40px;
  z-index: -1;
  opacity: 0.5;
}

.parcours-image img {
  max-width: 340px;
  width: 100%;
  border-radius: 20px;
}

.parcours-text {
  max-width: 560px;
  width: 100%;
  flex: 1;
  padding: 40px 45px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.parcours-text h2::after {
  content: "";
  display: block;
  max-width: 470px;
  width: 100%;
  height: 3px;
  background: #d9a9a9;
  margin-top: 18px;
  border-radius: 2px;
}

.parcours-text p {
  line-height: 1.9;
  margin-bottom: 18px;
  color: #555;
}

.parcours-subtitle {
  color: #d9a9a9;
}

/* section compétences */

.skills {
  padding: 120px 0;
}

.skills-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.skills-text {
  flex: 0 0 400px;
}

.skills-text p {
  line-height: 1.8;
  color: #444;
}

.skills-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  min-width: 0;
}

.skill-card {
  height: 180px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #222;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  background: linear-gradient(160deg, #e9cfcf, #e6dada);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
}

.skill-card:hover,
.skill-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.skill-icon {
  width: clamp(40px, 8vw, 70px);
  height: clamp(40px, 8vw, 70px);
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.skill-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  max-width: 100%;
}

.skill-card span {
  font-weight: 700;
  font-size: clamp(12px, 3.2vw, 16px);
}

/* section projets */

.projects {
  padding: 120px 0;
  background: linear-gradient(180deg, #e8ded4 0%, #efe7df 50%, #f4efea 100%);
}

.projects h2 {
  max-width: 700px;
}

.projects h2::after {
  content: "";
  display: block;
  max-width: 450px;
  width: 100%;
  height: 3px;
  background: #9f6455;
  margin-top: 18px;
  border-radius: 2px;
}

.projects-subtitle {
  margin-bottom: 10px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  width: 100%;
  height: auto;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.project-card img {
  width: 100%;
  height: 100%;

  object-position: top center;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.project-overlay-content {
  padding: 24px;
  max-width: 90%;
  text-align: center;
}

.project-overlay-content h3 {
  margin: 0 0 16px;
  font-size: 24px;
  color: #fff;
}

.project-overlay-content p {
  margin: 0 0 12px;
  color: #f5f5f5;
  font-size: 13px;
  line-height: 1.6;
}

.project-card:hover img,
.project-card:focus-within img {
  transform: scale(1.05);
  filter: blur(4px);
}

.project-card:hover .project-overlay,
.project-card:focus-within .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.project-links a {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 16px;

  background: #f6d6d6;
  color: #333;

  text-decoration: none;
  font-weight: 600;

  transition: all 0.2s ease;
}

.project-links a:hover,
.project-links a:focus-visible {
  background: #e9bcbc;
  transform: translateY(-2px);
}

/* section contact */
.contact {
  padding: 80px 20px;
  background: linear-gradient(to bottom, #f6d6d6, #f4efea);
}

.contact * {
  max-width: 100%;
  box-sizing: border-box;
}

.contact-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  width: fit-content;
  margin: 0 auto 20px;
  text-align: center;
}

.contact h2::after {
  margin: 12px auto 0;
  content: "";
  display: block;
  max-width: 180px;
  width: 100%;
  max-width: 180px;
  height: 3px;
  background: #d9a9a9;
  margin-top: 18px;
  border-radius: 2px;
}

.contact-text {
  max-width: 640px;
  color: #555;
  margin: 0 auto 40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;

  width: fit-content;
  max-width: 100%;

  margin: 0 auto;
  padding: 12px;
  border-radius: 20px;

  background: #fff;
  color: #333;

  text-decoration: none;
  font-weight: 700;

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

.contact-item:hover,
.contact-item:focus-visible {
  background: #f7eeee;
  transform: translateY(-2px);
}

.contact-item img {
  width: 20px;
  height: 20px;
}

/* sécurité responsive */
.contact-container,
.contact-form,
.contact-links,
.contact-row,
.contact-options {
  min-width: 0;
}

.contact-item,
.contact-option,
.contact-form input,
.contact-form textarea,
.contact-submit {
  max-width: 100%;
  box-sizing: border-box;
}

/**** FORMULAIRE CONTACT ****/
.contact-form {
  margin-top: 50px;
  padding: 40px;
  width: 100%;
  box-sizing: border-box;

  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  display: flex;
  flex-direction: column;
  gap: 0;

  overflow: hidden;
  align-items: stretch;
}

.contact-form > * {
  width: 100%;
}

/* champs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  font-family: inherit;
  font-size: 15px;
  color: #333;
  outline: none;
  transition: 0.3s;
  box-sizing: border-box;
}

/* focus */
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: #111;
  outline: 3px solid #111;
  outline-offset: 3px;
  background: rgba(255, 255, 255, 0.95);
}

/* ligne email + tel */
.contact-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-row .field {
  flex: 1;
  min-width: 0;
}

.contact-form > .field:first-of-type {
  margin-bottom: 20px;
}

.contact-form > .field:last-of-type {
  margin-bottom: 20px;
}

.contact-row input {
  flex: 1;
  min-width: 0;
}

/* titre besoins */
.contact-subtitle {
  text-align: center;
  margin-top: 10px 0 20px;
  font-weight: 500;
  color: #444;
}

/* boutons choix */
.contact-options {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  border: none;
  padding: 0;
  margin: 20px 0;
}

.contact-options legend {
  float: left;
  width: 100%;
  margin-bottom: 15px;
}

.contact-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.contact-option span {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  text-align: center;
  transition: 0.3s;
  box-sizing: border-box;
}

.contact-option {
  min-width: 0;
  max-width: 100%;
}

/* sélection active */
.contact-option input:checked + span {
  background: #f6d6d6;
  border-color: #e8a9a9;
}

.contact-option input:focus-visible + span {
  outline: 3px solid #111;
  outline-offset: 3px;
}

/* textarea */
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 180px;
  resize: vertical;
  box-sizing: border-box;
}

/* bouton envoyer */
.contact-submit {
  margin: 20px auto 0;
  width: 100%;
  max-width: 260px;
  padding: 16px 32px;
  border-radius: 30px;
  border: none;
  background: #f6d6d6;
  color: #444;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  box-sizing: border-box;
  transition: 0.3s;
  box-sizing: border-box;
}

.contact-submit:hover {
  background: #efc1c1;
  transform: translateY(-2px);
}

/* message erreur */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.error {
  color: #e54848;
  font-size: 13px;
  margin: 8px;
  text-align: left;
  line-height: 1.4;
  word-break: break-word;
}

.input-error {
  border: 1px solid #e54848;
}

/* Footer */

.footer {
  padding: 24px 0 40px;
  text-align: center;
  background: #f4efea;
}

.footer p {
  margin: 0;
  color: #555;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#topBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f6d6d6;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 20px;
  color: #333;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#topBtn:hover,
#topBtn:focus-visible {
  background: #e9bcbc;
}

/***** Media Queries *****/

/* Tablette */
@media (max-width: 1023px) {
  .navbar {
    max-width: 760px;
    flex-wrap: wrap;
  }

  .menu {
    gap: 16px;
    justify-content: center;
  }

  .menu a {
    font-size: 15px;
  }

  .intro-content,
  .skills-content {
    flex-direction: column;
    text-align: center;
  }

  .intro-text,
  .skills-text,
  .about-text {
    max-width: 100%;
  }

  .intro-text p,
  .skills-text p {
    max-width: 100%;
  }

  .parcours-text h2::after,
  .projects h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .skills-grid {
    width: 100%;
  }

  .skills-text {
    flex: none;
    width: 100%;
  }

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

/* Mobile */
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 20px;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header::before {
    display: none;
  }

  .navbar {
    width: auto;
    max-width: 220px;
    padding: 8px 14px;
    min-height: auto;
    gap: 12px;
  }

  .logo img {
    height: 42px;
  }

  .hamburger {
    display: flex;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  .menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;

    display: none;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 28px 0;

    backdrop-filter: blur(14px);
    background: rgba(0, 0, 0, 0.45);

    border-radius: 20px;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    color: white;
    font-size: 18px;
    font-weight: 600;
  }

  .menu a::after {
    background-color: #f6d6d6;
  }

  .intro {
    padding: 120px 0 80px;
  }

  .intro-content {
    gap: 28px;
  }

  .intro-text h1 {
    font-size: clamp(24px, 9vw, 36px);
    line-height: 1.15;
  }

  .about,
  .intro,
  .parcours,
  .skills,
  .projects,
  .contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .about-text,
  .parcours-text {
    padding: 22px 16px;
  }

  .about-text h2,
  .parcours-text h2,
  .skills-text h2,
  .projects h2,
  .contact h2 {
    font-size: clamp(22px, 8vw, 30px);
    line-height: 1.2;
  }

  .about-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-block {
    animation: none;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .skills-text {
    flex: 0 0 80px;
  }

  .skill-card {
    height: auto;
    min-width: 0;
    width: 100%;
    padding: 14px 10px;
    overflow: hidden;
  }

  .skill-card img {
    max-width: 100%;
    height: auto;
  }

  .skill-icon {
    margin-bottom: 10px;
  }

  .intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .parcours-image {
    display: flex;
    justify-content: center;
  }

  .parcours-image img {
    width: min(260px, 100%);
    margin: 0 auto;
  }

  .parcours-image::before {
    width: clamp(140px, 45vw, 220px);
    height: clamp(140px, 45vw, 220px);
  }

  .parcours-content {
    flex-direction: column;
    text-align: center;
  }

  .parcours-text {
    max-width: 100%;
  }

  #topBtn {
    width: 42px;
    height: 42px;
    right: 16px;
    bottom: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-card {
    aspect-ratio: auto;
  }

  .project-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  .project-overlay {
    position: static;
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: block;
  }

  .project-overlay-content {
    padding: 20px;
    max-width: 100%;
  }

  .project-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .project-links a {
    align-self: center;
  }

  .contact-container {
    padding: 0;
  }

  .contact-form {
    padding: 14px;
  }

  .contact-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-row .field {
    width: 100%;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0;
  }

  .contact-item {
    width: auto;
    min-width: 0;
  }

  .contact-options {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .contact-option {
    width: 100%;
  }

  .contact-option span {
    width: 100%;
    text-align: center;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }

  .contact-submit {
    width: 100%;
  }
}
