/* ===========================================================
   Kosen Studio - Custom Fix
   =========================================================== */

/* === 1. Transparence du header & menu burger sur la HOME === */

body.home .site-header,
body.home .site-header__inner {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

/* Texte & liens visibles sur la vidéo */
body.home .site-header a,
body.home .site-header .menu a {
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6) !important;
}


/* === Menu burger clair + position homogène et fluide mobile === */
@media (max-width: 1024px) {

  /* Uniformise la hauteur du header sur mobile */
  .site-header,
  .site-header__inner {
    min-height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-right: 20px !important;
    box-sizing: border-box;
  }

  /* Burger identique sur toutes les pages */
  .burger-menu {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    z-index: 10050 !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .burger-menu__toggle {
    display: block !important;
    z-index: 10051 !important;
  }

  /* Couleur claire + effet doux */
  .burger-menu__toggle span,
  .burger-menu__toggle::before,
  .burger-menu__toggle::after {
    background-color: #f2f2f2 !important;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  /* Animation subtile au scroll (optionnelle si le script est activé) */
  body.scrolled .burger-menu {
    transform: translateY(-3px);
    opacity: 0.85;
  }
}


/* === 2. Articles (single post) === */

.single-post .site {
  max-width: 100% !important;
}

.single-post .site-footer {
  margin-top: 50px;
}

.single-post .entry-header {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
}

.single-post .entry-title {
  color: #fff;
  margin-top: 40px;
  margin-bottom: 20px;
	 font-family: 'Roboto', sans-serif;
	  font-weight: 500;
font-size: 2.1rem;
}

 .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
	 font-family: 'Roboto', sans-serif;
	  font-weight: 400;
font-size: 1.8rem;
	 margin-top: 40px;
}

.single-post .entry-content {
  width: 100%;
  margin: 0 auto 60px auto;
  color: #ccc;
  line-height: 1.7;
  font-size: 1.05rem;
}

.single-post .entry-content iframe,
.single-post .entry-content img,
.single-post .entry-content video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
}


/* === 3. Pages standard sans sidebar (ex: Contact) === */

.clean-page {
  max-width: 960px;
  margin: 80px auto;
  color: #fff;
}

.clean-page .page-title {
  font-size: 2.2rem;
  margin-bottom: 40px;
  text-align: center;
}

.clean-page .page-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Supprime marges inutiles du thème */
.site--no-sidebar #content {
  margin: 0 !important;
  padding: 0 !important;
}


/* === Grille responsive limitée à 3 colonnes max === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 4px; /* espace très fin entre les vignettes */
  margin: 0;
  padding: 0;
  justify-content: center;
}

/* Forcer un maximum de 3 colonnes sur grands écrans */
@media (min-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Taille et comportement des vignettes */
.category-grid__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.category-grid__img,
.category-grid__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.category-grid__item:hover .category-grid__img {
  transform: scale(1.05);
}

.category-grid__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 20px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-grid__item:hover .category-grid__overlay {
  opacity: 1;
}

.category-grid__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

/* Responsive : 2 colonnes tablette, 1 sur mobile */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}


/* === Kosen Studio v4.1 : Menu premium (compatible CSS WordPress) === */

/* === Typographie du menu  === */
.site-header .menu a,
.site-header .menu li a {
    font-family: 'Roboto', sans-serif;
	  font-weight: 400;
font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2f2f2;
}


.site-navigation {
  position: absolute;
  top: 25px;
  right: 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: none !important;
  box-shadow: none !important;
  z-index: 10000;
}

/* Espacement manuel entre les éléments du menu */
.site-navigation li {
  margin-left: 30px; /* même effet que gap: 30px */
}
.site-navigation li:first-child {
  margin-left: 0;
}

/* Liens du menu */
.site-navigation a {
  position: relative;
  display: inline-block;
  color: #f2f2f2 !important;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.4s ease, transform 0.4s ease;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Supprime l’effet Fluxus d’origine */
.site-navigation li.current-menu-item a,
.site-navigation li.current_page_item a,
.site-navigation li:hover a {
  background: none !important;
  box-shadow: none !important;
}

/* Trait lumineux */
.site-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.8) 100%);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition:
    transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.5s ease,
    background 0.6s ease;
}

/* Animation d’entrée */
.site-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
  opacity: 1;
  background: linear-gradient(90deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,1) 100%);
}

/* Animation de sortie */
.site-navigation a:not(:hover)::after {
  transform: scaleX(0);
  transform-origin: right;
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.86, 0, 0.07, 1),
    opacity 0.6s ease;
}

/* Lien actif : doux et permanent */
.current-menu-item > a,
.current_page_item > a {
  color: #dcdcdc !important;
}

.current-menu-item > a::after,
.current_page_item > a::after {
  transform: scaleX(1);
  transform-origin: left;
  opacity: 0.85;
  background: linear-gradient(90deg, rgba(220,220,220,0.4) 0%, rgba(220,220,220,0.9) 100%);
}

/* Hover sur le texte */
.site-navigation a:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Responsive : menu burger sans effet */
@media (max-width: 1024px) {
  .site-navigation {
    position: static;
    right: auto;
    top: auto;
    justify-content: center;
  }

  .site-navigation li {
    margin-left: 24px;
  }

  .site-navigation a::after {
    display: none;
  }
}
/* === Correction affichage mobile : cacher le menu horizontal quand le burger apparaît === */
@media (max-width: 1024px) {

  /* Cache le menu classique */
  .site-header .menu,
  .site-header nav.site-navigation {
    display: none !important;
  }

  /* Garde le burger bien visible et positionné */
  .burger-menu {
    position: absolute !important;
    top: 25px !important;
    right: 20px !important;
    z-index: 10050 !important;
  }

  .burger-menu__toggle {
    display: block !important;
  }

  /* Barre burger claire */
  .burger-menu__toggle span,
  .burger-menu__toggle::before,
  .burger-menu__toggle::after {
    background-color: #f2f2f2 !important;
  }
}




/* === Correction finale du centrage et largeur réelle === */

/* Neutralise le conteneur étroit de Fluxus sur pages & articles */
body.single-post .fluid-width-container,
body.page .fluid-width-container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

/* Centre le conteneur principal */
body.single-post #main.site--no-sidebar,
body.page #main.site--no-sidebar {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-top: 80px !important;
  animation: kosenFadeIn 0.4s ease-out;
}

/* Centre le contenu tout en limitant sa largeur */
body.single-post #content.site-content,
body.page #content.site-content {
  width: 100%;
  margin: 0 auto !important;
	max-width: 1100px !important;
  text-align: left;
}

/* L’article en lui-même */
body.single-post article,
body.page article {
  width: 100% !important;
  margin: 0 auto !important;

}

/* Vidéos / images adaptatives */
body.single-post iframe,
body.single-post video,
body.page iframe,
body.page video {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  display: block;
}

/* Effet d’apparition fluide */
@keyframes kosenFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Classe spéciale pour bannière ou visuel pleine largeur */
.full-width {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 50% !important;
  transform: translateX(-50%) !important;
  display: block !important;
  height: auto;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  body.single-post #main.site--no-sidebar,
  body.page #main.site--no-sidebar {
    padding-top: 60px !important;
  }
  body.single-post #content.site-content,
  body.page #content.site-content {
    max-width: 95vw !important;
  }
  .full-width {
    width: 100% !important;
    margin-left: 0 !important;
    transform: none !important;
  }
}

/* === Correction taille vidéo (iframe / embed Vimeo, YouTube, etc.) === */

body.single-post .fluid-width-video-wrapper,
body.page .fluid-width-video-wrapper,
body.single-post .wp-block-embed__wrapper,
body.page .wp-block-embed__wrapper {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  position: relative !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 auto 40px auto !important;
}

/* Vidéo interne */
body.single-post iframe,
body.page iframe,
body.single-post video,
body.page video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  display: block !important;
  border: none !important;
  object-fit: cover !important;
}

.entry-content p,
.clean-page .page-content p {
 font-family: 'Roboto', sans-serif;
	  font-weight: 300;
  font-size: 1.4rem;     
  line-height: 1.7;       /* bon espacement vertical */
  letter-spacing: 0.01em; /* léger confort visuel */
  color: #e0e0e0;         /* gris clair lisible sur fond noir */
  margin-bottom: 1.4em;
}

/* Supprime le padding-top ajouté par erreur sur les single posts */
body.single-post #main.site--no-sidebar {
    padding-top: 0 !important;
}

/* Supprime tout marge / padding au-dessus de la vidéo dans les articles */
body.single-post .entry-content,
body.single-post article,
body.single-post #content,
body.single-post .fluid-width-container,
body.single-post .video-wrapper,
body.single-post .wp-block-embed,
body.single-post .wp-block-embed__wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.single-post #main.site--no-sidebar {
    padding-top: 0 !important;
}

body.single-post .site-content {
    padding-top: 0 !important;
}



/* Home: neutralize Fluxus sticky-footer & force full height */
body.home #page-wrapper {
  min-height: 100vh !important;
  margin: 0 auto !important;          /* cancel the -50px */
  padding-bottom: 0 !important;
}

body.home .site-footer-push {          /* remove the spacer */
  height: 0 !important;
  display: none !important;
}

body.home .site-footer {               /* hide footer */
  display: none !important;
}

/* Make sure the slider fills the viewport */
body.home .fluxus-slider,
body.home .full-page-slider,
body.home .page-slider,
body.home #main.site {
  height: 100vh !important;
  min-height: 100vh !important;
  top: 0 !important;
  overflow: hidden !important;
}

/* Safety: avoid any tiny gap due to rounding/scrollbars */
body.home #page,
body.home #main,
body.home .site-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.logo-container {
	 padding: 0;
}

/* ===== Contact Form Separator ===== */
.wpcf7 {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.post-banner {
  width: 100%;
  margin: 0 0 30px;
  overflow: hidden;
}

.post-banner img {
  width: 100%;
  height: 42vh;          /* ajuste si tu veux */
  object-fit: cover;
  display: block;
}

/* === BANNER PARALLAX === */

.post-banner {
  position: relative;
  overflow: hidden;
  height: 50vh; /* tu peux ajuster */
}

.post-banner img {
  width: 100%;
  height: 120%; /* un peu plus grand pour permettre le mouvement */
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  transition: transform 0.1s linear;
}


/* ===== formatage formulaire de contact ===== */
.cf7-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.cf7-row p {
  flex: 1;
  margin: 0;
}

@media (max-width: 768px) {
  .cf7-row {
    flex-direction: column;
    gap: 15px;
  }
}

.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 12px 10px;
  font-size: 14px;
  transition: all 0.25s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-bottom: 1px solid #fff;
  background: rgba(255,255,255,0.06);
}

.wpcf7 input[type="submit"] {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.wpcf7 input[type="submit"]:hover {
  background: #fff;
  color: #000;
}

/* ================================
   FULL-BLEED BANNER (anti double-scroll)
   ================================ */

/* 1) Empêche tout overflow horizontal (mieux que hidden) */
html, body {
  overflow-x: clip;
}

/* Si Fluxus a un wrapper qui scrolle, on le “clip” aussi */
#page-wrapper,
#main,
.site {
  overflow-x: clip;
}

/* 2) Banner full width sans déclencher de scroll parasite
   -> on utilise dvw quand dispo (évite le bug 100vw + scrollbar) */
.single-post .post-banner {
  width: 100vw;
  width: 100dvw; /* navigateurs modernes */
  margin-left: calc(50% - 50vw);
  margin-left: calc(50% - 50dvw); /* navigateurs modernes */
  max-width: none;
  overflow: hidden; /* important */
}

/* 3) Si c'est un DIV en background */
.single-post .post-banner {
  height: 42vh;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 4) Si c'est une IMG dedans */
.single-post .post-banner img {
  width: 100%;
  height: 42vh;
  min-height: 280px;
  object-fit: cover;
  display: block;
}