/*
Theme Name: Joanna 2026
Theme URI: https://joannapeyrache-psychologue.fr/
Author: Joanna Peyrache / projet site 2026
Description: Thème WordPress natif en blocs, minimal et éditable avec Gutenberg.
Version: 1.18.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: joanna-2026
*/

:root {
  --jp-navy: #17345c;
  --jp-text: #26364e;
  --jp-rose: #d85d7d;
  --jp-rose-soft: #f4dce3;
  --jp-powder: #f9e8ed;
  --jp-ivory: #fffaf9;
  --jp-warm: #f6ece8;
  --jp-line: #e8cfd7;
}

html { scroll-behavior: smooth; }

body {
  text-rendering: optimizeLegibility;
  background-color: var(--jp-powder);
  background-image:
    linear-gradient(rgba(249,232,237,.87), rgba(249,232,237,.87)),
    url('assets/images/fond-floral-rose-joanna-peyrache.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.wp-site-blocks {
  min-height: 100vh;
}

.jp-site-header {
  border-bottom: 1px solid rgba(23,52,92,.07);
  background: rgba(255,250,249,.94) !important;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 20;
}

.jp-brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 270px;
  height: 90px;
  background-image: url('assets/images/logo-joanna-peyrache-psychologue.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  text-decoration: none;
}

.jp-site-header .wp-block-navigation-item__content {
  text-decoration: none;
}

.jp-site-header .wp-block-navigation-item__content:hover,
.jp-site-header .current-menu-item > .wp-block-navigation-item__content {
  color: var(--jp-rose);
}

.jp-button .wp-block-button__link {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.jp-button .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(216,93,125,.18);
}

.jp-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(23,52,92,.05);
  background: rgba(255,250,249,.78);
}

.jp-hero::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  right: -150px;
  top: -160px;
  background: rgba(216,93,125,.055);
  pointer-events: none;
}

.jp-hero .wp-block-column:nth-child(2) {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    url('assets/images/fond-aquarelle-rose-joanna-peyrache.jpg')
    center / 118% auto no-repeat;
}

.jp-hero-photo {
  margin: 0;
  width: min(72%, 310px);
  position: relative;
  z-index: 2;
}
.jp-hero-photo img {
  width: 100%;
  height: 385px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 155px 155px 92px 92px;
  border: 1px solid rgba(23,52,92,.06);
  box-shadow: 0 18px 48px rgba(61,42,51,.13);
}

/* Compatibilité avec l'ancien placeholder si une page ne s'est pas encore migrée. */
.jp-photo-placeholder {
  min-height: 460px;
  border-radius: 44px 44px 32px 32px;
  background:
    linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)),
    url('assets/images/joanna-peyrache-psychologue-bron.webp') center 28% / cover no-repeat;
  border: 1px solid rgba(23,52,92,.06);
}
.jp-photo-placeholder p { display: none; }

.jp-prose {
  max-width: 820px;
}
.jp-prose p {
  line-height: 1.78;
  margin-bottom: 1.15em;
}

.jp-soft-section {
  background:
    linear-gradient(rgba(249,232,237,.67), rgba(249,232,237,.67)),
    url('assets/images/fond-floral-rose-joanna-peyrache.jpg') center / cover no-repeat;
  border-top: 1px solid rgba(216,93,125,.12);
  border-bottom: 1px solid rgba(216,93,125,.12);
}

.jp-modalities { gap: 0; }

.jp-modality {
  padding: 22px 28px;
  border-left: 1px solid rgba(216,93,125,.22);
}
.jp-modality:first-child { border-left: 0; }

.jp-modality p:first-child {
  color: var(--jp-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: .45rem;
}

.jp-section-rule {
  width: 38px;
  height: 2px;
  background: var(--jp-rose);
  margin-bottom: 18px;
}

.jp-approach {
  border-top: 1px solid var(--jp-line);
  padding-top: 30px;
  margin-top: 42px;
}

.jp-workshop-column {
  border-top: 2px solid var(--jp-rose);
  padding-top: 18px;
}

.jp-placeholder-card {
  border: 1px dashed #d9c8c1;
  background: rgba(255,250,249,.76);
  border-radius: 14px;
  padding: 22px;
}

.jp-footer {
  background: var(--jp-navy);
  color: white;
}
.jp-footer a { color: white; }

@media (max-width: 900px) {
  .jp-brand-logo { width: 225px; height: 76px; }
}

@media (max-width: 781px) {
  body { background-attachment: scroll; }
  .jp-site-header { padding-left: 18px !important; padding-right: 18px !important; }
  .jp-brand-logo { width: 205px; height: 68px; }
  .jp-hero { padding-top: 34px !important; padding-bottom: 46px !important; }
  .jp-hero-photo img { height: 390px; border-radius: 26px; }
  .jp-photo-placeholder { min-height: 390px; border-radius: 26px; }
  .jp-modalities { gap: 26px; }
  .jp-modality, .jp-modality:first-child {
    border-left: 0;
    border-top: 1px solid rgba(216,93,125,.22);
    padding: 20px 0 0;
  }
  .jp-modality:first-child { border-top: 0; }
}


/* V1.2 — pages Ateliers et RDV */
.jp-page-shell {
  background: rgba(255,250,249,.70);
  border-radius: 24px;
}

.jp-workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.jp-workshop-card {
  background: rgba(255,250,249,.92);
  border: 1px solid rgba(216,93,125,.16);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(61,42,51,.045);
}
.jp-audience {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--jp-rose-soft);
  color: #97435b;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.jp-rdv-location { margin-top: 34px; gap: 28px; }

.jp-cabinet-card {
  min-height: 570px;
  padding: 34px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(255,250,249,.24), rgba(255,250,249,.24)),
    url('assets/images/circle-zen-sand-background-mindfulness-concept.png') center / cover no-repeat;
}
.jp-cabinet-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 24px;
}

.jp-map-wrap {
  min-height: 570px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(23,52,92,.08);
  background: #fff;
}
.jp-map-wrap iframe {
  width: 100%;
  min-height: 570px;
  height: 100%;
  border: 0;
  display: block;
}

.jp-notice {
  border-left: 4px solid var(--jp-rose);
  background: rgba(255,250,249,.84);
  padding: 18px 20px;
  border-radius: 0 12px 12px 0;
}

.jp-contact-grid { gap: 28px; margin-top: 28px; }
.jp-info-card {
  background: rgba(255,250,249,.90);
  border: 1px solid rgba(216,93,125,.14);
  border-radius: 16px;
  padding: 24px;
}

@media (max-width: 781px) {
  .jp-hero .wp-block-column:nth-child(2) {
    min-height: 420px;
    background-size: 125% auto;
  }
  .jp-hero-photo { width: min(74%, 285px); }
  .jp-hero-photo img { height: 350px; }
  .jp-workshop-grid { grid-template-columns: 1fr; }
  .jp-map-wrap, .jp-map-wrap iframe, .jp-cabinet-card { min-height: 430px; }
  .jp-cabinet-card img { height: 270px; }
}


/* V1.3 — lisibilité, hiérarchie et responsive */
body {
  overflow-x: hidden;
}

/* Justification des paragraphes de contenu */
.wp-block-post-content p:not(.jp-audience):not(.has-text-align-center),
.jp-prose p,
.jp-info-card p,
.jp-workshop-card p,
.jp-cabinet-card p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Hiérarchie Mes approches */
.jp-approaches-intro {
  margin-bottom: 54px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(216,93,125,.20);
}
.jp-approaches-intro h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 22px;
}
.jp-approach-section {
  margin-top: 58px;
  padding-top: 32px;
  border-top: 2px solid rgba(216,93,125,.28);
}
.jp-approach-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  color: var(--jp-navy);
  margin-bottom: 22px;
}
.jp-approach-section .jp-prose {
  max-width: 860px;
}

/* Photo légèrement plus petite tout en restant centrée sur le fond aquarelle */
.jp-hero-photo {
  width: min(64%, 275px);
}
.jp-hero-photo img {
  height: 345px;
}
.jp-hero .wp-block-column:nth-child(2) {
  background-size: 112% auto;
  background-position: center;
}

/* Navigation mobile : overlay strictement contenu dans le viewport */
.wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fffaf9 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 99999 !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 24px;
  box-sizing: border-box;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  top: 18px !important;
  right: 18px !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  width: 100%;
  box-sizing: border-box;
  padding: 72px 18px 28px !important;
  align-items: stretch !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  width: 100%;
  gap: 0 !important;
  align-items: stretch !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%;
  border-bottom: 1px solid rgba(23,52,92,.09);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block;
  width: 100%;
  padding: 16px 4px !important;
  font-size: 1.1rem;
  color: var(--jp-navy);
}

/* Header mobile compact */
@media (max-width: 781px) {
  .jp-site-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .jp-site-logo {
    width: 235px;
    height: 88px;
  }

  .jp-hero-photo {
    width: min(60%, 250px);
  }

  .jp-hero-photo img {
    height: 315px;
  }

  .jp-hero .wp-block-column:nth-child(2) {
    min-height: 390px;
    background-size: 118% auto;
  }
}

@media (max-width: 480px) {
  .jp-site-logo {
    width: 205px;
    height: 76px;
  }

  .jp-hero-photo {
    width: min(66%, 235px);
  }

  .jp-hero-photo img {
    height: 300px;
  }
}


/* V1.4.1 — correctif accueil + menu desktop + sous-titre */
@media (min-width: 782px) {
  .jp-site-header .wp-block-navigation-item__content {
    font-size: 1.02rem;
    font-weight: 500;
  }
}

.jp-hero-subtitle {
  text-align: left !important;
  text-justify: auto !important;
  hyphens: none !important;
  line-height: 1.28;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem) !important;
  max-width: 680px;
  margin-bottom: 28px;
}

.jp-hero-subtitle .jp-nowrap {
  display: inline-block;
  white-space: nowrap;
  margin-right: .22em;
}

/* Sécurise les sections principales contre les réparations de blocs Gutenberg */
.wp-block-post-content > .jp-home-section,
.wp-block-post-content > .jp-hero {
  display: block;
  width: 100%;
  clear: both;
  box-sizing: border-box;
}

@media (max-width: 781px) {
  .jp-hero-subtitle {
    font-size: clamp(1.5rem, 6vw, 1.95rem) !important;
    line-height: 1.34;
  }
}


/* V1.5 — hiérarchie Mes approches, ateliers, pictogrammes */
.jp-approaches-header {
  width: 100%;
  max-width: 900px;
  margin: 0 0 56px 0 !important;
  padding: 0 !important;
}

.jp-approaches-header .jp-section-rule {
  margin-left: 0;
}

.jp-approaches-title {
  margin-left: 0 !important;
  margin-bottom: 24px !important;
  font-size: clamp(2.55rem, 4.8vw, 4.15rem) !important;
  color: var(--jp-navy) !important;
}

.jp-approaches-intro {
  width: 100%;
  max-width: 900px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 0 !important;
}

.jp-approaches-intro p {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.jp-approach-section {
  width: 100%;
  max-width: 900px !important;
  margin: 58px 0 0 0 !important;
  padding: 34px 0 0 0 !important;
  border-top: 1px solid rgba(216,93,125,.30) !important;
}

.jp-approach-section h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.65rem) !important;
  color: #a34f68 !important;
  margin: 0 0 24px 0 !important;
  line-height: 1.18;
}

.jp-workshop-card .jp-audience {
  display: none !important;
}

.jp-workshop-card .wp-block-buttons {
  justify-content: center !important;
  width: 100%;
  margin-top: 22px;
}

.jp-workshop-card .wp-block-button {
  margin-left: auto;
  margin-right: auto;
}

/* Pictogrammes discrets des modalités de suivi */
.jp-modality-icon {
  width: 42px;
  height: 42px;
  margin: 0 0 14px 0;
  color: var(--jp-rose);
}

.jp-modality-icon svg {
  width: 42px;
  height: 42px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 781px) {
  .jp-approaches-header,
  .jp-approach-section {
    max-width: 100% !important;
  }

  .jp-modality-icon {
    width: 38px;
    height: 38px;
  }

  .jp-modality-icon svg {
    width: 38px;
    height: 38px;
  }
}


/* V1.6 — CTA secondaire + visuels ateliers */
.jp-hero .wp-block-buttons {
  gap: 14px;
  align-items: center;
}

.jp-button-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--jp-rose) !important;
  border: 1.5px solid var(--jp-rose);
  box-shadow: none !important;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.jp-button-outline .wp-block-button__link:hover {
  background: rgba(216,93,125,.08) !important;
  color: #b64d69 !important;
  transform: translateY(-1px);
}

/* Cartes ateliers illustrées */
.jp-workshop-card {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.jp-workshop-card-inner {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 250px;
}

.jp-workshop-card-media {
  min-height: 250px;
  background: rgba(255,255,255,.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.jp-workshop-card-media img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.jp-workshop-card-body {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jp-workshop-card-body h3 {
  margin-top: 0;
}

.jp-workshop-card-body .wp-block-buttons {
  margin-top: 18px;
}

/* Pages dédiées ateliers */
.jp-workshop-detail {
  background: rgba(255,250,249,.78);
  border-radius: 24px;
  overflow: hidden;
}

.jp-workshop-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 46px;
  align-items: center;
}

.jp-workshop-detail-media {
  background: rgba(255,255,255,.88);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(216,93,125,.12);
}

.jp-workshop-detail-media img {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.jp-workshop-detail .jp-audience {
  display: inline-block !important;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .jp-workshop-card-inner {
    grid-template-columns: 1fr;
  }

  .jp-workshop-card-media {
    min-height: 210px;
  }

  .jp-workshop-card-media img {
    max-height: 190px;
  }

  .jp-workshop-detail-grid {
    grid-template-columns: 1fr;
  }

  .jp-workshop-detail-media {
    order: -1;
  }
}

@media (max-width: 520px) {
  .jp-hero .wp-block-buttons {
    align-items: stretch;
  }

  .jp-hero .wp-block-button {
    width: 100%;
  }

  .jp-hero .wp-block-button__link {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}


/* V1.9 — Contact, pages légales et confidentialité */
.jp-legal-shell,
.jp-contact-shell {
  background: rgba(255,250,249,.82);
}

.jp-legal-content,
.jp-contact-copy {
  max-width: 840px;
}

.jp-legal-content h2 {
  margin-top: 2.15rem;
}

.jp-legal-content h3 {
  margin-top: 1.55rem;
}

.jp-legal-content p,
.jp-legal-content li,
.jp-contact-copy p {
  line-height: 1.75;
}

.jp-contact-form {
  max-width: 820px;
  margin-top: 30px;
}

.jp-contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.jp-contact-field {
  margin-bottom: 20px;
}

.jp-contact-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--jp-navy);
  font-weight: 600;
}

.jp-contact-field input[type="text"],
.jp-contact-field input[type="email"],
.jp-contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(23,52,92,.20);
  border-radius: 10px;
  padding: 13px 14px;
  background: rgba(255,255,255,.90);
  color: var(--jp-text);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.jp-contact-field textarea {
  min-height: 170px;
  resize: vertical;
}

.jp-contact-field input:focus,
.jp-contact-field textarea:focus {
  outline: none;
  border-color: var(--jp-rose);
  box-shadow: 0 0 0 3px rgba(216,93,125,.10);
}

.jp-contact-privacy {
  padding: 16px 18px;
  margin: 20px 0;
  border: 1px solid rgba(216,93,125,.16);
  border-radius: 12px;
  background: rgba(249,232,237,.42);
  font-size: .92rem;
  line-height: 1.6;
}

.jp-contact-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 20px;
}

.jp-contact-check input {
  margin-top: 4px;
}

.jp-contact-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  background: var(--jp-rose);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.jp-contact-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(216,93,125,.18);
}

.jp-contact-status {
  max-width: 820px;
  padding: 13px 16px;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid rgba(23,52,92,.12);
  background: rgba(255,255,255,.82);
}

.jp-contact-status--success {
  border-color: rgba(46,125,79,.28);
}

.jp-contact-status--error {
  border-color: rgba(170,58,58,.28);
}

.jp-contact-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.jp-contact-turnstile {
  margin: 18px 0;
}

@media (max-width: 640px) {
  .jp-contact-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* V1.10 — formulaire Contact intégré en bas de Prendre rendez-vous */
.jp-contact-inline {
  margin-top: 54px;
  padding-top: 10px;
}

.jp-contact-inline .jp-section-rule {
  margin-bottom: 24px;
}

.jp-contact-inline .jp-contact-copy {
  max-width: 820px;
}


/* V1.11 — respiration et largeur des pages sur grand écran uniquement */
@media (min-width: 1100px) {
  /* Mes approches : conserve une largeur de lecture confortable, mais centre
     réellement le contenu dans la zone large au lieu de le caler à gauche. */
  .jp-approaches-header,
  .jp-approach-section {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Mes ateliers : Gutenberg limitait la grille à la largeur de contenu
     (760 px). On l'étend symétriquement sans modifier la mise en page mobile. */
  .jp-workshop-grid {
    width: min(1120px, calc(100vw - 160px));
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
    gap: 28px;
  }

  .jp-workshop-card-inner {
    grid-template-columns: minmax(210px, 40%) minmax(0, 60%);
    min-height: 260px;
  }

  .jp-workshop-card-body {
    padding: 28px 30px 26px;
  }

  /* Prendre rendez-vous : mêmes principes pour les deux grandes rangées.
     Les colonnes gagnent en largeur, ce qui évite les cartes très verticales. */
  .jp-rdv-location,
  .jp-contact-grid,
  .jp-contact-inline {
    width: min(1080px, calc(100vw - 160px));
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  .jp-rdv-location {
    gap: 36px;
  }

  .jp-contact-grid {
    gap: 30px;
    align-items: flex-start;
  }

  .jp-cabinet-card,
  .jp-map-wrap,
  .jp-map-wrap iframe {
    min-height: 520px;
  }

  .jp-info-card {
    padding: 28px 30px;
  }

  /* La note de disponibilité reste alignée avec la nouvelle respiration
     générale, sans devenir trop longue à lire. */
  .jp-notice {
    width: min(1000px, calc(100vw - 220px));
    max-width: none !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
    box-sizing: border-box;
  }
}


/* V1.12 — largeur desktop renforcée + simplification RDV/contact */
@media (min-width: 1100px) {
  /* Accueil : les textes n'utilisent plus la petite largeur Gutenberg de 760 px. */
  .jp-home-section > .jp-prose {
    width: min(1060px, calc(100vw - 180px));
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .jp-home-section > .jp-section-rule,
  .jp-home-section > h2,
  .jp-home-section > p,
  .jp-home-section > .wp-block-buttons {
    width: min(1060px, calc(100vw - 180px));
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .jp-soft-section > .wp-block-group.alignwide {
    width: min(1120px, calc(100vw - 160px));
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .jp-soft-section > .wp-block-group.alignwide > p {
    max-width: 1060px !important;
  }

  /* Mes approches : un peu plus large tout en gardant une longueur de ligne lisible. */
  .jp-approaches-header,
  .jp-approach-section {
    width: min(1080px, calc(100vw - 180px));
    max-width: none !important;
  }

  .jp-approaches-intro {
    max-width: 1080px !important;
  }

  /* Mes ateliers : davantage d'horizontalité et typographie légèrement plus compacte. */
  .jp-workshop-grid {
    width: min(1280px, calc(100vw - 120px));
    gap: 30px;
  }

  .jp-workshop-card-inner {
    grid-template-columns: minmax(210px, 35%) minmax(0, 65%);
    min-height: 245px;
  }

  .jp-workshop-card-media {
    min-height: 245px;
    padding: 16px;
  }

  .jp-workshop-card-media img {
    max-height: 210px;
  }

  .jp-workshop-card-body {
    padding: 25px 28px 23px;
    font-size: .96rem;
    line-height: 1.58;
  }

  .jp-workshop-card-body h3 {
    font-size: clamp(1.38rem, 1.55vw, 1.72rem) !important;
    line-height: 1.16;
  }

  /* Prendre rendez-vous : largeur accrue sur les grands écrans. */
  .jp-rdv-location,
  .jp-contact-grid,
  .jp-contact-inline {
    width: min(1200px, calc(100vw - 120px));
  }

  .jp-notice {
    width: min(1100px, calc(100vw - 180px));
  }

  /* Après retrait de Mes coordonnées, le bloc tarif occupe la ligne entière. */
  .jp-contact-grid {
    display: block !important;
  }

  .jp-contact-grid > .wp-block-column {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .jp-contact-grid .jp-info-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .jp-contact-inline .jp-contact-copy,
  .jp-contact-inline .jp-contact-form,
  .jp-contact-inline .jp-contact-status {
    max-width: 1000px;
  }
}

/* V1.13 — corrections de géométrie desktop : centrage, cartes modalités, débordements */
@media (min-width: 1100px) {
  /* ---------- Accueil ---------- */
  /* La section Qui suis-je utilise toute la largeur utile du bloc wide,
     sans conserver les 760 px imposés par le layout Gutenberg interne. */
  .home .jp-home-section.alignwide {
    width: min(1180px, calc(100% - 96px));
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .home .jp-home-section > h2,
  .home .jp-home-section > .jp-prose,
  .home .jp-home-section > p,
  .home .jp-home-section > .wp-block-buttons {
    width: 100%;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .home .jp-home-section > .jp-prose > p {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Annule la longue ligne créée par la V1.12 : l'accent redevient court. */
  .home .jp-home-section > .jp-section-rule,
  .home .jp-soft-section .jp-section-rule {
    width: 38px !important;
    max-width: 38px !important;
  }

  /* Modalités de suivi : texte introductif plus large et 3 vraies cartes
     occupant toute la largeur, côte à côte. */
  .home .jp-soft-section > .wp-block-group.alignwide {
    width: min(1180px, 100%);
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .home .jp-soft-section > .wp-block-group.alignwide > p {
    width: 100%;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .home .jp-modalities.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px !important;
    width: 100%;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: stretch;
  }

  .home .jp-modalities > .wp-block-column {
    min-width: 0;
    display: flex;
  }

  .home .jp-modality,
  .home .jp-modality:first-child {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 26px 28px 24px;
    border: 1px solid rgba(216,93,125,.18) !important;
    border-radius: 16px;
    background: rgba(255,250,249,.78);
    box-shadow: 0 10px 28px rgba(61,42,51,.035);
  }

  .home .jp-modality-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .home .jp-modality > p:first-of-type {
    text-align: center !important;
    text-justify: auto !important;
    hyphens: none;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .home .jp-modality > p:last-child {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ---------- Mes approches ---------- */
  .jp-page-mes-approches .wp-block-post-content > .wp-block-group.alignwide {
    width: min(1180px, calc(100% - 96px));
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .jp-page-mes-approches .jp-approaches-header,
  .jp-page-mes-approches .jp-approach-section {
    width: 100%;
    max-width: 1060px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .jp-page-mes-approches .jp-approaches-intro {
    width: 100%;
    max-width: 1060px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .jp-page-mes-approches .jp-approaches-intro > p,
  .jp-page-mes-approches .jp-approach-section > p,
  .jp-page-mes-approches .jp-approach-section > h2 {
    width: 100%;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ---------- Mes ateliers ---------- */
  .jp-page-ateliers .jp-page-shell {
    width: min(1280px, calc(100% - 96px));
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .jp-page-ateliers .jp-workshop-grid {
    width: 100%;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    gap: 28px;
  }

  .jp-page-ateliers .jp-workshop-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .jp-page-ateliers .jp-workshop-card-inner {
    grid-template-columns: minmax(190px, 34%) minmax(0, 66%);
  }

  /* ---------- Prendre rendez-vous ---------- */
  .jp-page-prendre-rendez-vous .jp-page-shell {
    width: min(1280px, calc(100% - 96px));
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .jp-page-prendre-rendez-vous .jp-rdv-location,
  .jp-page-prendre-rendez-vous .jp-contact-grid,
  .jp-page-prendre-rendez-vous .jp-contact-inline,
  .jp-page-prendre-rendez-vous .jp-notice {
    width: 100%;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    box-sizing: border-box;
  }

  .jp-page-prendre-rendez-vous .jp-rdv-location {
    gap: 32px;
  }

  .jp-page-prendre-rendez-vous .jp-rdv-location > .wp-block-column,
  .jp-page-prendre-rendez-vous .jp-contact-grid > .wp-block-column {
    min-width: 0;
  }

  .jp-page-prendre-rendez-vous .jp-info-card,
  .jp-page-prendre-rendez-vous .jp-contact-form,
  .jp-page-prendre-rendez-vous .jp-contact-status {
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
  }

  .jp-page-prendre-rendez-vous .jp-contact-inline .jp-contact-copy {
    width: 100%;
    max-width: 1000px !important;
  }
}

/* V1.14 — finitions desktop : contact pleine largeur + alignement Modalités */
@media (min-width: 1100px) {
  /* Prendre rendez-vous : toute la rubrique Contact suit désormais exactement
     la largeur utile du conteneur de page, y compris le formulaire. */
  .jp-page-prendre-rendez-vous .jp-contact-inline {
    width: 100% !important;
    max-width: 100% !important;
  }

  .jp-page-prendre-rendez-vous .jp-contact-inline > h2,
  .jp-page-prendre-rendez-vous .jp-contact-inline > .jp-contact-copy,
  .jp-page-prendre-rendez-vous .jp-contact-inline > .wp-block-shortcode,
  .jp-page-prendre-rendez-vous .jp-contact-inline > .jp-contact-form,
  .jp-page-prendre-rendez-vous .jp-contact-inline > .jp-contact-status {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }


  .jp-page-prendre-rendez-vous .jp-contact-inline .wp-block-shortcode,
  .jp-page-prendre-rendez-vous .jp-contact-inline .jp-contact-form {
    width: 100% !important;
    max-width: none !important;
  }

  .jp-page-prendre-rendez-vous .jp-contact-inline .jp-contact-copy > p {
    width: 100% !important;
    max-width: none !important;
  }

  /* Accueil : le titre Modalités de suivi et son trait reprennent le même axe
     gauche que le paragraphe introductif et la grille de cartes. */
  .home .jp-soft-section > .wp-block-group.alignwide > h2 {
    width: 100%;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  .home .jp-soft-section > .wp-block-group.alignwide > .jp-section-rule {
    margin-left: max(0px, calc((100% - 1100px) / 2)) !important;
    margin-right: auto !important;
  }
}



/* V1.15 — finitions accueil, footer et notifications e-mail */
.jp-footer-copyright {
  margin: 0;
  opacity: .72;
  font-size: .78rem;
  line-height: 1.45;
  letter-spacing: .01em;
}

@media (min-width: 1100px) {
  /* Les petits traits décoratifs de l'accueil restent centrés quel que soit
     le niveau de zoom ou la largeur réellement disponible. */
  .home .jp-home-section > .jp-section-rule,
  .home .jp-soft-section > .wp-block-group.alignwide > .jp-section-rule {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* V1.16 — footer : contraste du copyright */
.jp-footer .jp-footer-copyright,
.jp-footer .jp-footer-copyright.has-text-color,
.jp-footer p.jp-footer-copyright {
  color: #ffffff !important;
  opacity: .82;
  -webkit-text-fill-color: #ffffff;
}


/* V1.17 — ancre Modalités de suivi */
#modalites-de-suivi {
  scroll-margin-top: 120px;
}
