@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Tenor+Sans&display=swap');

:root {
  --bg-main: #f5eee3;
  --bg-alt: #fbf7f1;
  --primary: #8e7ba0;
  --primary-deep: #76638a;
  --secondary: #c99ba8;
  --accent: #a9ae93;
  --text-dark: #2e2a26;
  --text-soft: rgba(46, 42, 38, 0.78);
  --white: #ffffff;
  --card-bg: #fffaf4;
  --border-soft: rgba(46, 42, 38, 0.09);
  --shadow-soft: 0 18px 40px rgba(46, 42, 38, 0.08);
  --shadow-subtle: 0 8px 24px rgba(46, 42, 38, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1140px;
  --nav-height: 92px;
  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Tenor Sans', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

ul {
  padding-left: 1.2rem;
}

main {
  overflow: clip;
}

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.surface {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255,255,255,0.42);
  backdrop-filter: blur(8px);
}

.section,
.about,
.services {
  padding: 88px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
}

.section-compact {
  padding: 64px 0;
}

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

.section-label,
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(142,123,160,0.16);
  color: var(--primary);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.section-title,
h1,
h2,
h3,
.logo {
  font-family: var(--font-title);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--primary);
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  margin-bottom: 12px;
  color: var(--text-dark);
}

p,
li,
label,
input,
textarea {
  color: var(--text-soft);
}

p + p {
  margin-top: 14px;
}

.lead {
  font-size: 1.1rem;
  max-width: 760px;
}

.lead-large {
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  max-width: 700px;
}

.accent-word {
  color: var(--primary);
  font-style: italic;
}

/* NAVIGATION */
nav {
  position: sticky;
  top: 0;
  z-index: 1200;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 250, 244, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(46, 42, 38, 0.07);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.9rem;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.78);
  color: var(--primary);
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(16px, 2vw, 34px);
  align-items: center;
  padding-left: 0;
}

nav a {
  position: relative;
  color: var(--text-dark);
  font-size: 0.96rem;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--primary);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

/* HERO */
.hero {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(180deg, rgba(245,238,227,0.65), rgba(245,238,227,0.9));
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(250,246,240,0.88) 0%, rgba(250,246,240,0.82) 32%, rgba(250,246,240,0.45) 52%, rgba(250,246,240,0.08) 100%), url('images/hero.webp');
  background-position: center;
  background-size: cover;
  opacity: 1;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-home {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(100%, 720px);
}

.hero p {
  margin: 22px 0 0;
  font-size: 1.08rem;
  max-width: 610px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-card {
  margin-top: 28px;
  max-width: 560px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-subtle);
}

.hero-inline-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--text-dark);
  font-size: 0.92rem;
}

.hero-inline-proof strong {
  color: var(--primary);
}

/* BUTTONS */
.btn,
.btn-outline,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 14px 24px rgba(142,123,160,0.18);
}

.btn:hover,
.btn:focus-visible {
  background: var(--primary-deep);
  transform: translateY(-2px);
}

.btn-outline,
.contact-button {
  background: transparent;
  color: var(--primary);
  border-color: rgba(142,123,160,0.3);
}

.btn-outline:hover,
.btn-outline:focus-visible,
.contact-button:hover,
.contact-button:focus-visible {
  background: rgba(142,123,160,0.08);
  transform: translateY(-2px);
}

.contact-button.primary {
  background: var(--primary);
  color: white;
}

/* GENERIC CARDS */
.cards,
.grid {
  display: grid;
  gap: 26px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 40px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.cardx,
.credibility-line,
.resource-banner,
.capture-form,
.info-card,
.highlight-card,
.callout,
.modal-panel,
.hero-card,
.editorial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card {
  display: block;
  overflow: hidden;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.card:focus-visible,
.cardx:hover,
.cardx:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(46, 42, 38, 0.1);
}

.card-media {
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 26px 24px 24px;
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(142,123,160,0.92);
  color: white;
  font-size: 0.78rem;
  z-index: 2;
}

.card-badge.badge-soon {
  background: rgba(255,255,255,0.92);
  color: var(--text-dark);
}

.card-badge.badge-free {
  background: rgba(169,174,147,0.94);
}

.card h3 {
  color: var(--primary);
}

.card-desc {
  font-size: 0.98rem;
}

.card-meta {
  font-size: 0.86rem;
  margin-top: 8px;
  color: rgba(46, 42, 38, 0.62);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--primary);
}

.cardx {
  padding: 28px;
}

.cardx h3,
.cardx h4 {
  margin-bottom: 14px;
  color: var(--primary);
}

.cardx ul {
  display: grid;
  gap: 10px;
}

.media-row {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
}

.media-row.reverse {
  grid-template-columns: 1fr 1.04fr;
}

.media-row .media {
  position: relative;
}

.media-row .media::after {
  content: '';
  position: absolute;
  inset: auto -18px -18px auto;
  width: 72%;
  height: 72%;
  background: rgba(201,155,168,0.18);
  border-radius: 32px;
  z-index: 0;
}

.media-row .media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.media-row .text > p,
.copy-block p,
.copy-block ul,
.about p {
  max-width: 720px;
}

.copy-stack {
  display: grid;
  gap: 14px;
}

.editorial-card {
  padding: 28px;
}

.inline-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

.inline-list li {
  position: relative;
  padding-left: 26px;
}

.inline-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
}

.credibility-line {
  max-width: 760px;
  padding: 24px 28px;
  margin: 0 auto 32px;
  text-align: center;
}

.testimonial-note {
  margin: 0 auto 24px;
  max-width: 680px;
  text-align: center;
  font-size: 0.95rem;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text-dark);
}

.testimonial-name {
  margin-top: 16px;
  color: var(--primary);
}

.resource-banner {
  padding: 34px clamp(22px, 4vw, 46px);
  text-align: center;
}

.resource-banner p {
  max-width: 620px;
  margin: 12px auto 24px;
}

.insta {
  padding: 30px 0 90px;
}

.highlight-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(201,155,168,0.12));
  border: 1px solid rgba(46,42,38,0.08);
}

.highlight-band img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* HEADER PAGES */
.header {
  padding: 48px 0 26px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  margin-bottom: 16px;
}

.page-hero {
  padding: 84px 0;
  text-align: center;
}

.page-hero::before {
  background-image: linear-gradient(180deg, rgba(250,246,240,0.88), rgba(250,246,240,0.8)), url('images/hero.webp');
}

.format-note {
  margin-top: 18px;
  font-size: 0.95rem;
}

/* ACCORDIONS */
.accordion-group {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.accordion {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: var(--card-bg);
  color: var(--text-dark);
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.accordion::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.4rem;
}

.accordion.active,
.accordion:hover,
.accordion:focus-visible {
  border-color: rgba(142,123,160,0.35);
  background: rgba(255,255,255,0.9);
}

.accordion.active::after {
  content: '–';
}

.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.panel-inner {
  padding: 0 6px 4px;
}

.panel-card {
  margin-top: 10px;
  padding: 18px 22px;
  border: 1px solid var(--border-soft);
  border-radius: 0 0 22px 22px;
  background: rgba(255,255,255,0.65);
}

/* FORMS */
.capture-form {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
}

.capture-form h3 {
  text-align: left;
}

.form-stack {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 10px;
}

.field input[type='email'],
.field input[type='text'],
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(46,42,38,0.15);
  background: rgba(255,255,255,0.92);
  color: var(--text-dark);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(142,123,160,0.18);
  border-color: rgba(142,123,160,0.42);
}

.option-list {
  display: grid;
  gap: 14px;
}

.option-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.68);
}

.option-card input {
  margin-top: 4px;
}

.option-card strong {
  display: block;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.form-note {
  font-size: 0.9rem;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* CONTACT / CTA */
.contact-content {
  max-width: 720px;
  margin: 0 auto;
}

.contact-text {
  font-size: 1.08rem;
  margin: 16px auto 28px;
  max-width: 620px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* FOOTER */
.footer {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  color: white;
  padding: 34px 0 30px;
}

.footer-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 18px;
}

.footer-grid a {
  opacity: 0.98;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 0.92rem;
  opacity: 0.88;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(46, 42, 38, 0.48);
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(100%, 760px);
  padding: clamp(24px, 4vw, 36px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.9);
  color: var(--primary);
  font-size: 1.4rem;
}

.modal-title {
  text-align: center;
  margin-bottom: 24px;
}

body.modal-open {
  overflow: hidden;
}

/* UTILITIES */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.no-list {
  list-style: none;
  padding-left: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.info-card {
  padding: 18px 20px;
  text-align: center;
}

.info-card strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .media-row,
  .media-row.reverse,
  .highlight-band {
    grid-template-columns: 1fr;
  }

  .hero::before {
    background-image: linear-gradient(180deg, rgba(250,246,240,0.88) 0%, rgba(250,246,240,0.82) 44%, rgba(250,246,240,0.66) 100%), url('images/hero.webp');
    background-position: 72% center;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-height: 82px;
  }

  nav .container {
    min-height: var(--nav-height);
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  nav ul {
    position: absolute;
    left: 4%;
    right: 4%;
    top: calc(100% - 6px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    background: rgba(255, 250, 244, 0.98);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
  }

  nav ul.open {
    display: flex;
  }

  nav li {
    list-style: none;
  }

  nav ul a {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
  }

  nav ul a::after {
    display: none;
  }

  .hero,
  .section,
  .about,
  .services {
    padding: 72px 0;
  }

  .hero-home {
    min-height: auto;
    padding-top: 82px;
    padding-bottom: 90px;
  }

  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-outline,
  .contact-button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(94%, var(--max-width));
  }

  .section-label,
  .hero-eyebrow {
    font-size: 0.82rem;
  }

  .card-body,
  .cardx,
  .editorial-card,
  .resource-banner,
  .capture-form,
  .modal-panel,
  .hero-card,
  .credibility-line {
    padding: 22px;
  }

  .hero::before {
    background-position: 70% center;
  }

  .footer-grid {
    gap: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* FINITIONS ACCESSIBILITÉ / PRODUCTION */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text-dark);
  color: white;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(142, 123, 160, 0.42);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.page-copy {
  max-width: 860px;
}

.page-copy h3:not(:first-child) {
  margin-top: 28px;
}

.hero-centered {
  margin-inline: auto;
}

.actions-centered {
  justify-content: center;
}

.content-narrow {
  max-width: 860px;
}

.content-medium {
  max-width: 760px;
}

.margin-auto {
  margin-inline: auto;
}

.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 8px;
  font-size: 0.84rem;
}

.form-trust span::before {
  content: '✓';
  margin-right: 6px;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 820px) {
  .logo {
    font-size: 1.6rem;
  }

  .hero-content {
    width: 100%;
  }

  .hero-home .hero-content {
    padding-right: 10%;
  }

  .card img {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 600px) {
  .hero-home .hero-content {
    padding-right: 0;
  }

  .hero-home::before {
    background-image: linear-gradient(180deg, rgba(250,246,240,0.95) 0%, rgba(250,246,240,0.9) 55%, rgba(250,246,240,0.75) 100%), url('images/hero.webp');
    background-position: 66% center;
  }

  .hero-card {
    background: rgba(255,255,255,0.74);
  }

  .media-row .media::after {
    display: none;
  }

  .option-card {
    padding: 16px;
  }

  .form-trust {
    display: grid;
  }
}

/* ==========================================================
   OPTIMISATION DU FLUX DE LECTURE ET DES IMAGES
   ========================================================== */

/* Les attributs width/height réservent l'espace, mais le CSS garde
   toujours une hauteur compacte et adaptée au composant. */
img {
  height: auto;
}

.section,
.about,
.services {
  padding-block: clamp(52px, 6vw, 72px);
}

.section-compact {
  padding-block: clamp(40px, 5vw, 56px);
}

.page-hero {
  padding-block: clamp(56px, 7vw, 76px);
}

.cards {
  gap: clamp(20px, 2.4vw, 28px);
  margin-top: 32px;
}

/* Cartes : une vraie vignette horizontale plutôt qu'une image portrait
   affichée sur plus d'un écran. Le conteneur et son image occupent
   explicitement toute la largeur pour éviter toute bande résiduelle. */
.card {
  width: 100%;
  min-width: 0;
}

.card-media {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
  max-height: 340px;
  overflow: hidden;
  line-height: 0;
  background: var(--bg-alt);
}

.card-media > img {
  display: block;
  width: 100%;
  min-width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.card-body {
  padding: 22px 22px 23px;
}

/* Image éditoriale texte + image : largeur et hauteur plafonnées. */
.media-row .media {
  width: min(100%, 520px);
  justify-self: center;
}

.media-row .media img {
  width: 100%;
  height: clamp(280px, 34vw, 410px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

/* Le visuel Instagram devient une vignette d'accompagnement. */
.highlight-band {
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.75fr);
  padding: clamp(22px, 3vw, 30px);
}

.highlight-band img {
  width: 100%;
  height: clamp(220px, 26vw, 330px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 38%;
}

.insta {
  padding-block: 24px clamp(52px, 7vw, 72px);
}

/* Le hero reste immersif mais ne monopolise plus un écran complet. */
.hero-home {
  min-height: min(760px, calc(100svh - var(--nav-height)));
  padding-block: clamp(72px, 9vw, 104px);
}

@media (max-width: 960px) {
  .media-row,
  .media-row.reverse {
    gap: 30px;
  }

  .media-row .media {
    width: min(100%, 600px);
  }

  .media-row .media img {
    height: clamp(260px, 56vw, 390px);
  }

  .highlight-band {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  }
}

@media (max-width: 760px) {
  .section,
  .about,
  .services {
    padding-block: 48px;
  }

  .page-hero {
    padding-block: 52px;
  }

  .card-media {
    aspect-ratio: 16 / 10;
    max-height: 300px;
  }

  .media-row .media {
    width: min(100%, 520px);
  }

  .media-row .media img {
    height: clamp(230px, 68vw, 340px);
    border-radius: 24px;
  }

  .highlight-band {
    grid-template-columns: 1fr;
  }

  .highlight-band img {
    height: clamp(220px, 62vw, 320px);
  }

  .hero-home {
    min-height: auto;
    padding-block: 64px 72px;
  }
}

@media (max-width: 480px) {
  .section,
  .about,
  .services {
    padding-block: 42px;
  }

  .cards {
    margin-top: 26px;
  }

  .card-media {
    aspect-ratio: 16 / 10;
    max-height: 245px;
  }

  .card-body {
    padding: 19px;
  }

  .media-row .media img {
    height: min(290px, 72vw);
  }

  .highlight-band img {
    height: min(270px, 68vw);
  }
}

/* ===============================
   PAROLES DE MAMANS — CARROUSEL STORIES
================================ */
.testimonials-section {
  overflow: hidden;
}

.testimonial-heading {
  max-width: 820px;
  margin: 0 auto;
}

.testimonial-intro {
  max-width: 720px;
  margin: 8px auto 0;
  font-size: 1.02rem;
}

.story-carousel {
  max-width: 1040px;
  margin: 34px auto 0;
}

.story-carousel-toolbar,
.story-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.story-carousel-toolbar {
  margin-bottom: 16px;
}

.story-carousel-hint,
.story-carousel-note {
  font-size: 0.9rem;
  color: rgba(46, 42, 38, 0.68);
}

.story-carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.story-carousel-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(142, 123, 160, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
  font-size: 1.18rem;
  box-shadow: 0 8px 18px rgba(46, 42, 38, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.story-carousel-button:hover,
.story-carousel-button:focus-visible {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.story-carousel-button:disabled {
  cursor: default;
  opacity: 0.35;
  transform: none;
}

.story-carousel-status {
  min-width: 72px;
  text-align: center;
  color: var(--primary);
  font-size: 0.88rem;
}

.story-track {
  display: flex;
  gap: 20px;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(142, 123, 160, 0.38) transparent;
  padding: 4px 4px 18px;
}

.story-track::-webkit-scrollbar {
  height: 8px;
}

.story-track::-webkit-scrollbar-track {
  background: transparent;
}

.story-track::-webkit-scrollbar-thumb {
  background: rgba(142, 123, 160, 0.32);
  border-radius: 999px;
}

.story-slide {
  flex: 0 0 min(82vw, 286px);
  min-width: 0;
  scroll-snap-align: start;
}

.story-image-button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 640 / 1138;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(46, 42, 38, 0.08);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(201, 155, 168, 0.2), rgba(142, 123, 160, 0.16));
  box-shadow: 0 16px 34px rgba(46, 42, 38, 0.1);
  line-height: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.story-image-button:hover,
.story-image-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(46, 42, 38, 0.14);
}

.story-image-button > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-zoom-label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(46, 42, 38, 0.8);
  color: var(--white);
  font-size: 0.76rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.story-image-button:hover .story-zoom-label,
.story-image-button:focus-visible .story-zoom-label {
  opacity: 1;
  transform: translateY(0);
}

.story-slide figcaption {
  min-height: 58px;
  margin-top: 14px;
  padding-inline: 4px;
  color: var(--text-dark);
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}

.story-carousel-footer {
  margin-top: 18px;
  padding: 24px 26px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
}

.story-carousel-footer .btn {
  flex-shrink: 0;
}

/* Le carrousel réutilise la modale de contact existante. */
.modal-view[hidden] {
  display: none !important;
}

.modal-panel--story {
  width: min(100%, 720px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
}

.story-modal-view {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.story-modal-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72dvh, 820px);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.story-modal-caption {
  width: 100%;
  margin: 0;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 760px) {
  .story-carousel {
    margin-top: 28px;
  }

  .story-carousel-toolbar,
  .story-carousel-footer {
    align-items: flex-start;
  }

  .story-carousel-toolbar {
    flex-direction: column;
  }

  .story-carousel-controls {
    align-self: stretch;
    justify-content: space-between;
  }

  .story-carousel-footer {
    flex-direction: column;
    padding: 20px;
  }

  .story-carousel-footer .btn {
    width: 100%;
  }

  .story-slide {
    flex-basis: min(78vw, 286px);
  }

  .story-zoom-label {
    opacity: 1;
    transform: none;
    background: rgba(46, 42, 38, 0.72);
  }

  .modal-panel--story {
    max-height: calc(100dvh - 28px);
    padding: 16px;
  }

  .story-modal-image {
    max-height: 70dvh;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 10px;
  }

  .modal-panel--story {
    max-height: calc(100dvh - 20px);
    padding: 12px;
    border-radius: 18px;
  }

  .story-modal-image {
    max-height: 72dvh;
    border-radius: 14px;
  }

  .story-modal-caption {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-track {
    scroll-behavior: auto;
  }
}
