/* ==================== GLOBAL STYLES ==================== */
/* 🌸 Thème Princesse Vintage Magique 🌸 */
body {
  font-family: 'Playfair Display', 'Parisienne', 'Great Vibes', serif;
  font-weight: 400;
  color: #6b3648;
  background-color: #fff8fa;
  letter-spacing: 0.5px;
  scroll-behavior: smooth;

  background-image: url('images/paper_texture_light.png');
  background-size: cover;
  background-attachment: fixed;
  
}



section {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 138, 150, 0.15);
  border-radius: 20px;
  padding: 60px 30px;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(6px);
  transition: all 1.2s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Titres majestueux 👑 */
h1, h2, h3, h4 {
  font-family: 'Cinzel Decorative', 'Playfair Display', serif;
  color: #a55c75;
  text-transform: capitalize;
  letter-spacing: 1px;
}

/* Sous-titres, paragraphes, liens 🌷 */
p, li, a, span, button {
  font-family: 'Parisienne', 'Playfair Display', cursive;
  font-size: 1.25rem; /* 🌸 légèrement plus grand */
  color: #6a2a40;
  letter-spacing: 0.6px;
  line-height: 1.8;
  /* ✨ version sans flou exagéré */
  text-shadow: 0 0 1px rgba(255, 240, 245, 0.5),
               0 0 2px rgba(255, 190, 210, 0.3);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* ✨ petit effet d’enchantement au survol */
a:hover, button:hover {
  color: #a45c6b;
  text-shadow: 0 0 4px rgba(255, 200, 220, 0.6);
}


/* Ajuste aussi la navbar pour garder la cohérence magique ✨ */
.navbar a {
  font-family: 'Cinzel Decorative', 'Playfair Display', serif;
  color: #8b4c62 !important;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #d77fa1 !important;
}

/* Petites décorations de texte (facultatif mais très joli 💫) */
h1::first-letter, h2::first-letter {
  font-size: 130%;
  color: #d77fa1;
}

/* Titres stylisés sur fond clair */
section h2 {
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #9a5470;
}


body.dark-mode { 
  background: #121212;
  color: #eee;
}



/* ========================================== DARK MODE TOGGLE ==================================== */

.dark-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #f8b8d0, #fcd6e7);
  color: #6b3648;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.dark-toggle:hover {
  background: linear-gradient(135deg, #fcd6e7, #f8b8d0);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(243, 154, 199, 0.6);
}



/* ===================================== ⬆ Bouton Back to Top =================================== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #f8b8d0, #fcd6e7);
  color: #6b3648;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1000;
}

#backToTop:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(215, 127, 161, 0.6);
}

/* Apparition douce */
#backToTop.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatIn 0.5s ease forwards;
}

@keyframes floatIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ================================== 🌙 Mode Sombre ================================= */
body.dark-mode .dark-toggle {
  background: linear-gradient(135deg, #333, #555);
  color: #f9d1e0;
}

body.dark-mode #backToTop {
  background: linear-gradient(135deg, #444, #666);
  color: #f9d1e0;
}

/* === 📱 Responsive mobile === */
@media (max-width: 768px) {
  .dark-toggle, #backToTop {
    width: 40px;
    height: 40px;
    font-size: 16px;
    right: 15px;
  }

  .dark-toggle {
    top: 60px;
  }

  #backToTop {
    bottom: 15px;
  }
}


/* ======================================== NAVBAR ========================================== */
.navbar {
  background: linear-gradient(145deg, #fdf6ec, #f9e0e7, #f4c2d7);
  background-size: 200% 200%;
  animation: parchmentMove 8s ease infinite;
  border-bottom: 2px solid rgba(164, 92, 107, 0.25);
  box-shadow: 0 6px 20px rgba(164, 92, 107, 0.2);
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
}

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

.nav-link { 
  color: #4a3c32 !important; 
  margin: 0 8px; 
  font-weight: 500; 
  position: relative; 
}
.nav-link::after { 
  content: ""; 
  display: block; 
  width: 0; 
  height: 2px; 
  background: #d48a96; 
  transition: width 0.3s; 
  margin: auto; 
}
.nav-link:hover::after { width: 100%; }



/* ============================================= HERO =========================================== */
.hero { 
  padding: 140px 20px; /* ✅ ajusté pour navbar fixe */
  text-align: center; 
  position: relative; 
  z-index: 10; 
}
.hero img {
 width: 160px;
 height: 160px;
 border-radius: 50%;
 border: 4px solid #d48a96;
 margin-bottom: 20px;
 transition: transform 0.4s ease, box-shadow 0.4s ease;
 transform-origin: center center;
 box-shadow: 0 0 20px rgba(212, 138, 150, 0.8), 0 0 40px rgba(212, 138, 150, 0.6);
 animation: haloPulse 3s infinite alternate ease-in-out;
}
@keyframes haloPulse {
  0% { box-shadow: 0 0 15px rgba(212, 138, 150, 0.6), 0 0 25px rgba(212, 138, 150, 0.4);}
  100% { box-shadow: 0 0 30px rgba(212, 138, 150, 1), 0 0 60px rgba(212, 138, 150, 0.8);}
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: 2.8em; color: #a45c6b; margin: 0; }
.hero h2 { font-size: 1.2em; font-weight: 500; margin: 10px 0 20px; color: #4a3c32; }
.hero p { max-width: 600px; margin: auto; font-size: 1.1em; line-height: 1.6; }

.btn-custom { border-radius: 30px; padding: 12px 28px; margin: 10px; font-weight: bold; transition: all 0.3s ease; }
.btn-primary-custom { background-color: #d48a96; color: white; box-shadow: 0 4px 10px rgba(164,92,107,0.2); }
.btn-primary-custom:hover { background-color: #a45c6b; transform: translateY(-3px); }
.btn-outline-custom { border: 2px solid #d48a96; color: #d48a96; }
.btn-outline-custom:hover { background-color: #d48a96; color: white; transform: translateY(-3px); }

.social a { margin: 0 12px; font-size: 1.5em; color: #a45c6b; transition: transform 0.3s, color 0.3s; }
.social a:hover { color: #4a3c32; transform: scale(1.2); }



/* =============================================== SECTIONS STYLE ======================================== */
section {
  padding: 80px 20px;
  margin: 100px auto; /* ✅ plus d’air entre les sections */
  max-width: 1000px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
  background: transparent; 
  scroll-margin-top: 100px; /* ✅ compense le scroll pour la navbar */
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: #a45c6b;
  text-align: center;
  letter-spacing: 1px;
  position: relative;
}
section h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, #d48a96, transparent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* =========================================== CURSOR TYPING ============================================ */
.cursor { display: inline-block; margin-left: 6px; color: #a45c6b; font-weight: 700; opacity: 1; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }

/* ============================================ PETALS ========================================================== */
.petal-container { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.petal { position: absolute; top: -10vh; font-size: 28px; opacity: 0.95; transform-origin: center; will-change: transform, opacity; user-select: none; animation-name: fall; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes fall { 0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(110vh) rotate(360deg); opacity: 0; } }

@media (max-width: 600px) { 
  .hero { padding: 100px 10px; }
  .hero img { width: 120px; height: 120px; } .petal { font-size: 20px; } }

/* ================================ SKILLS CIRCLES ================================================== */

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  justify-items: center;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto 100px;
  padding: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: scale(1.08);
}

.skill-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 10px;
}

.skill-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.skill-circle circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.skill-circle .bg {
  stroke: #ddd;
}

.skill-circle .progress {
  stroke: url(#gradient);
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s ease;
}

.skill-circle .percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #4a3c32;
  font-weight: bold;
  font-size: 1.3rem;
}

body.dark-mode .skill-circle .percent {
  color: #fff;
}

.skill-item p {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 500;
}

/* 🌸 RESPONSIVE */
@media (max-width: 992px) {
  .skills-container {
    grid-template-columns: repeat(3, 1fr); /* ✅ 3 par ligne sur tablette */
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 par ligne sur mobile */
    gap: 30px;
  }

  .skill-circle {
    width: 110px;
    height: 110px;
  }

  .skill-circle .percent {
    font-size: 1rem;
  }

  .skill-item p {
    font-size: 0.9rem;
  }
}


/* ========================================= CONTACT ====================================== */
.contact-container {
  display:flex; justify-content:space-around; flex-wrap:wrap; gap:40px; margin-top:40px;
}
.contact-card {
  flex:1; min-width:280px;
  text-align:left;
  background:#fff; padding:25px;
  border-radius:15px;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================== FOLLOW ICONS ====================================== */
.follow-icons a {
  background: #f9e0e7;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 5px;
  font-size: 22px;
  color: #4a3c32;
  transition: all 0.3s ease;
}
.follow-icons a:hover {
  background: #4a3c32;
  color: #fff;
  transform: scale(1.1);
}



/* ===================================== LUNE MAGIQUE VINTAGE 🌙 =============================================== */
/* === SECTION CENTRÉE === */
.certificates-section {
  text-align: center;
  padding: 100px 20px;
  position: relative;
  font-family: 'Cinzel Decorative', serif;
}

/* ====================== TITRE ================== */
.vintage-title {
  font-family: 'Playfair Display', 'Parisienne', 'Great Vibes', serif;;
  font-size: 2.5rem;
  text-align: center;
  color: #b06b82;
  letter-spacing: 2px;
  text-shadow: 0 0 12px #f8d7e1, 0 0 25px #f3b4c5;
  margin-bottom: 60px;
  animation: titleGlow 5s ease-in-out infinite alternate;
}
@keyframes titleGlow {
  from { text-shadow: 0 0 12px #f8d7e1, 0 0 25px #f3b4c5; }
  to { text-shadow: 0 0 20px #ffd9e2, 0 0 45px #ffc1d6; }
}

/* ==================== LUNE MAGIQUE ================ */
.moon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.moon-magic {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff9f4, #f5d2d9 60%, #d8a7b4 95%);
  box-shadow: 0 0 60px rgba(255, 200, 210, 0.8),
              inset 0 0 25px rgba(255, 240, 245, 0.5);
  cursor: pointer;
  overflow: hidden;
  animation: gentleFloat 6s ease-in-out infinite;
  transition: all 0.8s ease;
}
.moon-magic:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 80px #ffe0eb,
              0 0 120px #ffbcd4,
              inset 0 0 35px #fff8f9;
}

.moon-shade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 40%, rgba(210,170,180,0.3), transparent 70%);
  border-radius: 50%;
  z-index: 1;
}
.moon-crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(180,130,150,0.25);
  box-shadow: inset 0 0 5px rgba(100,60,70,0.4);
  z-index: 2;
}
.moon-crater { top: 40%; left: 60%; width: 25px; height: 25px; }
.moon-crater.small { top: 25%; left: 30%; width: 18px; height: 18px; }
.moon-crater.tiny { top: 65%; left: 45%; width: 10px; height: 10px; }

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

/* --- TEXTE SUR LA LUNE --- */
.moon-text {
  position: absolute;
  bottom: 35%;
  width: 100%;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #6b3c4c;
  font-size: 1rem;
  text-shadow: 0 0 6px #fff0f4, 0 0 18px #ffdbe8;
  animation: whisperGlow 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 3;
}
@keyframes whisperGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* === CONSTELLATION === */
.constellation {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.constellation.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
.certificate {
  width: 220px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px) scale(0.8);
  transition: transform 0.6s ease, opacity 0.6s ease;
}
.constellation.show .certificate {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--i) * 0.25s);
}
.certificate img {
  width: 100%;
  border-radius: 15px;
  border: 3px solid #ffd9e2;
  box-shadow: 0 6px 15px rgba(255, 150, 170, 0.4),
              inset 0 0 25px rgba(255, 240, 245, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.certificate:hover img {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 10px 25px rgba(255, 150, 170, 0.6),
              inset 0 0 35px rgba(255, 255, 255, 0.8);
}
.certificate p {
  margin-top: 10px;
  font-size: 1.2rem;
  font-family: 'Great Vibes', cursive;
  letter-spacing: 0.5px;
  color: #a45c6b;
  text-shadow: 0 0 8px rgba(255, 235, 240, 0.8);
}


/* 🌕 Police magique exclusive à la section des certificats */
.certificates-section,
.certificates-section * {
  font-family: 'Cinzel Decorative', 'Great Vibes', serif !important;
  color: #7c3f55;
}



.certificates-section {
  margin-bottom: 30px !important; /* ✅ réduit l’écart sous la lune magique */
}


/* -=================-- Étoiles autour de la Lune -===============-- */

.star-explosion {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8cc, #ffd966); /* 🌕 doré clair */
  box-shadow: 0 0 12px #ffe58a, 0 0 25px #ffdf70, 0 0 40px rgba(255, 215, 100, 0.8);
  animation: fall linear infinite, twinkle 2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ================================ Correction : supprime l'espace vide quand la lune est fermée ===================== */
.constellation {
  position: relative;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease, max-height 0.8s ease;
  max-height: 0; /* empêche le vide quand fermée */
  overflow: hidden;
}

.constellation.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  max-height: 2000px; /* permet d'afficher les photos */
}





.scroll-footer {
  background: url('images/parchment_texture.jpg') center/cover;
  border-top: 2px solid #cbb89b;
  padding: 2rem 0;
  text-align: center;
  font-family: 'Great Vibes', cursive;
  color: #4e3b2b;
}

.scroll-footer .quote {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.scroll-footer .signature {
  font-size: 1rem;
  opacity: 0.8;
}


/* === 🌙 Défilement horizontal sur mobile === */
/* 📱 Correction spéciale mobile pour la constellation */
@media (max-width: 768px) {
  .constellation {
    flex-wrap: nowrap;            /* toutes les photos sur une seule ligne */
    overflow-x: auto;             /* permet de défiler horizontalement */
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    gap: 20px;
    padding: 10px;
    max-height: none !important;  /* 🔥 supprime la limite qui cachait des images */
  }

  .certificate {
    flex: 0 0 auto;
    min-width: 80%;               /* taille confortable sur mobile */
    scroll-snap-align: center;
  }

  .constellation::-webkit-scrollbar {
    display: none; /* cache la barre de défilement */
  }
}



/* 🎵 Bouton son */
.sound-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255, 240, 245, 0.8);
  border: none;
  border-radius: 50%;
  padding: 10px 12px;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 200, 220, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 100;
}

.sound-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(255, 150, 200, 0.9);
}

/* === FIX: Skills circles always perfect circles === */

.skill-circle {
  position: relative;
  width: 140px;
  aspect-ratio: 1 / 1; /* garde le cercle parfait */
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-circle svg {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(-90deg);
}

@media (max-width: 600px) {
  .skill-circle {
    width: 110px;
    aspect-ratio: 1 / 1;
  }
  .skill-circle svg {
    width: 95%;
  }
}

@media (max-width: 400px) {
  .skill-circle {
    width: 95px;
  }
}

