/* Polices hébergées avec le site (Fraunces et Inter, licence SIL Open Font License) */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }

  :root {
    --bg: #FFFDF9;
    --cream: #F7F1E8;
    --ink: #4A3B30;
    --muted: #7D6A5B;
    --gold: #C9955C;
    --accent: #96643A;
    --accent-hover: #7E5330;
    --rose: #E8A9A0;
    --line: #EDE3D6;
    --radius: 18px;
    --max: 1160px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }

  /* Boutons */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 500; font-size: 16px; text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
  }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
  .btn-ghost { color: var(--ink); border: 1px solid var(--line); background: #fff; }
  .btn-ghost:hover { border-color: var(--gold); }
  .link-arrow { font-weight: 500; text-decoration: none; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

  /* En-tête */
  header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255, 253, 249, .92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
  .brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
  .brand strong { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 24px; }
  .brand em { font-family: "Fraunces", Georgia, serif; font-size: 15px; color: var(--gold); margin-top: 4px; }
  .menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
  .menu a { text-decoration: none; }
  .menu a:not(.btn):hover { color: var(--accent); }
  .menu a[aria-current] { color: var(--accent); font-weight: 500; }
  .menu .btn { padding: 10px 20px; font-size: 15px; }
  #menu-toggle, .burger { display: none; }

  /* Bandeau principal */
  .hero { padding: 64px 0 88px; }
  .hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
  .hero h1 { font-size: clamp(40px, 5.2vw, 64px); letter-spacing: -.01em; }
  .hero h1 em { color: var(--accent); }
  .hero p.lead { font-size: 19px; color: var(--muted); margin: 24px 0 36px; max-width: 30em; }
  .actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-photo { position: relative; }
  .hero-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 28px; }
  .hero-badge {
    position: absolute; left: -24px; bottom: 32px;
    background: #fff; border-radius: 16px; padding: 14px 20px;
    box-shadow: 0 12px 32px rgba(74, 59, 48, .12);
    font-size: 14px; line-height: 1.4;
  }
  .hero-badge strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 20px; font-weight: 500; }

  /* Sections */
  section { padding: 96px 0; }
  .section-head { max-width: 640px; margin-bottom: 48px; }
  .section-head h2 { font-size: clamp(32px, 3.6vw, 44px); }
  .section-head p { color: var(--muted); margin: 16px 0 0; }

  /* Engagements */
  .promises { background: var(--cream); }
  .promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .promise { background: #fff; border-radius: var(--radius); padding: 32px; }
  .promise svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 20px; }
  .promise h3 { font-size: 22px; margin-bottom: 10px; }
  .promise p { margin: 0; color: var(--muted); font-size: 16px; }

  /* Races */
  .breeds { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .breed { text-decoration: none; display: block; }
  .breed figure { margin: 0 0 22px; overflow: hidden; border-radius: var(--radius); }
  .breed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
  .breed:hover img { transform: scale(1.04); }
  .breed h3 { font-size: 30px; margin-bottom: 8px; }
  .breed p { color: var(--muted); margin: 0 0 14px; }

  /* Bébés disponibles */
  .babies .card {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    background: var(--ink); color: #fff; border-radius: 28px; overflow: hidden;
  }
  .babies .card img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
  .babies .content { padding: 56px; }
  .babies .eyebrow { color: var(--rose); }
  .babies h2 { font-size: clamp(30px, 3.4vw, 42px); }
  .babies p { color: #E9DFD3; margin: 18px 0 30px; }
  .babies ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 8px; color: #E9DFD3; font-size: 15px; }
  .babies li::before { content: "✓"; color: var(--rose); margin-right: 10px; }
  .babies .btn-primary { background: #fff; color: var(--ink); }
  .babies .btn-primary:hover { background: var(--cream); }

  /* Histoire */
  .story .wrap { display: grid; grid-template-columns: .9fr 1fr; gap: 72px; align-items: center; }
  .story img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; border-radius: 28px; }
  .story h2 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 20px; }
  .story p { color: var(--muted); margin: 0 0 18px; }

  /* Appel final */
  .cta { text-align: center; background: var(--cream); }
  .cta h2 { font-size: clamp(32px, 4vw, 48px); }
  .cta p { color: var(--muted); max-width: 34em; margin: 16px auto 32px; }

  /* Pied de page */
  footer { padding: 56px 0 40px; font-size: 15px; color: var(--muted); }
  footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
  footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
  footer a { text-decoration: none; }
  footer a:hover { color: var(--accent); }
  footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; }
  .fb { display: inline-flex; align-items: center; gap: 8px; }

  a:focus-visible, .burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

  /* Mobile */
  @media (max-width: 900px) {
    .burger {
      display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px;
    }
    .burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
    .menu {
      display: none; position: absolute; top: 76px; left: 0; right: 0;
      flex-direction: column; align-items: flex-start; gap: 20px;
      background: var(--bg); padding: 24px; border-bottom: 1px solid var(--line);
    }
    #menu-toggle:checked ~ .menu { display: flex; }
    .hero { padding: 32px 0 64px; }
    .hero .wrap, .story .wrap, .babies .card, .breeds { grid-template-columns: 1fr; gap: 40px; }
    .hero-photo { order: -1; }
    .hero-badge { left: 16px; bottom: 16px; }
    .promise-grid { grid-template-columns: 1fr; }
    section { padding: 72px 0; }
    .babies .content { padding: 36px 28px; }
    .babies .card img { min-height: 260px; }
    .story img { aspect-ratio: 4 / 3; }
  }
  @media (max-width: 480px) {
    .wrap { padding: 0 16px; }
    .actions .btn { width: 100%; justify-content: center; }
  }

/* ===== Pages intérieures ===== */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(38px, 5vw, 58px); }
.page-head p.lead { font-size: 19px; color: var(--muted); max-width: 40em; margin: 20px 0 0; }
.page-head + section { padding-top: 24px; }

/* Filtres de la galerie */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button {
  font: inherit; font-size: 15px; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.filters button:hover { border-color: var(--gold); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Grille de photos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.photo { margin: 0; }
.photo button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.photo button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.photo button:hover img { transform: scale(1.04); }
.photo figcaption { padding: 12px 2px 0; font-size: 15px; line-height: 1.45; }
.photo figcaption strong { display: block; font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 19px; }
.photo figcaption span { display: block; color: var(--muted); }
.photo figcaption small { display: block; color: var(--gold); font-size: 13px; margin-top: 2px; }
.photo[hidden] { display: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

/* Visionneuse */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(30, 22, 16, .88); }
.lightbox img { max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 12px; }
.lightbox p { color: #fff; text-align: center; margin: 14px 0 0; font-size: 16px; }
.lightbox .lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 22px;
}
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }
.lightbox .lb-close { top: 36px; right: 20px; transform: none; }

/* Mes chiennes */
.dogs-group { margin-bottom: 40px; }
.dogs-group > h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 8px; }
.dogs-group > p { color: var(--muted); margin: 0 0 40px; }
.dog { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.dog-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.dog h3 { font-size: 40px; }
.dog .dates { color: var(--gold); font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 20px; margin: 4px 0 16px; }
.dog .dog-text { color: var(--muted); margin: 0 0 24px; }
.dog .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dog .photo figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; }
.dog .photo button { border-radius: 12px; }
.dog .photo img { aspect-ratio: 1; }

/* Adoption */
.conditions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 72px; }
.condition { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.condition h3 { font-size: 21px; margin-bottom: 8px; }
.condition p { margin: 0; color: var(--muted); font-size: 16px; }
.baby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.baby { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.baby img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.baby .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.baby h3 { font-size: 21px; }
.baby .meta { display: flex; justify-content: space-between; align-items: center; }
.status { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #E6F0E3; color: #3F6B36; }
.status.reserved { background: #F6E7D2; color: #8A5A1E; }
.status.adopted { background: #EEE; color: #666; }
.price { font-family: "Fraunces", Georgia, serif; font-size: 24px; }
.baby .btn { margin-top: auto; justify-content: center; padding: 12px 20px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { padding-top: 20px; border-top: 2px solid var(--gold); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: "Fraunces", Georgia, serif; font-size: 34px; color: var(--gold); display: block; margin-bottom: 8px; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 15px; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1px solid #DDD0BF; border-radius: 12px; background: #fff;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; }
.form-success { display: none; background: #E6F0E3; color: #2F5527; border-radius: 14px; padding: 18px 20px; }
.form-success.show { display: block; }
.aside { background: var(--cream); border-radius: var(--radius); padding: 32px; }
.aside h2 { font-size: 26px; margin-bottom: 16px; }
.aside p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.aside a { color: var(--accent); }

/* Texte long */
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }

@media (max-width: 900px) {
  .dog, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .conditions, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 24px; }
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
}
@media (max-width: 480px) {
  .dog .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Galerie : femelles et mâles */
.sex-group { margin-bottom: 64px; }
.sex-group[hidden] { display: none; }
.sex-title { display: flex; align-items: center; gap: 14px; font-size: clamp(28px, 3vw, 36px); margin-bottom: 28px; }
.sex-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.sex-badge svg { width: 20px; height: 20px; }
.sex-badge.f { background: #F6DCD7; color: #A2463A; }
.sex-badge.m { background: #D9E6EF; color: #2F5E80; }
.sex-title .sex-badge { width: 44px; height: 44px; }
.sex-title .sex-badge svg { width: 26px; height: 26px; }
.photo button { position: relative; }
.photo .sex-badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logo */
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
footer .brand-logo { width: 44px; height: 44px; }
@media (max-width: 480px) {
  .brand-logo { width: 44px; height: 44px; }
  .brand strong { font-size: 21px; }
}

/* Date de mise à jour */
.updated {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 28px 0 0; padding: 7px 14px; border-radius: 999px;
  background: var(--cream); color: var(--muted); font-size: 14px;
}
.updated svg { width: 16px; height: 16px; color: var(--accent); }
.updated time { color: var(--ink); font-weight: 500; }

/* Section de Noël : masquée hors période (affichée par noel.css) */
.noel-section { display: none; }

/* Adresse e-mail sur la page Contact */
.aside .aside-email { display: flex; align-items: center; gap: 10px; }
.aside-email svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.aside-email a { font-weight: 500; word-break: break-all; }

/* Logo agrandi */
.nav { height: 92px; }
.brand { gap: 14px; }
.brand-logo { width: 68px; height: 68px; box-shadow: 0 0 0 2px #fff, 0 2px 10px rgba(74, 59, 48, .18); }
.brand strong { font-size: 26px; }
.brand em { font-size: 16px; }
footer .brand-logo { width: 60px; height: 60px; }
@media (max-width: 900px) {
  .menu { top: 92px; }
}
@media (max-width: 480px) {
  .nav { height: 80px; }
  .menu { top: 80px; }
  .brand-logo { width: 56px; height: 56px; }
  .brand strong { font-size: 22px; }
}

/* Icône Facebook dans l'en-tête */
.nav { justify-content: flex-start; }
.menu { order: 1; margin-left: auto; }
.fb-header {
  order: 2; margin-left: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: #1877F2; color: #fff;
  transition: background .2s, transform .2s;
}
.fb-header:hover { background: #0F62D0; transform: translateY(-1px); }
.fb-header svg { width: 20px; height: 20px; }
.fb-header:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.burger { order: 3; }
@media (max-width: 900px) {
  .fb-header { margin-left: auto; margin-right: 6px; width: 40px; height: 40px; }
}

/* Formulaire : piège à robots et message d'erreur */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-error { display: none; background: #F8E1DE; color: #8A2D24; border-radius: 14px; padding: 18px 20px; margin: 0; }
.form-error.show { display: block; }
.form-error a { color: inherit; font-weight: 500; }
.form .btn:disabled { opacity: .6; cursor: wait; }

/* Bandeau de consentement aux cookies (Google Analytics) */
.cookies-banner {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin: 0 auto;
  background: #fff; color: var(--ink);
  border-radius: 18px; padding: 20px 22px;
  box-shadow: 0 10px 40px rgba(74, 59, 48, .22);
  display: grid; gap: 14px;
}
.cookies-banner[hidden] { display: none; }
.cookies-banner p { margin: 0; font-size: 15px; line-height: 1.55; }
.cookies-banner a { color: var(--accent); }
.cookies-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookies-actions .btn { min-width: 120px; justify-content: center; }
@media (max-width: 480px) { .cookies-actions .btn { flex: 1; } }
.cookies-link[hidden] { display: none; }
