/* La Comancheria — feuille de style */
:root {
  --nuit: #16181a;
  --nuit-2: #1e2124;
  --terre: #2a2420;
  --craie: #efe9dc;
  --craie-douce: rgba(239, 233, 220, .72);
  --craie-pale: rgba(239, 233, 220, .35);
  --ocre: #c98a4b;
  --rouge: #a8553a;
  --max: 1120px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --titre: "Rye", "Cormorant Garamond", Georgia, serif;
  --main: "Gochi Hand", "Segoe Print", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--nuit);
  color: var(--craie);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* grain d'ardoise */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .5;
  background-image:
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.25) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}
img, svg { max-width: 100%; }
a { color: var(--ocre); }
a:hover { color: var(--craie); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.dessin { fill: none; stroke: var(--craie); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dessin path, .dessin circle { vector-effect: non-scaling-stroke; }
/* trait de craie : ligne légèrement cassée */
.dessin path:not([stroke-dasharray]), .dessin circle { stroke-dasharray: 17 1.6 7 1.2 23 2 4 1; opacity: .92; }
.dessin .plein { fill: var(--craie); stroke: none; }
.dessin .ocre { stroke: var(--ocre); }

.conteneur { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s;
}
.nav.scrolled { background: rgba(22, 24, 26, .95); border-bottom: 1px dashed var(--craie-pale); }
.nav .conteneur { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--craie); text-decoration: none; font-family: var(--titre); font-size: 1.15rem; letter-spacing: .04em; }
.logo svg { width: 34px; height: 34px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav ul a { color: var(--craie-douce); text-decoration: none; font-family: var(--main); font-size: 1.15rem; }
.nav ul a:hover { color: var(--craie); }
.burger { display: none; background: none; border: 0; color: var(--craie); font-size: 1.8rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #252a2e 0%, var(--nuit) 70%);
  padding-block: 110px 0;
}
.hero-ciel { position: absolute; inset: 0; width: 100%; height: 100%; }
.etoile { animation: scintille 4s ease-in-out infinite; }
.etoile:nth-child(3n) { animation-delay: 1.3s; }
.etoile:nth-child(4n) { animation-delay: 2.6s; }
@keyframes scintille { 0%, 100% { opacity: .9 } 50% { opacity: .25 } }

.hero-texte { position: relative; z-index: 2; padding-inline: 20px; }
.surtitre { font-family: var(--main); font-size: 1.3rem; color: var(--ocre); letter-spacing: .06em; margin: 0 0 .4em; }
.hero h1 {
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: 1;
  margin: 0;
  letter-spacing: .03em;
  text-shadow: 0 0 1px var(--craie), 2px 2px 0 rgba(0,0,0,.4);
}
.hero .accroche { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-style: italic; color: var(--craie-douce); max-width: 36ch; margin: 1em auto 0; }
.ornement { display: block; width: 220px; height: 24px; margin: 1.2rem auto; }

.hero-paysage { position: relative; z-index: 1; width: 100%; max-width: 1400px; margin-top: auto; display: block; }

.defiler { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--main); color: var(--craie-douce); text-decoration: none; font-size: 1rem; }
.defiler span { display: block; animation: flotte 2.4s ease-in-out infinite; font-size: 1.4rem; }
@keyframes flotte { 50% { transform: translateY(6px); } }

/* ---------- Sections ---------- */
section { position: relative; padding-block: 110px; }
.section-titre { text-align: center; margin-bottom: 60px; }
.section-titre .numero { font-family: var(--main); color: var(--ocre); font-size: 1.2rem; }
.section-titre h2 { font-family: var(--titre); font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); margin: .1em 0 0; letter-spacing: .03em; line-height: 1.15; }
.section-titre p { color: var(--craie-douce); font-style: italic; max-width: 52ch; margin: .6em auto 0; }

.sep { display: block; width: min(560px, 90%); height: 30px; margin: 0 auto; }

.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.deux-col p { margin: 0 0 1em; }
.lettrine::first-letter { font-family: var(--titre); float: left; font-size: 3.6em; line-height: .85; padding: .06em .12em 0 0; color: var(--ocre); }
.cadre-dessin { border: 2px solid var(--craie-pale); border-radius: 4px 12px 6px 14px / 12px 5px 14px 6px; padding: 26px; position: relative; }
.cadre-dessin::after { content: ""; position: absolute; inset: 7px; border: 1px dashed var(--craie-pale); border-radius: inherit; pointer-events: none; }
.cadre-dessin svg { display: block; width: 100%; height: auto; }
.cadre-photo { padding: 14px; --mx: 0; --my: 0; }
.cadre-photo::after { transition: transform .6s cubic-bezier(.2,.7,.2,1), border-color .6s; z-index: 2; }
.photo-zoom { overflow: hidden; border-radius: 2px; }
.cadre-photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover; object-position: 38% 55%;
  filter: sepia(.35) saturate(.75) contrast(1.05) brightness(.92);
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .9s;
}
/* survol : la trame glisse sur la photo, l'image grossit légèrement */
.cadre-photo:hover::after {
  transform: translate(calc(var(--mx) * -12px + 10px), calc(var(--my) * -9px + 10px)) rotate(-.5deg);
  border-color: var(--craie-douce);
}
.cadre-photo:hover img {
  transform: scale(1.05) translate(calc(var(--mx) * 5px), calc(var(--my) * 4px));
  filter: sepia(.2) saturate(.9) contrast(1.05) brightness(.98);
}
@media (prefers-reduced-motion: reduce) {
  .cadre-photo::after, .cadre-photo img { transition: none; }
  .cadre-photo:hover::after, .cadre-photo:hover img { transform: none; }
}
.legende { font-family: var(--main); color: var(--craie-douce); text-align: center; margin-top: 10px; font-size: 1.05rem; }

/* ---------- Saisons ---------- */
.saisons { background: linear-gradient(180deg, var(--nuit) 0%, var(--terre) 50%, var(--nuit) 100%); }
.saisons-grille { display: grid; grid-template-columns: 1fr auto 1fr; gap: 36px; align-items: stretch; }
.saison { border: 2px solid var(--craie-pale); border-radius: 10px 4px 12px 5px / 5px 12px 4px 10px; padding: 34px 30px; background: rgba(0,0,0,.18); }
.saison svg { width: 100%; height: 160px; display: block; margin-bottom: 18px; }
.saison .periode { font-family: var(--main); color: var(--ocre); font-size: 1.15rem; margin: 0; }
.saison h3 { font-family: var(--titre); font-weight: 400; font-size: 1.75rem; margin: .1em 0 .5em; line-height: 1.2; }
.saison p { margin: 0 0 .8em; color: var(--craie-douce); }
.saison ul { margin: 0; padding-left: 1.1em; color: var(--craie-douce); }
.saison li::marker { content: "✦  "; color: var(--ocre); font-size: .8em; }
.transhumance { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; width: 120px; }
.transhumance svg { width: 70px; height: 220px; }
.transhumance span { font-family: var(--main); color: var(--craie-douce); font-size: 1rem; line-height: 1.2; }

/* ---------- Valeurs ---------- */
.valeurs-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.valeur { text-align: center; padding: 10px; }
.valeur svg { width: 120px; height: 100px; display: block; margin: 0 auto 14px; }
.valeur h3 { font-family: var(--titre); font-weight: 400; font-size: 1.4rem; margin: 0 0 .4em; }
.valeur p { color: var(--craie-douce); margin: 0; }

/* ---------- Citation ---------- */
.citation { padding-block: 90px; text-align: center; overflow: hidden; }
.citation blockquote { margin: 0 auto; max-width: 30ch; font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-style: italic; line-height: 1.35; }
.citation blockquote::before, .citation blockquote::after { font-family: var(--titre); color: var(--ocre); }
.citation blockquote::before { content: "« "; }
.citation blockquote::after { content: " »"; }
.citation .troupeau { display: block; width: min(900px, 100%); height: auto; margin: 40px auto 0; }

/* ---------- Chevaux ---------- */
.chevaux-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fiche { border: 2px solid var(--craie-pale); border-radius: 6px 14px 5px 12px / 14px 6px 12px 5px; padding: 24px; background: rgba(255,255,255,.02); }
.fiche .photo { aspect-ratio: 4 / 3; max-width: 100%; border: 1px dashed var(--craie-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; overflow: hidden; }
.fiche .photo svg { width: 70%; height: auto; }
.fiche .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) sepia(.25) contrast(1.05); }
.fiche .etiquette { font-family: var(--main); color: var(--ocre); font-size: 1.05rem; }
.fiche h3 { font-family: var(--titre); font-weight: 400; font-size: 1.4rem; margin: .1em 0 .3em; }
.fiche p { margin: 0; color: var(--craie-douce); font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--nuit) 0%, #111314 100%); }
.contact-grille { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.coordonnees p { margin: 0 0 1.2em; }
.coordonnees strong { font-family: var(--main); font-weight: 400; color: var(--ocre); display: block; font-size: 1.1rem; }
.bouton {
  display: inline-block;
  font-family: var(--main);
  font-size: 1.25rem;
  color: var(--nuit);
  background: var(--craie);
  padding: 10px 28px;
  text-decoration: none;
  border-radius: 12px 4px 14px 5px / 5px 14px 4px 12px;
  transition: transform .2s, background .2s;
}
.bouton:hover { background: var(--ocre); color: var(--nuit); transform: rotate(-1.5deg); }
.carte-dessin svg { width: 100%; height: auto; display: block; }

/* ---------- Pied de page ---------- */
footer { border-top: 1px dashed var(--craie-pale); padding-block: 34px; text-align: center; color: var(--craie-pale); font-size: 1rem; background: #111314; }
footer a { color: var(--craie-douce); }
footer svg { width: 46px; height: 46px; display: block; margin: 0 auto 8px; }

/* ---------- Annonces de vente ---------- */
.nav ul a.actif { color: var(--ocre); }
.lien-annonces { display: inline-block; margin-top: 12px; font-family: var(--main); font-size: 1.15rem; text-decoration: none; }
.page-entete { padding-block: 150px 40px; text-align: center; }
.page-entete .numero { font-family: var(--main); color: var(--ocre); font-size: 1.2rem; }
.page-entete h1 { font-family: var(--titre); font-weight: 400; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.1; margin: .1em 0 0; letter-spacing: .03em; }
.page-entete p { color: var(--craie-douce); font-style: italic; max-width: 56ch; margin: .6em auto 0; }
.annonces { padding-block: 30px 90px; }
.annonces h2 { font-family: var(--titre); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.4rem); text-align: center; margin: 0 0 44px; }
.annonces-vendues { padding-top: 0; }
.annonces-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px 34px; }
.annonce-lien { display: block; color: inherit; text-decoration: none; }
.annonce h3 { font-family: var(--titre); font-weight: 400; font-size: 1.55rem; line-height: 1.2; margin: 18px 0 0; transition: color .3s; }
.annonce-lien:hover h3 { color: var(--ocre); }
.annonce .infos { margin: .2em 0 0; color: var(--craie-douce); font-size: 1.05rem; }
.annonce .prix { margin: .2em 0 0; font-family: var(--main); color: var(--ocre); font-size: 1.25rem; }
.annonce .cadre-photo img, .galerie .cadre-photo img { object-position: 50% 50%; }
.photo-vide { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.photo-vide svg { width: 58%; height: auto; }
.tampon {
  position: absolute; top: 28px; right: 22px; z-index: 3;
  font-family: var(--titre); font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase;
  color: #e3a57b; background: rgba(22, 24, 26, .75);
  border: 3px double currentColor; border-radius: 4px; padding: 5px 14px 3px;
  transform: rotate(-9deg); pointer-events: none;
}
.statut-vendu .tampon { color: #e8735a; }
.statut-vendu .cadre-photo img { filter: grayscale(.85) sepia(.2) brightness(.8); }
.statut-vendu .cadre-photo:hover img { filter: grayscale(.4) sepia(.2) brightness(.92); }
.vide { text-align: center; color: var(--craie-douce); max-width: 560px; margin: 0 auto; }
.vide svg { display: block; width: 220px; height: 143px; margin: 0 auto 12px; }
.vide h1 { font-family: var(--titre); font-weight: 400; color: var(--craie); }

.fiche-page { padding-block: 115px 100px; }
.retour { margin: 0 0 22px; font-family: var(--main); font-size: 1.15rem; }
.retour a { text-decoration: none; }
.fiche-cheval { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.galerie-vignettes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.galerie-vignettes button { width: 86px; aspect-ratio: 4 / 3; max-width: 100%; padding: 0; overflow: hidden; cursor: pointer; background: none; border: 2px solid var(--craie-pale); border-radius: 3px; opacity: .65; transition: opacity .3s, border-color .3s; }
.galerie-vignettes button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.galerie-vignettes button:hover, .galerie-vignettes button.actif { opacity: 1; border-color: var(--ocre); }
.fiche-infos .etiquette { font-family: var(--main); color: var(--ocre); font-size: 1.2rem; }
.fiche-infos h1 { font-family: var(--titre); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: .05em 0 0; }
.fiche-infos .infos { color: var(--craie-douce); margin: .3em 0 0; }
.prix-grand { font-family: var(--main); color: var(--ocre); font-size: 1.9rem; margin: .3em 0 .7em; }
.caracteristiques { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0 0 26px; padding-block: 20px; border-block: 1px dashed var(--craie-pale); }
.caracteristiques dt { font-family: var(--main); color: var(--craie-douce); font-size: 1.08rem; }
.caracteristiques dd { margin: 0; }
.description { margin: 0 0 30px; }
.fiche-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bouton.secondaire { background: transparent; color: var(--craie); border: 2px solid var(--craie-pale); }
.bouton.secondaire:hover { border-color: var(--ocre); color: var(--ocre); background: transparent; }
@media (max-width: 900px) {
  .fiche-cheval { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Page légale ---------- */
.page-simple { padding-block: 140px 80px; max-width: 760px; margin: 0 auto; padding-inline: 24px; }
.page-simple h1 { font-family: var(--titre); font-weight: 400; font-size: 2.6rem; }
.page-simple h2 { font-family: var(--titre); font-weight: 400; font-size: 1.5rem; margin-top: 2em; color: var(--ocre); }

/* ---------- Apparition ---------- */
.apparait { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .apparait { opacity: 1; transform: none; transition: none; }
  .etoile, .defiler span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .deux-col, .contact-grille { grid-template-columns: 1fr; gap: 40px; }
  .saisons-grille { grid-template-columns: 1fr; }
  .transhumance { width: auto; flex-direction: row; gap: 14px; }
  .transhumance svg { width: 180px; height: 60px; transform: rotate(90deg); width: 60px; height: 140px; }
  .valeurs-grille, .chevaux-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(22,24,26,.97); border-bottom: 1px dashed var(--craie-pale); padding: 10px 24px 18px; }
  .nav ul.ouvert { display: flex; }
  .nav ul a { display: block; padding: 8px 0; }
  .nav { background: rgba(22,24,26,.92); }
}
@media (max-width: 600px) {
  body { font-size: 1.1rem; }
  .hero { min-height: auto; padding-block: 120px 0; }
  .hero-paysage { width: 130%; max-width: none; align-self: flex-start; margin: 60px 0 0 -8%; }
  .defiler { display: none; }
  section { padding-block: 80px; }
  .valeurs-grille, .chevaux-grille { grid-template-columns: 1fr; }
}
