/*
Theme Name: Twenty Twenty-Five
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

:root :where(.wp-block-columns-is-layout-flex) {
  gap: 0;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

:where(.wp-site-blocks) > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

p, h1, h2, h3, h4, h5, h6 {
  margin-top: 2vh;
  margin-left: 2vh;
  margin-right: 2vh;
  margin-bottom: 20px;
  margin-block-end: 15px;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

.bas {
  padding: 0 0 1em 0;
}

.mobile-only {
  display: none;
}

#maps {
  height: 90%;
  width: 90%;
  padding: 5%;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border:0;  
  max-width: 100vw;
}

/* Wrapper global pour tous les viewers */
.threejs-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 20px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
}

.threejs-wrapper p{
  margin: 0;
}

/* Chaque viewer 3D */
.threejs-container {
  position: relative;
  background-color: #000;
  width: 80%; 
  min-width: 17vw;
  aspect-ratio: 1 / 1; /* Pour un ratio carré */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Par exemple, une hauteur fixe ou via des unités responsives */
  height: 70vh; /* Adaptez cette valeur selon vos besoins */
  overflow: hidden; /* Pour éviter tout débordement */
}

/* Sur mobile */
@media screen and (max-width: 768px) {
  .threejs-wrapper {
    gap: 0;
  }

  .mobile-no {
    display: none;
  }

  .mobile-only {
    display: contents;
  }

  footer {
    margin-top: 0;
  }

  #maps {
    height: 400px;
    width: 100%;
    padding: 0;
  }
}

/* Le canvas Three.js doit occuper toute la surface du container */
.threejs-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sur écrans HD */
@media screen and (min-width: 1000px) {
  body {
    padding: 0 10%;
  }
}

/* Sur écrans FullHD */
@media screen and (min-width: 1500px) {
  body {
    padding: 0 20%;
  }
}

/* Sur écrans min 2K */
@media screen and (min-width: 2000px) {
  body {
    padding: 0 30%;
  }
}

/* Style des flèches */
.texture-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 9999; /* S'assurer qu'elles sont au-dessus du canvas */
  font-size: 24px;
}

/* Positionnement gauche et droite */
.texture-arrow.left {
  left: 10px;
}

.texture-arrow.right {
  right: 10px;
}

.webgl-error {
  background: #222;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 16px;
  border-radius: 5px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}
