/*  
Theme Name:   Maryline 2025
Theme URI:    - 
Description:  Theme developpé pour le site maryline.gauthron.com 
Author:       Laurent GAUDILLIER 
Author URI:   https://glprojets.fr 
Template:     twentytwentyfour  
Version:      0.1.0
*/

/* Ajout de polices supplémentaires */

@import url('https://fonts.googleapis.com/css2?family=Charmonman:wght@400;700&family=Dancing+Script:wght@400..700&family=Petit+Formal+Script&family=Quintessential&display=swap&family=Ysabeau+SC:wght@1..1000&display=swap&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');


/*
 * Gestion du header, pour le vers disparaitre au scroll vers le bas,
 * Le rendre visible en remontant avec redimensionnement sur le logo
 * 
 */

.entete-site {
    transition: all 0.3s ease;
}

/* Header réduit */
.entete-site.shrink {
    padding: 8px 20px; /* réduit la hauteur */
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Logo normal */
.entete-site img {
    max-height: 70px;
    transition: max-height 0.3s ease;
}

/* Logo réduit quand shrink */
.entete-site.shrink img {
    max-height: 55px; /* plus petit logo */
	max-width: 55px;
}

/* Header caché quand on scrolle vers le bas */
.entete-site.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}



/*
/* Style normal des liens 
 */
a {
    text-decoration: none;
    color: inherit; /* garde la couleur du texte */
    transition: color 0.2s ease, box-shadow 0.2s ease;
}

/* Effet au survol */
a:hover {
    color: #a65b4b; /* exemple : une teinte douce (à adapter) */
	font-size: 1.1em;
}

/* Effet au focus (clavier) */
a:focus {
    outline: none; /* supprime le rectangle par défaut */
    box-shadow: 0 2px 0 0 #eacfc0; /* petit soulignement coloré */
    border-radius: 2px;
}

/*
/* Personnalisation des liens sur mobile 
 */

@media (max-width: 768px) {
  .entry-content a {
    color: #333;
    text-decoration: none;
    background: linear-gradient(120deg, #f8e7d3 0%, #f8e7d3 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 60%;
    transition: background-size 0.3s ease;
  }
  .entry-content a:hover {
    background-size: 100% 100%;
  }
}


/*
 * Personnalisation du pied de page
 * pour affichage sur mobile
 */ 
@media (max-width: 767px) {
	
.cacher-sur-mobile {
    display: none; /* cache l'affichage de la carte */
	}

.masquer-bordures-colonnes {
	border: none !important;
	}
}


/*
 * Modifie la taille du logo dans le bandeau 
 * SANS augmenter sa hauteur (version responsive)
 */

/* Par défaut (bureau) */
header .custom-logo {
    transform: scale(2); /* 200% + recentrage vertical */
    transform-origin: center;
}

/* Tablette */
@media (max-width: 1024px) {
    header .custom-logo {
        transform: scale(1.2);
    }
}

/* Mobile */
@media (max-width: 767px) {
    header .custom-logo {
        transform: scale(1);
    }
}

/*
 * Fin des modifications de la taille du logo dans le bandeau 
 * SANS augmenter sa hauteur
 */




/*
 * Modifie la hauteur des marges en haut
 * et en bas du pied de page
 */
.wp-block-group.alignwide.h3.has-background.is-layout-flow {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/*
 * Personnalise les paragraphes 
 * avec différents styles
 */

.par-perso {
  font-family: "Newsreader", serif !important;
  font-size: 20px !important;
  font-weight: 300 !important;
}

.par-perso-titre {
  font-family: "Newsreader", serif !important;
  font-size: 30px !important;
  font-weight: 300 !important;
  font-style : italic;
}

.par-perso-italic {
  font-family: "Newsreader", serif;
  font-size: 20px;
  font-weight: 300 !important;
	font-style : italic;
}

.par-perso-bloc-utilisateur {
  font-family: "Newsreader", serif;
  font-size: 20px;
  font-weight: 400;
	font-style : italic;
  
}

/*
 * Personnalise les différents types de liens 
 * avec différents styles
 */
.lien-menu{
  text-decoration: none !important;
  font-family: "Newsreader", serif;
  font-weight: 300;
  font-style: italic;
  position: relative; 
  padding: 0 8px;
  transition: .1s all;
}

.lien-menu:hover::before {
  width: 100% !important;
}
.lien-menu:hover {
  color: #c49d83;
  font-size: 200% !important;
	font-weight: 300 !important;
}

.newsreader-entrees-menus {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-style: italic;
}

/*
 * Personnalise les différents types de titres 
 * avec différents styles
 */

h1 {
	font-family: "Newsreader", serif;
  	font-size: 40px;
  	font-weight: 500;
	font-style: italic;
	color: #c49d83; /*#c49d83*/
}

h2 {
	font-family: "Newsreader", serif;
  	font-size: 30px;
  	font-weight: 400;
	font-style: italic;
	color: #c49d83; /*#c49d83*/
}

h3{
	font-family: "Newsreader", serif;
  	color: #57463e;
	font-style: italic;
  	font-size: 22px;
  	font-weight: 400;
}

h4{
	font-family: "Newsreader", serif;
  	color: #57463e;
	font-style: italic;
  	font-size: 50px !important;
  	font-weight: 400;
}


.h3-newsreader {
  font-family: "Newsreader", serif;
  color: #57463e;
  font-size: 22px;
  font-weight: 500;
}

.h3-perso {
	font-family: 'newsreader';
	color: #bda18a;
}

/*
 * Justifie le texte des paragraphes 
 * si besoin
 */
.texte-justifie {
    text-align: justify;
} 

/*
 * Personnalise la puce
 * dans les listes <li>
 * exemple de puces ici : https://symbl.cc/fr
 */
ul.puce-perso {
  list-style-type: "\21AC";
	/*list-style-type: "\F27B5";*/
}


/* 
 * Definition de largeur particulière pour certains paragraphes
 * 
 */ 

.paragraphe-25 {
    width: 25%;       /* largeur du paragraphe */
    margin: 0 auto;   /* centre le paragraphe horizontalement */
}

.paragraphe-60 {
    width: 60%;       /* largeur du paragraphe */
    margin: 0 auto;   /* centre le paragraphe horizontalement */
}

.paragraphe-99 {
    width: 99%;       /* largeur du paragraphe */
    margin: 0 auto;   /* centre le paragraphe horizontalement */
}

/*
 * Masque le titre des pages
 */ 
.wp-block-post-title {
	display: none;
}



/* augmente la largeur d'affichage des blocs */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 1800px !important;
}

/*
 * Permet de ersonnaliser certains liens
 */ 

.lien-bouton-voir-plus{
	text-decoration: none;
	color: #F5EFE6;
}

.lien-perso{
  text-decoration: none;
  /*color: black;*/
  font-size: 1em;
	font-weight: 400;
  position: relative;
  padding: 0 2px;
  transition: .2s all;
}

.lien-perso:hover::before {
  width: 100%;
}
.lien-perso:hover {
  color: #65574e;
  font-size: 1.1em;
}

/*
 *  Personnalisation des liens standards
 */


/*
 *  Fin paramétrage des liens 
*/







.aligne_message {
    margin-top : -20 px !important;
}

.um a.um-button, .um a.um-button.um-disabled:active,
.um a.um-button.um-disabled:focus, .um a.um-button.um-disabled:hover,
.um input[type=submit].um-button, .um input[type=submit].um-button:focus
{
    background-color : #E8D5CC !important;
	/*box-shadow: 2px 2px 4px 10px rgba(0, 0, 0, 0.2);*/
	box-shadow: 10px 10px 5px #BDA18A;
}

.um a.um-button:hover, .um input[type=submit].um-button:hover{
	background-color : #BDA18A !important;
	
}
/*
.um input[type=submit].um-button:hover{
	background-color : #BDA18A !important;
}
*/
/*
.um-link-alt:hover{
	background-color : red !important;
}
*/
/*
 * .um a.um-link:hover, .um a.um-link-hvr:hover {
    background-color : red !important;
}
*/
/*
#um-submit-btn{
background-color : blueviolet !important;	
}
*/
.um a.um-button, .um a.um-button.um-disabled:active,
.um a.um-button.um-disabled:focus, .um a.um-button.um-disabled:hover,
.um input[type=submit].um-button, .um input[type=submit].um-button:focus
{
    background-color : #E8D5CC !important;
	/*box-shadow: 2px 2px 4px 10px rgba(0, 0, 0, 0.2);*/
	box-shadow: 10px 10px 5px #BDA18A;
}

.um a.um-button:hover, .um input[type=submit].um-button:hover{
	background-color : #BDA18A !important;
}	
	
/*
 * Style pour les sous menus 
 * Update du 12/08/2025
*/

/* 1) Conteneur du sous-menu (différents sélecteurs Kadence possibles) */
.wp-block-kadence-navigation .kb-nav-submenu,
.wp-block-kadence-navigation ul.sub-menu,
.kb-navigation .sub-menu,
.kadence-menu .sub-menu,
.wp-block-kadence/navigation .kb-nav-submenu {
  background: #222 !important;
  padding: 8px 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
  overflow: visible !important;
  z-index: 9999 !important; /* s'assurer qu'il n'est pas caché */
}

/* 2) Liens à l'intérieur */
.wp-block-kadence-navigation .kb-nav-submenu a,
.wp-block-kadence-navigation ul.sub-menu a,
.kb-navigation .sub-menu a,
.kadence-menu .sub-menu a {
  display: block !important;
  padding: 8px 16px !important;
  color: #000000 !important;
  font-size: 20px !important;	
  text-decoration: none !important;
  white-space: nowrap;
}

/* 3) Hover */
.wp-block-kadence-navigation .kb-nav-submenu a:hover,
.kb-navigation .sub-menu a:hover,
.kadence-menu .sub-menu a:hover {
  background: #f5efe6 !important;
  color: #bda18a !important;
}

/* 4) Si le parent ou un pseudo-élément masque les coins arrondis */
.wp-block-kadence-navigation,
.kb-navigation,
.kadence-menu {
  overflow: visible !important;
}
.wp-block-kadence-navigation .kb-nav-submenu::before,
.wp-block-kadence-navigation .kb-nav-submenu::after {
  border-radius: 10px !important;
} 

/* rendre visible la découpe parent */
.kadence-header, .wp-block-kadence-navigation, .site-header {
  overflow: visible !important;
}

/* Liste de la carte du site avec icônes flèches */
.sitemap-pages {
    list-style: none; /* supprime les puces par défaut */
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.sitemap-pages li {
    position: relative;
    padding-left: 1.5rem; /* espace pour la flèche */
    margin-bottom: 0.5rem;
    color: #333;
}

/* Flèche décorative avant chaque élément */
.sitemap-pages li::before {
    content: "➤"; /* tu peux changer le symbole */
    position: absolute;
    left: 0;
    top: 0;
    color: #a87b62; /* couleur de la flèche */
    font-size: 0.9rem; /* taille de la flèche */
    line-height: 1.6;
}