/*
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.8
Requires PHP: 7.2
Version: 1.2
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;
}

/* 1. Verrouillage strict des ancêtres WordPress */
html,
body,
.wp-site-blocks {
  height: 100% !important;
  height: 100svh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

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

/* 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;
}

/*
 * 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;
}

/* Font imports */
@font-face {
  font-family: 'Syne Mono';
  src: url('/wp-content/uploads/fonts/syne-mono-latin-400-normal.ttf') format('truetype'),
       url('/wp-content/uploads/fonts/syne-mono-latin-400-normal.woff') format('woff'),
	   url('/wp-content/uploads/fonts/syne-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:is(a, button, video, input, select, textarea, [tabindex], .wp-block-button__link, .wp-video, .mejs-container, .mejs__container):focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}



.main-home-image img {
	height: 75vh !important;
	width: 600px !important;
	object-fit: contain !important;
	display: block;
	margin-left: auto;
	margin-right: auto;	
}

.full-height-img img {
	height: 85vh !important;
	object-fit: contain;
	margin-left: auto;
	margin-right: auto;	
}


/*.footer {
	max-height: 10vh;
	z-index: 1;
}

.header {
	max-height: 10vh;
	z-index: 1;
}	*/

.grid img {
	object-fit: cover !important; }	

	
.grid p {
		height: 300px; 
		margin: 0 !important;
		padding: 0 !important;
		text-align: right;
		display: block;
		align-items: end;
		}

.grid {
	min-width: 100vw;
	}

.high img {
	/* min-height: 533px; /* 620px et 300px jps pq */
	aspect-ratio: 9/14; 
}	

.low img {
	min-height: 167px;
	aspect-ratio: 4/3;
}	

/*.content p {
line-height: 1 !important;
text-align: justify;
margin: 0;
padding: 0;
margin-bottom: 1em;
}*/

.invisible img {
display: none; 
}

.full-screen {
	height: 85vh !important; 
}	

.about2 {
	max-height: 50vh !important;
	overflow-x:hidden;
    overflow-y:scroll; 
	position: absolute; 
	top: 50%;
    left: 0;            /* optionnel : pour rester aligné à gauche */
    right: 0;           /* optionnel : pour largeur auto */
    transform: translateY(-50%);
	z-index: 2;
	line-height: 1.5em;
	margin-left: 20vw !important;
    margin-right: 20vw !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
	min-height: 40vh;
}

.about {
	max-width: 60vw !important; 
	height: fit-content !important;
	text-align: justify;
	/*display: flex ;!important
  white-space: normal;
 flex-direction: column !important;
	float:none ;*/
}	

.about p {
	display:box;
	width: 100%;          /* occuper toute la largeur */
	max-height: 100vh !important;
  white-space: normal;
	}

/* à noter que les z-index ne fonctionnent pas 
 * parce que l'ordre du bloc empilement prime
*/

.img-1 img {
	margin-bottom: auto; /* -100vh ça permet d'avoir le texte qui se superpose ? */ 
	position: absolute; 
	left: -40vh;
	z-index: 1
	margin-right: auto !important;
	height: 40vh !important; 
	max-width: 100vw !important;
	object-fit: cover;
	object-position: 100% 50%; /* x y */
}	

.img-2 img {
	margin-bottom: auto !important; 
	position: absolute; 
	right: -13vh;
	top:45vh;
	z-index: 1
	margin-right: -10vw !important;
	height: 40vh !important; 
	max-width: 100vw !important;
	object-fit: cover;
	margin-left: auto;
	object-position: 0 50%;
}	

.full-about-content {
  position: relative;
  padding-top: 5vh; 
  padding-bottom: 5vh;
  height: 85vh;
  padding-left: 0 !important;
  margin-left: 0; 
  margin-right: 0;
  padding-right: 0 !important;
  justify-content: center !important;
	display: flex;
flex-direction: column !important;
	overflow: scroll;
}	

.zine-scan img {
	display: block !important;
	max-height: 80vh !important; 
	max-width: 100vw !important;
	object-fit: contain !important;
	margin-left:auto !important; 
	margin-right:auto !important; 
	}	

.map-content {
	height: 85vh;
	overflow-x: hidden;
	overflow-y: hidden;
	display: flex;
	margin: auto;
}

.map-content.is-zoomed {
	overflow-x: auto;
	max-width: 100vw;
}

.map-content .map {
	display: block;
	height: 100%;
	width: max-content;
	max-width: 100%;
	margin: 0 auto;
}

.map-content .map img {
	display: block;
	height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	transition: height 0.25s ease;
}

.map-content.is-zoomed .map img {
	height: 85vh;
	max-width: none;
}

.site-footer,
.site-footer * {
  font-family: 'Syne Mono', monospace !important;
}

.site-footer a {
 text-decoration: none !important; 
}

.site-footer a:hover,
a:active {
 text-decoration: underline !important; 
}

/* Cadre strictement égal à la hauteur visible */
.site-wrapper.wp-block-group,
.site-wrapper {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  height: 100dvh !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Ne se compriment pas */
.site-header,
.site-footer {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  width: 100% !important;
}

/* Seul le contenu reçoit l'espace restant et scrolle */
/* 4. Le bloc "Contenu" (site-content ET wp-block-post-content) */
.site-content,
.wp-block-post-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;       
  height: auto !important;
  overflow-y: auto !important;    
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  /* display: block !important; */
  scroll-snap-type: y mandatory;
  margin: auto !important;
} 

.site-content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important; /* Neutralise le centrage forcé du thème */
  overflow-y: auto;  /* Assure le scroll quand le contenu dépasse 
} 

/* Zone blanche extérieure sous le footer, uniquement si iPhone la fournit */
.site-wrapper::after {
  content: "" !important;
  display: block !important;
  flex-shrink: 0 !important;
  height: env(safe-area-inset-bottom, 20px) !important;
  background: #fff !important;
}

/*Header et Footer fixes */
.site-header,
.site-footer {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  width: 100% !important;
}

/*
.site-content .about-page {
  display: flex !important; 
  align-content: center !important;
  margin-top: auto !important;
  margin-bottom: auto !important;
  margin-left: auto !important;  
  margin-right: auto !important; 
  width: 100%;
}  */




