/* =========================================================
   rm-module
   ========================================================= */

:root {
  --rm-navy: #0f1345;
  --rm-purple: #7f2276;
  --rm-olive: #ceb82b;
  --rm-gold: #ceb82b;
  --rm-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
}

/* ---------- Header page (hero) ---------- */
.rm-hero {
  position: relative;
  min-height: var(--rm-hero-h, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--rm-hero-bg, none) center / cover no-repeat var(--rm-hero-color, var(--rm-navy));
  overflow: hidden;
}
.rm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rm-hero-color, var(--rm-navy));
  opacity: var(--rm-hero-overlay, .78);
}
.rm-hero__inner {
  position: relative;
  padding: 40px 20px 120px;
}
.rm-hero .rm-hero__title {
  margin: 0 0 40px !important;
  font: 500 clamp(48px, 7vw, 82px)/1.1 var(--rm-serif) !important;
  color: #fff !important;
  letter-spacing: .01em;
}
.rm-hero p.rm-hero__text {
  margin: 0 !important;
  font: italic 600 clamp(16px, 1.6vw, 21px)/1.8 var(--rm-serif) !important;
  color: #fff !important;
}
.rm-hero a.rm-hero__down {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 140px;
  height: 104px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.rm-hero__down svg {
  width: 38px;
  height: 38px;
  transition: transform .25s;
}
.rm-hero__down:hover svg { transform: translateY(5px); }

/* ---------- Header accueil (tuiles) ---------- */
.rm-module {
  width: 100%;
  max-width: none;
  margin: 0;
}
.rm-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.rm-module a.rm-tile,
.rm-module a.rm-tile * {
  text-decoration: none !important;
  box-shadow: none !important;
}
.rm-module a.rm-tile {
  --rm-tile-color: var(--rm-navy);
  --rm-tile-opacity: .7;
  --rm-tile-accent: #fff;
  --rm-tile-chevron: var(--rm-gold); /* chevron = couleur opposée au titre */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: clamp(240px, 27vw, 330px);
  padding: 30px 20px 0;
  overflow: hidden;
  text-align: center;
  color: #fff !important;
  background: var(--rm-tile-color);
  isolation: isolate;
}
.rm-module a.rm-tile--large { grid-column: span 3; }
.rm-module a.rm-tile--small { grid-column: span 2; }

.rm-module a.rm-tile--navy   { --rm-tile-color: #0f1345; --rm-tile-opacity: .68; }
.rm-module a.rm-tile--purple { --rm-tile-color: #7f2276; --rm-tile-opacity: .78; }
.rm-module a.rm-tile--olive  { --rm-tile-color: #ceb82b; --rm-tile-opacity: .8; }
.rm-module a.rm-tile--gold   { --rm-tile-accent: var(--rm-gold); --rm-tile-chevron: #fff; }

.rm-tile__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: center / cover no-repeat;
  transition: transform .6s ease;
}
.rm-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--rm-tile-color);
  opacity: var(--rm-tile-opacity);
  transition: opacity .35s;
}
.rm-tile:hover .rm-tile__img { transform: scale(1.05); }
.rm-tile:hover::before { opacity: calc(var(--rm-tile-opacity) - .12); }

.rm-module .rm-tile__title {
  margin: 0 !important;
  font: 500 clamp(28px, 3vw, 40px)/1.1 var(--rm-serif) !important;
  color: var(--rm-tile-accent) !important;
  text-transform: lowercase;
}

/* Losange avec chevron : contour = couleur du titre, chevron = couleur opposée (blanc / jaune) */
.rm-tile__icon {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rm-tile-accent);
}
.rm-tile__icon::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: background .25s;
}
.rm-tile__icon svg {
  position: relative;
  width: 9px;
  height: 13px;
  color: var(--rm-tile-chevron);
  stroke-width: 2.4;
  transition: color .25s;
}
.rm-tile:hover .rm-tile__icon::before { background: var(--rm-tile-accent); }
.rm-tile:hover .rm-tile__icon svg { color: var(--rm-tile-color); }
.rm-tile:hover .rm-tile__icon svg { color: var(--rm-tile-color); }

/* ---------- Sous-menu (submenu) ---------- */
.rm-submenu {
  --rm-sub-accent: #7f2276;
  --rm-sub-scale: 1.3; /* taille des liens (icône, texte, losange) */
  position: relative;
  min-height: var(--rm-sub-h, 520px);
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--rm-sub-bg, none) center / cover no-repeat var(--rm-navy);
  overflow: hidden;
}
.rm-submenu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 19, 69, var(--rm-sub-overlay, .8));
}
.rm-submenu__badge {
  position: absolute;
  top: 0;
  left: var(--rm-sub-pad);
  z-index: 1;
  width: clamp(80px, 11vw, 120px);
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rm-submenu__badge img {
  width: 42%;
  height: auto;
}
.rm-submenu {
  --rm-sub-pad: 7%; /* marge gauche/droite : badge et titre alignés */
}
.rm-submenu__inner {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 140px var(--rm-sub-pad) 80px;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 46%);
  gap: 60px;
  align-items: center;
}
.rm-submenu .rm-submenu__title {
  margin: 0 !important;
  font: 500 clamp(30px, 3.4vw, 46px)/1.25 var(--rm-serif) !important;
  color: #fff !important;
}
.rm-submenu__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1.5px solid var(--rm-sub-accent) !important;
}
.rm-submenu__list li {
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .3) !important;
  transition: border-color .25s;
}
.rm-submenu__list li:last-child { border-bottom: 1.5px solid var(--rm-sub-accent) !important; }
.rm-submenu__list li:hover { border-bottom-color: var(--rm-sub-accent) !important; }

.rm-submenu a.rm-submenu__link,
.rm-submenu a.rm-submenu__link * {
  text-decoration: none !important;
  box-shadow: none !important;
}
.rm-submenu a.rm-submenu__link {
  display: grid;
  grid-template-columns: calc(52px * var(--rm-sub-scale)) 1fr calc(30px * var(--rm-sub-scale));
  align-items: center;
  gap: calc(22px * var(--rm-sub-scale));
  padding: calc(22px * var(--rm-sub-scale)) 12px;
  color: #fff !important;
  transition: background .25s;
}
.rm-submenu a.rm-submenu__link:hover { background: rgba(255, 255, 255, .05); }

.rm-submenu__ico img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(52px * var(--rm-sub-scale));
  object-fit: contain;
}
.rm-submenu__label {
  font: 700 calc(13px * var(--rm-sub-scale))/1.35 'IBM Plex Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  max-width: 16ch;
}

/* Losange avec chevron (réutilisable) */
.rm-diamond {
  --rm-diamond-color: #fff;
  --rm-diamond-s: 1;
  position: relative;
  width: calc(30px * var(--rm-diamond-s));
  height: calc(30px * var(--rm-diamond-s));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rm-diamond-color);
}
.rm-diamond::before {
  content: "";
  position: absolute;
  width: calc(19px * var(--rm-diamond-s));
  height: calc(19px * var(--rm-diamond-s));
  border: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: background .25s;
}
.rm-diamond svg {
  position: relative;
  width: calc(7px * var(--rm-diamond-s));
  height: calc(10px * var(--rm-diamond-s));
  transition: color .25s;
}
.rm-submenu .rm-diamond { --rm-diamond-s: var(--rm-sub-scale); }
.rm-submenu__link:hover .rm-diamond::before { background: #fff; }
.rm-submenu__link:hover .rm-diamond svg { color: var(--rm-navy); }

/* ---------- Galerie mosaïque ---------- */
.rm-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  width: 100%;
}
.rm-gallery .rm-gallery__item {
  --rm-gal-color: transparent;
  position: relative;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none !important;
  box-shadow: none !important;
}
.rm-gallery__item--large { grid-column: span 3; aspect-ratio: 3 / 2; }
.rm-gallery__item--small { grid-column: span 2; aspect-ratio: 1.9 / 1; }

.rm-gallery .rm-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform .6s ease;
}

/* Filtres */
.rm-gallery__item--gray img,
.rm-gallery__item--navy img,
.rm-gallery__item--purple img,
.rm-gallery__item--olive img { filter: grayscale(1); }

/* Même spécificité que .rm-gallery .rm-gallery__item, sinon « transparent » l'emporte */
.rm-gallery .rm-gallery__item--navy   { --rm-gal-color: #0f1345; }
.rm-gallery .rm-gallery__item--purple { --rm-gal-color: #7f2276; }
.rm-gallery .rm-gallery__item--olive  { --rm-gal-color: #ceb82b; }

.rm-gallery .rm-gallery__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: var(--rm-gal-color);
  mix-blend-mode: color;
  opacity: var(--rm-gal-tint, .75);
  pointer-events: none;
  transition: opacity .35s;
}
.rm-gallery .rm-gallery__item--navy .rm-gallery__tint { mix-blend-mode: multiply; opacity: calc(var(--rm-gal-tint, .75) * .9); }

/* Survol (seulement si la photo a un lien) */
a.rm-gallery__item:hover img { transform: scale(1.05); }
.rm-gallery a.rm-gallery__item:hover .rm-gallery__tint { opacity: calc(var(--rm-gal-tint, .75) - .2); }

/* ---------- Médias (ICI RDI, Le Devoir, blogue) ---------- */
.rm-media {
  --rm-media-cols: 3;
  --rm-media-logo-h: 56px;
  max-width: 60em;
  margin: 0 auto;
  padding: 3em 1.25em;
  display: grid;
  grid-template-columns: repeat(var(--rm-media-cols), 1fr);
  gap: 2em;
  text-align: center;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
}
/* Retire le soulignement du thème (lien + enfants) */
.rm-media .rm-media__item,
.rm-media a.rm-media__item:hover,
.rm-media a.rm-media__item:focus,
.rm-media .rm-media__item * {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.rm-media .rm-media__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #111 !important;
}
.rm-media a.rm-media__item:focus-visible { outline: 2px solid var(--rm-purple); outline-offset: 6px; }
.rm-media h3.rm-media__title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'IBM Plex Sans', Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 19px !important;
  line-height: 1.35 !important;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #111 !important;
}
.rm-media h3.rm-media__title span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  margin-top: 2px;
}
.rm-media h3.rm-media__title::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: #7f2276;
  margin: 24px auto 32px;
  transition: width .25s;
}
.rm-media a.rm-media__item:hover h3.rm-media__title::after { width: 170px; }
/* Taille des logos forcée */
.rm-media img.rm-media__logo {
  height: var(--rm-media-logo-h) !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
  margin: 0 !important;
  transition: opacity .25s;
}
.rm-media a.rm-media__item:hover img.rm-media__logo { opacity: .75; }
@media (max-width: 600px) {
  .rm-media { grid-template-columns: 1fr; gap: 2.5em; --rm-media-logo-h: 46px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rm-gallery__item--small { grid-column: span 3; aspect-ratio: 3 / 2; }
  .rm-gallery__item--small:last-child:nth-child(odd) { grid-column: span 6; }
  .rm-module a.rm-tile--large { grid-column: span 6; }
  .rm-module a.rm-tile--small { grid-column: span 3; }
}
@media (max-width: 900px) {
  .rm-submenu__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 150px;
  }
}
@media (max-width: 600px) {
  .rm-submenu .rm-submenu__title br { display: none; }
  .rm-submenu { --rm-sub-scale: 1.05 !important; }
  .rm-gallery__item--large,
  .rm-gallery__item--small { grid-column: span 6 !important; aspect-ratio: 3 / 2; }
  .rm-submenu a.rm-submenu__link { padding-left: 6px; padding-right: 6px; }
  .rm-hero { min-height: min(var(--rm-hero-h, 620px), 480px); }
  .rm-hero p.rm-hero__text br { display: none; }
  .rm-hero a.rm-hero__down { width: 100px; height: 76px; }
  .rm-module a.rm-tile--large,
  .rm-module a.rm-tile--small { grid-column: span 6; min-height: 220px; }
}

/* =========================================================
   Articles — liste (blogue) + articles récents
   ========================================================= */
.rm-blog,
.rm-posts {
  --rm-post-mauve: #7f2276;
  --rm-post-marine: #0f1345;
  --rm-post-texte: #6b6f80;
  --rm-post-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  font-family: var(--rm-post-serif);
}

/* ---------- Carte d'article (commune) ---------- */
.rm-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25em;
  align-items: start;
  margin: 0 0 3.5em;
}
.rm-post--noimg { grid-template-columns: 1fr; }
.rm-post__img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e9e6ee;
}
.rm-post__img img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.rm-post:hover .rm-post__img img { transform: scale(1.04); }
.rm-post__body { padding-top: 1.1em; }
.rm-post .rm-post__heading {
  font-family: var(--rm-post-serif) !important;
  font-weight: 600 !important;
  font-size: 1.35em !important;
  line-height: 1.4 !important;
  margin: 0 0 .7em !important;
}
.rm-post .rm-post__heading a { color: var(--rm-post-marine); text-decoration: none; }
.rm-post .rm-post__heading a:hover { color: var(--rm-post-mauve); }
.rm-post .rm-post__date {
  display: block;
  font-style: italic;
  font-weight: 600;
  font-size: .85em;
  color: var(--rm-post-mauve);
  margin-bottom: 1.1em;
}
.rm-post .rm-post__excerpt {
  font-size: 1em;
  line-height: 1.85;
  color: var(--rm-post-texte);
  margin: 0 0 1em;
}
.rm-post a.rm-post__more {
  font-style: italic;
  font-weight: 600;
  font-size: .85em;
  color: var(--rm-post-mauve);
  text-decoration: underline;
}
.rm-post a.rm-post__more:hover { color: var(--rm-post-marine); }

/* ---------- Liste des articles + barre latérale ---------- */
.rm-blog {
  --rm-blog-fs: 18px; /* taille de base : tout le module suit (titres, extraits, barre latérale) */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17em;
  gap: 3.5em;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3em 1.5em 4em;
  font-size: var(--rm-blog-fs);
}
.rm-blog .rm-post { grid-template-columns: 1.15fr 1fr; gap: 0 1.75em; }
.rm-blog .rm-post .rm-post__heading { font-size: 1.5em !important; }
.rm-blog .rm-post .rm-post__date,
.rm-blog .rm-post a.rm-post__more { font-size: .9em; }
.rm-blog--full { grid-template-columns: minmax(0, 1fr); }
.rm-blog__empty { color: var(--rm-post-texte); }

.rm-blog__sidebar {
  border-left: 1px solid #e4e2e8;
  padding: 1.5em 0 1em 2em;
  margin-top: 4em;
  font-size: .95em;
  line-height: 1.55;
  position: sticky;
  top: 2em;
}
.rm-blog__sidebar .rm-blog__side-title {
  font-family: var(--rm-post-serif) !important;
  font-weight: 600 !important;
  font-size: 1.3em !important;
  color: var(--rm-post-mauve) !important;
  margin: 0 0 1.2em !important;
}
.rm-blog__sidebar ul.rm-blog__side-list {
  list-style: none;
  margin: 0 0 2.5em;
  padding: 0;
}
.rm-blog__sidebar .rm-blog__side-list li { margin: 0 0 .9em; padding: 0; }
.rm-blog__sidebar .rm-blog__side-list li::marker { content: none; }
.rm-blog__sidebar .rm-blog__side-list ul { list-style: none; margin: .9em 0 0 1em; padding: 0; }
.rm-blog__sidebar a { color: #555a6e; text-decoration: none; }
.rm-blog__sidebar a:hover { color: var(--rm-post-mauve); }

@media (max-width: 1000px) {
  .rm-blog { grid-template-columns: minmax(0, 1fr); --rm-blog-fs: 17px; }
  .rm-blog__sidebar { position: static; margin-top: 0; border-left: 0; border-top: 1px solid #e4e2e8; padding: 2em 0 0; }
}
@media (max-width: 640px) {
  .rm-blog { --rm-blog-fs: 16px; }
  .rm-blog .rm-post { grid-template-columns: 1fr; }
}

/* Pagination */
.rm-blog__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .4em;
  margin-top: 1em;
}
.rm-blog__pagination .page-numbers {
  min-width: 2.4em;
  padding: .45em .8em;
  text-align: center;
  border: 1px solid #e4e2e8;
  color: var(--rm-post-marine);
  text-decoration: none;
  font-size: .9em;
}
.rm-blog__pagination a.page-numbers:hover { border-color: var(--rm-post-mauve); color: var(--rm-post-mauve); }
.rm-blog__pagination .page-numbers.current {
  background: var(--rm-post-mauve);
  border-color: var(--rm-post-mauve);
  color: #fff;
}
.rm-blog__pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Articles récents ---------- */
.rm-posts {
  max-width: 62.5em;
  margin: 0 auto;
  padding: 1.5em 1.25em 3em;
}
.rm-posts .rm-posts__title {
  font-family: var(--rm-post-serif) !important;
  font-weight: 400 !important;
  font-size: 2.75em !important;
  line-height: 1.2 !important;
  color: var(--rm-post-mauve) !important;
  margin: 0 0 .75em !important;
}
.rm-posts hr.rm-posts__line {
  width: 3.75em;
  height: 1px;
  background: var(--rm-post-marine);
  border: 0;
  margin: 0 0 3em;
}
.rm-posts .rm-post .rm-post__heading { font-size: 1.1em !important; }
.rm-posts .rm-post .rm-post__date,
.rm-posts .rm-post a.rm-post__more { font-size: .7em; }
.rm-posts .rm-post .rm-post__excerpt { font-size: .85em; }
.rm-posts .rm-post { margin-bottom: 2em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rm-blog { grid-template-columns: minmax(0, 1fr); }
  .rm-blog__sidebar {
    position: static;
    margin-top: 0;
    border-left: 0;
    border-top: 1px solid #e4e2e8;
    padding: 2em 0 0;
  }
}
@media (max-width: 752px) {
  .rm-post { grid-template-columns: 1fr; }
}

/* =========================================================
   Formulaire de rendez-vous
   ========================================================= */
.rm-rdv {
  --indigo: #0f1345;
  --violet: #7f2276;
  --jaune: #ceb82b;
  --blanc: #ffffff;
  --line: rgba(15, 19, 69, .18);
  --error: #b3261e;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-family: var(--sans);
  color: var(--indigo);
  line-height: 1.6;
  font-size: 15px;
  width: 100%;
  max-width: none;
  margin: 0;
}
.rm-rdv *, .rm-rdv *::before, .rm-rdv *::after { box-sizing: border-box; }
.rm-rdv a { color: var(--violet); }
.rm-rdv h3, .rm-rdv p, .rm-rdv legend { text-transform: none; font-family: var(--sans); }

.rm-rdv form.rm-rdv__form {
  background: var(--blanc);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--indigo);
  margin: 0;
}
.rm-rdv fieldset { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.rm-rdv legend {
  font-size: 26px; font-weight: 700; color: var(--indigo); margin-bottom: 6px; width: 100%;
  border-bottom: 1px solid var(--line); padding: 0 0 8px; position: relative; float: none;
}
.rm-rdv legend::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--jaune); }
.rm-rdv h3.sub { font-size: 19px; font-weight: 600; color: var(--violet); margin: 28px 0 4px; line-height: 1.3; }
.rm-rdv .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; margin-top: 18px; }
.rm-rdv .full { grid-column: 1 / -1; }
.rm-rdv label.lbl, .rm-rdv .q {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 6px;
}
.rm-rdv .req { color: var(--violet); }
.rm-rdv p.note { font-size: 13px; color: var(--indigo); margin: 0 0 4px; }

.rm-rdv form input[type=text], .rm-rdv form input[type=email], .rm-rdv form input[type=tel],
.rm-rdv form select, .rm-rdv form textarea {
  width: 100%; font: inherit; color: var(--indigo); background: var(--blanc);
  border: 1px solid var(--line); border-radius: 4px; padding: 11px 13px; margin: 0; height: auto;
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.rm-rdv form textarea { min-height: 110px; resize: vertical; }
.rm-rdv form input:focus, .rm-rdv form select:focus, .rm-rdv form textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(127, 34, 118, .15);
}
.rm-rdv .choices { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rm-rdv .choices.col { flex-direction: column; gap: 8px; }
.rm-rdv .choices label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 15px; margin: 0; font-weight: 400; }
.rm-rdv .choices input { accent-color: var(--violet); margin: 5px 0 0; }
.rm-rdv .consent__row { display: flex; gap: 8px; align-items: flex-start; }
.rm-rdv .cond { display: none; }
.rm-rdv .cond.show { display: block; }
.rm-rdv .field-error { color: var(--error); font-size: 13px; margin-top: 4px; display: none; }
.rm-rdv .has-error .field-error { display: block; }
.rm-rdv .has-error input[type=text], .rm-rdv .has-error input[type=email], .rm-rdv .has-error input[type=tel],
.rm-rdv .has-error select, .rm-rdv .has-error textarea { border-color: var(--error); }
.rm-rdv .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rm-rdv .consent { font-size: 14px; color: var(--indigo); }
.rm-rdv .actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 10px; }

.rm-rdv form button.rm-rdv__submit {
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--violet); color: var(--blanc); border: 0; border-radius: 4px; padding: 15px 44px;
  cursor: pointer; transition: background .2s;
}
.rm-rdv form button.rm-rdv__submit:hover { background: var(--indigo); color: var(--blanc); }
.rm-rdv form button.rm-rdv__submit:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.rm-rdv form button.rm-rdv__submit:disabled { opacity: .6; cursor: wait; }

.rm-rdv .alert { display: none; padding: 14px 18px; margin-bottom: 24px; border-left: 4px solid; }
.rm-rdv .alert.ok { display: block; background: var(--indigo); border-color: var(--jaune); color: var(--blanc); }
.rm-rdv .alert.err { display: block; background: var(--blanc); border: 1px solid var(--error); border-left-width: 4px; color: var(--error); }

@media (max-width: 700px) {
  .rm-rdv .grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Ressources (catégories de liens)
   ========================================================= */
.rm-res {
  --rm-res-mauve: #7f2276;
  --rm-res-marine: #0f1345;
  --rm-res-texte: #555a6e;
  --rm-res-line: #e4e2e8;
  --rm-res-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  max-width: 72em;
  margin: 0 auto;
  padding: 3em 1.25em 4em;
}
.rm-res p.rm-res__intro {
  font-family: var(--rm-res-serif);
  font-size: clamp(1.25em, 2.2vw, 1.6em);
  line-height: 1.45;
  color: var(--rm-res-marine);
  max-width: 40em;
  margin: 0 0 2em;
}

/* Filtres (pastilles) */
.rm-res__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75em;
  margin: 0 0 3em;
}
.rm-res a.rm-res__pill {
  display: inline-block;
  padding: .55em 1.3em;
  border: 1px solid var(--rm-res-marine);
  border-radius: 999px;
  color: var(--rm-res-marine);
  font-size: .95em;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.rm-res a.rm-res__pill:hover { border-color: var(--rm-res-mauve); color: var(--rm-res-mauve); }
.rm-res a.rm-res__pill.is-active {
  background: var(--rm-res-marine);
  border-color: var(--rm-res-marine);
  color: #fff;
}

/* Cartes */
.rm-res__grid {
  display: grid;
  grid-template-columns: repeat(var(--rm-res-cols, 2), minmax(0, 1fr));
  gap: 1.75em;
  align-items: start;
}
.rm-res__card {
  background: #fff;
  border: 1px solid var(--rm-res-line);
  border-top: 3px solid var(--rm-res-mauve);
  padding: 1.75em 1.75em 1.25em;
  scroll-margin-top: 6em;
  animation: rm-res-in .3s ease;
}
.rm-res__card[hidden] { display: none; }
@keyframes rm-res-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.rm-res .rm-res__title {
  font-family: var(--rm-res-serif) !important;
  font-weight: 600 !important;
  font-size: 1.45em !important;
  line-height: 1.25 !important;
  color: var(--rm-res-marine) !important;
  margin: 0 0 .9em !important;
  padding-bottom: .6em;
  border-bottom: 1px solid var(--rm-res-line);
  position: relative;
}
.rm-res .rm-res__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 2.5em;
  height: 2px;
  background: var(--rm-res-mauve);
}
.rm-res p.rm-res__desc { color: var(--rm-res-texte); font-size: .95em; margin: -.3em 0 1em; }

.rm-res ul.rm-res__list { list-style: none; margin: 0; padding: 0; }
.rm-res .rm-res__list li { margin: 0; padding: 0; border-bottom: 1px solid var(--rm-res-line); }
.rm-res .rm-res__list li:last-child { border-bottom: 0; }
.rm-res .rm-res__list li::marker { content: none; }

.rm-res .rm-res__link {
  display: flex;
  align-items: center;
  gap: .9em;
  padding: .7em .25em;
  color: var(--rm-res-marine);
  text-decoration: none;
  transition: color .2s, padding .2s;
}
.rm-res .rm-res__link .rm-diamond {
  --rm-diamond-color: var(--rm-res-mauve);
  --rm-diamond-s: .8;
  flex: 0 0 auto;
}
.rm-res a.rm-res__link:hover { color: var(--rm-res-mauve); padding-left: .6em; }
.rm-res a.rm-res__link:hover .rm-diamond::before { background: var(--rm-res-mauve); }
.rm-res a.rm-res__link:hover .rm-diamond svg { color: #fff; }
.rm-res__text { display: flex; flex-direction: column; min-width: 0; }
.rm-res__label { font-size: 1em; line-height: 1.4; }
.rm-res__sub { font-size: .85em; color: var(--rm-res-texte); line-height: 1.4; margin-top: .15em; }
.rm-res__ext { width: .75em; height: .75em; margin-left: .4em; vertical-align: baseline; opacity: .6; }

@media (max-width: 900px) {
  .rm-res__grid { grid-template-columns: repeat(min(var(--rm-res-cols, 2), 2), minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rm-res__grid { grid-template-columns: 1fr; }
  .rm-res__filters { justify-content: flex-start; }
  .rm-res__card { padding: 1.4em 1.2em 1em; }
}

/* =========================================================
   Infolettre (Mailchimp)
   Tailles en px : le module garde la même grandeur peu importe
   la taille de police héritée de la page / du conteneur Elementor.
   ========================================================= */
.rm-news {
  --rm-news-yellow: #ceb82b;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: var(--rm-news-h, 0);
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 20px;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: transparent;
}
.rm-news__bg {
  position: absolute;
  inset: 0;
  background: right center / cover no-repeat;
  filter: grayscale(1);
  z-index: -2;
}
.rm-news--has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rm-navy);
  opacity: var(--rm-news-overlay, .85);
  z-index: -1;
}
.rm-news__inner {
  width: 100%;
  max-width: 520px;
  margin: 0 0 0 clamp(0px, 12%, 180px);
}
.rm-news .rm-news__title {
  font-family: 'IBM Plex Sans', Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(20px, 2.2vw, 26px) !important;
  line-height: 1.4 !important;
  color: var(--rm-news-yellow) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  max-width: 22em;
  margin: 0 0 28px !important;
}
.rm-news__form { position: relative; margin: 0; }
.rm-news p.rm-news__req {
  text-align: right;
  font-size: 13px;
  color: #fff;
  margin: 0 0 6px;
}
.rm-news__req span,
.rm-news__birth-label span { color: #e05a5a; }

.rm-news .rm-news__form input[type="email"],
.rm-news .rm-news__form input[type="text"] {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 13px 15px;
  margin: 0 0 14px;
  font-family: inherit;
  font-size: 16px;            /* 16px min. : évite le zoom auto sur iPhone */
  line-height: 1.3;
  color: var(--rm-navy);
  box-shadow: none;
}
.rm-news .rm-news__form input::placeholder { color: #8a8d9b; opacity: 1; }
.rm-news .rm-news__form input:focus { outline: 2px solid var(--rm-news-yellow); outline-offset: 0; }
.rm-news .rm-news__form input.is-invalid { outline: 2px solid #e05a5a; outline-offset: 0; }

.rm-news__birth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 6px 0 24px;
  color: #fff;
  font-size: 15px;
}
.rm-news__birth-label { font-weight: 600; margin-right: 4px; }
.rm-news .rm-news__form .rm-news__birth input {
  width: 64px;
  margin: 0;
  text-align: center;
}
.rm-news__birth small { font-size: 13px; opacity: .8; }

.rm-news__hp { position: absolute; left: -5000px; }
.rm-news p.rm-news__error { color: #fff; background: #b3261e; font-size: 14px; padding: 8px 12px; margin: 0 0 14px; }
.rm-news p.rm-news__error[hidden] { display: none; }

.rm-news .rm-news__form button.rm-news__btn {
  background: var(--rm-news-yellow);
  color: var(--rm-navy);
  border: 0;
  border-radius: 0;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.rm-news .rm-news__form button.rm-news__btn:hover { background: #fff; color: var(--rm-navy); }
.rm-news .rm-news__form button.rm-news__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 700px) {
  .rm-news__inner { margin: 0 auto; }
  .rm-news .rm-news__form button.rm-news__btn { width: 100%; }
}

/* =========================================================
   Menu hamburger (panneau latéral + chevrons)
   ========================================================= */
.rm-menu { --rm-menu-icon: var(--rm-navy); display: inline-flex; align-items: center; gap: 4px; }

/* Icône Accès clients à côté du hamburger */
.rm-menu a.rm-menu__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--rm-menu-icon);
  transition: color .2s;
}
.rm-menu a.rm-menu__account svg { width: 24px; height: 24px; }
.rm-menu a.rm-menu__account:hover { color: var(--rm-purple); }
.rm-menu a.rm-menu__account:focus-visible { outline: 2px solid var(--rm-gold); outline-offset: 2px; }

.rm-menu button.rm-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rm-menu-icon);
  cursor: pointer;
  box-shadow: none;
}
.rm-menu button.rm-menu__toggle:hover,
.rm-menu button.rm-menu__toggle:focus { background: transparent; color: var(--rm-menu-icon); }
.rm-menu button.rm-menu__toggle:focus-visible { outline: 2px solid var(--rm-gold); outline-offset: 2px; }
.rm-menu__bars { position: relative; display: block; width: 30px; height: 20px; }
.rm-menu__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .3s, opacity .2s, width .3s;
}
.rm-menu__bars span:nth-child(1) { top: 0; }
.rm-menu__bars span:nth-child(2) { top: 9px; }
.rm-menu__bars span:nth-child(3) { top: 18px; }
.rm-menu__toggle:hover .rm-menu__bars span:nth-child(2) { width: 70%; }

html.rm-menu-lock { overflow: hidden; }

.rm-menu__overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(15, 19, 69, .55);
  opacity: 0;
  transition: opacity .3s;
}
.rm-menu__overlay.is-open { opacity: 1; }

.rm-menu__panel {
  --rm-menu-gold: #ceb82b;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 99999;
  width: min(420px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--rm-navy);
  color: #fff;
  font-family: var(--rm-serif);
  box-shadow: -12px 0 40px rgba(0, 0, 0, .25);
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.rm-menu__panel--left { right: auto; left: 0; transform: translateX(-100%); box-shadow: 12px 0 40px rgba(0, 0, 0, .25); }
.rm-menu__panel.is-open { transform: none; }
.rm-menu__panel[hidden] { display: none; }
body.admin-bar .rm-menu__panel { top: 32px; }
@media (max-width: 782px) { body.admin-bar .rm-menu__panel { top: 46px; } }

.rm-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 20px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  border-top: 4px solid var(--rm-purple);
}
.rm-menu__logo img { display: block; max-height: 40px; width: auto; }
.rm-menu__panel button.rm-menu__close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.rm-menu__panel button.rm-menu__close:hover { color: var(--rm-menu-gold); background: transparent; }
.rm-menu__close svg { width: 100%; height: 100%; display: block; }

.rm-menu__nav { flex: 1; padding: 12px 0; }
.rm-menu__nav ul { list-style: none; margin: 0; padding: 0; }
.rm-menu__nav li { margin: 0; padding: 0; }
.rm-menu__nav li::marker { content: none; }
.rm-menu__list > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }

.rm-menu__row { display: flex; align-items: center; }
.rm-menu__nav a {
  display: block;
  flex: 1;
  padding: 16px 28px;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.rm-menu__nav a:hover,
.rm-menu__nav a:focus-visible { color: var(--rm-menu-gold); padding-left: 34px; }
.rm-menu__nav .current-menu-item > a,
.rm-menu__nav .current-menu-item > .rm-menu__row > a { color: var(--rm-menu-gold); }

/* Chevron de sous-menu (losange) */
.rm-menu__panel button.rm-menu__sub-toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-right: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.rm-menu__sub-toggle .rm-diamond { --rm-diamond-color: currentColor; --rm-diamond-s: .9; transition: transform .3s; }
.rm-menu__sub-toggle[aria-expanded="true"] .rm-diamond { transform: rotate(90deg); }
.rm-menu__panel button.rm-menu__sub-toggle:hover { color: var(--rm-menu-gold); background: transparent; }
.rm-menu__sub-toggle:hover .rm-diamond::before,
.rm-menu__sub-toggle[aria-expanded="true"] .rm-diamond::before { background: currentColor; }
.rm-menu__sub-toggle:hover .rm-diamond svg,
.rm-menu__sub-toggle[aria-expanded="true"] .rm-diamond svg { color: var(--rm-navy); }

.rm-menu__nav .sub-menu { padding: 0 0 12px; background: rgba(0, 0, 0, .12); }
.rm-menu__nav .sub-menu[hidden] { display: none; }
.rm-menu__nav .sub-menu a {
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 15px;
  padding: 10px 28px 10px 44px;
  color: rgba(255, 255, 255, .85);
}
.rm-menu__nav .sub-menu a:hover { padding-left: 50px; }
.rm-menu__nav .sub-menu .sub-menu a { padding-left: 60px; }

/* Lien Accès clients dans le panneau */
.rm-menu__panel a.rm-menu__acces {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 28px 0;
  padding: 12px 0;
  color: #fff;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color .2s;
}
.rm-menu__acces svg { width: 22px; height: 22px; flex: 0 0 auto; }
.rm-menu__panel a.rm-menu__acces:hover { color: var(--rm-menu-gold); }

/* Bouton d'action en bas du panneau */
.rm-menu__panel a.rm-menu__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 28px 28px;
  padding: 14px 14px 14px 22px;
  background: var(--rm-menu-gold);
  color: var(--rm-navy);
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s;
}
.rm-menu__cta .rm-diamond { --rm-diamond-color: var(--rm-navy); --rm-diamond-s: .8; }
.rm-menu__panel a.rm-menu__cta:hover { background: #fff; color: var(--rm-navy); }

/* =========================================================
   Menu plein écran (style de l'ancien site Divi)
   Fond mauve translucide, liens blancs centrés, X blanc en haut à droite
   ========================================================= */
.rm-menu__overlay--full { display: none !important; }

.rm-menu__panel.rm-menu__panel--full {
  inset: 0;
  width: 100%;
  background: rgba(127, 34, 118, .65); /* #7f2276 à 65 %, valeur de l'ancien site */
  box-shadow: none;
  transform: none;
  opacity: 0;
  transition: opacity .35s ease;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  text-align: center;
}
.rm-menu__panel--full.is-open { opacity: 1; }

.rm-menu__panel--full .rm-menu__head {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: clamp(16px, 3vw, 40px) clamp(16px, 4vw, 60px);
  border: 0;
}
.rm-menu__panel--full .rm-menu__logo { display: none; }
.rm-menu__panel--full button.rm-menu__close { width: 56px; height: 56px; padding: 12px; }
.rm-menu__panel--full button.rm-menu__close svg path { stroke-width: 2.6; }

.rm-menu__panel--full .rm-menu__nav {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 40px;
}
.rm-menu__panel--full .rm-menu__list > li { border: 0; }
.rm-menu__panel--full .rm-menu__row { justify-content: center; }
.rm-menu__panel--full .rm-menu__nav a {
  flex: 0 1 auto;
  padding: 18px 12px;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
}
.rm-menu__panel--full .rm-menu__nav a:hover,
.rm-menu__panel--full .rm-menu__nav a:focus-visible { padding-left: 12px; color: var(--rm-menu-gold); }

/* Apparition en douceur des liens */
.rm-menu__panel--full .rm-menu__list > li { opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.rm-menu__panel--full.is-open .rm-menu__list > li { opacity: 1; transform: none; }
.rm-menu__panel--full.is-open .rm-menu__list > li:nth-child(2) { transition-delay: .04s; }
.rm-menu__panel--full.is-open .rm-menu__list > li:nth-child(3) { transition-delay: .08s; }
.rm-menu__panel--full.is-open .rm-menu__list > li:nth-child(4) { transition-delay: .12s; }
.rm-menu__panel--full.is-open .rm-menu__list > li:nth-child(5) { transition-delay: .16s; }
.rm-menu__panel--full.is-open .rm-menu__list > li:nth-child(n+6) { transition-delay: .2s; }

/* Sous-menus centrés */
.rm-menu__panel--full button.rm-menu__sub-toggle { width: 44px; height: 44px; margin: 0; }
.rm-menu__panel--full .rm-menu__sub-toggle:hover .rm-diamond svg,
.rm-menu__panel--full .rm-menu__sub-toggle[aria-expanded="true"] .rm-diamond svg { color: var(--rm-purple); }
.rm-menu__panel--full .rm-menu__nav .sub-menu { padding: 0 0 8px; background: transparent; }
.rm-menu__panel--full .rm-menu__nav .sub-menu a,
.rm-menu__panel--full .rm-menu__nav .sub-menu .sub-menu a { padding: 8px 12px; font-size: 16px; color: rgba(255, 255, 255, .85); }

/* Accès clients et bouton : centrés sous le menu */
.rm-menu__panel--full a.rm-menu__acces { justify-content: center; margin: 0 auto; }
.rm-menu__panel--full a.rm-menu__cta {
  align-self: center;
  justify-content: center;
  margin: 12px auto 48px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.rm-menu__panel--full .rm-menu__cta .rm-diamond { --rm-diamond-color: #fff; }
.rm-menu__panel--full a.rm-menu__cta:hover { background: #fff; color: var(--rm-purple); }
.rm-menu__panel--full a.rm-menu__cta:hover .rm-diamond { --rm-diamond-color: var(--rm-purple); }

@media (prefers-reduced-motion: reduce) {
  .rm-menu__panel, .rm-menu__overlay, .rm-menu__panel--full .rm-menu__list > li, .rm-menu__bars span, .rm-menu__sub-toggle .rm-diamond { transition: none; }
}
