/*
Theme Name: v2026
Theme URI: 
Author: PM
Author URI: 
Description: Thème pour Vitry2026.fr Basé sur Ollie
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.3
Version: 1.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: v2026
Tags: blog, portfolio, entertainment, grid-layout, one-column, two-columns, three-columns, four-columns, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, full-width-template, rtl-language-support, style-variations, template-editing, theme-options, translation-ready, wide-blocks

v2026 WordPress Theme, (C) 2025 Mike McAlister.
v2026 is distributed under the terms of the GNU GPL.
*/

/* CSS Reset
---------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

b,
strong {
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
  padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
  padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
  color: var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--x-small);
  margin-bottom: 0;
  margin-top: 20px;
  text-align: center;
}

img,
figure {
  max-width: 100%;
  height: auto;
}

/* Temporary fix for text-decoration-thickness in Firefox */
@-moz-document url-prefix() {
  a {
    text-decoration-thickness: 0.1rem !important;
  }
}

/* Standardize form styling
--------------------------------------------- */

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

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
  -webkit-appearance: none;
  appearance: none;
}

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
  color: var(--wp--preset--color--main);
  border-radius: 5px;
  border: solid 1px var(--wp--preset--color--border-light);
  padding: 0.5em 1em;
  font-size: var(--wp--preset--font-size--small);
  background-color: #fff;
}

input:focus-visible,
textarea:focus-visible {
  outline-color: var(--wp--preset--color--primary);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
  width: auto;
}

label {
  width: 100%;
  display: block;
}

::placeholder {
  color: var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--small);
  opacity: 0.75;
}

/* Helper styles
---------------------------------------------------------------------------- */

a.more-link {
  display: block;
}

/* Inline code */
*:not(.wp-block-code) > code {
  background-color: var(--wp--preset--color--tertiary);
  padding: 3px 5px;
  position: relative;
  border-radius: 3px;
}

.wp-block-categories {
  position: relative;
}

/* Adjust terms at bottom of posts */
.single .wp-block-group .wp-block-post-terms,
.blog .wp-block-group .wp-block-post-terms {
  margin-bottom: -8px !important;
}

/* Remove margin on term description on archive pages */
.wp-block-term-description p:last-child {
  margin-bottom: 0;
}

/* Remove last separator on post list */
.remove-border-and-padding
  .wp-block-post-template
  li:last-child
  .wp-block-separator {
  display: none;
}

/* Hide post meta div if no tags assigned */
.single .wp-block-group:has(> .post-meta:empty) {
  display: none;
}

.wp-block-group:empty:has(+ .comment-respond) {
  display: none;
}

.row-logos > figure {
  flex-shrink: 1 !important;
}

/* Sticky header */

body:not(.wp-admin) header:has(> .is-position-sticky) {
  position: sticky;
  top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
  z-index: 100;
}

/* Account for admin bar on mobile */

@media (max-width: 600px) {
  header:has(> .is-position-sticky) {
    top: 0;
  }
}

/* Mobile helper classes */

@media (max-width: 781px) {
  .v2026-hide-on-mobile {
    display: none;
  }

  .v2026-unstick-mobile {
    position: static;
  }

  header:has(> .v2026-unstick-mobile) {
    position: static;
  }
}

/* *********************
** Masque groupe h1 sur la une ( SEO)
************************************** */
.h1-home,
.h1-home h1,
.h1-home p {
  display: none;
}
.wp-block-group.h1-home {
  display: none;
}

/* Test image overlay pm
==========================
*/

.pm7-hoverimg {
  background-color: #5ba971;
  color: #fff;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  text-align: center;
  width: 100%;
}
.pm7-hoverimg a {
  color: #fff;
}

.pm7-hoverimg a:hover {
  color: #fff050;
}

.pm7-hoverimg * {
  box-sizing: border-box;
  transition: all 0.45s ease;
}
.pm7-hoverimg::before,
.pm7-hoverimg::after {
  background-color: rgba(0, 0, 0, 0.9);
  background-color: #5ba971;

  border-top: 1px solid rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: "";
  transition: all 0.3s ease;
  z-index: 1;
  opacity: 0;
  transform: scaleY(2);
}
.pm7-hoverimg img {
  vertical-align: top;
  max-width: 100%;
  backface-visibility: hidden;
}
.pm7-hoverimg figcaption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  align-items: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1em;
  opacity: 0;
  z-index: 2;
  transition-delay: 0.1s;
  font-size: 24px;
  font-family: sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pm7-hoverimg:hover::before,
.pm7-hoverimg:hover::after {
  transform: scale(1);
  opacity: 1;
}
.pm7-hoverimg:hover > img {
  opacity: 0.2;
}
.pm7-hoverimg:hover figcaption {
  opacity: 1;
}

/* ***********
** pm HOVER EFFECT SUR IMAGE
****************************** */
a img {
  transition: transform 0.3s ease-in-out;
}

a:hover img {
  transform: scale(1.04); /* Increases size by 4% */
}

/* **********************
** pm : Menu Overlay / Superposition
** classes : menuOverlay superposition
*************************************** */

.menuOverlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  color: #ffffff;
  background-color: rgba(137, 39, 126, 0.99);
  z-index: 9999;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;

  /* Animation */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.menuOverlay.active {
  opacity: 1;
  display: flex;
  pointer-events: auto;
  transform: translateY(0);
}

body.block-editor-iframe__body .menuOverlay {
  display: block !important;
  opacity: 1;
  pointer-events: none;
  transition: none !important;
}

.menuOverlay h3 {
  margin-top: 0px;
  margin-bottom: 10px;
  padding-top: 0px;
}

.menuOverlay .menuOverlay-contenu {
  width: 100%;
  max-width: 1024px;
}

.menuOverlay .menu .wp-block-navigation__container,
.menuOverlayVd .wp-block-navigation__container a:hover {
  gap: 8px;
  font-size: 1.4rem;
}
.menuOverlay .menu-site .wp-block-navigation__container {
  gap: 8px;
  font-size: 1.2rem;
}
.menuOverlayVd .wp-block-navigation__container {
  gap: 8px;
  font-size: 1.1rem;
}

.menuOverlay .wp-block-navigation__container a,
.menuOverlayVd .wp-block-navigation__container a,
.menuOverlaySite .wp-block-navigation__container a {
  color: white;
  text-decoration: none;
  padding: 4px;
}

.menuOverlay .wp-block-navigation__container a:hover {
  color: yellow;
  text-decoration: none;
  background-color: #a32e95;
}

.menuOverlay a:hover {
  color: yellow;
  text-decoration: none;
  background-color: #a32e95;
}

h4.fermer {
  color: white;
  padding: 4px 8px;
  border: solid #50ffdc 2px;
  /* margin-bottom: 40px; */
}

h2.overlay-titre {
}

/* *********************
** Entete Grid v26
**************************** */

/* ≥ 783px 
******************* */

/* GRID */
.v26-entete,
.v26-entete-small {
  display: grid;
  gap: 20px;
  padding: 20px;
  align-items: center;
}

.v26-entete {
  grid-template-columns: 37% 63%;
}
.v26-entete-small {
  grid-template-columns: 20% 80%;
}

.v26-entete,
.v26-entete-small {
  grid-template-areas:
    "logo menu"
    "logo texte";
}

/* LOGO */
.logo-vup {
  grid-area: logo;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-vup img {
  width: 100%;
  height: auto;
  max-width: 600px; /* utile ? */
}

/* MENU */

.v26-menu-main {
  grid-area: menu;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.wp-block-group.v26-menu-main {
  margin-top: 0;
  padding: 0;
}

h5.v26-menu-item {
  font-family: "Mona Sans Narrow", "Arial Narrow Bold", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  margin: 0;
  padding: 0;
}
h5.v26-menu-item a {
  color: #fff050;
  text-decoration: none;
  padding: 4px 2px;
}
h5.v26-menu-item a:hover {
  color: white;
  background-color: #a32e95;
}

.v26-entete h5.v26-menu-item {
  font-size: clamp(18px, 2vw, 26px);
  padding-right: 26px;
}
.v26-entete-small h5.v26-menu-item {
  font-size: clamp(18px, 2vw, 26px);
  padding-right: 26px;
}

/* TEXTES */

.v26-texte {
  grid-area: texte;
}

.wp-block-group.v26-texte {
  margin: 0;
  padding: 0;
}

.v26-entete .v26-texte {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.v26-entete h1.v26-htmimi,
.v26-entete h2.v26-baseline {
  margin: 0 !important;
}

.v26-entete h1.v26-htmimi {
  font-size: clamp(37px, 6vw, 72px); /* Valeur fluide entre 700px et 1200px */
  line-height: 1.2;
  text-wrap: balance; /* utile sur 2 lignes en responsive */
}

.v26entete h2.v26-baseline {
  font-size: clamp(24px, 4.3vw, 50px); /* Valeur fluide entre 700px et 1200px */
  line-height: 1.2;
}

.v26-entete-small .v26-texte {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: baseline;
}

.v26-entete-small h1.v26-htmimi,
.v26-entete-small h2.v26-baseline {
  margin: 0 !important;
  margin-right: 15px !important;
}

.v26-entete-small h1.v26-htmimi {
  font-size: clamp(30px, 4vw, 85px); /* Valeur fluide entre 700px et 1200px */
}
.v26-entete-small h2.v26-baseline {
  font-size: clamp(20px, 3.3vw, 40px);
}

/* 601px à 782px 
******************* */

@media (min-width: 601px) and (max-width: 782px) {
  /* GRID */
  .v26-entete {
    grid-template-columns: 50% 50%;
    grid-template-areas: "logo menu" "texte texte";
  }
  .v26-entete-small {
    grid-template-columns: 30% 70%;
    grid-template-areas: "logo texte" "menu menu";
  }

  /* LOGO */
  .logo-vup {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .logo-vup img {
    width: 100%;
    height: auto;
  }

  /* MENU et TEXTE grand */
  .v26-entete .v26-menu-main {
    grid-area: menu;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .v26-entete h5.v26-menu-item {
    padding-bottom: 18px;
    font-size: 22px;
  }

  .v26-entete .v26-texte {
    grid-area: texte;
    grid-column: 1 / span 2;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
  }
  .v26-entete h1.v26-htmimi {
    margin-right: 15px !important;
  }
  .v26-entete h2.v26-baseline {
    font-size: 24px;
  }

  .v26-entete-small .v26-menu-main {
    grid-area: menu;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    margin-top: 0;
  }

  .v26-entete-small .v26-menu-main h5.v26-menu-item {
    padding: 0 8px;
    font-size: 1.3rem;
  }

  .v26-entete-small .v26-texte {
    grid-area: texte;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .v26-entete-small h1.v26-htmimi {
    font-size: 42px;
  }
  .v26-entete-small h2.v26-baseline {
    font-size: 32px;
  }

  .v26-baseline {
    margin-block-start: 4px;
  }
}

/* Max 600px
******************* */

@media (max-width: 600px) {
  /* Grid - Grand Header */
  .v26-entete {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "texte" "menu";
    text-align: center;
  }

  /* Grid - Petit Header */
  .v26-entete-small {
    grid-template-columns: 30% 70%;
    grid-template-areas: "logo texte" "menu menu";
  }

  /* LOGO  */
  .logo-vup {
    grid-area: logo;
  }
  .v26-entete .logo-vup img {
    width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .v26-entete-small .logo-vup img {
    width: 100%;
  }

  /* TEXTE  */
  .v26-entete .v26-texte {
    grid-area: texte;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .v26-entete h1.v26-htmimi {
    font-size: clamp(30px, 8.5vw, 50px);
  }
  .v26-entete h1.v26-baseline {
    font-size: clamp(24px, 6.5vw, 37px);
  }

  .v26-entete-small .v26-texte {
    grid-area: texte;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .v26-entete-small h1.v26-htmimi {
    font-size: clamp(20px, 6vw, 40px);
  }
  .v26-entete-small h2.v26-baseline {
    font-size: clamp(14px, 4vw, 24px);
  }

  .v26-menu-main {
    grid-area: menu;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  .v26-entete-small h5.v26-menu-item {
    font-size: clamp(14px, 4vw, 24px);
  }

  /*
    .v26-htmimi { 
      grid-area: title; 
      margin: 10px 0 0 0; 
    span: 2;} 
      
    .v26-baseline { 
      grid-area: subtitle; 
      margin: 0; 
    } */
}

/* 
** Nav facebook Hocine
*/

/* dans nav v26_menu-soyons-social
fab fa-facebook fbk-hocine
 */
li.fbk-hocine a {
  margin: 10px 0;
  padding: 4px;
  background-color: #0080ff;
  border: solid #0080ff 2px;
  border-radius: 10px;
}
