* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth !important;
}

:root {
  --primary-color: #1a2332;
  --accent-pink: #ff6b9d;
  --accent-purple: #c084fc;
  --accent-blue: #60a5fa;
  --accent-green: #4ade80;
  --pale-pink: #ffeef5;
  --pale-purple: #f3e8ff;
  --pale-blue: #e0f2fe;
  --pale-green: #dcfce7;
  --light-bg: #f8f9fa;
  --text-dark: #1a2332;
  --text-light: #64748b;
  --border-color: #e1e8ed;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.12);
}

body {
  font-family: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #fdfcfb 0%, #ffffff 100%);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 0 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple), var(--accent-blue));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-pink);
}

.nav-link:hover::after {
  width: 100%;
}

/* Landing page */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 32px;
}

.landing-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - 200px);
}

.left-section {
  padding-right: 40px;
}

.main-title {
  font-size: 68px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 32px;
  line-height: 1.1;
  position: relative;
  display: inline-block;
  letter-spacing: -1px;
}

.main-title::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 140px;
  height: 8px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple), var(--accent-blue));
  border-radius: 4px;
}

.main-description {
  font-size: 20px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.right-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portal-title {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-blue));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 1px;
}

/* Portal animations */
.portal-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  cursor: pointer;
  perspective: 1000px;
}

.portal-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  border: 3px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-blue), var(--accent-green));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-frame:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.portal-content {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-container:hover .portal-content {
  transform: scale(1.05);
}

.portal-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pale-pink) 0%, var(--pale-purple) 25%, var(--pale-blue) 50%, var(--pale-green) 100%);
  position: relative;
  overflow: hidden;
}

.portal-preview::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-in-out infinite;
}

.preview-text {
  text-align: center;
  z-index: 1;
  position: relative;
}

.preview-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(255, 107, 157, 0.3));
}

.preview-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.preview-text p {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.portal-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-pink), var(--accent-purple), var(--accent-blue), var(--accent-green));
  background-size: 300% 300%;
  border-radius: 24px;
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity 0.4s ease;
  animation: gradientShift 6s ease infinite;
}

.portal-container:hover .portal-glow {
  opacity: 0.6;
}

body.zooming .portal-content {
  animation: zoomIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Keyframes */
@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

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

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(10);
  }
}

/* Advantages page */
.advantages-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  overflow-y: auto;
}

.advantages-page.active {
  opacity: 1;
  pointer-events: all;
}

.back-button {
  position: fixed;
  top: 100px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.5px;
  z-index: 1001;
  box-shadow: var(--shadow);
}

.back-button:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  transform: translateX(-4px);
}

/* Sections communes */
.full-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  scroll-snap-align: start;
}

.section-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 72px;
  font-weight: 800;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

.section-title-secondary {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary-color);
  text-align: center;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 64px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title-secondary::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 6px;
  border-radius: 3px;
}

.title-pink::after {
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
}

.title-green::after {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
}

/* Grille universelle */
.universal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Backgrounds des sections */
.section-intro {
  background: linear-gradient(135deg, var(--pale-pink) 0%, var(--pale-purple) 100%);
}

.section-alternance {
  background: linear-gradient(135deg, var(--pale-blue) 0%, var(--pale-green) 100%);
}

.section-about {
  background: linear-gradient(135deg, var(--pale-purple) 0%, var(--pale-pink) 100%);
}

.section-parcours {
  background: linear-gradient(135deg, var(--pale-green) 0%, var(--pale-blue) 100%);
}

.section-competences,
.section-competences-bis {
  background: linear-gradient(135deg, var(--pale-purple) 0%, var(--pale-pink) 100%);
  display: flex;
  align-items: center;
}

.section-contact {
  background: linear-gradient(135deg, var(--pale-green) 0%, var(--pale-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Section intro */
.arrow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 64px;
}

.animated-arrow {
  color: var(--accent-pink);
  animation: bounce 2s ease-in-out infinite;
}

/* Section alternance */
.alternance-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.alternance-text {
  font-size: 24px;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 32px;
}

.cost-card {
  background: white;
  padding: 1rem;
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
  border: 3px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  width: 100%;
  max-width: 500px;
}

.cost-card-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 0.5px;
}

.cost-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cost-list li {
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.8;
  padding: 16px 0;
  padding-left: 32px;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Section about */
.about-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image-container {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-hover);
  border: 4px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--accent-purple);
}

.profile-placeholder img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.about-content {
  padding: 32px;
}

.about-label {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  position: relative;
  padding-left: 20px;
}

.about-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
  border-radius: 3px;
}

.about-text {
  font-size: 20px;
  line-height: 1.8;
  color: var(--text-dark);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Section parcours */
.parcours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.parcours-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
  border: 3px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  width: 100%;
  max-width: 500px;
}

.experience-card-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.experience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-list li {
  font-size: 17px;
  color: var(--text-dark);
  line-height: 1.8;
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.experience-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
  font-size: 20px;
}

.timeline {
  position: relative;
  padding-left: 40px;
  width: 100%;
  max-width: 500px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-green), var(--accent-blue));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  font-weight: bold;
  z-index: 2000;
}

.timeline-dot {
  position: absolute;
  left: -48px;
  top: 8px;
  width: 20px;
  height: 20px;
  z-index: 1999;
  background: linear-gradient(135deg, var(--pale-purple) 0%, var(--pale-pink) 100%);
  border: 4px solid var(--accent-green);
}

/* Section compétences */
.competences-left,
.competences-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
}

.competences-left {
  text-align: left;
}

.competences-right {
  text-align: right;
}

.competence-block {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border-color);
  padding: 32px 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 1rem;
}

.competence-block:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.competence-category {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
}

.competence-category::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
  border-radius: 3px;
}

.competence-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.competence-list li {
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: 0.2px;
  position: relative;
  padding-left: 24px;
}

.competence-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-pink);
  font-weight: bold;
}

/* Section compétences bis */
.section-competences-bis .universal-grid.reversed {
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Section contact */
.section-contact .section-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.contact-content {
  width: 80vw;
  margin-top: 24px;
}

.contact-email {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  background: white;
  padding: 20px 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: inline-block;
}

.contact-email:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-hover);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Footer */
footer {
  width: 100vw;
  padding: 2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-bg);
}

/* Media queries */
@media (max-width: 1024px) {
  .landing-section,
  .universal-grid,
  .parcours-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .left-section {
    padding-right: 0;
    text-align: center;
  }

  .main-title::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-container {
    gap: 24px;
  }

  .nav-link {
    font-size: 14px;
  }

  .alternance-text,
  .about-text {
    font-size: 18px;
    text-align: center;
  }

  .alternance-text {
    font-size: 20px;
  }

  .profile-image-container {
    max-width: 300px;
  }

  .back-button {
    top: 90%;
    left: 16px;
  }

  .parcours-left,
  .parcours-right {
    justify-content: center;
  }

  .timeline {
    max-width: 100%;
    padding-left: 0;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    text-align: center;
  }

  .timeline-dot {
    left: 50%;
    top: 23%;
    transform: translateX(-50%);
  }

  .timeline-year {
    margin-bottom: 1rem;
  }

  .section-competences {
    height: auto;
    padding: 80px 0;
  }

  .competences-left,
  .competences-right,
  .section-competences-bis .competences-left,
  .section-competences-bis .competences-right {
    text-align: center;
    align-items: center;
  }

  .section-competences-bis .universal-grid.reversed {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 48px;
  }

  .main-description {
    font-size: 18px;
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 16px;
  }

  .main-content {
    padding: 48px 24px;
  }

  .section-title {
    font-size: 40px;
  }

  .section-title-secondary {
    font-size: 35px;
  }

  .alternance-text {
    font-size: 18px;
    padding: 16px;
  }

  .cost-card {
    padding: 32px 24px;
  }

  .cost-card-title {
    font-size: 28px;
  }

  .cost-list li {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .contact-email {
    font-size: 18px;
    padding: 12px 20px;
    word-break: break-all;
    text-align: center;
    display: block;
  }
}