/* ========================================
   L'ATELIER DOUCEUR — Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --rose: #F2C4CE;
  --lavande: #C9B8E8;
  --abricot: #F7C59F;
  --creme: #FFF8F3;
  --texte: #3D2B2B;
  --accent: #7A5C6E;
  --rose-light: #fbe4ea;
  --lavande-light: #ece5f7;
  --abricot-light: #fde8d3;
  --radius: 20px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--texte);
  background: var(--creme);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.3;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 50px;
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s, color 0.3s;
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122, 92, 110, 0.18);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--texte);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 13px 34px;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.88rem;
  background: var(--rose-light);
  color: var(--accent);
  border-radius: 50px;
}

.btn-small:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 248, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 196, 206, 0.25);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 24px rgba(61, 43, 43, 0.08);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.logo:hover {
  color: var(--texte);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texte);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--texte);
  position: absolute;
  left: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Image principale — libre de droit (Unsplash License) — fallback dans script.js */
  background: url("https://images.unsplash.com/photo-1464305795204-6f5bbfc7fb81?w=1400&q=80") center/cover no-repeat;
  padding: 120px 24px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 248, 243, 0.88) 0%,
    rgba(242, 196, 206, 0.78) 50%,
    rgba(201, 184, 232, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.hero-slogan {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--texte);
  font-style: italic;
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 36px;
  opacity: 0.85;
}

/* --- Wave Separators --- */
.wave {
  line-height: 0;
  margin-top: -1px;
}

.wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

.wave-creme svg path {
  fill: var(--creme);
}

.wave-white svg path {
  fill: #fff;
}

/* --- Sections --- */
.section {
  padding: 90px 0;
}

.section-white {
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--rose);
  margin: 14px auto 0;
  border-radius: 2px;
}

.section-title-left {
  text-align: left;
}

.section-title-left::after {
  margin: 14px 0 0;
}

.section-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--accent);
  font-size: 1.05rem;
}

/* --- Ateliers --- */
.ateliers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.atelier-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid rgba(242, 196, 206, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.atelier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(122, 92, 110, 0.1);
}

.atelier-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.atelier-card h3 {
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.atelier-card > p {
  margin-bottom: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--rose-light);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.atelier-details {
  margin-bottom: 16px;
}

.detail {
  padding: 9px 0;
  border-bottom: 1px solid rgba(242, 196, 206, 0.3);
  font-size: 0.95rem;
}

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

.atelier-note {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

/* --- Occasions --- */
.occasions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.occasion-card {
  text-align: center;
  padding: 36px 24px 30px;
  border-radius: var(--radius);
  background: var(--creme);
  border: 1px solid rgba(242, 196, 206, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.occasion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(122, 92, 110, 0.1);
}

.occasion-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.occasion-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.occasion-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

/* --- Galerie --- */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.galerie-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.galerie-item:hover img {
  transform: scale(1.06);
}

/* --- Avis (formulaire) --- */
.avis-form {
  max-width: 600px;
  margin: 0 auto;
}

.star-rating {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.star-rating .star {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #ddd;
  transition: color 0.2s, transform 0.15s;
  padding: 0 2px;
  line-height: 1;
}

.star-rating .star:hover,
.star-rating .star.active {
  color: #f5c518;
}

.star-rating .star:hover {
  transform: scale(1.15);
}

/* --- À propos --- */
.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 0.97rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--rose-light);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

/* --- Infos pratiques --- */
.infos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.info-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--creme);
  border-radius: var(--radius);
  border: 1px solid rgba(242, 196, 206, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(122, 92, 110, 0.08);
}

.info-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

.info-encadre {
  background: var(--abricot-light);
  border: 2px solid var(--abricot);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.info-encadre-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-encadre h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.info-encadre p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.optional {
  font-weight: 400;
  opacity: 0.6;
  font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(242, 196, 206, 0.5);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  color: var(--texte);
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A5C6E' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(242, 196, 206, 0.3);
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px;
}

.form-status {
  text-align: center;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 24px;
}

.form-status.success {
  color: #4a9b6e;
}

.form-status.error {
  color: #c45a5a;
}

.form-confirmation {
  text-align: center;
  padding: 60px 20px;
}

.form-confirmation h3 {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.form-confirmation p {
  font-size: 1.05rem;
  color: var(--texte);
  opacity: 0.8;
}

/* --- Footer --- */
.footer {
  background: var(--texte);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 24px;
}

.footer .logo {
  color: #fff;
  font-size: 1.15rem;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 6px;
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--rose);
}

.footer-social {
  display: flex;
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.3s, color 0.3s;
}

.social-link:hover {
  background: var(--rose);
  color: var(--accent);
}

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

.footer-bottom p + p {
  margin-top: 4px;
}

/* --- Fade-in Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--creme);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 22px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 30px rgba(61, 43, 43, 0.1);
    z-index: 999;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    font-size: 1rem;
  }

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

  .occasions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .avis-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 380px;
    margin: 0 auto;
  }

  .section-title-left {
    text-align: center;
  }

  .section-title-left::after {
    margin: 14px auto 0;
  }

  .infos-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto 32px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 92vh;
    padding: 100px 20px 60px;
  }

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

  .galerie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badges {
    justify-content: center;
  }

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

  .info-encadre {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 28px 24px;
  }

  .wave svg {
    height: 40px;
  }
}
