/* ============================================
   DOGGY STAR — STYLE.CSS
   Toiletteur canin & félin à Saint-Vincent-de-Tyrosse
   Design System Vanilla CSS (4 couleurs max)
   ============================================ */

/* ===== 1. RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== 2. CUSTOM PROPERTIES ===== */
:root {
  --color-bg: #f7f5f1;            /* Fond pierre chaude — écho à la façade en pierre de la boutique */
  --color-bg-alt: #ede9e1;        /* Alternance de sections */
  --color-primary: #1a1c26;       /* Bleu marine quasi-noir — repris tel quel de l'enseigne réelle */
  --color-primary-dark: #0c0d13;  /* ~15% plus sombre — hover, nav sticky */
  --color-accent: #b4903a;        /* Or feutré — chaleur, distinct du gris pour ne pas faire un site tout en niveaux de gris */
  --color-accent-dark: #937226;   /* Hover accent */
  --color-text: #1a1c26;          /* Reprend le marine — jamais de gris-bleu générique */
  --color-text-light: #5c5f6b;    /* Texte secondaire, gris froid assorti au marine */
  --color-white: #ffffff;

  /* Ombres en couches — teintées marine, jamais gris neutre */
  --shadow-depth-sm:
    0 1px 2px rgba(26, 28, 38, 0.05),
    0 2px 4px rgba(26, 28, 38, 0.04);
  --shadow-depth-md:
    0 1px 2px rgba(26, 28, 38, 0.04),
    0 4px 8px rgba(26, 28, 38, 0.05),
    0 12px 24px rgba(26, 28, 38, 0.06);
  --shadow-depth-lg:
    0 2px 4px rgba(26, 28, 38, 0.04),
    0 8px 16px rgba(26, 28, 38, 0.06),
    0 24px 48px rgba(26, 28, 38, 0.07);

  /* Espacement */
  --space-xs: 8px;
  --space-s:  16px;
  --space-m:  24px;
  --space-l:  48px;
  --space-xl: 80px;

  /* Layout */
  --max-width: 1100px;
  --border-radius: 12px;
  --btn-radius: 12px;

  /* Typographie — system font stack obligatoire */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

/* ===== 3. BASE ===== */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}

h1 {
  font-size: 2rem;
  margin-bottom: var(--space-m);
}

h2 {
  font-size: 1.625rem;
  margin-bottom: var(--space-s);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

p {
  max-width: 65ch;
  color: var(--color-text-light);
}

.section-title {
  text-align: center;
  margin: 0 auto var(--space-s) auto;
}

.section-subtitle {
  text-align: center;
  margin: 0 auto var(--space-xl) auto;
  font-size: 1.0625rem;
}

/* ===== 4. LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.section {
  padding: var(--space-l) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

/* ===== 5. COMPOSANTS ===== */

/* --- Header / Navigation (zero-wrap obligatoire) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 28, 38, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-m);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex-shrink: 0;
}

.logo-badge {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 16px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  white-space: nowrap;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  white-space: nowrap;
}

.badge-google {
  font-size: 12px;
  color: var(--color-text);
  font-weight: 700;
  background: var(--color-accent);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  display: inline-block;
  align-self: start;
  white-space: nowrap;
}

#main-nav {
  min-width: 0;
}

#main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-m);
}

#main-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.15s;
}

#main-nav a:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  flex-shrink: 0;
}

.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-call {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--btn-radius);
  white-space: nowrap;
  transition: transform 0.15s, filter 0.15s;
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-call:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px auto;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Boutons généraux --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font);
  border-radius: var(--btn-radius);
  cursor: pointer;
  border: none;
  min-height: 48px; /* touch target */
  transition: transform 0.15s, filter 0.15s;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.btn-block {
  width: 100%;
}

/* --- Hero + mesh gradient (technique de profondeur n°1) --- */
.hero {
  padding: var(--space-xl) 0;
}

.hero-aurora {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--color-primary) 12%, transparent), transparent 55%),
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--color-accent) 20%, transparent), transparent 55%),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 60%),
    var(--color-bg);
}

.hero-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero-bg.webp") center / cover no-repeat;
  opacity: 0.10;
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: var(--space-m);
  max-width: 100%;
}

.hero h1 {
  font-size: 2rem;
}

.hero-subtitle {
  font-size: 1.0625rem;
  margin: 0 auto var(--space-l) auto;
  color: var(--color-text-light);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin-bottom: var(--space-l);
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: center;
  border-top: 1px solid rgba(26, 28, 38, 0.12);
  padding-top: var(--space-m);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-light);
}

.stars {
  color: var(--color-accent-dark);
  letter-spacing: 2px;
}

/* --- Prestations (cartes, ombres en couches — technique n°2) --- */
.card {
  background: var(--color-white);
  padding: var(--space-l);
  border-radius: var(--border-radius);
  border: 1px solid rgba(26, 28, 38, 0.08);
  box-shadow: var(--shadow-depth-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-depth-lg);
}

.card-icon {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: var(--space-m);
  transition: transform 0.2s ease;
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
}

.card h3 {
  color: var(--color-primary);
}

.card p {
  font-size: 15px;
  max-width: none;
}

/* --- Avis clients --- */
.google-rating-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-m);
}

.rating-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.google-rating-box .stars {
  font-size: 22px;
  margin: var(--space-xs) 0;
}

.rating-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-light);
}

.card-review {
  border-left: 3px solid var(--color-accent);
  box-shadow: var(--shadow-depth-md);
}

.card-review:hover {
  box-shadow: var(--shadow-depth-lg);
}

.avis-header {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-bottom: var(--space-m);
}

.author-avatar {
  background: var(--color-primary);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
}

.avis-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.avis-identity cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
}

.avis-stars {
  font-size: 12px;
  color: var(--color-accent-dark);
  white-space: nowrap;
}

.card-review p {
  font-size: 15px;
  font-style: italic;
  color: var(--color-text);
  max-width: none;
}

/* --- Où nous trouver --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
}

.contact-address {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-m);
}

.hours-list {
  margin-bottom: var(--space-l);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-s);
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 28, 38, 0.1);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-row dt {
  color: var(--color-text-light);
  font-weight: 600;
}

.hours-row dd {
  color: var(--color-primary);
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.contact-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-depth-md);
  border: 1px solid rgba(26, 28, 38, 0.08);
  min-height: 280px;
}

.contact-map iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-l) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  text-align: center;
  align-items: center;
}

.footer-brand .logo-text {
  color: var(--color-white);
  font-size: 20px;
  margin-bottom: 4px;
  display: block;
}

.footer-brand p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
}

.footer-contact a {
  display: inline-block;
  padding: 11px 2px;
  color: var(--color-white);
  font-weight: 700;
}

.footer-legal p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal nav {
  display: flex;
  gap: var(--space-m);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-xs);
}

.footer-legal nav a {
  display: inline-block;
  padding: 11px 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.footer-legal nav a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* --- Pages légales (Mentions & Confidentialité) --- */
.legal-section {
  padding: var(--space-xl) 0;
}

.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  margin-bottom: var(--space-l);
}

.legal-content h2 {
  font-size: 18px;
  margin-top: var(--space-l);
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.legal-content p {
  color: var(--color-text-light);
  margin-bottom: var(--space-s);
  max-width: none;
}

.legal-content a {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .card, .card-icon, .btn, .btn-call {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== 6. MOBILE (< 768px) — nav off-canvas, textes des boutons masqués ===== */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .menu-toggle {
    display: block;
  }

  #main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(26, 28, 38, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    box-shadow: var(--shadow-depth-md);
  }

  #main-nav.open {
    max-height: 280px;
  }

  #main-nav ul {
    flex-direction: column;
    padding: var(--space-s) var(--space-m);
    gap: 0;
  }

  #main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(26, 28, 38, 0.06);
  }

  #main-nav li:last-child {
    border-bottom: none;
  }

  #main-nav a {
    display: block;
    padding: 12px 0;
  }

  .btn-call span {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .btn-call {
    padding: 8px;
    min-width: 44px;
    height: 44px;
    justify-content: center;
  }
}

/* ===== 7. DESKTOP (min-width: 768px) ===== */
@media (min-width: 768px) {
  .section {
    padding: var(--space-xl) 0;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  #avis .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero-trust {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-l);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .contact-actions {
    flex-direction: row;
  }

  .contact-actions .btn {
    flex: 1;
  }

  .contact-map {
    min-height: 360px;
  }

  .contact-map iframe {
    min-height: 360px;
  }
}
