/* ==========================================================================
   Variables & Reset
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Colors */
  --primary-color: #6B4E71; /* Violet profond / Spirituel */
  --primary-light: #9B7E9F;
  --secondary-color: #EAC8D2; /* Rose doux */
  --accent-color: #D3A4B8;
  --text-dark: #332B3A;
  --text-light: #F9F7FA;
  --bg-color: #FFFDFE;
  --bg-alt: #FDF9FB;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  
  /* Utilities */
  --radius-soft: 16px;
  --radius-pill: 50px;
  --shadow-subtle: 0 10px 30px rgba(107, 78, 113, 0.08);
  --shadow-hover: 0 15px 40px rgba(107, 78, 113, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5rem; font-weight: 300; font-size: 1.1rem; }

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   Layout & Components
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 20px 0;
}

section.bg-alt {
  background-color: var(--bg-alt);
}

.pt-0 {
  padding-top: 0 !important;
}

/* Header & Nav */
header {
  background-color: rgba(255, 253, 254, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 0 20px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--secondary-color) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.3;
  z-index: 0;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: #554d5b;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--text-light);
  transform: translateY(-3px);
}

/* Cards & Services */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  text-align: center;
  border: 1px solid rgba(234, 200, 210, 0.3);
  display: flex;
  flex-direction: column;
}

.card .btn {
  margin-top: auto;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.price.strike {
  text-decoration: line-through;
  font-size: 1rem;
  color: #999;
  font-weight: 400;
  margin-right: 10px;
}

/* Forms */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #e1d8e4;
  border-radius: var(--radius-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: #faf9fb;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(155, 126, 159, 0.2);
  background-color: #ffffff;
}

/* Payment Logos */
.payment-logos {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  opacity: 0.6;
}
.payment-logos img {
  height: 30px;
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}
.payment-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 20px;
}
.footer-col {
  flex: 1;
  min-width: min(100%, 200px);
  text-align: left;
}
.footer-logo { margin-bottom: 15px; }
.footer-desc { font-size: 0.9rem; opacity: 0.9; line-height: 1.6; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--secondary-color);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: var(--text-light);
  transform: translateX(5px);
}

.footer-social-col {
  flex: 0 0 auto;
}
.social-icons {
  display: flex;
  gap: 15px;
}
.social-icons.vertical {
  flex-direction: column;
}
.social-icons a {
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(234, 200, 210, 0.3);
  transition: var(--transition-smooth);
}
.social-icons a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}
.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  opacity: 0.7;
}

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

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

/* Image Placeholders */
.img-placeholder {
  background-color: var(--secondary-color);
  border-radius: var(--radius-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: bold;
  opacity: 0.5;
  width: 100%;
  box-shadow: var(--shadow-subtle);
}

.img-placeholder.profile {
  aspect-ratio: 1 / 1;
  max-width: 300px;
  border-radius: 50%;
  margin: 0 auto 30px;
}

.img-placeholder.landscape {
  aspect-ratio: 16 / 9;
  margin-bottom: 30px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%; /* exactly below the header */
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 30px 20px;
    gap: 25px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.5s ease-in-out;
    z-index: 999;
  }
  
  .nav-links a {
    font-size: 1.2rem; /* bigger links on mobile */
    display: block;
    padding: 5px 0;
  }

  .nav-links.active {
    clip-path: circle(150% at 100% 0%);
  }

  .nav-container {
    padding: 35px 0; /* a bit shorter */
    min-height: 90px;
  }

  .logo {
    font-size: 1.7rem; /* larger logo */
  }

  .hamburger {
    display: block;
    order: 3;
    font-size: 2rem; /* bigger icon */
  }

  .container {
    padding: 0 25px;
  }
  
  .hero h1 { font-size: 2.5rem; }
  .hero-title-large { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }

  /* Mobile Footer */
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }
  .footer-col:nth-child(1) {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-col:nth-child(4) {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
  }
  .social-icons.vertical {
    flex-direction: row;
  }
}

/* ==========================================================================
   Utilities & Extracted Inline Styles
   ========================================================================== */

/* Layout Utilities */
.hero-container { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-col { flex: 1; min-width: min(100%, 280px); }
.text-left { text-align: left; }
.text-center { text-align: center; }
.hero-title-large { font-size: 3rem; }
.article-centered { max-width: 800px; margin: 0 auto; text-align: center; }
.section-title-centered { text-align: center; margin-bottom: 30px; }
.section-centered { text-align: center; }
.mt-15 { margin-top: 15px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-50 { margin-bottom: 50px; }

/* Components */
.card-alt { text-align: left; background: var(--bg-alt); }
.testimonial-text { font-style: italic; font-size: 0.95rem; }
.testimonial-author { font-weight: bold; margin-top: 15px; color: var(--primary-color); }
.form-container { max-width: 600px; margin: 0 auto; background: #fff; padding: 40px; border-radius: var(--radius-soft); box-shadow: var(--shadow-subtle); }
.btn-block { width: 100%; margin-top: 10px; }
.article-reading { max-width: 800px; margin: 0 auto; line-height: 1.8; font-size: 1.1rem; text-align: center; }
.signature-title { font-size: 1.5rem; font-family: var(--font-heading); color: var(--primary-color); }
.signature-name { font-weight: bold; }
.info-banner { background: var(--bg-alt); padding: 20px; border-radius: var(--radius-soft); text-align: center; margin-bottom: 50px; }
.price-container { margin-bottom: 20px; }
.product-subtitle { font-size: 0.9rem; color: #666; margin-bottom: 20px; }

/* Payment Badges */
.payment-badges { display: flex; gap: 15px; justify-content: center; align-items: center; margin-top: 15px; }
.payment-badge { border: 1px solid #ccc; border-radius: 4px; padding: 4px 10px; font-weight: bold; font-family: sans-serif; color: #555; }
.paypal-badge { font-style: italic; }

/* Contact Page */
.contact-container { display: flex; flex-wrap: wrap; gap: 40px; max-width: 1000px; margin: 0 auto; }
.contact-col { flex: 1; min-width: min(100%, 280px); }
.contact-info-card { background: var(--bg-alt); padding: 40px; border-radius: var(--radius-soft); height: 100%; }
.contact-title { font-size: 1.5rem; margin-bottom: 20px; }
.contact-list { list-style: none; line-height: 2; }
.text-dark-link { color: var(--text-dark); }
.contact-form-card { background: #fff; padding: 40px; border-radius: var(--radius-soft); box-shadow: var(--shadow-subtle); }

/* Legal Pages */
.legal-content { background: #ffffff; padding: 60px; border-radius: var(--radius-soft); box-shadow: var(--shadow-subtle); max-width: 900px; margin: 0 auto; }
.legal-content h2 { margin-top: 40px; font-size: 1.5rem; }
.legal-content p, .legal-content ul { margin-bottom: 20px; line-height: 1.8; font-size: 1.05rem; }
.legal-content ul { padding-left: 20px; }
.main-alt { padding: 60px 0; background-color: var(--bg-alt); }
.legal-title { text-align: center; margin-bottom: 50px; }

.text-justify { text-align: justify; }

/* ==========================================================================
   Shopping Cart Modal & Checkout
   ========================================================================== */
.cart-icon {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

.cart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.cart-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-modal {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 10001;
  box-shadow: -5px 0 30px rgba(0,0,0,0.1);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.cart-modal.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: var(--text-dark);
}

.cart-item-price {
  font-weight: bold;
  color: var(--primary-color);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  background: #f0f0f0;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.remove-btn {
  background: none;
  border: none;
  color: #d9534f;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 10px;
  transition: transform 0.2s;
}

.remove-btn:hover {
  transform: scale(1.1);
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.empty-cart-msg {
  text-align: center;
  color: #888;
  margin-top: 40px;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
}
.cookie-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 1100px;
  width: 100%;
}
@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
  }
}
.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-buttons .btn {
  min-width: 140px;
  text-align: center;
}
.cookie-banner p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.btn-outline-cookie {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--text-light);
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.btn-outline-cookie:hover {
  background: rgba(255,255,255,0.1);
}
