* {
  padding: 0;
  margin: 0;
  line-height: 1;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  font-family: 'Maven Pro', sans-serif;
  scroll-behavior: smooth;
}

body {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #120D31;
  background-color: #F0D3F7;
}

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(18, 13, 49, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  width: 30rem;
  object-fit: cover;
}

.site-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #120D31;
  font-family: 'Caveat', cursive;
}

/* NAVIGATION */
.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #302F4D;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #B98EA7;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #B98EA7;
  transition: width 0.3s ease;
}

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

/* BURGER MENU */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 3rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; /* Au-dessus de l'overlay */
  transition: transform 0.3s ease;
  position: relative; /* Ajout pour le z-index */
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: #120D31;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Empêcher le scroll quand le menu est ouvert */
body.menu-open {
  overflow: hidden;
}

/* MAIN CONTENT */
.main-content {
  min-height: calc(100vh - 80px);
  padding: 0; /* Supprimer le padding qui causait l'espace rose */
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #302F4D 0%, #120D31 100%);
  color: white;
  text-align: center;
  padding: 8rem 0;
  margin-bottom: 6rem;
}

.hero h1 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
  font-family: 'Caveat', cursive;
}

.hero p {
  font-size: 2rem;
  margin-bottom: 3rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: #B98EA7;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(185, 142, 167, 0.3);
  background: #A57982;
}

/* SECTIONS */
.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 3.6rem;
  text-align: center;
  margin-bottom: 4rem;
  color: #120D31;
  font-family: 'Caveat', cursive;
}

.section-subtitle {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 5rem;
  color: #302F4D;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

/* GRID LAYOUTS */
.grid {
  display: grid;
  gap: 3rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
}

/* CARDS */
.card {
  background: #fff;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 5px 15px rgba(18, 13, 49, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(240, 211, 247, 0.3);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(185, 142, 167, 0.2);
}

.card-icon {
  font-size: 4rem;
  color: #B98EA7;
  margin-bottom: 2rem;
}

.card-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #120D31;
}

.card-text {
  color: #302F4D;
  line-height: 1.6;
}

/* PROJECT CARDS */
.project-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(18, 13, 49, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid rgba(240, 211, 247, 0.3);
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 20rem;
  object-fit: cover;
}

.project-content {
  padding: 2.5rem;
}

.project-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #120D31;
}

.project-description {
  color: #302F4D;
  margin-bottom: 2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tag {
  background: #F0D3F7;
  color: #120D31;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  border: 1px solid #B98EA7;
}

.tag2 {
  background: #d3f7ec;
  color: #0d2731;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  border: 1px solid #8e92b9;
}

.bigtag {
  background: #302F4D;
  color: #f3f3f3;
  padding: 0.7rem 1.5rem;
  border-radius: 2rem;
  font-size: 1.6rem;
  border: 1px solid #B98EA7;
}

.space {
  margin-top: 3rem;
}

.project-link {
  color: #B98EA7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #A57982;
}

/* CONTACT FORM */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-item h3 {
  color: #120D31;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #302F4D;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: #120D31;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 2px solid #F0D3F7;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1.4rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #B98EA7;
}

/* FOOTER */
.footer {
  background: #120D31;
  color: #F0D3F7;
  text-align: center;
  padding: 3rem 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 2rem;
}

.social-link {
  color: #F0D3F7;
  font-size: 2rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #B98EA7;
}

/* ALERTS */
.alert {
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.alert i {
  font-size: 2rem;
  margin-top: 0.2rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert ul {
  margin: 0;
  padding-left: 2rem;
}

.alert li {
  margin-bottom: 0.5rem;
}

/* PROJECT PAGES */
.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 8rem;
  padding: 4rem 0;
}

.project-breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb-link {
  color: #B98EA7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #A57982;
}

.project-main-title {
  font-size: 4.8rem;
  margin-bottom: 2rem;
  color: #120D31;
  font-family: 'Caveat', cursive;
  line-height: 1.2;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.project-type-badge {
  background: #B98EA7;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
}

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

.project-description-hero {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #302F4D;
  margin-bottom: 3rem;
}

.project-cta {
  margin-bottom: 0;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(18, 13, 49, 0.15);
}

.project-details-section {
  margin-bottom: 8rem;
}

.project-details-card,
.project-tech-card {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(18, 13, 49, 0.1);
  border: 1px solid rgba(240, 211, 247, 0.3);
}

.project-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F0D3F7;
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  color: #120D31;
  font-weight: 600;
}

.detail-value {
  color: #302F4D;
  text-align: right;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tech-item {
  display: flex;
}

.project-gallery-section {
  margin-bottom: 8rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(18, 13, 49, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1 / 1; /* Ratio carré moderne */
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(185, 142, 167, 0.2);
}

.gallery-image,
.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-video {
  border-radius: inherit;
}

.gallery-item:hover .gallery-image,
.gallery-item:hover .gallery-video {
  transform: scale(1.05);
}

.project-navigation {
  margin-bottom: 4rem;
}

.nav-card {
  background: white;
  padding: 4rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(18, 13, 49, 0.1);
  border: 1px solid rgba(240, 211, 247, 0.3);
}

.nav-title {
  font-size: 2.4rem;
  margin-bottom: 3rem;
  color: #120D31;
  font-family: 'Caveat', cursive;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2.5rem;
  background: #F0D3F7;
  color: #120D31;
  text-decoration: none;
  border-radius: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #B98EA7;
}

.nav-button:hover {
  background: #B98EA7;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(185, 142, 167, 0.3);
}

.nav-button i {
  font-size: 2rem;
}

/* CENTERED PROJECT */
.centered-project {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.centered-project .project-card {
  max-width: 35rem;
}

/* ABOUT PAGE STYLES */
.about-intro {
  margin-bottom: 6rem;
}

.intro-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
  background: white;
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(18, 13, 49, 0.1);
  border: 1px solid rgba(240, 211, 247, 0.3);
}

.intro-name {
  font-size: 3.6rem;
  font-family: 'Caveat', cursive;
  color: #120D31;
  margin-bottom: 0.5rem;
}

.intro-age {
  font-size: 1.8rem;
  color: #B98EA7;
  font-weight: 600;
  margin-bottom: 1rem;
}

.intro-status {
  font-size: 2rem;
  color: #120D31;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.intro-subtitle {
  font-size: 1.6rem;
  color: #302F4D;
  font-style: italic;
}

.profile-placeholder {
  width: 20rem;
  height: 20rem;
  background: linear-gradient(135deg, #F0D3F7 0%, #B98EA7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

.profile-placeholder i {
  font-size: 8rem;
  color: white;
  z-index: 1;
}

/* Masquer l'icône quand l'image est chargée */
.profile-placeholder:has(.profile-image) i {
  display: none;
}

/* Fallback pour les navigateurs qui ne supportent pas :has() */
.profile-placeholder .profile-image + i {
  display: none;
}

.about-section {
  margin-bottom: 6rem;
}

.about-title {
  font-size: 2.8rem;
  color: #120D31;
  font-family: 'Caveat', cursive;
  margin-bottom: 3rem;
  text-align: center;
}

/* TIMELINE STYLES */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #B98EA7;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 3px 10px rgba(18, 13, 49, 0.1);
  border: 1px solid rgba(240, 211, 247, 0.3);
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 2rem;
  width: 1.2rem;
  height: 1.2rem;
  background: #B98EA7;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px #B98EA7;
}

.timeline-content h3 {
  color: #120D31;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.timeline-period {
  color: #B98EA7;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* PERSONALITY GRID */
.personality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}

.personality-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(18, 13, 49, 0.1);
  border: 1px solid rgba(240, 211, 247, 0.3);
  transition: transform 0.3s ease;
}

.personality-card:hover {
  transform: translateY(-5px);
}

.card-icon-small {
  font-size: 3rem;
  color: #B98EA7;
  margin-bottom: 1.5rem;
}

.personality-card h3 {
  color: #120D31;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.personality-card p {
  color: #302F4D;
  line-height: 1.6;
}

/* PASSIONS */
.passions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.passion-highlight {
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 5px 15px rgba(18, 13, 49, 0.1);
  border: 1px solid rgba(240, 211, 247, 0.3);
}

.passion-icon {
  font-size: 4rem;
  color: #B98EA7;
  margin-bottom: 2rem;
}

.passion-highlight h3 {
  color: #120D31;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.passion-highlight p {
  color: #302F4D;
  line-height: 1.7;
}

/* PHILOSOPHY */
.philosophy-card {
  background: linear-gradient(135deg, #302F4D 0%, #120D31 100%);
  padding: 4rem;
  border-radius: 1rem;
  text-align: center;
  color: white;
}

.philosophy-card .about-title {
  color: #F0D3F7;
}

.philosophy-quote {
  font-size: 1.8rem;
  line-height: 1.8;
  font-style: italic;
  margin: 0;
  position: relative;
  padding: 2rem 0;
}

.philosophy-quote::before,
.philosophy-quote::after {
  content: '"';
  font-size: 3rem;
  color: #B98EA7;
  font-family: serif;
}

/* ABOUT CTA */
.about-cta {
  text-align: center;
  background: white;
  padding: 4rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(18, 13, 49, 0.1);
  border: 1px solid rgba(240, 211, 247, 0.3);
}

.about-cta h2 {
  color: #120D31;
  font-size: 2.8rem;
  font-family: 'Caveat', cursive;
  margin-bottom: 1rem;
}

.about-cta p {
  color: #302F4D;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

.about-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* INDEX PAGE SPECIFIC STYLES */

/* Index Hero Section */
.index-hero {
  background: linear-gradient(135deg, #302F4D 0%, #120D31 100%);
  color: white;
  padding: 12rem 0 8rem 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin-top: 0; /* S'assurer qu'il n'y a pas de marge en haut */
}

.index-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="%23F0D3F7" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23B98EA7" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23F0D3F7" opacity="0.05"/><circle cx="10" cy="50" r="1" fill="%23B98EA7" opacity="0.05"/><circle cx="90" cy="30" r="1" fill="%23F0D3F7" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.index-hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.index-hero-text {
  max-width: 60rem;
}

.index-hero-intro {
  margin-bottom: 3rem;
}

.index-hero-greeting {
  display: block;
  font-size: 1.8rem;
  color: #B98EA7;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.index-hero-title {
  font-size: 6.4rem;
  font-family: 'Caveat', cursive;
  margin-bottom: 2.5rem;
  line-height: 1.1;
  background: linear-gradient(45deg, #F0D3F7, #B98EA7, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 3s ease-in-out infinite;
}

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

.index-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.index-hero-badge {
  background: rgba(240, 211, 247, 0.15);
  color: #F0D3F7;
  padding: 1rem 1.8rem;
  border-radius: 3rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: 1px solid rgba(240, 211, 247, 0.3);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.index-hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(240, 211, 247, 0.2), transparent);
  transition: left 0.5s ease;
}

.index-hero-badge:hover::before {
  left: 100%;
}

.index-hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(185, 142, 167, 0.3);
  border-color: #B98EA7;
}

.index-hero-description {
  font-size: 1.9rem;
  line-height: 1.7;
  margin-bottom: 4rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
}

.index-hero-stats {
  display: flex;
  gap: 4rem;
  margin-bottom: 4rem;
  padding: 2rem 0;
  border-top: 1
  border-bottom: 1px solid rgba(240, 211, 247, 0.2);
}

.index-hero-stat {
  text-align: center;
}

.index-stat-number {
  display: block;
  font-size: 3.2rem;
  font-weight: 700;
  color: #B98EA7;
  font-family: 'Caveat', cursive;
  margin-bottom: 0.5rem;
}

.index-stat-text {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

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

.index-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 3rem;
  border-radius: 3rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 1.6rem;
  position: relative;
  overflow: hidden;
}

.index-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.index-cta-button:hover::before {
  left: 100%;
}

.index-cta-button.index-primary {
  background: #B98EA7;
  color: white;
  border-color: #B98EA7;
  box-shadow: 0 4px 20px rgba(185, 142, 167, 0.3);
}

.index-cta-button.index-primary:hover {
  background: #A57982;
  border-color: #A57982;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(185, 142, 167, 0.4);
}

.index-cta-button.index-secondary {
  background: transparent;
  color: #F0D3F7;
  border-color: rgba(240, 211, 247, 0.5);
}

.index-cta-button.index-secondary:hover {
  background: rgba(240, 211, 247, 0.1);
  border-color: #F0D3F7;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(240, 211, 247, 0.2);
}

/* Index Hero Visual */
.index-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.index-hero-image-container {
  position: relative;
  width: 45rem;
  height: 45rem;
}

.index-hero-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50rem;
  height: 50rem;
  background: radial-gradient(circle, rgba(185, 142, 167, 0.2) 0%, rgba(240, 211, 247, 0.1) 50%, transparent 100%);
  border-radius: 50%;
  animation: pulse-backdrop 4s ease-in-out infinite;
}

@keyframes pulse-backdrop {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

.index-hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 2;
}

.index-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.index-float-element {
  position: absolute;
  width: 7rem;
  height: 7rem;
  background: rgba(240, 211, 247, 0.1);
  border: 2px solid rgba(240, 211, 247, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #B98EA7;
  backdrop-filter: blur(20px);
  animation: float 6s ease-in-out infinite;
  transition: all 0.3s ease;
}

.index-float-element:hover {
  transform: scale(1.1);
  background: rgba(185, 142, 167, 0.2);
  border-color: #B98EA7;
}

.index-element-1 {
  top: 5%;
  right: 10%;
  animation-delay: 0s;
}

.index-element-2 {
  top: 65%;
  right: 0%;
  animation-delay: 1.5s;
}

.index-element-3 {
  bottom: 15%;
  left: 5%;
  animation-delay: 3s;
}

.index-element-4 {
  top: 15%;
  left: 0%;
  animation-delay: 4.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(5deg); }
  66% { transform: translateY(-5px) rotate(-3deg); }
}

/* Scroll Indicator */
.index-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.index-scroll-text {
  display: block;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-weight: 500;
}

.index-scroll-arrow {
  font-size: 2.4rem;
  color: #B98EA7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Index Services Preview */
.index-services-preview {
  padding: 8rem 0;
  background: white;
}

.index-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.index-service-card {
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(18, 13, 49, 0.1);
  border: 1px solid rgba(240, 211, 247, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.index-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(185, 142, 167, 0.1), transparent);
  transition: left 0.5s ease;
}

.index-service-card:hover::before {
  left: 100%;
}

.index-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(185, 142, 167, 0.2);
}

.index-service-icon {
  width: 8rem;
  height: 8rem;
  background: linear-gradient(135deg, #F0D3F7 0%, #B98EA7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
  font-size: 3.5rem;
  color: white;
}

.index-service-card h3 {
  font-size: 2.2rem;
  color: #120D31;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.index-service-card p {
  color: #302F4D;
  line-height: 1.6;
  font-size: 1.5rem;
}

/* Index Featured Projects */
.index-featured-projects {
  padding: 8rem 0;
  background: #F8F9FA;
}

.index-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2rem;
  margin-top: 5rem;
  height: 60rem;
}

.index-featured-project {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 13, 49, 0.15);
  transition: transform 0.3s ease;
}

.index-featured-project.index-large {
  grid-row: 1 / -1;
}

.index-featured-project:hover {
  transform: scale(1.02);
}

.index-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Support pour les vidéos dans les projets en vedette */
.index-featured-project video.index-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.index-featured-project:hover .index-featured-image {
  transform: scale(1.1);
}

/* S'assurer que la vidéo se comporte comme l'image au hover */
.index-featured-project:hover video.index-featured-image {
  transform: scale(1.1);
}

.index-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(18, 13, 49, 0.9));
  padding: 3rem;
  color: white;
  transform: translateY(50%);
  transition: transform 0.3s ease;
}

.index-featured-project:hover .index-featured-overlay {
  transform: translateY(0);
}

.index-featured-category {
  background: #B98EA7;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.index-featured-content h3 {
  font-size: 2.4rem;
  margin: 1.5rem 0 1rem 0;
  font-family: 'Caveat', cursive;
}

.index-featured-content p {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.index-featured-link {
  color: #F0D3F7;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.index-featured-link:hover {
  color: #B98EA7;
}

.index-featured-action {
  text-align: center;
  margin-top: 5rem;
}

/* Index About Preview */
.index-about-preview {
  padding: 8rem 0;
  background: white;
}

.index-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.index-about-text {
  font-size: 1.6rem;
  line-height: 1.7;
  color: #302F4D;
  margin-bottom: 2rem;
}

.index-about-stats {
  display: flex;
  gap: 3rem;
  margin: 3rem 0;
}

.index-about-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.index-stat {
  text-align: center;
}

.index-stat-number {
  display: block;
  font-size: 3.6rem;
  font-weight: 700;
  color: #B98EA7;
  font-family: 'Caveat', cursive;
}

.index-stat-label {
  font-size: 1.3rem;
  color: #302F4D;
  font-weight: 600;
}

.index-profile-card {
  background: white;
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 15px 40px rgba(18, 13, 49, 0.1);
  text-align: center;
  position: relative;
  border: 1px solid rgba(240, 211, 247, 0.3);
}

.index-profile-image-home {
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  border: 4px solid #F0D3F7;
}

.index-profile-info h3 {
  font-size: 2.2rem;
  color: #120D31;
  margin-bottom: 0.5rem;
  font-family: 'Caveat', cursive;
}

.index-profile-info p {
  color: #B98EA7;
  font-weight: 600;
  margin-bottom: 2rem;
}

.title-skills {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 1rem;
  margin-top: -0.5rem;
}

.index-profile-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.index-skill-tag {
  background: #F0D3F7;
  color: #120D31;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: 1px solid #B98EA7;
}

/* Index CTA Section */
.index-cta-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, #120D31 0%, #302F4D 100%);
  color: white;
  text-align: center;
}

.index-cta-content h2 {
  font-size: 4.2rem;
  font-family: 'Caveat', cursive;
  margin-bottom: 2rem;
  color: #F0D3F7;
}

.index-cta-content p {
  font-size: 1.8rem;
  opacity: 0.9;
  margin-bottom: 4rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.index-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Amélioration de la lisibilité des boutons CTA finaux */
.index-cta-button.index-large {
  padding: 2rem 3rem;
  font-size: 1.8rem;
  font-weight: 700; /* Plus gras pour plus de lisibilité */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Légère ombre pour le contraste */
  border-width: 3px; /* Bordure plus épaisse */
}

.index-cta-button.index-large.index-outline {
  background: rgba(240, 211, 247, 0.15); /* Fond légèrement coloré */
  color: #F0D3F7;
  border-color: #F0D3F7;
  backdrop-filter: blur(10px);
}

.index-cta-button.index-large.index-outline:hover {
  background: #F0D3F7;
  color: #120D31;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(240, 211, 247, 0.4);
  text-shadow: none; /* Supprimer l'ombre sur fond clair */
}

.index-cta-button.index-large:not(.index-outline) {
  background: #B98EA7;
  color: white;
  border-color: #B98EA7;
  box-shadow: 0 4px 20px rgba(185, 142, 167, 0.4);
}

.index-cta-button.index-large:not(.index-outline):hover {
  background: #A57982;
  border-color: #A57982;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(185, 142, 167, 0.5);
}

/* ABOUT PAGE BACKGROUND */
body.about-page {
  background-image: url('../img/bg-about.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

body.about-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(240, 211, 247, 0.85);
  z-index: -1;
  pointer-events: none;
}

/* Améliorer la lisibilité des cartes sur le fond */
body.about-page .intro-card,
body.about-page .timeline-item,
body.about-page .personality-card,
body.about-page .passion-highlight,
body.about-page .philosophy-card,
body.about-page .about-cta {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(185, 142, 167, 0.3);
}

body.about-page .philosophy-card {
  background: rgba(48, 47, 77, 0.95);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .index-hero-content {
    grid-template-columns: 1fr;
    gap: 5rem;
    text-align: center;
  }

  .index-hero-text {
    max-width: none;
  }

  .index-hero-stats {
    justify-content: center;
  }

  /* Responsive pour la section About */
  .index-about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  /* Changer l'ordre : contenu puis carte de profil */
  .index-about-content {
    order: 1;
  }

  .index-about-visual {
    order: 2;
  }

  /* Garder les stats en ligne même en responsive */
  .index-about-stats {
    justify-content: center;
  }

  /* Responsive pour la grille des projets en vedette */
  .index-featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 3rem;
  }

  .index-featured-project.index-large {
    grid-row: auto;
  }

  .index-featured-project {
    aspect-ratio: 1 / 1; /* Ratio carré */
    height: auto;
  }

  .index-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* S'assurer que les vidéos gardent aussi le ratio carré */
  .index-featured-project video.index-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Responsive pour la page about - intro card */
  .intro-card {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .intro-content {
    order: 1;
  }

  .intro-image {
    order: 2;
  }

  .profile-placeholder {
    width: 18rem;
    height: 18rem;
  }
}

@media (max-width: 768px) {
  .index-hero {
    padding: 8rem 0 6rem 0;
    min-height: 90vh;
  }

  .index-hero-title {
    font-size: 4.8rem;
  }

  .index-hero-description {
    font-size: 1.7rem;
  }

  .index-hero-stats {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .index-hero-image-container {
    width: 35rem;
    height: 35rem;
  }

  .index-hero-backdrop {
    width: 40rem;
    height: 40rem;
  }

  .index-float-element {
    width: 5rem;
    height: 5rem;
    font-size: 2.2rem;
  }

  .index-cta-content h2 {
    font-size: 3.2rem;
  }

  .index-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .index-cta-button.index-large {
    font-size: 1.7rem; /* Légèrement plus petit sur mobile mais toujours lisible */
    padding: 1.8rem 2.5rem;
  }

  /* BURGER MENU */
  .burger-menu {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 35rem;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(18, 13, 49, 0.1);
    transition: right 0.3s ease;
    z-index: 1002;
    margin-left: 0;
    padding-top: 8rem;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    height: 100%;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 2rem 3rem;
    border-bottom: 1px solid rgba(240, 211, 247, 0.3);
    font-size: 1.8rem;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    background: #F0D3F7;
    padding-left: 4rem;
  }

  .nav-link::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .main-nav {
    width: 100%;
    max-width: none;
  }

  .burger-menu {
    width: 2.5rem;
    height: 2rem;
  }

  .burger-menu span {
    height: 2.5px;
  }

  .burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-link {
    font-size: 1.6rem;
    padding: 1.8rem 2rem;
  }

  .nav-link:hover {
    padding-left: 3rem;
  }

  /* Ajuster les statistiques pour les très petits écrans */
  .index-about-stats {
    gap: 1.5rem;
  }

  .index-stat-number {
    font-size: 2.8rem;
  }

  .index-stat-label {
    font-size: 1.1rem;
  }

  /* Ajustements pour très petits écrans - page about */
  .intro-card {
    padding: 2rem;
    gap: 2rem;
  }

  .profile-placeholder {
    width: 14rem;
    height: 14rem;
  }

  .intro-name {
    font-size: 2.6rem;
  }

  .intro-age {
    font-size: 1.6rem;
  }

  .intro-status {
    font-size: 1.6rem;
  }

  .intro-subtitle {
    font-size: 1.4rem;
  }

  /* Timeline très petits écrans */
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -1.8rem;
    width: 1rem;
    height: 1rem;
  }

  .timeline-item {
    padding: 1.5rem;
  }

  /* Cards responsive */
  .personality-card,
  .passion-highlight {
    padding: 2rem;
  }

  .philosophy-card {
    padding: 3rem 2rem;
  }

  .about-cta {
    padding: 3rem 2rem;
  }
}

/* ADMIN PAGE STYLES */

/* Admin Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.admin-header-info {
  flex-grow: 1;
}

.admin-title {
  margin-bottom: 0;
}

.admin-message-count {
  color: #302F4D;
  font-size: 1.4rem;
  margin: 0;
}

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

/* Admin Maintenance Button */
.admin-maintenance-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
}

.admin-maintenance-btn.admin-maintenance-active {
  background: #dc3545;
  color: white;
}

.admin-maintenance-btn.admin-maintenance-active:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.admin-maintenance-btn.admin-maintenance-inactive {
  background: #28a745;
  color: white;
}

.admin-maintenance-btn.admin-maintenance-inactive:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Admin Maintenance Alert */
.admin-maintenance-alert {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.admin-maintenance-alert i {
  font-size: 2rem;
  margin-top: 0.2rem;
}

.admin-maintenance-link {
  color: #856404;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.admin-maintenance-link:hover {
  color: #6c5400;
}

/* Admin Messages */
.admin-no-messages {
  text-align: center;
  color: #302F4D;
  font-style: italic;
  margin: 0;
}

.admin-message-card {
  background: #fff;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 5px 15px rgba(18, 13, 49, 0.1);
  border: 1px solid rgba(240, 211, 247, 0.3);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-message-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(185, 142, 167, 0.15);
}

.admin-message-card.admin-message-unread {
  border-left: 4px solid #B98EA7;
  background: linear-gradient(to right, rgba(185, 142, 167, 0.05), white);
}

.admin-message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 2rem;
}

.admin-message-info {
  flex-grow: 1;
}

.admin-message-subject {
  color: #120D31;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.admin-message-from {
  color: #302F4D;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.admin-message-meta {
  color: #A57982;
  font-size: 1.2rem;
  margin: 0;
}

.admin-message-badge {
  background: #B98EA7;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.admin-message-content {
  background: #F0D3F7;
  padding: 1.5rem;
  border-radius: 0.5rem;
  white-space: pre-wrap;
  color: #120D31;
  line-height: 1.6;
  margin-bottom: 1rem;
  border: 1px solid rgba(185, 142, 167, 0.2);
}

.admin-message-actions {
  margin-top: 1rem;
}

.admin-mark-read-btn {
  background: #B98EA7;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-mark-read-btn:hover {
  background: #A57982;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(185, 142, 167, 0.3);
}

/* Admin Responsive */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .admin-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .admin-maintenance-btn,
  .cta-button {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .admin-message-header {
    flex-direction: column;
    gap: 1rem;
  }

  .admin-message-badge {
    align-self: flex-start;
  }

  .admin-message-card {
    padding: 2rem;
  }

  .admin-message-subject {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .admin-header-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .admin-maintenance-btn,
  .cta-button {
    width: 100%;
  }

  .admin-message-card {
    padding: 1.5rem;
  }

  .admin-maintenance-alert {
    padding: 1rem;
  }
}