/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://wordpress.org
Description: Thème enfant de Twenty Twenty-Five
Author: Ton Nom
Author URI: https://www.introcedo.com
Template: twentytwentyfive
Version: 1.0
*/

/* ===============================
   HEADER STICKY – TWENTY TWENTY-FIVE
   =============================== */

header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--wp--preset--color--blanc);
}

@media (max-width: 768px) {

    header .wp-block-group {
        display:block;
        text-align:center;
    }
}

input[type="search"] { 
  border: 1px solid var(--wp--preset--color--marron-f);
  border-radius: 4px;  
  font-family: var(--wp--preset--font-family--league-spartan);
  background-color: var(--wp--preset--color--beige);
  color:var(--wp--preset--color--marron-f);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* HERO STYLE */
.wp-block-cover.is-style-irfa-hero {
    min-height: 100vh;
    padding: 6rem 4rem;
}

.wp-block-cover__inner-container {
    max-width: 1200px;
}

.wp-block-cover h1 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wp-block-button__link {
    border: 1px solid #fff;
    background: transparent;
    padding: 14px 32px;
    font-weight: 500;
}

.wp-block-button__link:hover {
    background: #fff;
    color: #000;
}


/* Catchy Mager */
@font-face {
  font-family: "Catchy Mager";
  src: url("assets/fonts/catchy-mager/Catchy-Mager.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* League Spartan */
@font-face {
  font-family: "League Spartan";
  src: url("assets/fonts/league-spartan/LeagueSpartan-Regular.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "League Spartan";
  src: url("assets/fonts/league-spartan/LeagueSpartan-Bold.ttf") format("ttf");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "League Spartan";
  src: url("assets/fonts/league-spartan/LeagueSpartan-ExtraBold.ttf") format("ttf");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


body{
 font-weight: 400;
}


//* ==================================================
   1. BLOQUER LE SCROLL DU SITE QUAND MENU OUVERT
   ================================================== */

body.has-modal-open {
    overflow: hidden;
}
.has-modal-open .wp-block-navigation__responsive-close {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}
/* ==================================================
   2. FIX WORDPRESS : hidden-by-default
   ================================================== */

.wp-block-navigation__responsive-container.hidden-by-default {
    display: block !important;
    visibility: hidden;
}

/* ==================================================
   3. OVERLAY PLEIN ÉCRAN (ÉTAT FERMÉ)
   ================================================== */

.wp-block-navigation__responsive-close {
    position: fixed;
    inset: 0;
    background: var(--wp--preset--color--beige);
    z-index: 9999;
    background-image:url("https://new.introcedo.com/wp-content/uploads/2026/01/Logo-Diocese-Besancon.png");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 300px auto;
    
    /* Cache l'overlay hors écran */
    transform: translate3d(0, -100%, 0);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    visibility: hidden;   
    will-change: transform;
}
.wp-block-navigation__responsive-container-open {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wp-block-navigation__responsive-container-open::after {
    content: "Menu";
    font-size: 0.875rem;    
    letter-spacing: 0.08em;
    font-family: inherit;
}


/* Le dialog doit prendre toute la hauteur et centrer son contenu */
.wp-block-navigation__responsive-dialog {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 100vh !important;
    height: 100% !important;
    width: 100% !important;
    padding-left: 8vw;
    padding-right: 4vw;
}

.wp-block-navigation__responsive-container-content {
    position: relative !important;
    width: 100%;
    max-width: 1200px;
}

/* ==================================================
   4. OVERLAY VISIBLE (ÉTAT OUVERT)
   ================================================== */

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-close {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    visibility: visible;
}

/* ==================================================
   5. STRUCTURE DU MENU (grille 3 colonnes)
   ================================================== */

.wp-block-navigation__container {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 4rem;
    width: 100%;
}

/* IMPORTANT : neutraliser le flex interne */
.wp-block-navigation__container > li {
    display: block;
}

/* ==================================================
   6. ANIMATION FLUIDE DES LIENS
   ================================================== */

.wp-block-navigation-item {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================
   7. TYPO & STYLE
   ================================================== */

.wp-block-navigation-item__content {
    font-family: var(--wp--preset--font-family--catchy-mager);
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--blanc);
}

/* ==================================================
   8. BOUTON FERMER
   ================================================== */

.wp-block-navigation__responsive-container-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    transform: scale(1.4);
    color: var(--wp--preset--color--marron-f);
    z-index: 10000;
}

/* ==================================================
   9. MENU PARENT ET SOUS-MENUS
   ================================================== */

.wp-block-navigation-item.has-child
> .wp-block-navigation-item__content {
    font-family: var(--wp--preset--font-family--catchy-mager);
    font-size: 1.8rem;    
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--marron-f);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.wp-block-navigation-item.has-child {
    display: flex;
    flex-direction: column;
}

.wp-block-navigation__submenu-container {
    position: static !important;
    margin-top: 1rem;
    padding: 0;
    background: none;
}

.wp-block-navigation-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.wp-block-navigation-submenu a,
.wp-block-navigation-item:not(.has-child) a {
    font-family: var(--wp--preset--font-family--coco-gothic);
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wp--preset--color--blanc);
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.wp-block-navigation-submenu a:hover {
    opacity: 1;
}

/* ==================================================
   10. RESPONSIVE
   ================================================== */

@media (max-width: 900px) {
    .wp-block-navigation__responsive-dialog {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .wp-block-navigation__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


.paroisse-alphabet-letter.active {
    background: var(--wp--preset--color--marron-f);
    color: #fff;
    border-color: var(--wp--preset--color--marron-f);
}

/* =================================
   CONTENEUR PRINCIPAL DU FORMULAIRE
   ================================= */
.wpcf7 {
  /* max-width: 600px; */
  margin: 0 auto;
}

/* =================================
   LABELS ET TEXTES
   ================================= */
.wpcf7 label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--wp--preset--color--marron-f);
  font-size: 20px;
}

/* =================================
   CHAMPS DE SAISIE
   ================================= */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 80%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 22px;
  font-family: var(--wp--preset--font-family--league-spartan);
  background-color: var(--wp--preset--color--blanc);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* État focus des champs */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--marron-f);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Zone de texte */
.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

/* =================================
   CASES À COCHER ET BOUTONS RADIO
   ================================= */
.wpcf7 .wpcf7-list-item {
  margin: 0 0 10px 0;
  display: block;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.wpcf7 .wpcf7-list-item-label {
  cursor: pointer;
  font-weight: normal;
}

/* =================================
   BOUTON DE SOUMISSION
   ================================= */
.wpcf7 input[type="submit"] {
  padding: 12px 30px;
  background-color: var(--wp--preset--color--marron-f);
  color: var(--wp--preset--color--blanc);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%;
}

.wpcf7 input[type="submit"]:hover {
  background-color: var(--wp--preset--color--marron-f);
  transform: translateY(-2px);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
}

/* =================================
   MESSAGES DE VALIDATION
   ================================= */
/* Message d'erreur sous les champs */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 13px;
  margin-top: -15px;
  margin-bottom: 15px;
  display: block;
}

/* Champs en erreur */
.wpcf7-not-valid {
  border-color: #e74c3c !important;
}

/* Message de succès */
.wpcf7-response-output {
  margin: 20px 0 0 0;
  padding: 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Message d'erreur général */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Message d'envoi spam */
.wpcf7-spam-blocked {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* =================================
   SPINNER DE CHARGEMENT
   ================================= */
.wpcf7 .ajax-loader {
  margin-left: 10px;
  vertical-align: middle;
}

/* =================================
   CHAMPS OBLIGATOIRES
   ================================= */
.wpcf7 .wpcf7-form-control-wrap {
  position: relative;
  display: block;
}

/* Astérisque pour champs obligatoires */
.wpcf7 abbr.required {
  color: #e74c3c;
  text-decoration: none;
  font-weight: bold;
}

/* =================================
   UPLOAD DE FICHIERS
   ================================= */
.wpcf7 input[type="file"] {
  padding: 10px;
  border: 2px dashed #dddddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  cursor: pointer;
  width: 100%;
  margin-bottom: 20px;
}

.wpcf7 input[type="file"]:hover {
  border-color: #4CAF50;
  background-color: #f0f8f0;
}

/* =================================
   RESPONSIVE
   ================================= */
@media (max-width: 768px) {
  .wpcf7 {
    padding: 20px;
  }
  
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="url"],
  .wpcf7 input[type="tel"],
  .wpcf7 input[type="number"],
  .wpcf7 input[type="date"],
  .wpcf7 select,
  .wpcf7 textarea {
    font-size: 16px; /* Évite le zoom automatique sur iOS */
  }
}

.wp-lightbox-overlay {
    background: rgba(15, 15, 15, 0.95);
}

.wp-lightbox-container img {
    max-width: 90vw;
    max-height: 90vh;
}

:where(.wp-site-blocks :focus){
   outline-style:none;
}

/* =================================
   Recherche avancee
   ================================= */

.meili-result-title a:hover {
    color: color :  var(--wp--preset--color--marron-f);
    text-decoration: underline;
}

.meili-result-title a{
	color :  var(--wp--preset--color--marron-f);
	font-family: var(--wp--preset--font-family--league-spartan);
}

.meili-search-button {
	background : var(--wp--preset--color--marron-f);
}

.meili-search-button:hover {
    background: var(--wp--preset--color--marron-f);
}

.meili-search-options input[type="checkbox"]:checked {
	accent-color: var(--wp--preset--color--marron-f);
	color: var(--wp--preset--color--marron-f);
}
.meili-pagination a,
.meili-pagination{
	color: var(--wp--preset--color--marron-f);
}
.meili-pagination a.current {
    background: var(--wp--preset--color--marron-f);  
    border-color:var(--wp--preset--color--marron-f);
}

/* =================================
   Affichage Table des matières semaine religieuse
   ================================= */
	
.grille-10-col .wp-block-post-template{ 
	grid-template-columns: repeat(10, minmax(0, 1fr)) ;
	gap: 0;
}

@media (max-width: 800px) {
    .grille-10-col .wp-block-post-template{ 
	 grid-template-columns: repeat(5, minmax(0, 1fr)) ;
    }
}