/* Layout: page-centrée épurée, nav sticky, sections plein-écran commutées par ancre ;
     accent vert nature sur fond crème-vert, serif élégante (noms) + sans clair (texte). */
  :root {
    --bg: #f5f8f2;
    --surface: #ffffff;
    --surface-2: #eef3e9;
    --fg: #1b271f;
    --muted: #59685c;
    --accent: #2f7d5b;
    --accent-deep: #1c5b3f;
    --accent-soft: #dcebe0;
    --line: #dfe7da;
    --gold: #9a7b30;
    --shadow: 0 1px 2px rgba(27,39,31,.04), 0 8px 30px rgba(27,39,31,.06);
    --maxw: 1060px;
    --r: 16px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #10160f;
      --surface: #17201561;
      --surface: #182016;
      --surface-2: #1f2a1c;
      --fg: #e8efe4;
      --muted: #9db09f;
      --accent: #63b98c;
      --accent-deep: #8fd0ab;
      --accent-soft: #22331f;
      --line: #2a3826;
      --gold: #cdb26b;
      --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 34px rgba(0,0,0,.4);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --bg: #10160f;
    --surface: #182016;
    --surface-2: #1f2a1c;
    --fg: #e8efe4;
    --muted: #9db09f;
    --accent: #63b98c;
    --accent-deep: #8fd0ab;
    --accent-soft: #22331f;
    --line: #2a3826;
    --gold: #cdb26b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 34px rgba(0,0,0,.4);
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; line-height: 1.12; margin: 0; }
  a { color: inherit; }
  p { margin: 0 0 1em; }

  /* ---------- Nav ---------- */
  .nav {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 1.12rem; letter-spacing: .01em;
    cursor: pointer; background: none; border: 0; color: inherit; padding: 0;
  }
  .brand .mark {
    width: 30px; height: 30px; flex: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  }
  .brand small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
  .nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
  .nav-links button {
    font: inherit; font-size: .86rem;
    color: var(--muted);
    background: none; border: 0; cursor: pointer;
    padding: 8px 12px; border-radius: 999px;
    transition: color .15s, background .15s;
  }
  .nav-links button:hover { color: var(--fg); }
  .nav-links button[aria-current="true"] { color: var(--accent-deep); background: var(--accent-soft); font-weight: 700; }
  .theme-btn {
    font: inherit; cursor: pointer; background: none;
    border: 1px solid var(--line); color: var(--muted);
    width: 34px; height: 34px; border-radius: 999px; line-height: 1;
    display: grid; place-items: center;
  }

  /* ---------- Shell ---------- */
  main { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 72px; }
  .view { padding-top: 22px; }
  .eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 800; }

  /* ---------- Home hero ---------- */
  .hero { padding: 14px 0 10px; }
  .hero h1 { font-size: clamp(1.85rem, 4.4vw, 3rem); letter-spacing: -.01em; margin: 10px 0 0; }
  .hero .sub { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--muted); max-width: 52ch; margin-top: 12px; }
  .hero .season { color: var(--accent-deep); font-style: italic; }

  .stallion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
  @media (max-width: 720px) { .stallion-grid { grid-template-columns: 1fr; } }

  .card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--shadow);
  }
  .s-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; text-align: left; font: inherit; color: inherit; }
  .s-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 14px 40px rgba(27,39,31,.12); }
  .s-card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .s-card h2 { font-size: 1.9rem; }
  .s-card .souche { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .avail {
    align-self: flex-start;
    font-size: .78rem; font-weight: 800;
    color: #fff; background: var(--accent);
    padding: 5px 12px; border-radius: 999px;
  }
  .avail.solo { background: var(--gold); }
  .s-card .line { color: var(--muted); font-size: .95rem; }
  .s-card .go { color: var(--accent-deep); font-weight: 800; font-size: .9rem; margin-top: 4px; display: inline-flex; gap: 6px; align-items: center; }
  .card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
  .btn-sm { padding: 9px 16px; font-size: .86rem; }

  .intro-band {
    margin-top: 34px; padding: 26px 28px;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--r);
  }
  .intro-band h3 { font-size: 1.25rem; margin-bottom: 10px; }
  .intro-band p { color: var(--muted); margin-bottom: 0; }
  .intro-band p + p { margin-top: .8em; }

  /* offre analyse poulinière */
  .offer {
    margin-top: 22px; padding: 30px 32px;
    background: var(--accent); color: #fff;
    border-radius: var(--r);
    display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  }
  :root[data-theme="dark"] .offer, .offer { color: #fff; }
  .offer .txt { max-width: 46ch; }
  .offer .eyebrow { color: rgba(255,255,255,.85); }
  .offer h3 { font-size: 1.5rem; color: #fff; margin: 8px 0 8px; }
  .offer p { color: rgba(255,255,255,.9); margin: 0; }
  .offer .btn-white { background: #fff; color: var(--accent-deep); flex: none; }
  .offer .btn-white:hover { background: #f0f6f1; }

  /* ---------- Stallion detail ---------- */
  .back { font: inherit; font-size: .86rem; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 6px 0; display: inline-flex; gap: 6px; align-items: center; }
  .back:hover { color: var(--fg); }

  .detail-head { margin-top: 12px; }
  .detail-head h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); letter-spacing: -.01em; margin-top: 8px; }
  .detail-head .tagline { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin-top: 12px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .chip { font-size: .78rem; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
  .chip.avail-chip { background: var(--accent); color: #fff; }
  .chip.avail-chip.solo { background: var(--gold); }

  .stallion-photo {
    width: 100%; aspect-ratio: 16 / 9; max-height: 460px;
    margin-top: 24px; overflow: hidden;
    border-radius: var(--r); border: 1px solid var(--line);
    background: var(--surface-2); box-shadow: var(--shadow);
  }
  .stallion-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
  @media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } }
  .stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
  .stat .k { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .stat .v { font-family: var(--font-display); font-size: 1.5rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
  .stat .v small { font-size: .8rem; color: var(--muted); font-family: var(--font-body); }

  .section { margin-top: 40px; }
  .section > h2 { font-size: 1.6rem; margin-bottom: 6px; }
  .section > .lead { color: var(--muted); max-width: 62ch; margin-bottom: 18px; }

  .prose { max-width: 66ch; }
  .prose p { margin-bottom: 1em; }

  /* pedigree */
  .ped { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 640px) { .ped { grid-template-columns: 1fr; } }
  .ped .cell { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
  .ped .cell .role { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
  .ped .cell .name { font-family: var(--font-display); font-size: 1.2rem; margin-top: 4px; }
  .ped .cell .note { color: var(--muted); font-size: .9rem; margin-top: 6px; }

  /* croisements recommandés */
  .cross-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 640px) { .cross-grid { grid-template-columns: 1fr; } }
  .cross {
    background: var(--surface); border: 1px solid var(--line);
    border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 20px;
  }
  .cross.priority { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
  .cross.avoid { border-left-color: #b5462f; }
  .cross .tier { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--accent-deep); }
  .cross.avoid .tier { color: #b5462f; }
  .cross h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.02rem; margin: 6px 0; }
  .cross p { font-size: .92rem; color: var(--muted); margin: 0; }
  .cross .ex { margin-top: 8px; font-size: .85rem; color: var(--fg); }
  .cross .ex b { color: var(--accent-deep); }

  .callout {
    margin-top: 22px; padding: 18px 22px;
    background: var(--accent-soft); border-radius: 12px;
    font-size: .95rem;
  }
  .callout b { color: var(--accent-deep); }

  .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; align-items: center; }
  .btn {
    font: inherit; font-weight: 800; font-size: .95rem;
    cursor: pointer; border-radius: 999px; padding: 13px 24px;
    border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-deep); }
  .btn-ghost { background: none; color: var(--fg); border-color: var(--line); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
  .price-tag { color: var(--muted); font-size: .95rem; }
  .price-tag b { color: var(--fg); font-weight: 800; }

  /* ---------- Contact ---------- */
  .contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 26px; align-items: start; }
  @media (max-width: 760px) { .contact-wrap { grid-template-columns: 1fr; } }
  .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .field label { font-size: .82rem; font-weight: 700; color: var(--fg); }
  .field input, .field select, .field textarea {
    font: inherit; color: var(--fg);
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 11px 13px; width: 100%;
  }
  .field textarea { min-height: 120px; resize: vertical; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
  .contact-side .card { padding: 22px; }
  .contact-side .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .contact-side .row:last-child { border-bottom: 0; }
  .contact-side .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
  .contact-side .v { font-weight: 700; }
  .mail-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
  .mail-line code { font-family: var(--font-body); font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); padding: 4px 10px; border-radius: 8px; user-select: all; }
  .copy-btn { font: inherit; font-size: .78rem; cursor: pointer; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--muted); }
  .copy-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
  .form-note { font-size: .86rem; color: var(--muted); margin-top: 4px; }
  .form-status { margin-top: 12px; font-size: .92rem; color: var(--accent-deep); font-weight: 700; min-height: 1.2em; }

  footer { border-top: 1px solid var(--line); margin-top: 20px; }
  .foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 26px 20px 40px; color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
  .disclaimer { font-size: .78rem; color: var(--muted); max-width: 70ch; margin-top: 10px; line-height: 1.5; }

  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- ajouts multi-pages --- */
.skip-link{position:absolute;left:-9999px;top:0;background:var(--accent);color:#fff;padding:8px 14px;border-radius:0 0 8px 0;z-index:50}
.skip-link:focus{left:0}
.nav-links a{font:inherit;font-size:.86rem;color:var(--muted);text-decoration:none;padding:8px 12px;border-radius:999px;transition:color .15s,background .15s;display:inline-block}
.nav-links a:hover{color:var(--fg)}
.nav-links a[aria-current="page"]{color:var(--accent-deep);background:var(--accent-soft);font-weight:700}
.brand{text-decoration:none}
a.back{text-decoration:none}

/* --- largeur d'affichage & optimisation mobile --- */
:root{--maxw:1180px}
.hero .sub{max-width:74ch}
.detail-head .tagline{max-width:78ch}
.section > .lead{max-width:82ch}
.prose{max-width:none}
@media(min-width:900px){.prose{columns:2;column-gap:46px}.prose p{break-inside:avoid;margin-bottom:.9em}}
@media(max-width:560px){
  main{padding-left:16px;padding-right:16px}
  .s-card{padding:20px}
  .card-actions .btn-sm{flex:1 1 auto;text-align:center;justify-content:center}
  .intro-band,.offer{padding:22px 18px}
  .detail-head h1{font-size:clamp(1.7rem,7vw,2.2rem)}
  .section{margin-top:30px}
  .section>h2{font-size:1.4rem}
  .stallion-photo{aspect-ratio:3/2;max-height:none}
}

/* --- composants page Analyse --- */
.feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(max-width:640px){.feature-grid{grid-template-columns:1fr}}
.feature{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 20px}
.feature .ic{font-family:var(--font-display);font-size:1.3rem;color:var(--accent);line-height:1}
.feature h3{font-family:var(--font-body);font-weight:800;font-size:1rem;margin:8px 0 6px}
.feature p{margin:0;color:var(--muted);font-size:.92rem}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:700px){.steps{grid-template-columns:1fr}}
.step{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:18px 20px}
.step .num{font-family:var(--font-display);font-size:1.7rem;color:var(--accent);line-height:1}
.step h3{font-family:var(--font-body);font-weight:800;font-size:1rem;margin:8px 0 6px}
.step p{margin:0;color:var(--muted);font-size:.92rem}
.method-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:11px 28px}
@media(max-width:640px){.method-list{grid-template-columns:1fr}}
.method-list li{padding-left:28px;position:relative;line-height:1.5}
.method-list li::before{content:"";position:absolute;left:2px;top:.5em;width:9px;height:9px;border-radius:50%;background:var(--accent)}
.method-list li b{font-weight:800}
.method-note{margin-top:16px;font-size:.9rem;color:var(--muted);font-style:italic}
.check-field{display:flex;gap:10px;align-items:flex-start;margin:4px 0 16px}
.check-field input{margin-top:3px;width:18px;height:18px;flex:none;accent-color:var(--accent)}
.check-field label{font-size:.9rem;color:var(--fg);font-weight:600}
.badge-soon{display:inline-block;background:var(--gold);color:#fff;font-size:.7rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;padding:5px 11px;border-radius:999px}
