@import url("tokens.css");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Source+Sans+3:wght@400;600;700&display=swap");

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-primary);
}
h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Containers */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: #0b5d73; text-decoration: none; }
.btn-secondary {
  background: var(--color-secondary);
  color: #111827;
}
.btn-secondary:hover { background: #e5a800; text-decoration: none; }
.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; text-decoration: none; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-secondary);
  box-shadow: 0 2px 8px rgba(14,116,144,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}
.logo-link img { height: 48px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Nav */
nav .nav-list { display: none; }
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.25rem;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}
.mobile-nav .nav-list a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}
.mobile-nav .nav-list a:hover,
.mobile-nav .nav-list a[aria-current="page"] { color: var(--color-primary); }
.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primary);
}
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
}
.nav-cta:hover { background: #0b5d73; text-decoration: none; }

/* Desktop nav */
@media (min-width: 768px) {
  nav .nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  nav .nav-list a {
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s;
  }
  nav .nav-list a:hover { color: var(--color-primary); text-decoration: none; }
  nav .nav-list a[aria-current="page"] { color: var(--color-primary); }
  .menu-toggle { display: none; }
}

/* Main */
main { min-height: 60vh; }

/* Hero */
.hero {
  padding: 3rem 1.25rem;
  text-align: center;
}
.hero-content { max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: var(--color-secondary);
  color: #111827;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-intro { font-size: 1.125rem; margin-bottom: 1.75rem; color: #374151; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero-visual {
  max-width: 900px;
  margin: 2rem auto 0;
}

/* Section spacing */
section { padding: 3rem 0; }
section:nth-child(even) { background: #f0fdff; }
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.section-title { margin-bottom: 1.25rem; }
.section-intro { max-width: 640px; margin-bottom: 2rem; color: #4b5563; }

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Cards */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(14,116,144,0.08);
  overflow: hidden;
}
.card-body { padding: 1.25rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: #4b5563; font-size: 0.95rem; }
.card ul { margin-top: 0.75rem; padding-left: 1.25rem; list-style: disc; }
.card ul li { color: #4b5563; font-size: 0.9rem; margin-bottom: 0.25rem; }

/* Visual placeholder */
.visual-placeholder {
  display: block;
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-secondary) 18%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-aspect="4:3"]  { aspect-ratio: 4 / 3; }
.visual-placeholder[data-aspect="1:1"]  { aspect-ratio: 1 / 1; }
.visual-placeholder[data-aspect="3:4"]  { aspect-ratio: 3 / 4; }
.visual-placeholder[data-aspect="21:9"] { aspect-ratio: 21 / 9; }
.visual-placeholder[data-tone="secondary"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-secondary) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-secondary) 10%, var(--color-bg)) 55%,
      color-mix(in srgb, var(--color-primary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="accent"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-accent, var(--color-primary)) 22%, var(--color-bg)) 0%,
      color-mix(in srgb, var(--color-primary) 12%, var(--color-bg)) 60%,
      color-mix(in srgb, var(--color-secondary) 16%, var(--color-bg)) 100%
    );
}
.visual-placeholder[data-tone="muted"] {
  background: color-mix(in srgb, var(--color-text) 8%, var(--color-bg));
}

/* Reviews */
.reviews { padding: 3rem 0; background: #fffbeb; }
.reviews-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.reviews-header h2 { margin-bottom: 0; }
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
}
.google-badge:hover { border-color: var(--color-primary); text-decoration: none; }
.stars { color: #FBBF24; font-size: 1.1rem; letter-spacing: 2px; }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .reviews-grid { grid-template-columns: 1fr 1fr 1fr; } }
.review-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(14,116,144,0.06);
}
.review-author {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}
.review-date { font-size: 0.8rem; color: #9ca3af; margin-bottom: 0.5rem; }
.review-text { font-size: 0.9rem; color: #4b5563; }
.reviews-attribution {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}
.reviews-attribution a { color: #9ca3af; }

/* Contact section */
.contact-info { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.contact-info p { margin: 0; display: flex; align-items: flex-start; gap: 0.5rem; }
.contact-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-phone:hover { color: #0b5d73; text-decoration: none; }

/* Map */
.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.map-wrapper iframe { display: block; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-rgpd { font-size: 0.8rem; color: #6b7280; margin-top: 0.75rem; }

/* CTA band */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 1.25rem;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; }
.cta-band .btn-secondary { background: var(--color-secondary); color: #111827; }
.cta-band .phone-big {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0.5rem 0 1.5rem;
  text-decoration: none;
}
.cta-band .phone-big:hover { text-decoration: underline; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* Lang switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.lang-btn {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text);
  transition: border-color 0.2s, background 0.2s;
}
.lang-btn.active,
.lang-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #e0f2fe;
}

/* Infos pratiques */
.info-block {
  background: #fff;
  border-left: 4px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(14,116,144,0.06);
}
.info-block h3 { margin-bottom: 0.5rem; }
.info-block ul { padding-left: 1.25rem; list-style: disc; }
.info-block ul li { margin-bottom: 0.25rem; color: #4b5563; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 1.25rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.step-body h3 { margin-bottom: 0.25rem; }
.step-body p { color: #4b5563; margin: 0; }

/* Footer */
footer {
  background: #0b2d36;
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 1.25rem 1.5rem;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-phone { color: var(--color-secondary); font-weight: 700; font-size: 1.1rem; }
.footer-phone:hover { color: #fff; }
footer h4 { color: #fff; margin-bottom: 0.75rem; font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
footer ul li { margin-bottom: 0.375rem; }
footer ul li a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
footer ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1140px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* EN lang hidden by default */
[lang="en"] .en-text { display: none; }
[lang="en"] .fr-text { display: none; }
body.lang-en .en-text { display: block; }
body.lang-en .fr-text { display: none; }
body.lang-en .en-inline { display: inline; }
body.lang-en .fr-inline { display: none; }
.en-inline { display: none; }
.fr-inline { display: inline; }

/* ==========================================================
   Animation Pass WEB-1880 — Les Poiriers fleuris de Gissac
   Toutes les animations sont sous prefers-reduced-motion.
   ========================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* 1. Hero cascade entrance */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-badge   { animation: fadeUp 0.5s ease both; animation-delay: 0.05s; }
  .hero h1      { animation: fadeUp 0.55s ease both; animation-delay: 0.2s; }
  .hero-intro   { animation: fadeUp 0.55s ease both; animation-delay: 0.35s; }
  .hero-actions { animation: fadeUp 0.55s ease both; animation-delay: 0.5s; }
  .hero-visual  { animation: fadeUp 0.7s ease both; animation-delay: 0.6s; }

  /* 2. Scroll reveal — état initial (data-reveal posé par JS, is-visible ajouté à l'intersection) */
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Stagger grilles */
  .grid-3 > [data-reveal]:nth-child(2),
  .reviews-grid > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
  .grid-3 > [data-reveal]:nth-child(3),
  .reviews-grid > [data-reveal]:nth-child(3) { transition-delay: 0.2s; }

  /* 3. Card hover lift — transition comprend opacity pour le reveal */
  .card, .review-card {
    transition: opacity 0.55s ease, transform 0.25s ease, box-shadow 0.25s ease;
  }
  .card:hover, .review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(14, 116, 144, 0.18);
  }

  /* 4. Visual placeholder shimmer au survol */
  .visual-placeholder {
    background-size: 200% 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background-position 0.8s ease;
  }
  .visual-placeholder:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(14, 116, 144, 0.14);
    background-position: 100% 0;
  }

  /* 5. Nav link underline glissant (desktop) */
  @media (min-width: 768px) {
    nav .nav-list a:not(.nav-cta) {
      background-image: linear-gradient(currentColor, currentColor);
      background-position: left bottom;
      background-repeat: no-repeat;
      background-size: 0% 2px;
      padding-bottom: 2px;
      transition: background-size 0.3s ease, color 0.2s;
    }
    nav .nav-list a:not(.nav-cta):hover,
    nav .nav-list a:not(.nav-cta)[aria-current="page"] {
      background-size: 100% 2px;
    }
  }

  /* 6. Button micro-interaction */
  .btn {
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s ease, box-shadow 0.15s ease;
  }
  .btn:hover  { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(14, 116, 144, 0.18); }
  .btn:active { transform: translateY(0); box-shadow: none; }

  /* 7. Numéro de téléphone CTA — pulsation légère au survol */
  @keyframes phonePulse {
    0%, 100% { letter-spacing: normal; }
    50%       { letter-spacing: 0.04em; }
  }
  .cta-band .phone-big:hover { animation: phonePulse 0.45s ease; }

  /* 8. Info-block glisse vers la droite au survol */
  .info-block {
    transition: opacity 0.55s ease, transform 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
  }
  .info-block:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(14, 116, 144, 0.12);
    border-left-color: var(--color-secondary);
  }

  /* 9. Numéro d'étape pop au survol */
  .step-num {
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  }
  .step:hover .step-num {
    transform: scale(1.12);
    background: var(--color-secondary);
    color: #111827;
  }

  /* 10. Focus visible ring discret */
  :focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
  }

}

/* Garde-fou reduced-motion — doit rester intact */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
