/* =============================================
   Alexandra Créa — alexandracrea.fr
   Fonds alternés rose pâle / vert sauge
   Boutons chocolat + texte or
   ============================================= */

:root {
  /* Chocolat */
  --choco: #3B2820;
  --choco-light: #5C4035;
  /* Rose pâle */
  --rose: #F2D0C8;
  --rose-deep: #E8B4A8;
  --rose-light: #F9E6E1;
  /* Vert sauge */
  --sage: #B8C9AE;
  --sage-deep: #8B9E7E;
  --sage-light: #D0DCCA;
  /* Or */
  --gold: #D4A96A;
  --gold-light: #E8C28B;
  /* Crème */
  --cream: #FBF7F3;
  /* Textes */
  --text: #3B2820;
  --text-light: #6B5548;
  --text-muted: #9A877C;
  --border: rgba(59, 40, 32, 0.1);
  --shadow: rgba(59, 40, 32, 0.08);
  --radius: 12px;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  color: var(--text);
  background-color: var(--rose-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--choco-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--choco); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* --- Typos --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--choco);
  line-height: 1.3;
}
h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }

.script-font {
  font-family: 'Dancing Script', cursive;
  color: var(--choco-light);
}

/* --- Header — chocolat --- */
.site-header {
  background: var(--choco);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
}

.logo span {
  font-family: 'Dancing Script', cursive;
  color: var(--gold);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav a:hover { color: white; }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold-light); font-weight: 600; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero — rose --- */
.hero {
  background: var(--rose);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(184,201,174,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(242,208,200,0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 { margin-bottom: 16px; position: relative; }
.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 32px;
  font-style: italic;
  position: relative;
}

/* --- Boutons — chocolat + or --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--choco);
  color: var(--gold);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--choco-light);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 40, 32, 0.25);
}

.btn-outline {
  border: 2px solid var(--choco);
  color: var(--choco);
  background: transparent;
}

.btn-outline:hover {
  background: var(--choco);
  color: var(--gold);
}

.btn-sage {
  background: var(--choco);
  color: var(--gold);
}

.btn-sage:hover {
  background: var(--choco-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* --- Sections alternées --- */
.section { padding: 80px 0; }

.section-rose {
  background: var(--rose);
}

.section-sage {
  background: var(--sage);
}

.section-alt {
  background: var(--sage-light);
}

.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

.section-title .divider {
  width: 60px; height: 3px;
  background: var(--choco);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(59,40,32,0.08);
  backdrop-filter: blur(4px);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(59, 40, 32, 0.15);
  border-color: var(--choco-light);
}

.card-img { width: 100%; height: 240px; object-fit: cover; }

.card-img-placeholder {
  width: 100%; height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }

/* --- Catégories accueil --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid rgba(59,40,32,0.08);
  backdrop-filter: blur(4px);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(59, 40, 32, 0.15);
  background: rgba(255,255,255,0.7);
  border-color: var(--choco-light);
}

.category-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.category-card h3 { margin-bottom: 8px; }
.category-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }

/* --- A propos --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-img {
  width: 100%; height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px var(--shadow);
}

.about-text h2 { margin-bottom: 16px; }
.about-text p { margin-bottom: 16px; color: var(--text-light); }

/* --- Page produits --- */
.page-header {
  background: var(--sage);
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.page-header.rose { background: var(--rose); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.product-detail:last-child { border-bottom: none; }
.product-detail:nth-child(even) { direction: rtl; }
.product-detail:nth-child(even) > * { direction: ltr; }

.product-img { width: 100%; height: 320px; border-radius: var(--radius); object-fit: cover; }
.product-img-placeholder {
  width: 100%; height: 320px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; opacity: 0.5;
}

.product-info h3 { font-size: 1.6rem; margin-bottom: 12px; }
.product-info p { color: var(--text-light); margin-bottom: 12px; }

/* --- Tags --- */
.product-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

.product-tag,
.tag-sage {
  background: rgba(139, 158, 126, 0.2);
  color: var(--sage-deep);
  border: 1px solid rgba(139, 158, 126, 0.3);
}

.tag-rose {
  background: rgba(232, 180, 168, 0.25);
  color: var(--choco-light);
  border: 1px solid rgba(232, 180, 168, 0.4);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem; font-family: inherit;
  background: rgba(255,255,255,0.6);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--choco);
  box-shadow: 0 0 0 3px rgba(59, 40, 32, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info {
  padding: 32px;
  background: rgba(255,255,255,0.4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-info h3 { margin-bottom: 24px; }

.contact-item {
  display: flex; align-items: flex-start;
  gap: 12px; margin-bottom: 20px;
}

.contact-item-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-item-text strong { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 2px; }
.contact-item-text span,
.contact-item-text a { color: var(--text-light); font-size: 0.95rem; }

/* --- Image bandeau --- */
.image-banner {
  padding: 0; overflow: hidden;
  max-height: 400px; position: relative;
}
.image-banner img {
  width: 100%; height: 400px;
  object-fit: cover; object-position: center;
}
.image-banner .overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 24px;
  background: linear-gradient(transparent, rgba(59, 40, 32, 0.8));
  color: white; text-align: center;
}
.image-banner .overlay .script-font { color: var(--gold-light); }

/* --- Footer — chocolat --- */
.site-footer {
  background: var(--choco);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}

.footer-brand .logo { color: var(--cream); margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-links h4 { color: var(--gold); font-size: 1rem; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-light); }

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

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .burger { display: flex; }

  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--choco);
    flex-direction: column;
    padding: 24px; gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px var(--shadow);
  }
  .main-nav.open { display: flex; }
  .hero { padding: 48px 0; }
  .categories-grid { grid-template-columns: 1fr; gap: 16px; }

  .about-grid,
  .contact-grid,
  .product-detail,
  .product-detail:nth-child(even) {
    grid-template-columns: 1fr; direction: ltr;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 48px 0; }
  .cards-grid { grid-template-columns: 1fr; }

  .image-banner,
  .image-banner img { max-height: 250px; height: 250px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .hero .subtitle { font-size: 1rem; }
  .btn { padding: 12px 24px; }
}
