/* ==========================================================================
   Atlas Canin — Design system
   ========================================================================== */

:root {
  --rust: #d27c56;
  --rust-dark: #b8623f;
  --rust-light: #e8b199;
  --cream: #f3eeeb;
  --white: #ffffff;
  --ink: #2b2420;
  --taupe: #8a7a6d;
  --taupe-light: #cfc3ba;
  --line: #e4dad2;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --container: 1240px;
  --radius-s: 10px;
  --radius-m: 22px;
  --radius-blob: 63% 37% 41% 59% / 47% 43% 57% 53%;

  --shadow-soft: 0 20px 60px -25px rgba(43, 36, 32, 0.35);
  --photo-warmth: sepia(0.22) saturate(1.2) hue-rotate(-8deg) brightness(1.02) contrast(1.02);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 600; }

p {
  margin: 0 0 1em;
  line-height: 1.7;
  color: var(--ink);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--taupe);
  max-width: 46ch;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.8em 1.2em;
  z-index: 999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1em;
  max-width: 100%;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--rust);
  display: inline-block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1em 2em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--rust);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--rust-dark);
}
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-small {
  padding: 0.75em 1.9em;
  font-size: 0.85rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: padding 0.4s ease;
}
/* Fond flouté porté par un pseudo-élément : évite que le header (via
   backdrop-filter) ne devienne le bloc conteneur du menu mobile en position:fixed. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  transition: opacity 0.4s ease;
}
.site-header.is-scrolled::before {
  opacity: 1;
}
.site-header.is-scrolled {
  padding: 0.9rem 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand img {
  height: 58px;
  width: auto;
  transition: height 0.4s ease;
}
.site-header.is-scrolled .brand img {
  height: 46px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.site-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: relative;
}
.site-nav a:not(.btn) {
  padding: 0.3em 0;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--rust);
  transition: right 0.3s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn).active::after {
  right: 0;
}
.site-nav a.active:not(.btn) {
  color: var(--rust-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  position: relative;
  padding: clamp(6.5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  background: var(--cream);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.2rem;
  color: var(--rust-dark);
  margin: 0;
}

.hero-copy h1 {
  margin-bottom: 0.4em;
}
.hero-copy em {
  color: var(--rust);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}
.blob {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, var(--rust) 0%, var(--rust-light) 100%);
  border-radius: var(--radius-blob);
  animation: blob-morph 14s ease-in-out infinite;
}
.blob-outline {
  position: absolute;
  inset: -18px;
  border: 1.5px solid var(--rust);
  border-radius: var(--radius-blob);
  opacity: 0.5;
  animation: blob-morph 14s ease-in-out infinite reverse;
}
.hero-visual .placeholder-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  height: 82%;
  object-fit: cover;
  border-radius: 63% 37% 41% 59% / 47% 43% 57% 53%;
  filter: var(--photo-warmth) drop-shadow(0 20px 45px rgba(43, 36, 32, 0.35));
}

@keyframes blob-morph {
  0%, 100% { border-radius: 63% 37% 41% 59% / 47% 43% 57% 53%; }
  34% { border-radius: 42% 58% 62% 38% / 56% 44% 56% 44%; }
  67% { border-radius: 57% 43% 33% 67% / 38% 62% 38% 62%; }
}

.hero-scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 3vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}
.hero-scroll-cue .line {
  width: 1px;
  height: 34px;
  background: var(--taupe);
  overflow: hidden;
}
.hero-scroll-cue .line::after {
  content: "";
  display: block;
  width: 100%;
  height: 50%;
  background: var(--rust);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ==========================================================================
   Sections & placeholders
   ========================================================================== */

.section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}
.section-alt {
  background: var(--cream);
}

.section-title {
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title.section-title-tight {
  margin-bottom: 1.5rem;
}
.section-title h2 {
  margin-bottom: 0.8em;
}
.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split.reverse .split-visual {
  order: 2;
}
.split.reverse .split-copy {
  order: 1;
}
.split-copy h2 {
  margin-bottom: 0.8em;
}
.hero-inner > *,
.split > *,
.footer-grid > * {
  min-width: 0;
}

.img-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--cream) 0%, var(--taupe-light) 100%);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder.square { aspect-ratio: 1 / 1; }
.img-placeholder.wide { aspect-ratio: 16 / 10; }
.img-placeholder svg {
  width: 30%;
  height: 30%;
  opacity: 0.5;
}
.img-placeholder::after {
  content: attr(data-label);
  position: absolute;
  bottom: 1.1rem;
  left: 1.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  background: rgba(255,255,255,0.7);
  padding: 0.4em 0.8em;
  border-radius: 999px;
}
.img-placeholder.has-photo::after {
  content: none;
}
.img-placeholder-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: var(--photo-warmth);
}

/* Value props / feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.feature-grid + .feature-grid {
  margin-top: 2.5rem;
}
.feature {
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--line);
}
.feature .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rust);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.8rem;
}
.feature-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(155deg, var(--cream) 0%, var(--taupe-light) 100%);
  border-radius: var(--radius-s);
  margin-bottom: 1.2rem;
  overflow: hidden;
}
.feature-visual.has-photo::after {
  content: none;
}
.feature-visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-warmth);
}
.feature-visual::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  background: rgba(255, 255, 255, 0.7);
  padding: 0.3em 0.7em;
  border-radius: 999px;
}

/* Cards (accompagnements / services) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 2.4rem 2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.4rem;
  color: var(--rust);
}
.card ul {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card ul li {
  padding-left: 1.4em;
  position: relative;
  color: var(--taupe);
  font-size: 0.95rem;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
}
.card-price {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.card-price span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--taupe);
  margin-top: 0.2em;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}
.step {
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--rust-light);
  display: block;
  margin-bottom: 0.6rem;
}

/* Timeline (formations) */
.timeline {
  display: flex;
  flex-direction: column;
}
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:first-child {
  padding-top: 0;
}
.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.timeline-date {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--rust);
  font-size: 1.05rem;
}
.timeline-content h3 {
  margin-bottom: 0.3em;
}
.timeline-org {
  font-weight: 600;
  color: var(--taupe);
  font-size: 0.9rem;
  margin-bottom: 0.7em;
}
.timeline-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 2.4rem;
  border: 1px solid var(--line);
}
.testimonial .stars {
  color: var(--rust);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.testimonial blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--rust) 0%, var(--taupe-light) 100%);
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.92rem;
}
.testimonial-author span {
  font-size: 0.82rem;
  color: var(--taupe);
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-m);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Variante avec photo en fond, voilée de la couleur ink pour rester lisible.
   L'image se définit par instance via la variable --cta-photo. */
.cta-band-photo {
  background-image: linear-gradient(rgba(43, 36, 32, 0.68), rgba(43, 36, 32, 0.68)),
    var(--cta-photo);
  background-size: cover;
  background-position: center;
}
.cta-band h2 {
  color: var(--white);
}
.cta-band .lede {
  color: var(--taupe-light);
  margin-left: auto;
  margin-right: auto;
}
.cta-band .hero-actions {
  justify-content: center;
}

/* Quote / bio blocks */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--rust);
  padding-left: 1.6rem;
  margin: 0;
}

.section-quote {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-size: 0.85rem;
  color: var(--taupe);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9em 1.1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--rust);
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  display: block;
  font-size: 0.85rem;
  color: var(--taupe);
  margin-top: 1rem;
}

.alert {
  padding: 1em 1.4em;
  border-radius: var(--radius-s);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.alert-success {
  background: #eaf3ec;
  color: #2d5c3a;
  border: 1px solid #bfe0c8;
}
.alert-error {
  background: #fbeae6;
  color: #96341c;
  border: 1px solid #f0c3b7;
}

/* Contact info list */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-info-item .icon {
  width: 22px;
  height: 22px;
  color: var(--rust);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.contact-info-item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--taupe);
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--taupe-light);
  padding: 4.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img {
  height: 50px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  color: var(--taupe-light);
  max-width: 32ch;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  color: var(--taupe-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-social svg {
  width: 22px;
  height: 22px;
}
.footer-social:hover {
  color: var(--rust-light);
}
.footer-nav-title {
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-contact a {
  color: var(--taupe-light);
  transition: color 0.25s ease;
}
.footer-contact a:hover {
  color: var(--rust-light);
}
.footer-contact li {
  color: var(--taupe-light);
}
.footer-bottom {
  padding: 1.6rem 0;
  font-size: 0.82rem;
  color: var(--taupe);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }

/* ==========================================================================
   Page hero (secondary pages)
   ========================================================================== */

.page-hero {
  padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--cream);
  text-align: center;
}
.page-hero .lede {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Page d'accueil — texte plus doux que #2b2420
   ========================================================================== */

:where(.page-home #contenu) h1,
:where(.page-home #contenu) h2,
:where(.page-home #contenu) h3,
:where(.page-home #contenu) h4,
:where(.page-home #contenu) p {
  color: #383838;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero-inner,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-visual,
  .split.reverse .split-copy {
    order: unset;
  }
  .hero-visual {
    max-width: 340px;
    margin: 0 auto;
  }
  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
    z-index: 105;
  }
  .site-nav.is-open {
    transform: translateX(0);
  }
  .site-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .site-nav a {
    font-size: 1.4rem;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 620px) {
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Formations en ligne — bouton + pop-up
   ========================================================================== */
.formations-online {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.formations-online p {
  margin: 0 0 1.25rem;
  color: var(--taupe);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal[hidden] {
  display: none;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 36, 32, 0.55);
  backdrop-filter: blur(2px);
  animation: modal-fade 0.2s ease;
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  animation: modal-rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-scroll {
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2.5rem 2.5rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--taupe-light) transparent;
}
.modal-scroll::-webkit-scrollbar {
  width: 8px;
}
.modal-scroll::-webkit-scrollbar-thumb {
  background: var(--taupe-light);
  border-radius: 8px;
}
.modal-close {
  position: absolute;
  z-index: 1;
  top: 1rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--taupe);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover {
  background: var(--cream);
  color: var(--ink);
}
.modal-dialog h2 {
  margin: 0 0 0.5rem;
}
.modal-lede {
  margin: 0 0 1.75rem;
  color: var(--taupe);
}
.modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.modal-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.modal-list li:first-child {
  border-top: none;
  padding-top: 0;
}
.modal-list-title {
  font-weight: 600;
  color: var(--ink);
}
.modal-list-org {
  font-size: 0.9rem;
  color: var(--rust-dark);
}
.modal-list-desc {
  font-size: 0.92rem;
  color: var(--taupe);
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 620px) {
  .modal-scroll {
    padding: 2rem 1.5rem 1.5rem;
  }
}

/* ==========================================================================
   Recommandations — carte + confrères
   ========================================================================== */
.reco-section {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.reco-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.reco-map {
  height: 100%;
  min-height: 300px;
  width: 100%;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -18px rgba(43, 36, 32, 0.25);
  z-index: 1;
}
/* Fond OSM désaturé + réchauffé pour un rendu minimaliste, accordé au crème de la DA. */
.reco-map .leaflet-tile-pane {
  filter: grayscale(0.55) sepia(0.18) saturate(0.8) brightness(1.05)
    contrast(0.92);
}
/* Contrôles de zoom discrets, à la charte. */
.reco-map .leaflet-control-zoom {
  border: none;
  border-radius: var(--radius-s);
  overflow: hidden;
  box-shadow: 0 6px 18px -8px rgba(43, 36, 32, 0.35);
}
.reco-map .leaflet-control-zoom a {
  color: var(--ink);
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.reco-map .leaflet-control-zoom a:hover {
  background: var(--cream);
  color: var(--rust-dark);
}
.reco-map .leaflet-control-attribution {
  background: rgba(243, 238, 235, 0.8);
  color: var(--taupe);
  font-size: 0.68rem;
}
.reco-map .leaflet-control-attribution a {
  color: var(--rust-dark);
}
.reco-map .leaflet-popup-content-wrapper {
  border-radius: var(--radius-s);
}
.reco-map .leaflet-popup-content {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.5;
}
.reco-popup-loc {
  color: var(--taupe);
  font-size: 0.9rem;
}
.reco-map .leaflet-popup-content a {
  color: var(--rust-dark);
  font-weight: 600;
  text-decoration: none;
}
.reco-map .leaflet-popup-content a:hover {
  text-decoration: underline;
}

/* Liste compacte des confrères */
.reco-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--taupe-light) transparent;
}
.reco-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  transition: background 0.2s ease;
}
.reco-item:first-child {
  border-top: none;
}
.reco-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.reco-item-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.reco-item-loc {
  color: var(--taupe);
  font-size: 0.82rem;
}
.reco-pin {
  font-size: 0.8rem;
}
.reco-item-link {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--rust-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-s);
}
.reco-item-link:hover {
  background: var(--cream);
}

.reco-card-mappable {
  cursor: pointer;
}
.reco-card-mappable:hover {
  background: var(--cream);
}
.reco-card-mappable:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: -2px;
}
.reco-item.is-active {
  background: var(--rust-light);
}
.reco-item.is-active .reco-item-loc {
  color: var(--ink);
}

/* Professionnels de santé */
.sante-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.sante-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sante-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.sante-card h3 {
  margin: 0;
  font-size: 1.1rem;
}
.sante-loc {
  margin: 0;
  color: var(--taupe);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.reco-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--rust-dark);
  font-weight: 600;
  text-decoration: none;
}
.reco-link:hover {
  text-decoration: underline;
}

/* Partenariat associatif */
.partenariat-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.partenariat p {
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.partenariat .btn {
  margin-top: 0.8rem;
}
.partenariat-visual {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}
.partenariat-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.partenariat-frame .blob-outline {
  inset: -16px;
}
.partenariat-caption {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--taupe);
  line-height: 1.4;
}
.partenariat-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-blob);
  filter: var(--photo-warmth) drop-shadow(0 20px 45px rgba(43, 36, 32, 0.3));
}

@media (max-width: 820px) {
  .partenariat-layout {
    grid-template-columns: 1fr;
  }
  .partenariat-visual {
    order: -1;
    max-width: 300px;
  }
}

/* Marqueur personnalisé à la couleur de la DA */
.reco-pin-icon {
  background: transparent;
  border: none;
}
.reco-pin-icon svg {
  display: block;
  filter: drop-shadow(0 3px 4px rgba(43, 36, 32, 0.3));
  transition: transform 0.15s ease;
  transform-origin: bottom center;
}

/* Marqueur mis en avant au clic sur une carte */
.leaflet-marker-icon.reco-marker-active {
  z-index: 1000 !important;
}
.reco-pin-icon.reco-marker-active svg {
  transform: scale(1.25);
  filter: drop-shadow(0 0 6px var(--rust)) drop-shadow(0 3px 4px rgba(43, 36, 32, 0.35));
}

@media (max-width: 720px) {
  .reco-layout {
    grid-template-columns: 1fr;
  }
  .reco-map {
    order: -1;
    min-height: 240px;
    height: 240px;
  }
  .reco-list {
    max-height: none;
  }
}
