/* ==========================================================================
   Baume — feuille de style principale
   Conversion de la maquette baume.dc.html (styles inline) en CSS structuré.
   Les valeurs (couleurs, clamp(), espacements) sont reprises telles quelles.
   ========================================================================== */

:root {
  /* Palette de la maquette */
  --ink:    #1B1A19;  /* encre, fonds sombres */
  --paper:  #FCFBF8;  /* fond général */
  --blanc:  #FFFFFF;
  --bleu:   #BDDBF7;  /* accent principal */
  --gris:   #EDECEA;  /* bloc chat */
  --rose:   #FEEAF1;  /* bloc cheval */
  --sable:  #FAF3E4;  /* bloc NAC */
  --pierre: #F1EFEA;  /* sections alternées */

  /* Texte */
  --doux:   #6E6862;
  --moyen:  #3F3B37;
  --clair:  #8A847E;

  /* Filets */
  --trait:       rgba(27, 26, 25, 0.25);
  --trait-fort:  rgba(27, 26, 25, 0.40);
  --trait-champ: rgba(27, 26, 25, 0.30);

  /* Typo */
  --serif: 'Prata', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rythme */
  --marge:  clamp(20px, 4vw, 40px);
  --gouttiere: clamp(16px, 3vw, 48px);
}

/* ---------- Réinitialisation minimale ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }

img { max-width: 100%; height: auto; display: block; }
input, textarea, button, select { font-family: inherit; }

/* L'attribut `hidden` doit gagner contre nos propres règles d'affichage.
   Le navigateur ne le pose qu'avec `[hidden] { display: none }`, dont la
   spécificité (0,1,0) perd contre n'importe quel sélecteur de classe :
   une règle comme `.mon-bloc { display: flex }` laisse l'élément visible
   alors que le JS l'a masqué. */
[hidden] { display: none !important; }

::selection { background: var(--bleu); color: var(--ink); }

/* Le contour de focus doit rester visible sur les fonds sombres, où
   l'encre sur l'encre serait invisible. */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.section--sombre :focus-visible,
.hero :focus-visible { outline-color: var(--bleu); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Lien d'évitement — obligatoire pour la navigation clavier. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; font-size: 0.9rem;
}
.skip-link:focus { left: 8px; top: 8px; opacity: 1; }

/* ---------- Utilitaires typographiques ---------- */

.surtitre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.surtitre--doux { color: var(--doux); }

/* ---------- Révélation au scroll ----------
   L'état initial est posé en JS : sans JS, tout reste visible. */

/* ---------- Emplacements d'image ---------- */

.slot { position: absolute; inset: 0; overflow: hidden; }
.slot img { width: 100%; height: 100%; object-fit: cover; }

.slot--vide {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
  background: repeating-linear-gradient(
    45deg, var(--pierre), var(--pierre) 10px,
    rgba(27, 26, 25, 0.04) 10px, rgba(27, 26, 25, 0.04) 20px);
  color: var(--doux);
  font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ==========================================================================
   En-tête
   ========================================================================== */

.entete {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding: 16px clamp(16px, 2vw, 20px) 0;
}

.nav {
  display: flex; align-items: stretch; flex-wrap: wrap;
  background: var(--bleu); color: var(--ink);
}

.nav__marque { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }

/* Le logotype est un masque : la couleur vient du fond, pas du PNG. */
.marque {
  display: block; width: 92px; height: 26px; background: currentColor;
  -webkit-mask: var(--wordmark) left center / contain no-repeat;
          mask: var(--wordmark) left center / contain no-repeat;
}

.nav__liens {
  margin-left: auto; display: flex; align-items: center;
  gap: clamp(18px, 3.4vw, 48px);
  padding: 0 clamp(16px, 2.6vw, 40px);
}
.nav__liens a { font-size: 0.95rem; }

.nav__cta {
  display: flex; align-items: center;
  border-left: 1px solid var(--trait-fort);
  padding: 14px clamp(18px, 2.4vw, 32px);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .nav__liens { display: none; }
  .nav__cta { margin-left: auto; border-left: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative; min-height: 100svh; width: 100%; overflow: hidden;
}

.hero__voile {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(27, 26, 25, 0.34) 0%,
    rgba(27, 26, 25, 0.12) 40%,
    rgba(27, 26, 25, 0.40) 100%);
}

.hero__contenu {
  position: relative; display: flex; flex-direction: column;
  min-height: 100svh;
  padding: clamp(112px, 16vh, 150px) var(--marge) 40px;
}

.hero__titre {
  margin: 0; max-width: 16ch;
  font-size: clamp(46px, 8.5vw, 140px);
  line-height: 0.95;
  color: var(--bleu);
}

.hero__bas {
  margin-top: auto; padding-top: 80px;
  display: flex; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between; gap: 40px;
}

.hero__accroche {
  margin: 0; max-width: 26rem;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--bleu);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.bouton {
  display: inline-block; padding: 16px 36px;
  font-size: 0.875rem; border: none; cursor: pointer;
}
.bouton--clair { background: var(--bleu); color: var(--ink); }
.bouton--sombre { background: var(--ink); color: var(--paper); }
.bouton--contour {
  padding: 16px 28px;
  border: 1px solid rgba(250, 207, 106, 0.75);
  color: var(--bleu); background: transparent;
}

/* Carte flottante — masquée sous 1024px comme dans la maquette. */
.hero__carte { position: relative; display: flex; align-items: center; }
@media (max-width: 1023px) { .hero__carte { display: none !important; } }

.hero__pastille {
  position: absolute; left: -56px; top: -56px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 112px; height: 112px;
  transform: rotate(-14deg); border-radius: 999px;
  background: var(--bleu); color: var(--ink);
  font-family: var(--serif); font-size: 1.05rem;
}

.hero__carte-corps {
  display: flex; align-items: center; gap: 24px;
  width: 27rem; max-width: 100%;
  background: var(--blanc); padding: 16px;
}

.hero__vignette {
  position: relative; width: 112px; height: 112px;
  flex: none; background: var(--pierre);
}

.hero__carte-corps p { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.hero__carte-corps .surtitre { margin-top: 20px; color: var(--doux); }

/* ==========================================================================
   Prestations
   ========================================================================== */

.intro { background: var(--paper); padding: 80px var(--marge); scroll-margin-top: 80px; }
.intro__titre {
  margin: 24px 0 0; max-width: 56rem;
  font-size: clamp(38px, 10vw, 60px); line-height: 1.05;
}

.prestations {
  display: flex; flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
  padding: 0 var(--gouttiere) clamp(64px, 9vw, 120px);
}

.presta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}

.presta__media { position: relative; min-height: clamp(320px, 44vw, 560px); }

/* Le panneau texte chevauche l'image : marge négative côté image. */
.presta__texte {
  position: relative; z-index: 2; align-self: center;
  padding: clamp(28px, 3.4vw, 46px);
}
.presta--gauche .presta__texte { margin-left: clamp(-64px, -4vw, -16px); }
.presta--droite .presta__texte { margin-right: clamp(-64px, -4vw, -16px); }

/* Sur une seule colonne, le chevauchement n'a plus de sens. */
@media (max-width: 660px) {
  .presta--gauche .presta__texte,
  .presta--droite .presta__texte { margin-left: 0; margin-right: 0; }
}

/* Ordre visuel : sur mobile, l'image passe toujours avant le texte. */
@media (max-width: 660px) {
  .presta--droite .presta__media { order: -1; }
}

.presta__entete {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.presta__blob { height: clamp(44px, 4.6vw, 62px); width: auto; display: block; }

.presta__titre {
  margin: clamp(16px, 2vw, 24px) 0 0;
  font-size: clamp(28px, 3.2vw, 44px); line-height: 1.06;
}
.presta__desc {
  margin: clamp(14px, 1.6vw, 20px) 0 0; max-width: 34ch;
  font-size: 0.95rem; line-height: 1.7; color: var(--moyen);
}
.presta__pied {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  margin-top: clamp(20px, 2.4vw, 30px);
  padding-top: 16px; border-top: 1px solid var(--trait);
}
.presta__prix {
  margin: 0; font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1;
}

/* Fonds par espèce */
.presta--chien  .presta__media, .presta--chien  .presta__texte { background: var(--bleu); }
.presta--chat   .presta__media, .presta--chat   .presta__texte { background: var(--gris); }
.presta--cheval .presta__media, .presta--cheval .presta__texte { background: var(--rose); }
.presta--nac    .presta__media, .presta--nac    .presta__texte { background: var(--sable); }

/* ==========================================================================
   Types de séance
   ========================================================================== */

.seances { background: var(--paper); padding: 0 var(--marge) 96px; scroll-margin-top: 80px; }
.seances__grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px;
}
.seances__intro h2 { margin: 24px 0 0; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; }
.seances__intro p  { margin: 24px 0 0; max-width: 34ch; font-size: 0.95rem; line-height: 1.7; color: var(--doux); }

.seances__liste { grid-column: span 2; min-width: 0; }
@media (max-width: 900px) { .seances__liste { grid-column: auto; } }

.seance {
  display: grid;
  grid-template-columns: 3rem minmax(0, 9rem) minmax(0, 1fr);
  gap: 16px 32px;
  border-top: 1px solid var(--trait); padding: 40px 0;
}
@media (max-width: 560px) {
  .seance { grid-template-columns: 3rem 1fr; }

  /* Le bloc a trois enfants (numéro, titre, description) pour deux colonnes.
     Sans cette règle, le placement automatique renvoie la description en
     colonne 1, large de 3rem : le texte se casse tous les deux mots.
     On la fait commencer sous le titre, le numéro restant en saillie. */
  .seance__desc { grid-column: 2 / -1; }
}

.seance__num { padding-top: 4px; }
.seance__nom {
  margin: 0; font-family: var(--sans);
  font-size: 1.125rem; letter-spacing: 0.05em;
}
.seance__desc { margin: 0; max-width: 36rem; font-size: 0.95rem; line-height: 1.7; color: var(--doux); }

.seances__fin { border-top: 1px solid var(--trait); }

/* ==========================================================================
   Déroulé — « Une séance, trois temps »
   ========================================================================== */

.deroule { background: var(--pierre); padding: 96px var(--marge); text-align: center; }
.deroule h2 { margin: 24px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }

.deroule__grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; max-width: 72rem; margin: 64px auto 0; text-align: left;
}

.temps {
  display: flex; flex-direction: column;
  background: var(--bleu); color: var(--ink); padding: 32px;
}
.temps h3 {
  margin: 0; padding-bottom: 20px;
  font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.05em;
}
.temps__trait { border-top: 1px solid var(--trait-fort); }
.temps p { margin: 0; padding-top: 28px; font-size: 0.95rem; line-height: 1.7; }

.deroule .bouton { margin-top: 64px; padding: 16px 32px; }

/* ==========================================================================
   À propos
   ========================================================================== */

.section--sombre { background: var(--ink); }

.apropos { padding: 64px var(--marge); scroll-margin-top: 80px; }
.apropos__carte {
  max-width: 64rem; margin: 0 auto;
  background: var(--blanc);
  padding: 80px clamp(24px, 4vw, 64px);
  text-align: center;
}
.apropos__portrait {
  position: relative; width: 20rem; height: 20rem; max-width: 100%;
  margin: 0 auto; background: var(--pierre);
}
.apropos .surtitre { margin: 40px 0 0; }
.apropos h2 { margin: 16px 0 0; font-size: clamp(38px, 5vw, 60px); }
.apropos__texte { margin: 48px auto 0; max-width: 42rem; font-size: 1.05rem; line-height: 1.75; }
.apropos__texte + .apropos__texte { margin-top: 24px; }
.apropos__avertissement { margin: 40px 0 0; color: var(--doux); }

/* ==========================================================================
   Avis
   ========================================================================== */

.avis { background: var(--pierre); padding: 96px var(--marge); }
.avis h2 { margin: 0; text-align: center; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.avis__grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px; max-width: 72rem; margin: 64px auto 0;
}
.avis blockquote { margin: 0; }
.avis blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.75; }
.avis footer { margin-top: 32px; color: var(--doux); }

/* ==========================================================================
   Pied de page
   ========================================================================== */

.pied { background: var(--ink); color: var(--paper); padding: 40px var(--marge); }
.pied__haut {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
.pied .marque { width: 96px; height: 26px; }
.pied__mentions {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(252, 251, 248, 0.2);
  font-size: 0.8rem; opacity: 0.75;
}
.pied__avertissement {
  margin: 16px 0 0; max-width: 60ch;
  font-size: 0.8rem; line-height: 1.6; opacity: 0.6;
}

/* ==========================================================================
   Contenu éditorial (pages légales, pages d'atterrissage)
   ========================================================================== */

.page { padding: clamp(120px, 18vh, 180px) var(--marge) 96px; }
.page__corps { max-width: 44rem; margin: 0 auto; }
.page__corps h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; margin: 0 0 40px; }
.page__corps h2 { font-size: clamp(24px, 3vw, 34px); margin: 48px 0 16px; }
.page__corps h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.page__corps p, .page__corps li { font-size: 1rem; line-height: 1.75; color: var(--moyen); }
.page__corps ul, .page__corps ol { padding-left: 1.25rem; }
.page__corps a { border-bottom: 1px solid var(--trait); }
