/*
 * Communication animale - Sara Segaud
 * Thème inspiré de la nature : verts forêt, crèmes chauds, accents dorés.
 */

/* ------------------------------------------------------------------ base */

:root {
  --primary: #2d5a3d;
  --primary-hover: #3d7a53;
  --primary-light: #87a878;
  --bg-body: #faf8f5;
  --bg-secondary: #f5f0eb;
  --bg-card: #fffdf9;
  --text-main: #3d3225;
  --text-muted: #6b6358;
  --text-light: #8b7e6e;
  --accent: #c9a962;
  --accent-warm: #b87453;
  --border-color: #e8e3dd;
  --nav-height: 72px;
  --section-padding: 80px;
  --container-max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  margin: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  margin: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

p {
  margin: 0;
}

/* --------------------------------------------------------------- boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: "Open Sans", sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
}

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

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

/* ------------------------------------------------------------ navigation */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  background-color: var(--bg-body);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  font-family: "Lora", Georgia, serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* --------------------------------------------------------- menu mobile */

/* Le conteneur n'existe qu'en dessous de 768px (cf. media query plus bas). */
.mobile-menu-wrapper {
  display: none;
  position: relative;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
}

.mobile-menu-btn .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid var(--border-color);
  z-index: 100;
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-link {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s;
  text-decoration: none;
}

.mobile-nav-link:hover {
  background: rgba(45, 90, 61, 0.1);
  color: var(--text-main);
}

.mobile-nav-link.btn-primary {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  margin-top: 8px;
}

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

/* ------------------------------------------------------------------ hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  background-image: url("/assets/hero-background-2000-smoothed.png");
  background-size: 1524px;
  background-position: 50% 47%;
  background-repeat: no-repeat;
  background-color: var(--bg-body);
}

.hero-content {
  max-width: 700px;
  padding: 60px 24px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

/* -------------------------------------------------- « Qui suis-je ? » */

.about-section {
  padding: var(--section-padding) 0;
}

.about-grid {
  display: grid;
  gap: 64px;
  align-items: center;
  grid-template-columns: 300px 1fr;
}

.about-image {
  text-align: center;
}

.about-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 4px solid var(--primary-light);
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(45, 90, 61, 0.15);
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content .btn {
  margin-top: 16px;
}

/* ------------------------------------------- page « Qui suis-je ? » */

.about-hero {
  padding-top: 120px;
  padding-bottom: 40px;
  background-color: var(--bg-secondary);
}

.about-hero-content {
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--primary);
}

.about-hero h1 {
  font-size: 2.5rem;
  color: var(--text-main);
}

.about-full-section {
  padding: var(--section-padding) 0;
}

.about-full-grid {
  display: grid;
  gap: 64px;
  align-items: start;
  grid-template-columns: 280px 1fr;
}

.about-full-image {
  position: sticky;
  top: 100px;
}

.about-full-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 4px solid var(--primary-light);
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(45, 90, 61, 0.15);
}

.about-full-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.9;
  font-size: 1.05rem;
}

.about-full-content p:last-of-type {
  margin-bottom: 40px;
}

.about-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------- page « La communication animale » */

.comm-hero {
  padding-top: 120px;
  padding-bottom: 40px;
  background-color: var(--bg-secondary);
}

.comm-hero-content {
  text-align: center;
}

.comm-hero h1 {
  font-size: 2.5rem;
  color: var(--text-main);
}

.comm-intro-section {
  padding: var(--section-padding) 0;
}

.comm-intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.comm-intro-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.9;
  font-size: 1.05rem;
}

.comm-cando-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-secondary);
}

.comm-cando-section h2 {
  font-size: 1.75rem;
  margin-bottom: 32px;
  color: var(--primary);
}

.comm-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.comm-list li {
  padding: 16px 0;
  padding-left: 32px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.02rem;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.comm-list li:last-child {
  border: none;
}

.comm-list li::before {
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  content: "✓";
}

.comm-list-warning li::before {
  content: "⚠";
  color: var(--accent-warm);
}

.comm-note {
  margin-top: 32px;
  padding: 24px;
  background-color: var(--bg-card);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.comm-note p {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
  font-style: italic;
}

.comm-cannot-section {
  padding: var(--section-padding) 0;
}

.comm-cannot-section h2 {
  font-size: 1.75rem;
  margin-bottom: 32px;
  color: var(--accent-warm);
}

.comm-cta-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-secondary);
  text-align: center;
}

.comm-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.comm-cta-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.comm-cta-content p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.comm-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------- services */

.services-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  padding: 28px;
  border-radius: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 90, 61, 0.1);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.disclaimer {
  margin-top: 48px;
  padding: 24px;
  border-radius: 12px;
  background-color: var(--bg-card);
  border-left: 4px solid var(--accent-warm);
}

.disclaimer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.services-cta {
  margin-top: 32px;
  text-align: center;
}

/* ------------------------------------------------------------- formation */

/* Encart formation de la page d'accueil */
.formation-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-secondary);
}

.formation-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.formation-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.formation-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.formation-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Page formation */
.formation-hero {
  padding-top: 120px;
  padding-bottom: 40px;
  background-color: var(--bg-secondary);
}

.formation-hero-content {
  text-align: center;
}

.formation-hero-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  display: block;
}

.formation-hero h1 {
  font-size: 2.5rem;
  color: var(--text-main);
}

.formation-content-section {
  padding: var(--section-padding) 0;
}

.formation-info-card {
  max-width: 600px;
  margin: 32px auto 0;
  padding: 32px;
  border-radius: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
}

.formation-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.formation-info-card li {
  padding: 8px 0;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.formation-info-card .info-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.formation-program-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-secondary);
}

.formation-program-grid {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.formation-program-card {
  padding: 28px;
  border-radius: 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.formation-program-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 90, 61, 0.1);
}

.formation-program-card .program-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.formation-program-card .program-number {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.formation-program-card h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
}

.formation-tarifs-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 32px;
  font-style: italic;
}

.formation-cta-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-secondary);
  text-align: center;
}

.formation-cta-content {
  max-width: 500px;
  margin: 0 auto;
}

.formation-cta-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.formation-cta-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------- tarifs */

.pricing-section {
  padding: var(--section-padding) 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-header h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pricing-grid {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing-card {
  padding: 32px;
  border-radius: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(45, 90, 61, 0.1);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  background-color: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: translateX(-50%);
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.pricing-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  font-family: "Lora", Georgia, serif;
}

.pricing-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 600;
}

/* ----------------------------------------------------------- témoignages */

.testimonials-section {
  padding: var(--section-padding) 0;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-header h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.testimonials-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.google-reviews-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: 0 4px 24px rgba(45, 90, 61, 0.08);
}

.google-reviews-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.google-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
}

.google-reviews-info {
  text-align: left;
}

.google-reviews-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.google-reviews-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #fbbc05;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.google-reviews-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------- contact */

.contact-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-secondary);
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-header h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-item a {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-item span {
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-light);
  padding: 16px;
  background-color: var(--bg-card);
  border-radius: 8px;
  font-style: italic;
}

/* ------------------------------------------------------------ pied de page */

.site-footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer .made-with {
  font-size: 0.8rem;
  margin-top: 16px;
  opacity: 0.7;
}

/* ------------------------------------------------------------------- 404 */

.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
}

.error-content {
  max-width: 520px;
  margin: 0 auto;
}

.error-code {
  font-family: "Lora", Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.error-content p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-wrapper {
    display: block;
  }

  .hero {
    background-position: center;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

  .about-image {
    margin-bottom: 32px;
  }

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

  .about-full-image {
    text-align: center;
    margin-bottom: 32px;
    position: static;
  }

  .about-cta {
    justify-content: center;
  }

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

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

  .formation-program-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2,
  .pricing-header h2,
  .contact-header h2,
  .about-content h2 {
    font-size: 1.75rem;
  }

  .comm-hero h1 {
    font-size: 2rem;
  }

  .comm-cando-section h2,
  .comm-cannot-section h2,
  .comm-cta-content h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    background-position: 50% 50%;
  }

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

  .price {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 16px;
  }
}
