/* =========================================================
   LES JARDINS DE LA SÉRÉNITÉ
   Feuille de style principale
   Architecture : variables, base, layout, composants, pages, responsive
========================================================= */

/* =========================================================
   01. RESET & BASE
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  background:
    linear-gradient(
      rgba(248, 246, 241, 0.72),
      rgba(237, 243, 236, 0.82)
    ),
    url("../assets/backgrounds/hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: none;
}

ul,
ol {
  padding-left: 1.2rem;
}

/* =========================================================
   02. VARIABLES
========================================================= */

:root {
  --bg-primary: #f8f6f1;
  --bg-secondary: #edf3ec;

  --text-primary: #384238;
  --text-secondary: #667065;

  --sage: #9db59e;
  --sage-light: #c9d8c7;
  --sage-dark: #6d866d;

  --accent: #d8c3a5;
  --white: #ffffff;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  --shadow-soft: 0 15px 40px rgba(100, 120, 100, 0.08);
  --shadow-medium: 0 20px 50px rgba(80, 100, 80, 0.08);
  --shadow-card-hover: 0 25px 50px rgba(120, 150, 120, 0.15);

  --glass-light: rgba(255, 255, 255, 0.45);
  --glass-medium: rgba(255, 255, 255, 0.56);
  --glass-strong: rgba(255, 255, 255, 0.82);

  --border-glass: 1px solid rgba(255, 255, 255, 0.45);

  --container-x: 10%;
  --header-width: 92%;
  --header-max-width: 1400px;
}

/* =========================================================
   03. TYPOGRAPHIE & UTILITAIRES
========================================================= */

.section-title,
.card h3,
.footer-block h3,
.hero h1,
.courses-hero h1,
.course-card h3,
.benefit-card h3,
.day-card h3,
.cta-box h2,
.boutique-content h3,
.order-panel h3,
.boutique-info-grid h3 {
  font-family: "Cinzel", serif;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 80px;
}

.small-note {
  font-size: 0.95rem;
  margin-top: 24px;
  color: var(--text-secondary);
}

.highlight {
  font-weight: 600;
  color: var(--sage-dark);
}

/* =========================================================
   04. HEADER & NAVIGATION
========================================================= */

header {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 1000;
  transform: translateX(-50%);
  width: var(--header-width);
  max-width: var(--header-max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--glass-light);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(80, 100, 80, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

.logo img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 35px;
}

nav a {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--sage-dark);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--sage-dark);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a[aria-current="page"]::after {
  width: 100%;
}

/* =========================================================
   05. LAYOUT GÉNÉRAL
========================================================= */

.section {
  padding: 140px var(--container-x);
}

.cards,
.intro-grid,
.course-grid,
.benefit-grid,
.planning-grid,
.boutique-info-grid {
  display: grid;
  gap: 40px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.intro-grid,
.course-grid,
.benefit-grid,
.planning-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* =========================================================
   06. HERO GLOBAL
========================================================= */

.hero,
.courses-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 180px var(--container-x) 120px;
  text-align: center;
}

.hero-content,
.courses-hero-content {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 70px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
}

.hero h1,
.courses-hero h1 {
  font-size: clamp(3.7rem, 7vw, 6.2rem);
  line-height: 1;
  letter-spacing: -2px;
  max-width: 1000px;
  margin-bottom: 35px;
  text-shadow: 0 2px 15px rgba(255, 255, 255, 0.25);
}

.hero h2,
.courses-hero h2 {
  max-width: 820px;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.7;
}

.hero p,
.courses-hero p {
  max-width: 760px;
  margin-bottom: 50px;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* =========================================================
   07. BOUTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(109, 134, 109, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-outline {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(109, 134, 109, 0.2);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.75);
}

.btn-light {
  color: #3a3a3a;
  background: #f4f1ea;
}

.btn-pay {
  width: 100%;
}

.btn-pay:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* =========================================================
   08. COMPOSANTS : CARTES & BLOCS
========================================================= */

.card,
.info-card,
.course-card,
.benefit-card,
.day-card,
.cta-box {
  background: var(--glass-medium);
  backdrop-filter: blur(14px);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px 40px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  padding-bottom: 1rem;
}

.card .btn {
  margin-top: 24px;
  align-self: flex-start;
}

.info-card,
.course-card,
.benefit-card,
.day-card {
  padding: 42px 36px;
}

.info-card strong,
.course-meta,
.course-kicker,
.time {
  display: block;
  color: var(--sage-dark);
  font-weight: 600;
}

.info-card strong,
.course-meta,
.course-kicker {
  margin-bottom: 12px;
}

.info-card p,
.course-card p,
.course-card li,
.benefit-card p,
.day-card p,
.cta-box p {
  color: var(--text-secondary);
  line-height: 1.9;
}

.cta-box {
  max-width: 920px;
  margin: 0 auto;
  padding: 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 50px rgba(100, 120, 100, 0.08);
}

.cta-box h2 {
  font-family: "Cinzel", serif;
  font-size: 2.6rem;
  margin-bottom: 24px;
}

.cta-box p {
  max-width: 700px;
  margin: 0 auto 34px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* =========================================================
   09. ABOUT
========================================================= */

.about-container {
  max-width: 1100px;
  margin: 0 auto;
}

.about-content {
  padding: 70px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--shadow-medium),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.about-content p {
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 2;
  text-align: justify;
}

.about-content blockquote {
  margin-top: 50px;
  padding: 35px;
  color: var(--text-primary);
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  line-height: 1.8;
  background: rgba(255, 255, 255, 0.25);
  border-left: 3px solid var(--sage);
  border-radius: var(--radius-md);
}

/* =========================================================
   10. NEWSLETTER & FORMULAIRES
========================================================= */

.newsletter-box,
.contact-form {
  background: var(--glass-light);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 35px;
  box-shadow: var(--shadow-medium);
}

.newsletter-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px;
  text-align: center;
}

.newsletter-box p {
  margin: 25px 0 35px;
  color: var(--text-secondary);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.newsletter-form input {
  width: 320px;
  padding: 16px 22px;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  outline: none;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 60px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 22px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: var(--radius-md);
  outline: none;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.form-group,
.form-group-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group-full {
  grid-column: 1 / -1;
}

/* =========================================================
   11. PAGE COURS
========================================================= */

.courses-hero {
  min-height: 88vh;
  padding-bottom: 100px;
}

.courses-hero-content {
  max-width: 980px;
}

.courses-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 1.05;
  margin-bottom: 30px;
}

.courses-hero p {
  font-size: 1.12rem;
  line-height: 1.9;
  margin-bottom: 42px;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-card h3 {
  font-size: 1.8rem;
}

.course-card ul {
  padding-left: 1.2rem;
}

.course-card li {
  margin-bottom: 0.5rem;
}

.course-card.featured {
  grid-column: 1 / -1;
}

.course-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.schedule-box {
  padding: 22px;
  background: rgba(157, 181, 158, 0.14);
  border-radius: 22px;
}

.day-card {
  text-align: center;
}

.time {
  margin-bottom: 6px;
}

/* =========================================================
   12. PAGE STAGES
========================================================= */

.stages-intro {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.9;
}

.stages-section .cta-box,
#prochains-stages .cta-box {
  max-width: 800px;
}

/* =========================================================
   13. PAGE BOUTIQUE
========================================================= */

.boutique-hero {
  min-height: 55vh;
}

.boutique-intro {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.8;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: 34px;
  align-items: start;
}

.products-zone {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.boutique-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boutique-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

.boutique-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f1ea;
}

.boutique-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boutique-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
}

.boutique-tag {
  display: inline-block;
  width: fit-content;
  padding: 6px 12px;
  color: #5f7f61;
  font-size: 0.8rem;
  font-weight: 600;
  background: #edf3ed;
  border-radius: var(--radius-pill);
}

.boutique-content h3,
.order-panel h3 {
  margin: 0;
}

.boutique-content h3 {
  font-size: 1.35rem;
}

.boutique-content p,
.boutique-content ul {
  margin: 0;
  line-height: 1.7;
}

.boutique-content ul {
  padding-left: 18px;
}

.boutique-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.boutique-price {
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

.add-to-cart,
#empty-cart {
  cursor: pointer;
}

.order-panel {
  position: sticky;
  top: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-form label {
  font-size: 0.9rem;
  font-weight: 600;
}

.order-form input,
.order-form select {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-empty {
  padding: 16px;
  line-height: 1.6;
  background: #f8f5ef;
  border-radius: 16px;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: #f8f5ef;
  border-radius: 16px;
}

.cart-row strong {
  display: block;
}

.cart-row small {
  color: #666;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-actions button {
  width: 32px;
  height: 32px;
  color: var(--white);
  font-weight: 700;
  background: var(--sage);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.cart-actions .remove-item {
  width: auto;
  padding: 0 10px;
  background: #8b6f47;
}

.summary-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #f8f5ef;
  border-radius: var(--radius-md);
}

.summary-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.summary-box span {
  color: #555;
}

.summary-total {
  padding-top: 12px;
  font-size: 1.1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

#shipping-message {
  margin: 0;
  color: #5f7f61;
  font-weight: 600;
  line-height: 1.5;
}

.order-note,
.form-message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.form-message {
  min-height: 1.4em;
  font-weight: 600;
}

.boutique-info-box {
  padding: 40px;
  background: var(--glass-strong);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.boutique-info-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.boutique-info-grid article {
  padding: 22px;
  background: #f8f5ef;
  border-radius: var(--radius-md);
}

.boutique-info-grid h3 {
  margin-top: 0;
}

/* =========================================================
   14. FOOTER
========================================================= */

footer {
  padding: 90px var(--container-x) 40px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-block h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-block p,
.footer-block a {
  color: var(--text-secondary);
  line-height: 2;
  transition: color 0.3s ease;
}

.footer-block a:hover {
  color: var(--sage-dark);
}

.footer-socials {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}

.footer-socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-light);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.75);
  color: var(--sage-dark);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

.footer-socials a:nth-child(1) svg {
  color: #c76b8a;
}

.footer-socials a:nth-child(2) svg {
  color: #5b7dbd;
}

.footer-socials a:nth-child(3) svg {
  color: #c05b5b;
}

.footer-bottom {
  padding-top: 30px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================================
   15. RESPONSIVE
========================================================= */

@media (max-width: 980px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .order-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --container-x: 7%;
  }

  header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .hero,
  .courses-hero {
    padding-top: 220px;
  }

  .hero-content,
  .courses-hero-content,
  .info-card,
  .course-card,
  .benefit-card,
  .day-card,
  .cta-box {
    padding: 34px 26px;
  }

  .cta-box h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: 100px var(--container-x);
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .newsletter-box,
  .contact-form,
  .about-content {
    padding: 36px 26px;
  }

  .newsletter-form input {
    width: 100%;
  }

  .about-content p {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .boutique-bottom,
  .summary-box div {
    flex-direction: column;
    align-items: flex-start;
  }

  .boutique-bottom .btn,
  .form-grid {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .logo {
    flex-direction: column;
    text-align: center;
    font-size: 1.05rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero h1,
  .courses-hero h1 {
    font-size: 2.55rem;
    letter-spacing: -1px;
  }

  .hero h2,
  .courses-hero h2 {
    font-size: 1.05rem;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons {
    width: 100%;
  }
}