/* ============================================
   PORTFOLIO - CINDY SINGER v2
   Thème : "Élégance Moderne" - Glassmorphism, Typographie soignée
   ============================================ */

/* ============================================
   TABLE DES MATIÈRES
   ============================================
   1. POLICES & VARIABLES
   2. RESET & BASE
   3. UTILITAIRES
   4. EN-TÊTE / NAVIGATION
   5. SECTION HERO (ACCUEIL)
   6. SECTION À PROPOS
   7. SECTION COMPÉTENCES
   8. SECTION PROJETS
   9. SECTION CONTACT
   10. PIED DE PAGE
   11. MEDIA QUERIES (RESPONSIVE)
   ============================================ */

/* ============================================
   1. POLICES & VARIABLES
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap");
:root {
  /* Palette Principale - Plus riche et chaleureuse */
  --bg-color: #fff5f6; /* Blanc teinté rose très pâle */
  --bg-accent: #f8e8e8;
  --text-main: #4a2c31; /* Charcoal teinté bordeaux */
  --text-muted: #7d5a60;
  --text-light: #a88b90;

  /* Couleurs de Marque - Plus vibrantes */
  --primary: #d48ba1; /* Rose plus soutenu */
  --primary-light: #eebcd0;
  --primary-dark: #b05d76;
  --secondary: #8e7db3; /* Lavande */

  /* Glassmorphism & UI */
  --glass-bg: rgba(255, 255, 255, 0.7); /* Plus neutre, moins rose */
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(212, 139, 161, 0.15); /* Ombre colorée */
  --backdrop-blur: 20px;

  /* Mise en page */
  --max-width: 1280px;
  --header-height: 80px;

  /* Espacement */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 4rem;
  --gap-xl: 8rem;

  /* Animation */
  --ease-soft: cubic-bezier(0.23, 1, 0.32, 1);

  /* Transitions standardisées */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index scale */
  --z-skip: 9999;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-tooltip: 500;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50px;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px; /* Légère réduction de la base */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Respect des préférences utilisateur pour les animations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Couleur de sélection */
::selection {
  background: var(--primary);
  color: white;
}

/* ============================================
   3. UTILITAIRES
   ============================================ */

/* Skip Link pour accessibilité */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: var(--z-skip);
  text-decoration: none;
  border-radius: 0 0 4px 0;
  font-weight: 600;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
}
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: var(--gap-xl) 0;
  position: relative;
}

.section--dark {
  background: linear-gradient(
    135deg,
    #4a2c31 0%,
    #2f1d22 100%
  ); /* Fond foncé teinté bordeaux */
  color: #fff0f5;
  position: relative;
  overflow: hidden;
}

.section--dark::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(212, 139, 161, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.section--dark .section__subtitle {
  color: #eebcd0;
}
.section--dark .section__number {
  color: #eebcd0;
}

/* Typographie */
h1,
h2,
h3,
h4,
.font-display {
  font-family: "Playfair Display", serif;
}

.section__header {
  margin-bottom: var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.section__number {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section__title {
  font-size: 2.5rem; /* Réduit de 3.5rem */
  font-weight: 500;
  line-height: 1.1;
  background: linear-gradient(
    45deg,
    var(--text-main) 30%,
    var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section--dark .section__title {
  background: none;
  color: #fff;
}

/* ============================================
   4. EN-TÊTE / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(255, 245, 247, 0.85); /* Fond entête plus chaud */
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border-bottom: 1px solid rgba(212, 139, 161, 0.1);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav__logo {
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  z-index: 102;
}

.nav__logo span {
  color: var(--primary);
}

.nav__menu {
  display: flex;
  gap: 3rem;
}

.nav__menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main); /* Changed to text-main for better visibility */
  position: relative;
  transition: color 0.3s ease;
}

.nav__menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s var(--ease-soft);
  transform: translateX(-50%);
}

.nav__menu a:hover {
  color: var(--primary-dark);
}
.nav__menu a:hover::after {
  width: 100%;
}

.nav__menu a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav__toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 102;
  position: relative;
}

/* ============================================
   5. SECTION HERO (ACCUEIL)
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

/* Animation d'arrière-plan */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(238, 188, 208, 0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float-bg 8s infinite alternate ease-in-out;
  z-index: -1;
  filter: blur(40px);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(142, 125, 179, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float-bg 12s infinite alternate-reverse ease-in-out;
  z-index: -1;
  filter: blur(40px);
}

@keyframes float-bg {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-30px, 50px) scale(1.1);
  }
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--gap-lg);
}

/* Nouveau titre principal : Développeuse Full-Stack */
.hero__title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  text-transform: none;
  background: linear-gradient(135deg, var(--text-main) 30%, #8e4b5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Animation setup */
  opacity: 0;
  animation: fade-up 1s var(--ease-soft) 0.2s forwards;
}

/* Signature élégante : Création d'expérience... */
.hero__signature {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-muted);
  margin-bottom: 2rem;
  /* Animation setup */
  opacity: 0;
  animation: fade-up 1s var(--ease-soft) 0.5s forwards;
}

.hero__signature .highlight {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-dark);
  position: relative;
  z-index: 1;
}

.hero__signature .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: -5px;
  width: calc(100% + 10px);
  height: 30%;
  background: rgba(238, 188, 208, 0.4);
  z-index: -1;
  transition: height 0.3s ease;
  border-radius: 4px;
}

.hero__signature:hover .highlight::after {
  height: 90%;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--text-main);
  max-width: 550px;
  margin-bottom: 3rem;
  font-weight: 300;
  line-height: 1.6;
  border-left: none;
  padding-left: 0;
  /* Animation setup */
  opacity: 0;
  animation: fade-up 1s var(--ease-soft) 0.8s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__actions {
  display: flex;
  gap: var(--gap-sm);
  /* Animation setup */
  opacity: 0;
  animation: fade-up 1s var(--ease-soft) 1.1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.4s var(--ease-soft);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--text-main) 0%, #633b41 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(74, 44, 49, 0.25);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(74, 44, 49, 0.35);
}

.btn--outline {
  border: 2px solid var(--text-main);
  color: var(--text-main);
  background: transparent;
}

.btn--outline:hover {
  background: var(--text-main);
  color: white;
  transform: translateY(-3px);
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.hero__image-wrapper {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fade-up 1s var(--ease-soft) 1.4s forwards;
}

.hero__image {
  width: 100%;
  max-width: 320px; /* Réduction significative de la taille (tétait 450px) */
  margin: 0 auto;
  border-radius: 160px 160px 20px 20px; /* Ajustement de l'arche proportionnellement */
  overflow: hidden;
  box-shadow: 20px 20px 0px rgba(212, 139, 161, 0.3);
  border: 4px solid white;
  aspect-ratio: 0.8;
  position: relative;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
  will-change: transform;
}

.hero__image:hover img {
  transform: scale(1.05);
}

/* ============================================
   6. SECTION À PROPOS
   ============================================ */
.about {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.about__text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.about__text strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md);
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--backdrop-blur));
  padding: var(--gap-md);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
}

.stat-card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

.stat-card p {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-main);
}

/* ============================================
   7. SECTION COMPÉTENCES
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-md);
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--gap-md);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.7;
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(238, 188, 208, 0.4);
  transform: translateY(-5px);
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.skill-list li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 240, 245, 0.85); /* Texte légèrement rosé */
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

/* ============================================
   8. SECTION PROJETS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--backdrop-blur));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s var(--ease-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--glass-border);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(212, 139, 161, 0.2);
  border-color: var(--primary-light);
}

.project-card__visual {
  height: 280px;
  background: var(--bg-accent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Affiche l'image entière sans coupe */
  z-index: 0;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card__bg {
  transform: scale(1.05);
}

.project-card__visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(74, 44, 49, 0.4) 0%,
    /* Beaucoup plus transparent */ rgba(74, 44, 49, 0.2) 100%
  );
  opacity: 0.3; /* Opacité réduite pour bien voir l'image */
  z-index: 1;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card__visual::before {
  opacity: 0.5;
}

.project-card__number {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem; /* Réduit de 5rem */
  font-weight: 700;
  color: white;
  opacity: 0.9;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.project-card__content {
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 600;
}

.project-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(238, 188, 208, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(238, 188, 208, 0.5);
}

.project-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.project-link:hover {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
}

.project-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   9. SECTION CONTACT
   ============================================ */
.contact-container {
  background: linear-gradient(to bottom right, #fff, #fff0f5);
  padding: var(--gap-lg);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(212, 139, 161, 0.15);
  max-width: 800px;
  margin: 0 auto;
  border: 4px solid white;
}

.contact-text {
  font-size: 1.5rem;
  font-family: "Playfair Display", serif;
  color: var(--text-main);
  margin-bottom: var(--gap-md);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.contact-btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  background: white;
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #f8e8e8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 139, 161, 0.2);
}

.contact-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/* ============================================
   10. PIED DE PAGE
   ============================================ */
.footer {
  padding: var(--gap-md) 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: white;
}

.footer__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__social {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer__social a {
  color: var(--text-muted);
}
.footer__social a:hover {
  color: var(--primary);
}

/* ============================================
   11. MEDIA QUERIES (RESPONSIVE)
   ============================================ */

/* Tablettes et petits écrans desktop (max-width: 1200px) */
@media (max-width: 1200px) {
  .container {
    width: 92%;
  }

  .hero__container {
    gap: var(--gap-md);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Tablettes (max-width: 1024px) */
@media (max-width: 1024px) {
  :root {
    --gap-xl: 6rem;
    --gap-lg: 3.5rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  }

  .hero__signature {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  }

  .about {
    gap: var(--gap-lg);
  }

  .about__stats {
    grid-template-columns: 1fr;
  }
}

/* Petites tablettes et grands mobiles (max-width: 900px) */
@media (max-width: 900px) {
  .nav__menu {
    gap: 2rem;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }

  .hero__image {
    max-width: 280px;
    margin: 0 auto;
  }

  .about {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }
}

/* Mobiles et petites tablettes (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --gap-xl: 4rem;
    --gap-lg: 3rem;
    --gap-md: 1.5rem;
  }

  /* Navigation mobile */
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 245, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 10% 2rem 15%;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 101;
    box-shadow: -10px 0 30px rgba(74, 44, 49, 0.1);
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__menu li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(30px);
    transition: 0.4s ease;
  }

  .nav__menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  /* Animation en cascade des items du menu */
  .nav__menu.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav__menu.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav__menu.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav__menu.active li:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav__menu a {
    font-size: 1.5rem;
    font-family: "Playfair Display", serif;
    color: var(--text-main);
  }

  /* Bouton hamburger */
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
  }

  .nav__toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
  }

  .nav__toggle.active span:first-child {
    transform: translateY(8px) rotate(45deg);
  }
  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }
  .nav__toggle.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Overlay pour le menu mobile */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
  }

  body.menu-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Section Hero */
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: var(--gap-md);
  }

  .hero__actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .btn {
    width: 100%;
    padding: 1rem 1.5rem;
  }

  .hero__image {
    margin-top: var(--gap-md);
    max-width: 280px;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  /* Sections */
  .section__title {
    font-size: 2.2rem;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-container {
    padding: 2rem 1rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-btn {
    justify-content: center;
  }
}

/* Petits mobiles (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    --gap-xl: 3rem;
    --gap-lg: 2.5rem;
    --gap-md: 1.25rem;
  }

  .container {
    width: 95%;
  }

  .hero__title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero__signature {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  .project-card__title {
    font-size: 1.3rem;
  }

  .contact-text {
    font-size: 1.25rem;
  }

  .nav__logo {
    font-size: 1.5rem;
  }
}

/* ============================================
   12. PRINT STYLES (Impression)
   ============================================ */
@media print {
  /* Masquer les éléments non nécessaires */
  .nav__toggle,
  .hero::before,
  .hero::after,
  .section--dark::before,
  .btn--outline,
  .skip-link,
  .project-link,
  .contact-btn {
    display: none !important;
  }

  /* Réinitialiser les fonds */
  body {
    background: white !important;
    color: black !important;
  }

  .section--dark {
    background: white !important;
    color: black !important;
  }

  /* Optimiser l'espace */
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .section {
    padding: 2rem 0;
    break-inside: avoid;
  }

  /* Afficher les URLs */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Éviter les coupures */
  .project-card,
  .skill-card,
  .stat-card {
    break-inside: avoid;
  }

  /* Réduire les marges */
  .container {
    width: 100%;
    max-width: 100%;
  }

  /* Pas de box-shadow à l'impression */
  * {
    box-shadow: none !important;
  }
}
