/* =================================================
   JULIA MARTINS — Ostéopathie Animale
   Design : éditorial, noir & blanc, Libre Baskerville
   Mobile-first — Kirby 4
   ================================================= */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@700&display=swap');

/* --- Variables --- */
:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #e4e4e4;
  --gray-light: #e8e6e1;
  --gray-mid: #888888;
  --gray-text: #555555;
  --border: 0.5px solid #000;
  --border-light: 0.5px solid #e0deda;
  --font: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-ui: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-btn: 'Montserrat', system-ui, sans-serif;
  --nav-h: 56px;
  --header-h: 72px;
  --max-w: 860px;
  /* Soft pastels for nav buttons */
  --pastel-home: #107aca;
  /* peach */
  --pastel-services: #107aca;
  /* mint */
  --pastel-blog: #107aca;
  /* lavender */
  --pastel-contact: #107aca;
  /* cream */
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--white);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.site-logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--black);
  line-height: 1;
}

.site-logo span {
  display: block;
  font-size: .7rem;
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-top: 6px;
}

/* Desktop nav — hidden on mobile */
.site-nav {
  display: none;
}

/* =============================================
   BOTTOM NAV (mobile only)
   ============================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-top: var(--border);
  display: flex;
  align-items: stretch;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--gray-mid);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.bottom-nav a .nav-label {
  font-size: 8.5px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1;
}

.bottom-nav a .nav-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav a[aria-current="page"] {
  color: var(--black);
}

.bottom-nav a[aria-current="page"] .nav-label {
  font-weight: 700;
}

/* Pastel backgrounds on active nav items */
.bottom-nav a:nth-child(1)[aria-current="page"] {
  background-color: var(--pastel-home);
}

.bottom-nav a:nth-child(2)[aria-current="page"] {
  background-color: var(--pastel-services);
}

.bottom-nav a:nth-child(3)[aria-current="page"] {
  background-color: var(--pastel-blog);
}

.bottom-nav a:nth-child(4)[aria-current="page"] {
  background-color: var(--pastel-contact);
}

main {
  padding-bottom: calc(var(--nav-h) + 16px);
}

/* =============================================
   DESKTOP (≥ 768px)
   ============================================= */
@media (min-width: 768px) {
  body {
    min-height: 100vh;
  }

  .bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 0;
    max-width: 55vw;
    margin: 0 auto;
  }

  .site-nav {
    display: flex;
    gap: 32px;
  }

  .site-nav a {
    font-size: .9rem;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-mid);
    transition: color .15s, background-color .15s;
    padding: 8px 14px;
    border-radius: 4px;
  }

  .site-nav a:hover {
    color: var(--black);
  }

  .site-nav a[aria-current="page"] {
    color: var(--black);
    font-weight: 700;
  }

  /* Pastel backgrounds for desktop nav */
  .site-nav a:nth-child(1):hover {
    background-color: var(--pastel-services);
  }

  .site-nav a:nth-child(1)[aria-current="page"] {
    background-color: var(--pastel-services);
  }

  .site-nav a:nth-child(2):hover {
    background-color: var(--pastel-blog);
  }

  .site-nav a:nth-child(2)[aria-current="page"] {
    background-color: var(--pastel-blog);
  }

  .site-nav a:nth-child(3):hover {
    background-color: var(--pastel-contact);
  }

  .site-nav a:nth-child(3)[aria-current="page"] {
    background-color: var(--pastel-contact);
  }

  .inner {
    max-width: var(--max-w);
    margin: 0 auto;
  }

  /* Desktop typography — slightly bigger */
  h1 {
    font-size: clamp(28px, 6vw, 44px);
  }

  h2 {
    font-size: clamp(20px, 4.5vw, 32px);
  }

  h3 {
    font-size: 17px;
  }

  p {
    font-size: 14px;
  }

  .btn {
    font-size: 11px;
    padding: 14px 26px;
  }

 .social-row {
    /* display: none !important; */
    border: none !important;
  }

  .social-row--home-only {
    display: none !important;
  }

  .social-row a {
    border: none;
  }

  .social-link {
    margin: 1rem;
  }

  .cta-cell {
    border: var(--border);
    margin: 1rem;
  }

  .cta-grid {
    border: none !important;
  }

  .home-hero {
    border: none !important;
  }

  .blog-grid {
    display: flex;
    gap: 20px;
    padding: 1rem;
    max-width: 100%;
  }

  .blog-card {
    flex: 1;
    padding: 0;
    border: none;
    border: 0.5px solid var(--border-light);
  }

  .blog-card:hover {
    background: transparent;
  }

  .blog-cover-wrap {
    height: 180px;
    margin-bottom: 14px;
  }

  .blog-title {
    font-size: 16px;
    padding: 0 16px;
  }

  .blog-excerpt {
    padding: 0 16px;
    font-size: 13px;
  }

  .blog-card-footer {
    padding: 0 16px 16px;
  }

  .articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .article-row {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: var(--border-light);
    border-radius: 4px;
    border-bottom: none;
  }

  .article-row:hover {
    background: var(--off-white);
  }

  .article-thumb {
    width: 100%;
    height: 160px;
  }
}


/* =============================================
   TYPOGRAPHY
   ============================================= */
h1 {
  font-size: clamp(22px, 5.5vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(17px, 4vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

h3 {
  font-size: 15px;
  font-weight: 700;
}

.label-ui {
  font-size: 9px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-mid);
}

.badge {
  display: inline-block;
  font-size: 9px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .06em;
  border: var(--border);
  padding: 3px 8px;
  margin-top: 10px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 13px 22px;
  font-size: 10px;
  font-family: var(--font-btn);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  background: transparent;
  color: var(--black);
  border: var(--border);
  text-align: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.btn:hover {
  background: var(--black);
  color: var(--white);
}

.btn-fill {
  background: var(--black);
  color: var(--white);
}

.btn-fill:hover {
  background: #333;
}

.btn-block {
  display: block;
  width: 100%;
}

/* =============================================
   PAGE HEADER (shared across pages)
   ============================================= */
.page-header {
  padding: 24px 20px 18px;
  border-bottom: var(--border);
}

.page-header .label-ui {
  display: block;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 12px;
  font-family: var(--font-ui);
  color: var(--gray-mid);
  margin-top: 6px;
  line-height: 1.6;
}

/* =============================================
   HOME
   ============================================= */
.home-hero {
  padding: 28px 20px 22px;
  border-bottom: var(--border);
}

.home-hero ul, li {
  list-style-type: none;
}

.home-hero h1 {
  margin-bottom: 14px;
}

.home-hero p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--gray-text);
  margin-bottom: 14px;
  
}

.home-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
}

.home-specialties span {
  font-size: 11px;
  font-family: var(--font-ui);
  color: var(--gray-mid);
}

.home-specialties span::before {
  content: '— ';
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--border);
}

.cta-cell {
  padding: 20px 16px;
  border-right: var(--border);
  text-decoration: none;
  display: block;
  color: inherit;
  transition: background .15s;
}

.cta-cell:hover {
  background: var(--off-white);
}

/* .cta-cell:last-child { border-right: none; } */
.cta-cell h3 {
  font-size: 1.25rem;
  font-family: var(--font-btn);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--black);
  margin-bottom: 5px;
}

.cta-cell p {
  font-size: 11px;
  color: var(--gray-mid);
  font-family: var(--font-ui);
  line-height: 1.5;
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--border);
}

.social-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px;
  font-size: 11px;
  font-family: var(--font-ui);
  color: var(--black);
  border-right: var(--border);
  text-decoration: none;
  transition: background .15s;
}

.social-link:hover {
  background: var(--off-white);
}

.social-link:last-child {
  border-right: none;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.latest-label {
  padding: 16px 20px 8px;
}

/* =============================================
   ARTICLE ROW (home & blog list)
   ============================================= */
.article-row {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: var(--border-light);
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}

.article-row:hover {
  background: var(--off-white);
}

.article-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--off-white);
  border: var(--border-light);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
}

.article-meta {
  flex: 1;
  min-width: 0;
}

.art-cat {
  font-size: 9px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-mid);
  margin-bottom: 5px;
}

.art-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  margin-bottom: 4px;
  white-space: normal;
}

.art-date {
  font-size: 10px;
  font-family: var(--font-ui);
  color: var(--gray-mid);
}

/* Mobile: articles stack vertically */
.articles-grid {
  display: flex;
  flex-direction: column;
}

/* =============================================
   SERVICES
   ============================================= */

.service-item {
  padding: 22px 20px;
  border-bottom: var(--border-light);
}

.serv-num {
  font-size: 9px;
  font-family: var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 8px;
}

.serv-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.serv-desc {
  font-size: 13px;
  font-family: var(--font-ui);
  color: var(--gray-text);
  line-height: 1.7;
}

.rdv-cta-block {
  margin: 24px 20px;
  border: var(--border);
  padding: 22px;
}

.rdv-cta-block h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.rdv-cta-block p {
  font-size: 12px;
  font-family: var(--font-ui);
  color: var(--gray-mid);
  margin-bottom: 16px;
  line-height: 1.65;
}

/* =============================================
   BLOG
   ============================================= */
.blog-grid {
  display: flex;
  flex-direction: row;
}

.blog-card {
  flex: 1;
  display: block;
  padding: 18px 20px;
  border-bottom: var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}

.blog-card:hover {
  background: var(--off-white);
}

.blog-cover-wrap {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--off-white);
  border: var(--border-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.blog-excerpt {
  font-size: 12px;
  font-family: var(--font-ui);
  color: var(--gray-mid);
  line-height: 1.65;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-family: var(--font-ui);
  color: #1877F2;
  background: #e8f0fe;
  padding: 2px 7px;
  border-radius: 3px;
}

.fb-badge svg {
  width: 10px;
  height: 10px;
  fill: #1877F2;
}

/* =============================================
   ARTICLE DETAIL
   ============================================= */
.article-header {
  padding: 22px 20px 18px;
  border-bottom: var(--border);
}

.article-header h1 {
  font-size: clamp(19px, 5vw, 30px);
  margin-bottom: 10px;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-cover-wrap {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
  background: var(--off-white);
  border-bottom: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 22px 20px 10px;
}

.article-body p {
  font-size: 14px;
  line-height: 1.9;
  color: #1a1a1a;
  margin-bottom: 18px;
}

.article-body h2 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.article-body h3 {
  font-size: 15px;
  margin: 22px 0 8px;
}

.article-body img {
  width: 100%;
  margin: 18px 0;
  border: var(--border-light);
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin: 12px 0;
}

.article-body li {
  font-size: 13px;
  font-family: var(--font-ui);
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 4px;
}

.article-body blockquote {
  border-left: 2px solid var(--black);
  padding: 8px 16px;
  margin: 20px 0;
  font-style: italic;
  color: var(--gray-text);
}

/* =============================================
   FACEBOOK PUBLISH PANEL
   ============================================= */
.fb-panel {
  margin: 20px;
  border: var(--border);
}

.fb-panel-toggle {
  width: 100%;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.fb-panel-toggle-label {
  font-size: 10px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .1em;
  display: flex;
  align-items: center;
  gap: 9px;
}

.fb-panel-toggle-label svg {
  width: 14px;
  height: 14px;
  fill: var(--white);
  flex-shrink: 0;
}

.fb-chevron {
  width: 14px;
  height: 14px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform .2s ease;
}

.fb-panel.is-open .fb-chevron {
  transform: rotate(180deg);
}

.fb-panel-body {
  padding: 16px;
  display: none;
  background: var(--white);
}

.fb-panel.is-open .fb-panel-body {
  display: block;
}

.fb-preview {
  border: 0.5px solid #ddd;
  padding: 12px;
  margin-bottom: 14px;
  background: #f8f8f8;
}

.fb-preview-page {
  font-size: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  color: #1877F2;
  margin-bottom: 8px;
}

.fb-preview-cover {
  width: 100%;
  height: 70px;
  background: var(--off-white);
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}

.fb-preview-ph {
  width: 100%;
  height: 70px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--gray-light);
}

.fb-preview-title {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-ui);
  color: var(--black);
  margin-bottom: 2px;
}

.fb-preview-url {
  font-size: 10px;
  font-family: var(--font-ui);
  color: #aaa;
}

.fb-caption-label {
  display: block;
  font-size: 9px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-mid);
  margin-bottom: 7px;
}

.fb-caption {
  width: 100%;
  border: 0.5px solid #ccc;
  padding: 10px;
  font-size: 12px;
  font-family: var(--font-ui);
  resize: vertical;
  min-height: 70px;
  background: var(--white);
  color: var(--black);
  outline: none;
}

.fb-caption:focus {
  border-color: var(--black);
}

.fb-publish-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: #1877F2;
  color: var(--white);
  font-size: 9px;
  font-family: var(--font-btn);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s;
}

.fb-publish-btn:hover {
  background: #155ec1;
}

.fb-publish-btn:disabled {
  background: #4caf50;
  cursor: not-allowed;
}

.fb-publish-btn svg {
  width: 12px;
  height: 12px;
  fill: var(--white);
}

.fb-success,
.fb-error {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 11px;
  font-family: var(--font-ui);
  margin-top: 10px;
}

.fb-success.visible,
.fb-error.visible {
  display: flex;
}

.fb-success {
  background: #e8f5e9;
  border: 0.5px solid #4caf50;
  color: #2e7d32;
}

.fb-error {
  background: #ffebee;
  border: 0.5px solid #f44336;
  color: #c62828;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-info {
  padding: 18px 20px;
  border-bottom: var(--border-light);
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.contact-info-row:last-child {
  margin-bottom: 0;
}

.contact-info-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.contact-form {
  padding: 18px 20px 10px;
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 9px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-mid);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border: none;
  border-bottom: 0.5px solid var(--black);
  padding: 9px 0;
  font-size: 14px;
  font-family: var(--font);
  color: var(--black);
  background: transparent;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--black);
}

select {
  font-family: var(--font-ui);
  font-size: 13px;
}

textarea {
  border: 0.5px solid #ccc;
  padding: 12px;
  min-height: 90px;
  resize: vertical;
  font-family: var(--font-ui);
  font-size: 13px;
}

textarea:focus {
  border-color: var(--black);
}

input::placeholder,
textarea::placeholder {
  color: #ccc;
  font-family: var(--font-ui);
}

.form-submit {
  margin-top: 6px;
}

.alert {
  padding: 13px 16px;
  font-size: 12px;
  font-family: var(--font-ui);
  line-height: 1.65;
  margin-bottom: 18px;
}

.alert-success {
  border: 0.5px solid #4caf50;
  background: #e8f5e9;
  color: #2e7d32;
}

.alert-error {
  border: 0.5px solid #f44336;
  background: #ffebee;
  color: #c62828;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  padding: 24px 20px;
  border-top: var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 10px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-mid);
  line-height: 1.6;
}


@media (max-width: 767px) {
  .site-footer {
    margin-bottom: var(--nav-h);
  }

  .cta-cell {
    padding: .9rem;
  }
}