/* Style 026, n° 4876 (Yvon) : la typo, les couleurs de texte, de titre et de bouton, les fonds de section
   vivent dans Elementor (kit 6 et réglages des widgets). Ce fichier ne garde que ce qu'Elementor ne sait pas
   faire nativement, sans aucun forçage : un réglage posé dans Elementor l'emporte toujours. */

/* non natif : jetons partagés par les règles ci-dessous (coin coupé, couleurs des états de la nav) */
body.m026 {
  --m026-ink: #0A0A0A;
  --m026-paper: #F2EFE6;
  --m026-red: #FF3B1F;
  --m026-yellow: #FFD100;
  --m026-cut: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

/* non natif : largeur de lecture des paragraphes (70 caractères) */
:where(body.m026) :where(.elementor-widget-text-editor, p.elementor-heading-title) {
  max-inline-size: 70ch;
}

/* non natif : coupure des très longs mots des titres */
:where(body.m026) :where(h1, .elementor-post__title) {
  overflow-wrap: anywhere;
}

/* non natif : soulignement rouge des liens de texte, logo compris (Elementor ne règle que la couleur du lien) ;
   sélecteur d'avant 4876 (0,2,2) pour passer la remise à zéro du thème (a { text-decoration: none }) */
body.m026 a:not(.elementor-item, .elementor-button, .elementor-post__thumbnail__link) {
  text-decoration: underline;
  text-decoration-color: var(--m026-red);
  text-underline-offset: .18em;
}

/* non natif : anneau de focus clavier */
:where(body.m026) :where(a, button, [role="button"]):focus-visible {
  outline: 2px solid var(--m026-red);
  outline-offset: 2px;
}

/* non natif : coin coupé (clip-path) et filet du bord diagonal ; le fond, la bordure et la typo restent natifs */
body.m026 :is(.elementor-button, .elementor-post__card, .elementor-nav-menu--main > ul,
  .elementor-nav-menu--dropdown.elementor-nav-menu__container, .elementor-form .elementor-field-textual) {
  --m026-edge: var(--m026-ink);
  --m026-edge-width: 4px;
  clip-path: var(--m026-cut);
  background-image: linear-gradient(135deg, transparent calc(50% - var(--m026-edge-width)),
    var(--m026-edge) calc(50% - var(--m026-edge-width)));
  background-position: right bottom;
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-origin: border-box;
}

/* non natif : la couleur du filet de coin suit la bordure rouge des boutons */
body.m026 .elementor-button {
  --m026-edge: var(--m026-red);
  position: relative;
}

body.m026 .elementor-element-f6fa216 .elementor-button {
  --m026-edge: var(--m026-ink);
}

/* non natif : flèche qui apparaît au survol des boutons */
body.m026 .elementor-button::after {
  content: "→";
  position: absolute;
  inset-inline-end: .65em;
  font-family: system-ui, sans-serif;
  visibility: hidden;
}

body.m026 .elementor-button:is(:hover, :active, :focus-visible)::after {
  visibility: visible;
}

body.m026 .elementor-element-f6fa216 .elementor-button::after {
  display: none;
}

body.m026 .elementor-button:focus-visible {
  outline-offset: -6px;
  outline-color: currentColor;
}

/* non natif : carte d'article, cadre 3 px et grille vignette | texte */
body.m026 .elementor-post__card {
  height: 100%;
  background-color: var(--m026-paper);
  border: 3px solid var(--m026-edge);
  transition: none;
}

body.m026 .elementor-post__card:is(:hover, :focus-within, :active) {
  --m026-edge: var(--m026-red);
}

body.m026 .elementor-post__card:has(.elementor-post__thumbnail__link) {
  display: grid;
  grid-template-columns: minmax(2.5rem, 23%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
}

body.m026 .elementor-post__card > .elementor-post__thumbnail__link {
  grid-row: 1 / -1;
  margin: 0;
  background: var(--m026-yellow);
}

body.m026 .elementor-post__card .elementor-post__thumbnail {
  height: 100%;
  min-height: 4rem;
}

body.m026 .elementor-post__card .elementor-post__thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

body.m026 .elementor-post__card .elementor-post__text {
  min-width: 0;
  margin: 0;
  padding: 1rem;
}

/* non natif : filet des champs de formulaire et placeholder en étiquette */
body.m026 .elementor-form .elementor-field-textual {
  --m026-edge-width: 3px;
  border: 2px solid var(--m026-edge);
  border-radius: 0;
}

body.m026 .elementor-form .elementor-field-textual::placeholder {
  color: var(--m026-ink);
  opacity: 1;
  font: 500 1rem/1.3 Oswald, "Arial Narrow", sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.m026 .elementor-form .elementor-field-textual:focus {
  --m026-edge: var(--m026-red);
}

/* non natif : barre de navigation à icônes, qui s'inverse (fond encre) au survol ou sur la page courante */
body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) {
  --m026-nav-fg: var(--m026-ink);
}

body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) .elementor-nav-menu--main > ul {
  flex-wrap: wrap;
  padding: 0;
  background-color: var(--m026-paper);
  border: 3px solid var(--m026-ink);
}

body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) .elementor-nav-menu--main > ul:is(
  :hover, :focus-within, :has(.current-menu-item, .elementor-item-active, [aria-current="page"])
) {
  --m026-nav-fg: var(--m026-paper);
  background-color: var(--m026-ink);
}

body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) .elementor-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .32rem;
  min-height: 53px;
  color: var(--m026-nav-fg);
  text-decoration: none;
}

body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) .elementor-item::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  background: currentColor;
  mask: var(--m026-icon) center / contain no-repeat;
  -webkit-mask: var(--m026-icon) center / contain no-repeat;
}

/* non natif : l'icône reste dans le flux, au-dessus du libellé, visible dans tous les états (normal, survol, actif).
   widget-nav-menu.min.css pose ::before en position absolute et opacity 0 (0,5,1) : la classe répétée (0,6,2) passe devant. */
body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) .elementor-item.elementor-item.elementor-item.elementor-item::before {
  position: static;
  inset: auto;
  opacity: 1;
  transform: none;
  transition: none;
}

/* non natif : l'icône prend la couleur de son libellé dans tous les états (n° 4881 ; brief 118 icônes : plus d'icône
   jaune hors actif et survol) : encre sur la barre papier et sur le jaune, papier sur la barre inversée. Le jaune venait
   des couleurs par défaut du kit (.elementor-widget-nav-menu ... ::before, accent, 0,4,1) ; le contrôle natif « Pointer
   Color » n'est pas rendu avec pointer: none (condition), et une couleur fixe rendrait l'icône invisible sur la barre inversée. */
body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) .elementor-item.elementor-item.elementor-item::before {
  background-color: currentColor;
}

body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) .elementor-item.elementor-item.elementor-item.elementor-item::after {
  display: none;
}

/* non natif : fond jaune de l'item actif ou survolé de la barre ; avec pointer: none, le widget n'a pas de fond d'item
   (le pointeur « fond » prendrait le ::before, qui porte l'icône). La couleur du libellé est native (survol, actif). */
body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) :is(
  .current-menu-item > .elementor-item, .elementor-item:is(.elementor-item-active, [aria-current="page"], :hover, :active, :focus-visible)
) {
  background-color: var(--m026-yellow);
}

body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) .elementor-item:focus-visible {
  outline-color: var(--m026-ink);
  outline-offset: -5px;
}

/* non natif : hauteur tactile du bouton mobile (fond, couleur, bordure et rayon sont natifs) */
body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) .elementor-menu-toggle {
  min-height: 44px;
}

body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6) .elementor-nav-menu--dropdown .elementor-item {
  flex-direction: row;
  justify-content: flex-start;
  gap: .6rem;
}

/* non natif : menu mobile déroulé, borné en hauteur et défilant */
@media (max-width: 1024px) {
  body.m026 :is(.elementor-element-2a0d5db, .elementor-element-e0ebfc6)
    .elementor-menu-toggle[aria-expanded="true"] + .elementor-nav-menu--dropdown {
    max-height: min(65vh, 26rem);
    overflow: auto;
    overscroll-behavior: contain;
  }
}

/* non natif : respect de « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  body.m026, body.m026 *, body.m026 *::before, body.m026 *::after {
    scroll-behavior: auto;
    animation: none;
    transition: none;
  }
}

/* non natif : visuels Leonardo, coin coupé (n° 4839) ; la bordure 3 px est native (widget Image) */
body.m026 .m026-visuel {
  width: 100%;
  max-width: 920px;
  margin: 2rem auto;
}

body.m026 .m026-visuel img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  clip-path: var(--m026-cut);
}

/* non natif : colonne de lecture des textes longs (n° 4852) */
body.m026 .e-con .m026-corps.elementor-widget {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  text-align: left;
}

body.m026 .m026-corps h2 { margin-top: 2.5em; }
body.m026 .m026-corps h3 { margin-top: 1.8em; }

/* non natif : icône de chaque entrée de menu (masque SVG) */
body.m026 .menu-item-1834 {
  --m026-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M1%2011%2012%202l11%209h-3v11h-6v-7h-4v7H4V11Z%22%2F%3E%3C%2Fsvg%3E");
}

body.m026 .menu-item-1835 {
  --m026-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M5%202h11l4%204v16H5Zm3%207v2h9V9Zm0%204v2h9v-2Zm0%204v2h6v-2Z%22%2F%3E%3C%2Fsvg%3E");
}

body.m026 .menu-item-1836 {
  --m026-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22m2%2013%205-8%209-2%206%207-3%2010H5Zm6%201%206-3%204-1-3-4-6%202Z%22%2F%3E%3C%2Fsvg%3E");
}

body.m026 .menu-item-1837 {
  --m026-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M8%203a4%204%200%201%201%200%208%204%204%200%200%201%200-8Zm8%201a3.5%203.5%200%201%201%200%207h-1a6%206%200%200%200%201-7ZM1%2019a7%207%200%200%201%2014%200v2H1Zm15-6a6%206%200%200%201%207%206v2h-6v-2a9%209%200%200%200-1-6Z%22%2F%3E%3C%2Fsvg%3E");
}

body.m026 .menu-item-1838 {
  --m026-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M12%202a5%205%200%201%201%200%2010%205%205%200%200%201%200-10ZM3%2022v-2a9%207%200%200%201%2018%200v2Z%22%2F%3E%3C%2Fsvg%3E");
}

body.m026 .menu-item-1839 {
  --m026-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M2%204h20v16H2Zm2%203v3l8%205%208-5V7l-8%205Z%22%2F%3E%3C%2Fsvg%3E");
}
body.m026 .menu-item-1840 {
  --m026-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M11%202h2v3h9v2h-2l3%207a4%204%200%200%201-8%200l3-7h-5v13h5v2H6v-2h5V7H6l3%207a4%204%200%200%201-8%200l3-7H2V5h9ZM3%2014h4l-2-5Zm14%200h4l-2-5Z%22%2F%3E%3C%2Fsvg%3E");
}
