/*
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.3
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;
}

/* 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;
}

.title-with-dots {
 
}

.title-with-dots::before,
.title-with-dots::after {
  content: "";
  display: inline-block;
  height: 3px;                       /* taille des carrés */
  width: 70px;                      /* longueur max de la ligne décorative */
  margin: 0 25px;
  background: repeating-linear-gradient(
    to right,
    #e5e5e5 0,
    #e5e5e5 3px,      /* largeur du carré */
    transparent 0,
    transparent 6px  /* espace entre carrés */
  );
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 1;                    /* ✅ réduit automatiquement si manque de place */
  vertical-align: middle;
}

/* POINT POUR LES TITRES - Si l'écran est vraiment trop petit, on cache */
@media (max-width: 1140px) {
  .title-with-dots::before,
  .title-with-dots::after {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
}

/* Hauteur de ton header sticky */
/* 1) Offset d’ancre = hauteur du header (garde 94.59px) */
:root { --header-offset: 94.59px; }

/* 2) Toujours compenser le header sticky pour les ancres */
.wp-block-heading[id],
.wp-block-group[id],
section[id],
div[id] {
  scroll-margin-top: var(--header-offset);
}

/* 3) Forcer l’affichage "burger" sous 830px */
@media (max-width: 830px) {
  /*.wp-block-navigation .wp-block-navigation__container { display: none !important; */ }

/* 4) Forcer le burger si on détecte un retour à la ligne (classe ajoutée via JS ci-dessous) */

	
	
/*Forcer pas d'espace avant le footer */
:where(.wp-site-blocks) > * {
    margin-block-start: 0 !important;
}

/* Le conteneur du menu burger (WP) passe au-dessus de tout quand il est ouvert */
/* 1) Le panneau du menu doit recouvrir TOUT et capter les clics */
.wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  inset: 0 !important;                  /* top/right/bottom/left: 0 */
  z-index: 2147483647 !important;       /* plus haut que tout */
  pointer-events: auto !important;
}

/* 2) Quand un modal/menu WP est ouvert, on neutralise TOUS les clics du fond */
html.has-modal-open body {
  pointer-events: none !important;      /* plus aucun clic ne passe au fond */
  overflow: hidden;                      /* évite le scroll derrière */
}

/* 3) …et on réactive les clics uniquement dans le menu */
html.has-modal-open .wp-block-navigation__responsive-container,
html.has-modal-open .wp-block-navigation__responsive-container * {
  pointer-events: auto !important;
}