/*
 * cassiopeia_juristes — charte graphique Juristes_associés (reprise du template insightfx, 2015)
 *
 * Organisation : variables · base · bandeau · en-tête et menu · slider · modules et blocs
 * d'accueil · contenus · colonne de droite · pied de page · responsive.
 *
 * Accessibilité : l'orange de la charte (#ffa621) n'offre qu'un contraste de 2:1 avec le blanc.
 * Il est réservé aux fonds et aux décors ; le texte posé dessus est gris foncé et les liens
 * utilisent un orange foncé (4,9:1). Pour revenir aux couleurs d'origine :
 *   --ja-link: var(--ja-orange);  --ja-on-orange: #fff;
 */

:root {
  /* Couleurs */
  --ja-orange: #ffa621;
  --ja-orange-dark: #a65f00;
  --ja-link: var(--ja-orange-dark);
  --ja-on-orange: #262626;
  --ja-text: #6e6e6e;
  --ja-heading: #303030;
  --ja-muted: #8c8c8c;
  --ja-border: #e7e7e7;
  --ja-surface: #f5f5f5;
  --ja-dropdown-bg: #333;
  --ja-dropdown-text: #d8d8d8;
  --ja-footer-bg: #262626;
  --ja-footer-text: #9b9b9b;
  --ja-footer-link: #bababa;
  --ja-footer-title: #e2e2e2;
  --ja-footer-line: #444;
  --ja-copyright-bg: #191919;

  /* Typographie */
  --ja-font: Helvetica, Arial, FreeSans, sans-serif;
  --ja-font-size: 14px;
  --ja-line-height: 1.65;

  /* Espacements et gabarit */
  --ja-container: 1080px;
  --ja-gutter: 25px;
  --ja-band-gap: 55px;
  --ja-sidebar: 310px;
  --ja-radius: 2px;

  /* Variables Cassiopeia réutilisées par ses composants */
  --cassiopeia-color-primary: var(--ja-heading);
  --cassiopeia-color-link: var(--ja-link);
  --cassiopeia-color-hover: var(--ja-heading);
  --cassiopeia-font-family-body: var(--ja-font);
  --cassiopeia-font-family-headings: var(--ja-font);
  --cassiopeia-font-weight-headings: 400;
  --link-color: var(--ja-link);
  --link-hover-color: var(--ja-heading);
}

/* ---------- Base ---------- */

html {
  font-size: var(--ja-font-size);
}

body.ja {
  display: block;
  margin: 0;
  background: #fff;
  color: var(--ja-text);
  font-family: var(--ja-font);
  font-size: var(--ja-font-size);
  line-height: var(--ja-line-height);
}

.ja h1, .ja h2, .ja h3, .ja h4, .ja h5, .ja h6 {
  margin: 10px 0;
  color: var(--ja-heading);
  font-family: var(--ja-font);
  font-weight: 400;
  line-height: 1.4;
}

.ja h1 { font-size: 1.9rem; }
.ja h2 { font-size: 1.43rem; }
.ja h3 { font-size: 1.2rem; }
.ja h4 { font-size: 1.2rem; }
.ja h5 { font-size: 1.1rem; }
.ja h6 { font-size: 1rem; }

.ja a {
  color: var(--ja-link);
  text-decoration: none;
}

.ja a:hover,
.ja a:focus {
  color: var(--ja-heading);
  text-decoration: underline;
}

.ja :focus-visible {
  outline: 2px solid var(--ja-orange-dark);
  outline-offset: 2px;
}

.ja img {
  max-width: 100%;
  height: auto;
}

.ja-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ja-container);
  margin-inline: auto;
  padding-inline: var(--ja-gutter);
}

.ja-skip {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 1000;
  padding: 8px 14px;
  background: var(--ja-heading);
  color: #fff;
}

.ja-skip:focus {
  top: 8px;
  color: #fff;
}

.ja .btn,
.ja .btn-primary,
.ja .button,
.ja button[type="submit"],
.ja input[type="submit"] {
  display: inline-block;
  padding: 5px 14px;
  border: 0;
  border-radius: var(--ja-radius);
  background: var(--ja-orange);
  color: var(--ja-on-orange);
  font-family: var(--ja-font);
  font-size: 1rem;
  line-height: 1.7;
  text-decoration: none;
  cursor: pointer;
}

.ja .btn:hover,
.ja .btn-primary:hover,
.ja .button:hover,
.ja button[type="submit"]:hover,
.ja input[type="submit"]:hover {
  background: var(--ja-heading);
  color: #fff;
  text-decoration: none;
}

.ja .readon {
  display: inline-block;
  padding: 2px 12px;
  border-radius: var(--ja-radius);
  background: var(--ja-orange);
  color: var(--ja-on-orange);
  font-size: 1rem;
}

.ja .readon:hover,
.ja .readon:focus {
  background: var(--ja-heading);
  color: #fff;
  text-decoration: none;
}

.ja .ja-readmore,
.ja .readmore .btn {
  padding: 0;
  background: none;
  color: var(--ja-link);
  font-size: 1rem;
}

/* ---------- Bandeau du haut ---------- */

.ja-topbar {
  background: var(--ja-orange);
  color: var(--ja-on-orange);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 31px;
}

.ja-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.ja-topbar a,
.ja-topbar a:hover {
  color: var(--ja-on-orange);
}

.ja-topbar .mod-menu li {
  padding: 0;
  line-height: 31px;
}

.ja-topbar .phone,
.ja-topbar .email {
  margin-right: 8px;
}

.ja-topbar ul,
.ja-topbar .mod-menu {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- En-tête et menu ---------- */

.ja-header {
  position: relative;
  z-index: 20;
  background: #fff;
}

.ja-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 157px;
}

.ja-logo {
  display: block;
  margin-top: 9px;
}

.ja-logo img {
  display: block;
  width: 200px;
  height: auto;
}

.ja-nav {
  align-self: flex-end;
  margin-left: auto;
}

.ja-header__shadow {
  height: 50px;
  border-top: 1px solid var(--ja-border);
  background: url("../images/header-shadow.png") no-repeat center top;
}

.ja-home .ja-header__shadow {
  height: 42px;
}

/* Menu Cassiopeia (métisMenu) ramené au style gf-menu */
.ja-nav .navbar {
  padding: 0;
}

.ja-nav .navbar-toggler {
  display: none;
}

.ja-nav .metismenu.mod-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.ja-nav .metismenu.mod-menu .metismenu-item {
  position: relative;
  padding: 0;
  font-size: 1.15rem;
  line-height: 23px;
}

.ja-nav .metismenu.mod-menu .metismenu-item > a,
.ja-nav .metismenu.mod-menu .metismenu-item > button.mm-toggler {
  display: block;
  padding: 30px 15px;
  border: 0;
  background: none;
  color: var(--ja-text);
  font: inherit;
  text-decoration: none;
}

.ja-nav .metismenu.mod-menu .level-1 > a:hover,
.ja-nav .metismenu.mod-menu .level-1 > a:focus,
.ja-nav .metismenu.mod-menu .level-1.active > a,
.ja-nav .metismenu.mod-menu .level-1.current > a {
  color: var(--ja-link);
}

/* Le libellé et la flèche du sous-menu forment un seul onglet, comme dans gf-menu */
.ja-nav .metismenu.mod-menu .level-1.parent > a {
  display: inline-block;
  padding-right: 4px;
}

.ja-nav .metismenu.mod-menu .level-1 {
  align-items: center;
}

/* Flèche discrète, centrée sur le libellé (le bouton reste utile au clavier) */
.ja-nav .metismenu.mod-menu .level-1.parent > button.mm-toggler {
  display: inline-block;
  align-self: center;
  width: 14px;
  height: 23px;
  margin-right: 8px;
  padding: 0;
  opacity: 0.45;
}

.ja-nav .metismenu.mod-menu .mm-toggler::after {
  margin-left: 0;
  border-top-color: currentColor;
}

.ja-nav .metismenu.mod-menu .mm-collapse {
  position: absolute;
  top: 100%;
  left: 1px;
  z-index: 100;
  min-width: 180px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--ja-dropdown-bg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.ja-nav .metismenu.mod-menu .mm-collapse .metismenu-item {
  font-size: 1rem;
}

.ja-nav .metismenu.mod-menu .mm-collapse .metismenu-item > a {
  padding: 10px 15px;
  color: var(--ja-dropdown-text);
  white-space: nowrap;
}

.ja-nav .metismenu.mod-menu .mm-collapse .metismenu-item > a:hover,
.ja-nav .metismenu.mod-menu .mm-collapse .metismenu-item > a:focus,
.ja-nav .metismenu.mod-menu .mm-collapse .metismenu-item.active > a {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ja-orange);
}

/* ---------- Slider ---------- */

.ja-slider {
  --ja-slider-height: min(500px, calc(100vw * 500 / 1030));
  position: relative;
  height: var(--ja-slider-height);
  overflow: hidden;
  background: #e9e9e9;
}

/* Une seule diapositive visible ; pendant une transition (js/user.js), les deux diapositives
   concernées glissent horizontalement, comme dans l'ancien slider */
.ja-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  visibility: hidden;
  will-change: transform;
}

.ja-slide.is-active,
.ja-slide.is-leaving,
.ja-slider:not(.is-ready) .ja-slide:first-child {
  visibility: visible;
}

.ja .ja-slide__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Comme l'ancien slider (fond calé en haut) : sur un écran de plus de 1920 px, l'image est
     agrandie et seul le bas est rogné, jamais le titre */
  object-position: center top;
}

/* Grille de 1030 × 500 de l'ancien slider, centrée et mise à l'échelle avec la hauteur */
.ja-slide__grid {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--ja-slider-height) * 1030 / 500);
  height: 100%;
  transform: translateX(-50%);
  container-type: size;
}

.ja-slide__caption {
  position: absolute;
  padding: 0.8cqh 2cqh;
  background: rgba(255, 255, 255, 0.9);
  color: #444;
  font-size: 5.2cqh;
  font-weight: 300;
  line-height: 1.15;
  white-space: nowrap;
}

.ja-slide__caption p {
  margin: 0.6cqh 0 0;
  font-size: 0.6em;
}

.ja-slide__caption .btn {
  margin-left: 1.4cqh;
  padding: 0.8cqh 2.8cqh;
  border-radius: 0.8cqh;
  font-size: 2.8cqh;
  font-weight: 300;
  line-height: 1.4;
  vertical-align: middle;
}

.ja-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  line-height: 40px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ja-slider__arrow--prev { left: 20px; }
.ja-slider__arrow--next { right: 20px; }

.ja-slider:hover .ja-slider__arrow,
.ja-slider:focus-within .ja-slider__arrow {
  opacity: 1;
}

.ja-slider__arrow:hover,
.ja-slider__arrow:focus-visible {
  background: var(--ja-orange);
  color: var(--ja-on-orange);
}

/* ---------- Modules (habillage « juristes ») ---------- */

.ja-module {
  margin-bottom: 30px;
}

.ja .ja-module__title {
  margin: 0 0 25px;
  background: url("../images/divider.png") repeat-x left center;
  color: var(--ja-heading);
  font-size: 1.43rem;
  line-height: 1;
}

.ja .ja-module__title span {
  padding-right: 15px;
  background: #fff;
}

.ja-band {
  margin-top: var(--ja-band-gap);
}

.ja-home .ja-band:first-of-type {
  margin-top: 25px;
}

/* Nos métiers : tableau d'origine en 4 colonnes */
.ja-band--home-a table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ja-band--home-a td {
  width: 25%;
  padding: 0 8px;
  vertical-align: top;
  text-align: center;
}

.ja-band--home-a h3 {
  margin: 22px 0 26px;
  font-size: 1.2rem;
}

.ja-band--home-a h3 a {
  color: var(--ja-link);
}

.ja-band--home-a h5 {
  margin: 0;
  color: var(--ja-heading);
  font-size: 0.96rem;
  line-height: 1.45;
}

.ja-band--home-a img {
  width: 100px;
  height: 100px;
}

/* Parutions récentes */
#featuredprojects ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

#featuredprojects li {
  border: 1px solid var(--ja-border);
  border-left-width: 0;
  background: #fff;
  transition: background 0.2s ease-out;
}

#featuredprojects li:first-child {
  border-left-width: 1px;
}

#featuredprojects .outerimg {
  aspect-ratio: 181 / 100;
  overflow: hidden;
}

#featuredprojects .outerimg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

#featuredprojects .information {
  padding: 0 10px 10px;
  text-align: center;
}

#featuredprojects h4 {
  margin: 15px 0 5px;
  font-size: 1rem;
  line-height: 1.4;
}

#featuredprojects h4 a {
  color: var(--ja-heading);
}

#featuredprojects p {
  margin: 0;
  color: #767676;
  font-size: 0.9em;
  font-style: italic;
  line-height: 1.5;
}

#featuredprojects li:hover,
#featuredprojects li:focus-within {
  background: var(--ja-orange);
}

#featuredprojects li:hover h4 a,
#featuredprojects li:hover p,
#featuredprojects li:focus-within h4 a,
#featuredprojects li:focus-within p {
  color: var(--ja-on-orange);
}

/* Deux colonnes : Actualités + À propos / Les clubs */
.ja-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.ja-columns .ja-module {
  font-size: 0.93rem;
}

.ja-articles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ja-articles__item + .ja-articles__item {
  margin-top: 18px;
}

.ja .ja-articles__title {
  margin: 0 0 10px;
  padding: 4px 8px;
  background: var(--ja-surface);
  font-size: 1rem;
}

.ja-articles__title a {
  color: var(--ja-heading);
}

.ja-articles__body {
  display: flow-root;
  font-size: 0.86rem;
  line-height: 1.6;
}

.ja-articles__image {
  float: left;
  width: 90px;
  margin: 0 12px 6px 0;
}

.ja-articles__text p {
  margin: 0 0 4px;
}

/* Accordéon des clubs */
.ja-accordion__item {
  margin-bottom: 8px;
  border: 1px solid var(--ja-border);
  background: #fff;
}

.ja-accordion__title {
  position: relative;
  padding: 4px 28px 4px 8px;
  background: var(--ja-surface);
  color: var(--ja-heading);
  font-size: 1rem;
  list-style: none;
  cursor: pointer;
}

.ja-accordion__title::-webkit-details-marker {
  display: none;
}

.ja-accordion__title::after {
  content: "+";
  position: absolute;
  top: 3px;
  right: 10px;
  color: var(--ja-muted);
}

.ja-accordion__item[open] > .ja-accordion__title::after {
  content: "−";
}

.ja-accordion__body {
  display: flow-root;
  padding: 10px 8px;
  font-size: 0.86rem;
  line-height: 1.7;
}

.ja-accordion__image {
  float: left;
  width: 230px;
  margin: 0 12px 6px 0;
}

.ja-accordion__text p {
  margin: 0 0 4px;
}

/* ---------- Contenus ---------- */

.ja-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin-top: 25px;
  margin-bottom: 40px;
}

.has-sidebar .ja-body {
  grid-template-columns: minmax(0, 1fr) var(--ja-sidebar);
}

.ja-home .ja-body {
  display: none;
}

/* Titre de page souligné (filet + trait orange), comme les titres d'éléments K2 */
.ja .com-content-article .page-header h1,
.ja .com-content-article .page-header h2,
.ja .com-content-category-blog > .page-header h1,
.ja .com-content-category-blog > h1 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ja-border);
  font-size: 1.43rem;
}

.ja .com-content-article .page-header h1::after,
.ja .com-content-article .page-header h2::after,
.ja .com-content-category-blog > .page-header h1::after,
.ja .com-content-category-blog > h1::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 35px;
  height: 1px;
  background: var(--ja-orange);
}

.ja .category-desc {
  display: flow-root;
  margin-bottom: 30px;
}

.ja .category-desc img {
  display: block;
  width: 100%;
  margin-bottom: 15px;
}

.ja .item-image,
.ja .item-image img {
  display: block;
  float: none;
  width: 100%;
  margin: 0 0 20px;
}

.ja .com-content-article__body h1 {
  font-size: 1.43rem;
}

.ja .com-content-article__body h4,
.ja .com-content-article__body h5 {
  font-size: 1rem;
}

.ja .com-content-article__body table {
  max-width: 100%;
}

/* Liste du Fil rouge */
.ja .blog-items {
  display: block;
}

.ja .blog-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--ja-border);
}

.ja .blog-item .page-header h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.ja .blog-item .page-header h2 a {
  color: var(--ja-heading);
}

.ja .article-info {
  margin: 0 0 8px;
  color: var(--ja-muted);
  font-size: 0.86rem;
}

.ja .article-info .article-info-term {
  display: none;
}

.ja .blog-item .item-image {
  float: left;
  width: 150px;
  margin: 0 15px 10px 0;
}

.ja .ja-excerpt {
  margin: 0 0 6px;
}

.ja .readmore {
  margin: 0;
}

.ja .readmore .btn .icon-chevron-right,
.ja .readmore .btn .icon-chevron-left {
  display: none;
}

.ja .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  list-style: none;
}

.ja .pagination .page-link {
  display: block;
  min-width: 34px;
  padding: 4px 10px;
  border: 1px solid var(--ja-border);
  color: var(--ja-text);
  text-align: center;
}

.ja .pagination .active .page-link,
.ja .pagination .page-link:hover {
  border-color: var(--ja-orange);
  background: var(--ja-orange);
  color: var(--ja-on-orange);
  text-decoration: none;
}

.ja .alert {
  margin-bottom: 20px;
  padding: 12px 15px;
  border: 1px solid var(--ja-border);
  border-left: 4px solid var(--ja-orange);
  background: var(--ja-surface);
}

/* ---------- Colonne de droite ---------- */

.ja .ja-sidebar .ja-module__title,
.ja .ja-footer .ja-module__title {
  position: relative;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ja-border);
  background: none;
  font-size: 1.2rem;
}

.ja .ja-sidebar .ja-module__title::after,
.ja .ja-footer .ja-module__title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 35px;
  height: 1px;
  background: var(--ja-orange);
}

.ja .ja-sidebar .ja-module__title span,
.ja .ja-footer .ja-module__title span {
  padding: 0;
  background: none;
}

.ja-sidebar .ja-articles__title {
  padding: 0;
  background: none;
  font-size: 0.93rem;
  font-weight: 700;
}

.ja-sidebar .ja-articles__body {
  font-size: 0.8rem;
}

.ja-sidebar .ja-articles__text {
  color: var(--ja-text);
}

.ja-sidebar .mod-login input[type="text"],
.ja-sidebar .mod-login input[type="password"] {
  width: 100%;
}

/* ---------- Pied de page ---------- */

.ja-footer {
  margin-top: var(--ja-band-gap);
  background: var(--ja-footer-bg);
  color: var(--ja-footer-text);
}

.ja-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 50px;
  padding-bottom: 25px;
}

.ja .ja-footer .ja-module__title {
  border-bottom-color: var(--ja-footer-line);
  color: var(--ja-footer-title);
  font-size: 1.43rem;
}

.ja-footer .ja-module__content {
  font-size: 0.93rem;
}

.ja-footer a {
  color: var(--ja-footer-link);
}

.ja-footer a:hover,
.ja-footer a:focus {
  color: var(--ja-orange);
}

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

.ja-footer li {
  line-height: 2.2em;
}

/* Liens « Nos métiers » : chevron devant chaque lien */
.ja-footer .ja-footer__col:last-child li::before {
  content: "\f054";
  display: inline-block;
  width: 14px;
  font-family: "Font Awesome 6 Free";
  font-size: 0.7em;
  font-weight: 900;
}

/* Coordonnées : icônes Font Awesome à la place des anciennes images */
.ja-footer .aboutus li > span::before {
  display: inline-block;
  width: 24px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.ja-footer .aboutus .address::before { content: "\f015"; }
.ja-footer .aboutus .phone::before { content: "\f095"; }
.ja-footer .aboutus .email::before { content: "\f0e0"; }

.ja-footer .aboutus .address {
  font-size: 1.1em;
}

.ja-newsletter__text {
  margin: 0 0 12px;
}

.ja-copyright {
  background: var(--ja-copyright-bg);
  color: var(--ja-muted);
}

.ja-copyright__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
}

.ja-copyright p {
  margin: 0;
}

.ja-copyright .social {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9em;
}

.ja-copyright .social img {
  width: 30px;
  height: 30px;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  :root {
    --ja-gutter: 16px;
  }

  .ja-header__inner {
    align-items: center;
    min-height: 0;
    padding-block: 12px;
  }

  .ja-logo {
    margin-top: 0;
  }

  .ja-logo img {
    width: 160px;
  }

  .ja-nav {
    align-self: center;
  }

  .ja-nav .navbar {
    position: static;
  }

  .ja-nav .navbar-toggler {
    display: block;
    padding: 6px 10px;
    border: 1px solid var(--ja-border);
    border-radius: var(--ja-radius);
    background: #fff;
    color: var(--ja-heading);
    font-size: 1.3rem;
  }

  .ja-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  .ja-nav .metismenu.mod-menu {
    display: block;
    flex-direction: column;
    padding: 0 var(--ja-gutter);
  }

  .ja-nav .metismenu.mod-menu .metismenu-item {
    border-bottom: 1px solid var(--ja-border);
  }

  .ja-nav .metismenu.mod-menu .metismenu-item > a,
  .ja-nav .metismenu.mod-menu .metismenu-item > button.mm-toggler {
    padding: 12px 0;
  }

  .ja-nav .metismenu.mod-menu .level-1.parent > a {
    padding-right: 4px;
  }

  .ja-nav .metismenu.mod-menu .mm-collapse {
    position: static;
    min-width: 0;
    background: var(--ja-surface);
    box-shadow: none;
  }

  .ja-nav .metismenu.mod-menu .mm-collapse .metismenu-item > a {
    padding: 10px 15px;
    color: var(--ja-text);
  }

  .ja-header__shadow {
    height: 20px;
    background-size: 100% 20px;
  }

  .has-sidebar .ja-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .ja-columns,
  .ja-footer__grid {
    gap: 30px;
  }

  .ja-slider__arrow {
    opacity: 0.8;
  }
}

/* Sous-menus ouverts au survol et au clavier (en plus du clic sur la flèche), comme le gf-menu */
@media (min-width: 768px) {
  .ja-nav .metismenu.mod-menu .level-1.parent:hover > .mm-collapse,
  .ja-nav .metismenu.mod-menu .level-1.parent:focus-within > .mm-collapse {
    display: block;
    height: auto !important;
  }
}

/* Tablette : menu horizontal conservé, comme dans l'ancien site (bouton menu sous 768 px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .ja-nav .navbar-toggler {
    display: none;
  }

  .ja-nav .navbar-collapse.collapse {
    position: static;
    display: flex !important;
    box-shadow: none;
  }

  .ja-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ja-nav {
    align-self: stretch;
  }

  .ja-nav .metismenu.mod-menu {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
  }

  .ja-nav .metismenu.mod-menu .metismenu-item {
    border-bottom: 0;
    font-size: 0.93rem;
  }

  .ja-nav .metismenu.mod-menu .metismenu-item > a {
    padding: 14px 8px;
  }

  .ja-nav .metismenu.mod-menu .mm-collapse {
    position: absolute;
    min-width: 180px;
    background: var(--ja-dropdown-bg);
  }

  .ja-nav .metismenu.mod-menu .mm-collapse .metismenu-item > a {
    color: var(--ja-dropdown-text);
  }
}

@media (max-width: 767.98px) {
  .ja-topbar {
    display: none;
  }

  /* Nos métiers : le tableau de 3 lignes × 4 colonnes devient 4 cartes sur 2 colonnes */
  .ja-band--home-a table {
    display: block;
    width: 100%;
  }

  .ja-band--home-a tbody {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
  }

  .ja-band--home-a tr {
    display: contents;
  }

  .ja-band--home-a td {
    display: block;
    width: auto;
    padding: 0;
  }

  .ja-band--home-a tr:nth-child(1) td:nth-child(-n + 2) { grid-row: 1; }
  .ja-band--home-a tr:nth-child(2) td:nth-child(-n + 2) { grid-row: 2; }
  .ja-band--home-a tr:nth-child(3) td:nth-child(-n + 2) { grid-row: 3; }
  .ja-band--home-a tr:nth-child(1) td:nth-child(n + 3) { grid-row: 4; margin-top: 24px; }
  .ja-band--home-a tr:nth-child(2) td:nth-child(n + 3) { grid-row: 5; }
  .ja-band--home-a tr:nth-child(3) td:nth-child(n + 3) { grid-row: 6; }
  .ja-band--home-a td:nth-child(odd) { grid-column: 1; }
  .ja-band--home-a td:nth-child(even) { grid-column: 2; }

  .ja-columns,
  .ja-footer__grid {
    grid-template-columns: 1fr;
  }

  #featuredprojects ul {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #featuredprojects li {
    border-left-width: 1px;
  }

  .ja-accordion__image {
    width: 120px;
  }

  .ja .blog-item .item-image {
    width: 100px;
  }

  .ja-copyright__inner {
    flex-direction: column;
    justify-content: center;
    padding-block: 12px;
  }

  .ja-slide__caption {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  #featuredprojects li {
    transition: none;
  }
}

/* Variantes de légendes du slider (styles insightfx_* de l'ancien slider) */
.ja-slide__caption--dark,
.ja-slide__caption--dark_box {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}

.ja-slide__caption--color {
  background: var(--ja-orange);
  color: var(--ja-on-orange);
}

/* Page de connexion (et rappels d'identifiant / de mot de passe) */
.ja .com-users-login,
.ja .com-users-reset,
.ja .com-users-remind {
  max-width: 460px;
}
