/* ==========================================================================
   sophrologie-detente.com — magazine indépendant bien-être & sophrologie
   Design : tons sauge / sable, typographie douce, espacement généreux
   ========================================================================== */

:root {
  --sauge-900: #3d4a3f;
  --sauge-700: #5c6e5f;
  --sauge-500: #8a9b8e;
  --sauge-300: #c3cfc2;
  --sauge-100: #e6ece4;
  --sable-700: #b7a888;
  --sable-800: #6f6450; /* texte sur fond clair : contraste AA */
  --sable-500: #d9cdb4;
  --sable-200: #efe9db;
  --sable-50:  #faf7f0;
  --creme:     #fdfbf7;
  --encre:     #2f343c;
  --encre-doux:#565e58;
  --terre:     #b3806a;
  --terre-fonce: #8a5644; /* texte sur fond clair : contraste AA */
  --blanc:     #ffffff;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --maxw: 72rem;
  --rayon: 14px;
  --ombre: 0 1px 2px rgba(47, 52, 60, .05), 0 12px 32px -12px rgba(61, 74, 63, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--encre-doux);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sauge-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--encre);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: .01em;
}

/* ---------------------------------------------------------------- entête */
.entete {
  background: var(--blanc);
  border-bottom: 1px solid var(--sable-200);
  position: sticky;
  top: 0;
  z-index: 40;
}

.entete__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.marque {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.marque img { width: 34px; height: 34px; }

.marque__nom {
  font-family: var(--serif);
  font-size: 1.22rem;
  color: var(--sauge-900);
  letter-spacing: .02em;
}

.marque__nom small {
  display: block;
  font-family: var(--sans);
  font-size: .875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sable-800);
  margin-top: .1rem;
}

.nav-principale ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.nav-principale a {
  font-size: .92rem;
  color: var(--encre);
  padding: .6rem 0;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.nav-principale a:hover,
.nav-principale a[aria-current="page"] {
  color: var(--sauge-700);
  text-decoration: none;
  border-bottom-color: var(--sauge-300);
}

/* ------------------------------------------------------------------ héros */
.heros {
  position: relative;
  background: var(--sauge-900);
  color: var(--blanc);
  overflow: hidden;
}

.heros__image {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 40%;
  opacity: .94;
}

.heros--texte {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(138, 155, 142, .55), transparent 60%),
    linear-gradient(160deg, var(--sauge-900) 0%, var(--sauge-700) 100%);
}

.heros__contenu {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) 1.5rem;
}

.heros--texte .heros__contenu {
  max-width: 46rem;
  text-align: center;
  margin: 0 auto;
}

.heros__surtitre {
  font-size: .875rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--creme);
  margin-bottom: 1.1rem;
}

.heros__titre {
  color: var(--blanc);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1.1rem;
}

.heros__texte {
  font-size: 1.12rem;
  max-width: 40rem;
  margin: 0 auto;
  color: rgba(253, 251, 247, .88);
}

.heros--image .heros__contenu {
  position: relative;
  z-index: 2;
  margin-top: -9.5rem;
}

.heros--image .heros__titre {
  text-shadow: 0 2px 24px rgba(35, 44, 37, .55);
}

/* voile dégradé sous le texte du héros photo : lisibilité garantie (AA) */
.heros--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(61, 74, 63, .30) 0%,
    rgba(58, 71, 60, .60) 38%,
    rgba(50, 62, 52, .93) 56%,
    rgba(47, 58, 49, .97) 70%,
    rgba(45, 56, 47, .98) 100%);
  pointer-events: none;
}

/* ----------------------------------------------------------------- sections */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 5rem) 1.5rem;
}

.section--sable { background: var(--sable-50); max-width: none; }
.section--sable > .section { max-width: var(--maxw); }

.section__surtitre {
  font-size: .875rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sable-800);
  margin-bottom: .8rem;
  text-align: center;
}

.section__titre {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 1rem;
}

.section__titre--centre { text-align: center; }

.section__intro {
  max-width: 44rem;
  margin: 0 auto 2.6rem;
  text-align: center;
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------ cartes */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}

.carte {
  background: var(--blanc);
  border: 1px solid var(--sable-200);
  border-radius: var(--rayon);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 1px 2px rgba(47, 52, 60, .04);
}

.carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre);
  text-decoration: none;
}

.carte__img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.carte__img--degrade {
  background: linear-gradient(150deg, var(--sauge-300), var(--sable-200));
}

.carte__corps {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}

.carte__etagere {
  font-size: .875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terre-fonce);
}

.carte__titre { font-size: 1.28rem; }

.carte__texte { font-size: .95rem; flex: 1; }

.carte__lien {
  font-size: .9rem;
  font-weight: 600;
  color: var(--sauge-700);
}

/* ------------------------------------------------------------------ article */
.article {
  max-width: 44rem;
  margin: 0 auto;
}

.article__surtitre {
  font-size: .875rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--terre-fonce);
  margin-bottom: .7rem;
}

.article h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  margin-bottom: 1rem;
}

.article__meta {
  font-size: .88rem;
  color: var(--sable-800);
  margin-bottom: 2.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--sable-200);
}

.article__image {
  border-radius: var(--rayon);
  margin: 0 0 2.2rem;
  box-shadow: var(--ombre);
}

.article__legende {
  font-size: .875rem;
  color: var(--sable-800);
  font-style: italic;
  margin-top: -1.4rem;
  margin-bottom: 2.2rem;
}

.article h2 {
  font-size: 1.62rem;
  margin: 2.6rem 0 1rem;
}

.article h3 {
  font-size: 1.25rem;
  margin: 2rem 0 .7rem;
}

.article p { margin-bottom: 1.25rem; }

.article ul, .article ol {
  margin: 0 0 1.4rem 1.3rem;
}

.article li { margin-bottom: .5rem; }

.article blockquote {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--sauge-900);
  border-left: 3px solid var(--sauge-300);
  padding: .4rem 0 .4rem 1.4rem;
  margin: 2rem 0;
}

.encart {
  background: var(--sauge-100);
  border-radius: var(--rayon);
  padding: 1.5rem 1.7rem;
  margin: 2rem 0;
}

.encart h2, .encart h3 {
  font-size: 1.15rem;
  margin: 0 0 .6rem;
  color: var(--sauge-900);
}

.encart p:last-child, .encart ul:last-child { margin-bottom: 0; }

.encart--sante {
  background: var(--sable-200);
  border: 1px solid var(--sable-500);
}

.encart--sante h2, .encart--sante h3 { color: var(--sauge-900); }

.encart--exerciseur {
  background: var(--blanc);
  border: 1px solid var(--sauge-300);
}

/* liste de pas numérotés */
.etapes { list-style: none; counter-reset: etape; margin: 1.6rem 0; }
.etapes li {
  counter-increment: etape;
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.1rem;
}
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--sauge-100);
  color: var(--sauge-900);
  font-family: var(--serif);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* fils d'ariane */
.fil-ariane {
  font-size: .875rem;
  color: var(--sable-800);
  padding: 1.2rem 1.5rem 0;
  max-width: var(--maxw);
  margin: 0 auto;
}

.fil-ariane a { color: var(--sable-800); display: inline-block; padding: .5rem 0; }

/* bloc lire-aussi */
.lire-aussi {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sable-200);
}

.lire-aussi h2 { font-size: 1.3rem; margin-bottom: 1.2rem; }

.lire-aussi ul { list-style: none; margin: 0; }
.lire-aussi li { margin-bottom: .55rem; }
.lire-aussi a { display: inline-block; padding: .5rem 0; }
.lire-aussi li::before { content: "→ "; color: var(--sauge-500); }

/* ---------------------------------------------------------------- bandeau CTA */
.bandeau {
  background: linear-gradient(150deg, var(--sauge-700), var(--sauge-900));
  color: var(--blanc);
  text-align: center;
  padding: clamp(2.6rem, 6vw, 4.4rem) 1.5rem;
}

.bandeau h2 {
  color: var(--blanc);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: .8rem;
}

.bandeau p {
  max-width: 38rem;
  margin: 0 auto 1.6rem;
  color: rgba(253, 251, 247, .85);
}

.bouton {
  display: inline-block;
  background: var(--sable-500);
  color: var(--sauge-900);
  font-weight: 600;
  padding: .8rem 1.9rem;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}

.bouton:hover {
  background: var(--sable-200);
  text-decoration: none;
  transform: translateY(-2px);
}

.bouton--second {
  background: transparent;
  border: 1.5px solid rgba(253, 251, 247, .55);
  color: var(--blanc);
}

/* ------------------------------------------------------------------ pied */
.pied {
  background: var(--sauge-900);
  color: rgba(253, 251, 247, .8);
  padding: 3rem 1.5rem 2rem;
  font-size: .92rem;
}

.pied__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.pied h3 {
  color: var(--sable-500);
  font-size: .875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-family: var(--sans);
  margin-bottom: 1rem;
}

.pied ul { list-style: none; }
.pied li { margin-bottom: .45rem; }
.pied a { color: rgba(253, 251, 247, .8); display: inline-block; padding: .5rem 0; min-width: 2.5rem; }
.pied a:hover { color: var(--sable-500); }

.pied__marque {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}

.pied__marque img { width: 30px; height: 30px; }

.pied__marque span {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--blanc);
}

.pied__bas {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(253, 251, 247, .18);
  font-size: .875rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- divers */
.gouttiere-haute { height: .6rem; }
.texte-centre { text-align: center; }

/* visuels en dégradé (placeholder photos — remplacés par injection) */
.visuel {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--rayon);
  margin: 0 0 2.2rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--ombre);
}

.visuel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(253, 251, 247, .5), transparent 55%),
    linear-gradient(155deg, var(--sauge-300) 0%, var(--sauge-100) 45%, var(--sable-500) 100%);
}

/* photo réelle injectée dans le visuel : le dégradé s'efface devant l'image */
.visuel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.visuel:has(img)::before { content: none; }

.visuel--seance::before {
  background:
    radial-gradient(110% 80% at 80% 8%, rgba(253, 251, 247, .55), transparent 60%),
    linear-gradient(160deg, var(--sable-500) 0%, var(--sable-200) 55%, var(--sauge-100) 100%);
}

.visuel--souffle::before {
  background:
    radial-gradient(120% 100% at 22% 85%, rgba(253, 251, 247, .5), transparent 55%),
    linear-gradient(150deg, var(--sauge-500) 0%, var(--sauge-100) 60%, var(--sable-200) 100%);
}

.visuel--ecole::before {
  background:
    radial-gradient(110% 85% at 78% 12%, rgba(253, 251, 247, .45), transparent 58%),
    linear-gradient(165deg, var(--sable-200) 0%, var(--sauge-100) 60%, var(--sauge-300) 100%);
}

.visuel--equitation::before {
  background:
    radial-gradient(120% 95% at 20% 10%, rgba(253, 251, 247, .5), transparent 55%),
    linear-gradient(155deg, var(--sable-700) 0%, var(--sable-500) 45%, var(--sauge-100) 100%);
}

.visuel--sport::before {
  background:
    radial-gradient(115% 90% at 80% 88%, rgba(253, 251, 247, .45), transparent 58%),
    linear-gradient(160deg, var(--sauge-700) 0%, var(--sauge-300) 55%, var(--sable-200) 100%);
}

.visuel figcaption {
  position: relative;
  width: 100%;
  padding: 1rem 1.4rem;
  font-size: .875rem;
  font-style: italic;
  color: var(--sauge-900);
  background: linear-gradient(to top, rgba(250, 247, 240, .92), rgba(250, 247, 240, 0));
}

.definition {
  background: var(--blanc);
  border: 1px solid var(--sable-200);
  border-radius: var(--rayon);
  padding: 1.6rem 1.8rem;
}

.definition dt {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--sauge-900);
  margin-top: 1.1rem;
}

.definition dt:first-child { margin-top: 0; }
.definition dd { margin: .2rem 0 0 0; font-size: .95rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .pied__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .heros--image .heros__contenu { margin-top: -6.5rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .entete__inner { flex-direction: column; align-items: flex-start; }
  .nav-principale ul { gap: 1rem; }
  .heros__image { aspect-ratio: 3 / 2; }
  .heros--image .heros__contenu { margin-top: -3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carte, .bouton { transition: none; }
}

/* Bloc auteur */
.auteur-bloc{background:var(--sauge-100);border-radius:var(--rayon);padding:1.4rem 1.6rem;margin:2.2rem 0 1.6rem}
.auteur-bloc .auteur-bloc__role{font-size:.875rem;letter-spacing:.22em;text-transform:uppercase;color:var(--terre-fonce);margin-bottom:.35rem}
.auteur-bloc .auteur-bloc__nom{font-family:var(--serif);font-size:1.2rem;color:var(--encre);margin-bottom:.5rem}
.auteur-bloc .auteur-bloc__nom a{color:var(--encre)}
.auteur-bloc p:last-child{margin-bottom:0}
.article__meta a{color:var(--sauge-700)}
