/* --------------------------------------------------------------------------
   RESET DE BASE
--------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   HEADER
--------------------------------------------------------------------------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 40px;
  background: var(--header-bg);
  text-align: center;
  z-index: 10;
  border-bottom: 1px solid var(--card-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
}

/* Styles pour le bouton de thème */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.theme-toggle:hover {
  background-color: var(--bg-secondary);
}

.theme-icon {
  width: 24px;
  height: 24px;
}

.theme-icon .sun {
  fill: var(--text-primary);
  display: none;
}

.theme-icon .moon {
  fill: var(--text-primary);
  display: block;
}

[data-theme="dark"] .theme-icon .sun {
  display: block;
}

[data-theme="dark"] .theme-icon .moon {
  display: none;
}

/* --------------------------------------------------------------------------
   SECTION HERO
--------------------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px); /* pleine hauteur sous header */
  padding-top: 80px;
  overflow: hidden;
}

.hero-image {
  position: sticky;
  top: 80px;
  right: 0;
  width: 50%;
  height: calc(100vh - 80px);
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 50%;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: #e91e63;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  background: var(--bg-secondary);
  padding: 20px;
  border-left: 4px solid var(--accent-color);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 18px 36px;
  font-size: 1.1rem;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn:hover {
  background: var(--accent-color);
  color: #fff;
}

.btn-small {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 20px;
  border: 2px solid #333;
}

/* --------------------------------------------------------------------------
   SCROLL INDICATOR
--------------------------------------------------------------------------- */
.scroll-indicator {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 2rem;
  color: var(--accent-color);
  z-index: 5;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* --------------------------------------------------------------------------
   SECTION CHIFFRES CLÉS
--------------------------------------------------------------------------- */
.key-numbers {
  background: var(--bg-primary);
  padding: 60px 40px;
  text-align: center;
}
.key-numbers h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}
.key-numbers .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}
.key-box {
  perspective: 1000px;
  width: 220px;
  height: 180px;
  margin: 10px;
}
.key-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.key-box:hover .key-box-inner {
  transform: rotateY(180deg);
}
.key-box-front,
.key-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  background: var(--card-bg);
  color: var(--text-primary);
}
.key-box-back {
  transform: rotateY(180deg);
  background: var(--accent-color);
  color: #fff;
}

/* --------------------------------------------------------------------------
   SECTION COMPÉTENCES CLÉS
--------------------------------------------------------------------------- */
.key-skills {
  background: var(--bg-primary);
  padding: 60px 40px;
  text-align: center;
}
.key-skills .container {
  max-width: 1200px;
  margin: auto;
}
.key-skills h2 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}
.key-skills p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}
.skill-badge {
  background: var(--accent-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.btn-discret {
  font-size: 1rem;
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.btn-discret:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   SECTION "Pourquoi ce Portfolio ?"
--------------------------------------------------------------------------- */
.portfolio-question {
  background: var(--bg-secondary);
  padding: 60px 40px;
  color: var(--text-primary);
}
.portfolio-question .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  align-items: flex-start;
}
.portfolio-question .question {
  flex: 1;
  min-width: 250px;
  text-align: left;
}
.portfolio-question .question h2 {
  font-size: 2.5rem;
  color: var(--accent-color);
}
.portfolio-question .answers {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.portfolio-question .answer {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  color: var(--text-primary);
}
.portfolio-question .answer:hover {
  transform: translateY(-5px);
}
.portfolio-question .answer h3 {
  margin-bottom: 10px;
  color: var(--accent-color);
  font-size: 1.5rem;
}
.portfolio-question .answer p {
  line-height: 1.5;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    min-height: auto;
    padding-top: 100px;
  }
  .hero-content {
    width: 100%;
    padding: 0 20px;
  }
  .hero-image {
    position: absolute;
    top: 80px;
    width: 100%;
    height: 50vh;
  }
}

/* --------------------------------------------------------------------------
   VARIABLES DE THÈME
--------------------------------------------------------------------------- */
:root {
  --bg-primary: #fff;
  --bg-secondary: #f9f9f9;
  --text-primary: #333;
  --text-secondary: #555;
  --accent-color: #e91e63;
  --header-bg: #fff;
  --card-bg: #f2f2f2;
  --card-shadow: rgba(0,0,0,0.1);
  --border-color: #333;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --accent-color: #ff4081;
  --header-bg: #1a1a1a;
  --card-bg: #333333;
  --card-shadow: rgba(0,0,0,0.3);
  --border-color: #ffffff;
}
