/* ========================================
   XPLORIA Services — Thème Aventure Nature
   ======================================== */

/* --- Variables --- */
:root {
  --primary: #2D5016;
  --primary-light: #5A7D3A;
  --primary-lighter: #E8EDDF;
  --accent: #C76B2E;
  --accent-light: #E8A668;
  --bg: #FAF8F5;
  --bg-alt: #F0EDE8;
  --text: #2C2C2C;
  --text-light: #FFFFFF;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --transition: 0.2s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

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

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

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

ul {
  list-style: none;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text);
  opacity: 0.7;
  font-size: 1.1rem;
}

/* --- Header --- */
.site-header {
  background-color: var(--bg);
  border-bottom: 1px solid var(--bg-alt);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text);
  position: relative;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  color: var(--text-light);
}

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

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary);
}

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

.btn-outline-dark:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

/* --- Presentation --- */
.presentation {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.presentation-text {
  flex: 1;
}

.presentation-text h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.presentation-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.presentation-image {
  flex: 0 0 300px;
  text-align: center;
}

.presentation-image img {
  border-radius: var(--radius);
  margin: 0 auto;
}

/* --- Services grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.service-card .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  flex: 1;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.service-card .btn {
  align-self: flex-start;
}

/* --- Contact quick section --- */
.contact-quick {
  text-align: center;
}

.contact-quick h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-quick p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 500;
}

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

.social-links svg {
  width: 24px;
  height: 24px;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

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

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

/* --- Service page hero --- */
.service-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}

.service-hero h1 {
  margin-bottom: 0.5rem;
}

.service-hero .price-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-light);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1rem;
}

/* --- Service detail content --- */
.service-content {
  max-width: 800px;
  margin: 0 auto;
}

.service-content h2 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.service-content h3 {
  color: var(--primary-light);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-content p {
  margin-bottom: 1rem;
}

.service-content ul {
  list-style: none;
  margin-bottom: 1rem;
}

.service-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.service-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

.can-cannot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.can-cannot > div {
  padding: 1.5rem;
  border-radius: var(--radius);
}

.can-cannot .can {
  background-color: var(--primary-lighter);
  border-left: 4px solid var(--primary);
}

.can-cannot .cannot {
  background-color: #FFF3E8;
  border-left: 4px solid var(--accent);
}

.can-cannot h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.can-cannot .can h3 { color: var(--primary); }
.can-cannot .cannot h3 { color: var(--accent); }

.service-cta {
  text-align: center;
  padding: 3rem 0;
}

.service-cta h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #D32F2F;
}

.error-message {
  color: #D32F2F;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.visible {
  display: block;
}

/* Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* Contact info sidebar */
.contact-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-alt);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info-item svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-item a {
  font-weight: 500;
}

/* Form success */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--primary);
  margin-bottom: 1rem;
}

.form-success h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

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

/* --- Responsive --- */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .can-cannot {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr auto;
  }

  h1 { font-size: 3rem; }
  .hero h1 { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .presentation {
    flex-direction: row;
  }

  section {
    padding: 5rem 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--bg-alt);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 4rem 0;
  }

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

  .hero p {
    font-size: 1.05rem;
  }

  .presentation {
    flex-direction: column;
  }

  .presentation-image {
    flex: 0 0 auto;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}
