/*
Theme Name: Amelle Balland
Theme URI: https://amelleballand.fr
Author: Amelle Balland
Description: Thème custom pour le site d'Amelle Balland, psychopraticienne et hypnothérapeute. Spécialisée en psychotrauma et neuroatypie.
Version: 1.0
License: Tous droits réservés
Text Domain: amelle-balland
*/

/* ============= VARIABLES & RESET ============= */
:root {
  --violet-pastel: #E4DCFF;
  --violet-light: #EFEBFF;
  --violet-soft: #C8BCFF;
  --violet-mid: #9B8AE0;
  --violet-deep: #6B5BBF;
  --violet-night: #3D2E70;
  --rose-vibrant: #FF4D8B;
  --rose-soft: #FFC4D8;
  --jaune-creme: #FFFBE6;
  --jaune-light: #FFFDF2;
  --blanc: #FFFFFF;
  --texte: #2D2348;
  --texte-soft: #5C4F7A;
  --font-display: 'Caveat Brush', cursive;
  --font-body: 'Comfortaa', sans-serif;
  --font-handwritten: 'Caveat', cursive;
  --container: 1200px;
  --container-article: 760px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--texte);
  background: var(--violet-pastel);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============= HEADER ============= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--violet-mid);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(107, 91, 191, 0.15);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--blanc);
  text-decoration: none;
  line-height: 0.95;
  letter-spacing: 1.5px;
  transition: var(--transition);
  position: relative;
  display: inline-block;
}

.logo::before {
  content: '✦';
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rose-soft);
  font-size: 0.9rem;
  opacity: 0;
  transition: var(--transition);
}

.logo:hover { transform: rotate(-2deg) scale(1.05); }
.logo:hover::before { opacity: 1; left: -25px; }
.logo span { display: block; font-size: 1.5rem; letter-spacing: 3px; }

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

.nav-menu a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blanc);
  text-decoration: none;
  position: relative;
  padding: 0.4rem 0;
  transition: var(--transition);
}

.nav-menu a:not(.btn-reserver-wrap)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' preserveAspectRatio='none'><path d='M0 4 Q5 0 10 4 T20 4 T30 4 T40 4' stroke='%23FFC4D8' stroke-width='2' fill='none'/></svg>");
  background-repeat: repeat-x;
  background-size: 20px 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-menu a:not(.btn-reserver-wrap):hover::after { width: 100%; }
.nav-menu a:not(.btn-reserver-wrap):hover { color: var(--rose-soft); transform: translateY(-2px); }

.btn-reserver-wrap { position: relative; display: inline-block; padding: 0; text-decoration: none; }
.btn-reserver-wrap svg { display: block; overflow: visible; }
.btn-reserver-wrap .wave-border { fill: none; stroke: var(--blanc); stroke-width: 2; transition: stroke 0.3s ease, transform 0.4s ease; transform-origin: center; }
.btn-reserver-wrap .label { font-family: var(--font-body); font-weight: 600; font-size: 14px; fill: var(--blanc); transition: fill 0.3s ease; }
.btn-reserver-wrap:hover .wave-border { stroke: var(--rose-soft); transform: scale(1.05); }
.btn-reserver-wrap:hover .label { fill: var(--rose-soft); }

.menu-toggle { display: none; background: none; border: none; color: var(--blanc); font-size: 1.8rem; cursor: pointer; }

/* ============= VAGUES (fichiers SVG externes via CSS) ============= */
.wave-divider {
  position: relative;
  width: 100%;
  height: 80px;
  margin-top: -1px;
  margin-bottom: -1px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
  display: block;
}

/* Vagues crème (sur fond violet pastel — viennent après hero ou about-teaser) */
.wave-creme {
  background-color: var(--violet-pastel);
  background-image: url("images/wave-creme.svg");
}

/* Vagues pastel (sur fond crème — viennent après about-mini ou suspendues) */
.wave-pastel {
  background-color: var(--jaune-creme);
  background-image: url("images/wave-pastel.svg");
}

.wave-creme-flip {
  background-color: var(--violet-pastel);
  background-image: url("images/wave-creme-flip.svg");
}

/* ============= BOUTONS ============= */
.btn-cta {
  display: inline-block;
  background: var(--rose-vibrant);
  color: var(--blanc);
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(255, 77, 139, 0.35);
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-3px) rotate(-1deg);
  background: var(--violet-deep);
  box-shadow: 0 10px 28px rgba(107, 91, 191, 0.55);
}

.btn-cta-light {
  display: inline-block;
  background: var(--blanc);
  color: var(--violet-deep);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-cta-light:hover {
  transform: translateY(-3px) rotate(-1deg);
  background: var(--rose-vibrant);
  color: var(--blanc);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--violet-deep);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--violet-deep);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--violet-deep);
  transition: left 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}

.btn-secondary:hover::before { left: 0; }
.btn-secondary:hover { color: var(--blanc); transform: translateY(-2px); }

/* ============= FOOTER ============= */
.footer {
  background: var(--violet-mid);
  color: var(--blanc);
  padding: 4rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.footer-blob {
  position: absolute;
  width: 250px; height: 250px;
  background: var(--violet-soft);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.3;
  bottom: -50px; left: 8%;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-manifesto {
  text-align: center;
  margin-bottom: 2.5rem;
}

.footer-manifesto-tag {
  display: inline-block;
  font-family: var(--font-handwritten);
  font-size: 1.25rem;
  color: var(--rose-soft);
  margin-bottom: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer-manifesto p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--blanc);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-manifesto p .accent {
  color: var(--rose-soft);
  font-weight: 700;
  position: relative;
}

.footer-manifesto p .accent::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 6' preserveAspectRatio='none'><path d='M0 3 Q10 0 20 3 T40 3 T60 3 T80 3' stroke='%23FFC4D8' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: repeat-x;
  background-size: 40px 6px;
  opacity: 0.7;
}

.footer-medallion {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem 0;
  border-top: 1px dashed rgba(255, 196, 216, 0.4);
  border-bottom: 1px dashed rgba(255, 196, 216, 0.4);
}

.footer-col-left { text-align: right; }
.footer-col-right { text-align: left; }

.footer-col-left h4,
.footer-col-right h4 {
  font-family: var(--font-handwritten);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--rose-soft);
  font-weight: 700;
}

.footer-col-left ul,
.footer-col-right ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col-left a,
.footer-col-right a {
  color: var(--blanc);
  text-decoration: none;
  opacity: 0.85;
  transition: var(--transition);
  font-size: 0.88rem;
}

.footer-col-left a:hover,
.footer-col-right a:hover {
  color: var(--rose-soft);
  opacity: 1;
}

.external-link::after {
  content: ' ↗';
  font-size: 0.8em;
  opacity: 0.7;
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 196, 216, 0.15);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  margin-top: 0.3rem !important;
  margin-left: auto;
  width: fit-content;
}

.footer-col-left .insta-link { margin-left: auto; }
.insta-count { font-weight: 700; color: var(--rose-soft); }

.footer-center {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.footer-center h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: var(--blanc);
  line-height: 0.85;
  letter-spacing: 2px;
}

.footer-center h2 span {
  display: block;
  font-size: 0.55em;
  letter-spacing: 6px;
  margin-top: 0.3rem;
  color: var(--rose-soft);
}

.footer-center::before,
.footer-center::after {
  content: '✦';
  position: absolute;
  top: 50%;
  font-size: 1rem;
  color: var(--rose-soft);
  transform: translateY(-50%);
  animation: sparkle 3s ease-in-out infinite;
}
.footer-center::before { left: -10px; }
.footer-center::after { right: -10px; animation-delay: 1.5s; }

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(1) rotate(0deg); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.3) rotate(180deg); }
}

.footer-utils {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
}

.footer-socials { display: flex; gap: 0.6rem; }

.footer-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--blanc);
  transition: var(--transition);
}

.footer-socials a svg { width: 18px; height: 18px; fill: currentColor; }

.footer-socials a:hover {
  background: var(--rose-vibrant);
  transform: translateY(-3px) rotate(-8deg);
}

.footer-utils-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.footer-utils-links a {
  color: var(--blanc);
  text-decoration: none;
  opacity: 0.7;
  font-size: 0.78rem;
  transition: var(--transition);
}

.footer-utils-links a:hover { opacity: 1; color: var(--rose-soft); }

.footer-copyright { font-size: 0.85rem; opacity: 0.85; }

/* ============= ANIMATIONS COMMUNES ============= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============= RESPONSIVE COMMUN ============= */
@media (max-width: 968px) {
  .footer-medallion {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-col-left, .footer-col-right { text-align: center; }
  .footer-col-left .insta-link { margin: 0 auto; }
  .footer-center::before, .footer-center::after { display: none; }
  .footer-utils { flex-direction: column; text-align: center; }
  .footer-manifesto p { white-space: normal; }

  .menu-toggle { display: block; }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0; right: 0;
    background: var(--violet-mid);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    border-bottom: 4px solid var(--rose-vibrant);
  }

  .nav-menu.open { transform: translateY(0); }
}
