/* Les Jardins de Marguerite — feuille de style principale (site de test Tweakly) */

:root {
  --green: #3f7d4e;
  --green-dark: #2c5a37;
  --cream: #f7f3ea;
  --sand: #e9dfc9;
  --ink: #1f2a22;
  --muted: #5f6b62;
  --white: #ffffff;
  --accent: #e6a23c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 34, 0.08);
  --font-title: 'Playfair Display', Georgia, serif;
  --font-text: 'Poppins', system-ui, sans-serif;
}

[data-theme='dark'] {
  --cream: #16201a;
  --sand: #233127;
  --ink: #eef3ec;
  --muted: #a9b7ac;
  --white: #1c2820;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  transition: background-color 0.3s, color 0.3s;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92%);
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 1rem;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-ghost {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}

.btn-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 42, 34, 0.08);
}

[data-theme='dark'] .site-header {
  background: rgba(22, 32, 26, 0.85);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.logo em {
  color: var(--green);
  font-style: italic;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--green);
}

.main-nav .btn {
  color: #fff;
}

.theme-toggle,
.burger {
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s;
}

/* Héros */
.hero {
  min-height: 82vh;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-content {
  max-width: 680px;
  padding: 6rem 0;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.lead {
  font-size: 1.15rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Chiffres */
.stats {
  background: var(--green);
  color: #fff;
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 2.4rem;
}

.stat-label {
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin: 0 0 0.6rem;
}

/* Cartes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--green);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.card-link {
  font-weight: 600;
  text-decoration: none;
}

/* À propos */
.about {
  background: var(--sand);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-img img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.checks li {
  margin-bottom: 0.5rem;
}

.checks i {
  color: var(--green);
  margin-right: 0.5rem;
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Avis */
.testimonials {
  background: var(--white);
}

.slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.slide {
  display: none;
  margin: 0;
  animation: fade 0.6s ease;
}

.slide.active {
  display: block;
}

.slide blockquote {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

.slide figcaption {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
}

.slide figcaption img {
  border-radius: 50%;
}

.stars {
  color: var(--accent);
}

.slider-btn {
  position: absolute;
  top: 35%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--sand);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
}

.prev {
  left: -60px;
}

.next {
  right: -60px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--sand);
  cursor: pointer;
}

.dots button.on {
  background: var(--green);
}

/* Tarifs */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.plan ul {
  padding-left: 1.1rem;
  flex: 1;
}

.plan.featured {
  border: 2px solid var(--green);
  transform: scale(1.03);
}

.plan-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.price {
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin: 0.5rem 0 1rem;
}

.price span {
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--muted);
}

/* Questions */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

/* Contact */
.contact {
  background: var(--sand);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.7rem;
}

.contact-list i {
  color: var(--green);
  width: 1.5rem;
}

.map iframe {
  border-radius: var(--radius);
  margin-top: 1rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.field label {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.field input,
.field select,
.field textarea,
.newsletter-form input {
  font: inherit;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid #d8d2c2;
  background: var(--cream);
  color: var(--ink);
}

.check {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.form-message {
  margin: 1rem 0 0;
  font-weight: 500;
}

/* Lettre */
.newsletter {
  background: var(--green-dark);
  color: #fff;
  padding: 3.5rem 0;
}

.newsletter-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-form {
  display: flex;
  gap: 0.7rem;
}

/* Pied de page */
.site-footer {
  background: #18221b;
  color: #cfd8d0;
  padding: 4rem 0 1.5rem;
}

.site-footer a {
  color: #cfd8d0;
}

.logo-light {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.socials {
  display: flex;
  gap: 0.8rem;
}

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

/* Bandeau cookies et grande image */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 520px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 60;
}

.cookie-banner[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 70;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Apparition au défilement (classe ajoutée par le script) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Téléphones et tablettes */
@media (max-width: 900px) {
  .burger {
    display: flex;
  }
  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--cream);
    padding: 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }
  .main-nav.open {
    transform: none;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-grid,
  .contact-grid,
  .pricing,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan.featured {
    transform: none;
  }
  .prev,
  .next {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
