/* ========================================
   HABITATS ET JARDINS - Base Styles
   Style Provence : Vert + Marron
   ======================================== */

/* ----------------------------------------
   VARIABLES
   ---------------------------------------- */
:root {
  /* Palette Provence - Marron */
  --color-brown-dark: #3d2b1f;
  --color-brown: #5d4037;
  --color-brown-medium: #795548;
  --color-brown-light: #a1887f;
  --color-brown-pale: #d7ccc8;

  /* Palette Provence - Vert */
  --color-green-dark: #2e5339;
  --color-green: #4a7c59;
  --color-green-medium: #6b9b7a;
  --color-green-light: #a8d5ba;
  --color-green-pale: #e8f5e9;

  /* Couleurs neutres */
  --color-cream: #fdfbf7;
  --color-cream-warm: #f5f0e8;
  --color-cream-dark: #ebe4d8;
  --color-white: #ffffff;

  /* Texte */
  --color-text: #2d2a26;
  --color-text-medium: #5c5650;
  --color-text-light: #8b8680;

  /* Accents */
  --color-accent: #c9a86c;
  --color-accent-light: #e8d5b0;

  /* Typographie */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Tailles de police */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Espacements */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-in-out);

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.08);
  --shadow-md: 0 4px 12px rgba(61, 43, 31, 0.1);
  --shadow-lg: 0 8px 30px rgba(61, 43, 31, 0.12);
  --shadow-xl: 0 16px 50px rgba(61, 43, 31, 0.15);
  --shadow-glow-green: 0 8px 30px rgba(74, 124, 89, 0.25);
  --shadow-glow-brown: 0 8px 30px rgba(93, 64, 55, 0.2);

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ----------------------------------------
   TYPOGRAPHY
   ---------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-brown-dark);
}

h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
}
h2 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}
h3 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
}
h4 {
  font-size: var(--text-xl);
}

p {
  color: var(--color-text-medium);
}

.text-accent {
  color: var(--color-green);
}

/* ----------------------------------------
   LAYOUT
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1400px;
}

section {
  padding: var(--space-24) 0;
}

/* ----------------------------------------
   HEADER & NAVIGATION
   ---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-base);
}

.header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-brown-pale) 20%,
    var(--color-brown-pale) 80%,
    transparent
  );
  opacity: 0;
  transition: var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header.scrolled::after {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-green-dark) 100%
  );
  border-radius: var(--radius-md);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.logo-icon svg {
  width: 26px;
  height: 26px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brown-dark);
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  position: relative;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-medium);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--color-green);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--color-brown-dark);
  background: var(--color-cream-warm);
}

.nav-link.active {
  color: var(--color-brown-dark);
}

.nav-link.active::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-link--cta {
  margin-left: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-green-dark) 100%
  );
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow-green);
}

.nav-link--cta::before {
  display: none;
}

.nav-link--cta:hover {
  background: linear-gradient(
    135deg,
    var(--color-green-dark) 0%,
    var(--color-brown-dark) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(74, 124, 89, 0.35);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 6px;
  background: var(--color-cream-warm);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-brown-dark);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.nav-toggle:hover {
  background: var(--color-cream-dark);
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

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

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-base);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-green-dark) 100%
  );
  color: var(--color-white);
  box-shadow: var(--shadow-glow-green);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(74, 124, 89, 0.4);
}

/* .btn-primary:hover svg {
  transform: translateX(4px);
} */

.btn-secondary {
  background: transparent;
  color: var(--color-brown-dark);
  border-color: var(--color-brown-dark);
}

.btn-secondary:hover {
  background: var(--color-brown-dark);
  color: var(--color-white);
}

.btn-tertiary {
  background: var(--color-cream-warm);
  color: var(--color-brown-dark);
  border-color: var(--color-cream-dark);
}

.btn-tertiary:hover {
  background: var(--color-cream-dark);
  border-color: var(--color-brown-light);
}

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
}

/* ----------------------------------------
   CARDS
   ---------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-base);
}

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

/* ----------------------------------------
   SECTION HEADERS
   ---------------------------------------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-green);
  background: var(--color-green-pale);
  border-radius: var(--radius-full);
}

.section-label svg {
  width: 14px;
  height: 14px;
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-light);
}

/* ----------------------------------------
   DECORATIVE ELEMENTS
   ---------------------------------------- */
.decoration-leaf {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c0 13.807-11.193 25-25 25' stroke='%234A7C59' stroke-opacity='0.04' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
  background: linear-gradient(180deg, var(--color-brown-dark) 0%, #2a1f17 100%);
  color: var(--color-white);
  padding-top: var(--space-20);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-12);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: var(--space-5);
}

.footer-brand .logo-icon {
  background: linear-gradient(
    135deg,
    var(--color-green) 0%,
    var(--color-green-medium) 100%
  );
}

.footer-brand .logo-name {
  color: var(--color-white);
}

.footer-brand .logo-tagline {
  color: var(--color-green-light);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-green-light);
  transform: translateX(4px);
}

.footer-col a svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-green-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item strong {
  color: var(--color-white);
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a:hover {
  color: var(--color-white);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(74, 124, 89, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-green-light);
  font-weight: 600;
}

.footer-badge svg {
  width: 14px;
  height: 14px;
}

/* ----------------------------------------
   ICONS
   ---------------------------------------- */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon--sm {
  width: 20px;
  height: 20px;
}

.icon--md {
  width: 24px;
  height: 24px;
}

.icon--lg {
  width: 32px;
  height: 32px;
}

.icon--xl {
  width: 48px;
  height: 48px;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
}

.icon-box--sm {
  width: 48px;
  height: 48px;
}

.icon-box--md {
  width: 64px;
  height: 64px;
}

.icon-box--lg {
  width: 80px;
  height: 80px;
}

.icon-box--green {
  background: linear-gradient(
    135deg,
    var(--color-green-pale) 0%,
    var(--color-green-light) 100%
  );
  color: var(--color-green-dark);
}

.icon-box--brown {
  background: linear-gradient(
    135deg,
    var(--color-brown-pale) 0%,
    var(--color-brown-light) 100%
  );
  color: var(--color-brown-dark);
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-20: 3.5rem;
    --space-16: 2.5rem;
  }

  .nav {
    height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: var(--space-8) var(--space-6);
    gap: var(--space-6);
    background: var(--color-cream);
    transform: translateX(100%);
    transition: var(--transition-base);
    height: fit-content;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
  }

  .nav-link--cta {
    margin-left: 0;
    margin-top: var(--space-4);
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-icon svg {
    width: 22px;
    height: 22px;
  }

  .logo-name {
    font-size: var(--text-lg);
  }

  .hero-image-logo {
    border-radius: var(--radius-md);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-legal a {
    color: rgba(255, 255, 255, 0.5); /* discret */
  }

  .footer-legal a:hover {
    color: white;
    text-decoration: underline;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .btn {
    width: 100%;
  }

  .btn-lg {
    padding: var(--space-4) var(--space-6);
  }
}

/* ----------------------------------------
   UTILITIES
   ---------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-auto {
  margin-top: auto;
}
.mb-0 {
  margin-bottom: 0;
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-6 {
  gap: var(--space-6);
}
.gap-8 {
  gap: var(--space-8);
}

/* ========================================
   FOOTER SOCIAL - À ajouter dans base.css
   ======================================== */

/* Conteneur des réseaux sociaux */
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Lien social de base */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.social-link:hover {
  background: var(--color-green);
  color: white;
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Couleurs spécifiques au survol */
.social-link:hover {
  background: #1877f2; /* Facebook blue par défaut */
}

.social-link[aria-label="Instagram"]:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-link--whatsapp:hover {
  background: #25d366;
}

.social-link--allovoisins:hover {
  background: #00b67a;
}

/* Version claire pour page contact (fond clair) */
.contact-social .social-link {
  /* background: var(--color-cream); */
  color: var(--color-brown);
}

.contact-social .social-link:hover {
  color: white;
}
