/*
Theme Name: AirZen Boost
Theme URI: http://dycast.fr/
Author: DYCAST SAS
Author URI: http://dycast.fr/
Description: Thème pour AirZen Boost - Reprend toutes les fonctions du thème airzen-v3.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: airzen-boost
*/

/* Import de la police Nunito depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Remettre à zéro les marges et paddings par défaut */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Application de la police Nunito sur tout le thème */
body,
html,
input,
textarea,
select,
button,
a,
span,
div,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
td,
th {
	font-family: 'Nunito', sans-serif !important;
}

/* Exclure Material Icons de la règle globale */
.material-icons,
[class*="material-icons"],
i.material-icons {
	font-family: 'Material Icons' !important;
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: 'liga';
	-webkit-font-smoothing: antialiased;
}

/* Layout avec menu vertical */
body {
	margin-left: 280px !important;
	width: calc(100% - 280px) !important;
	background: #ffffff !important;
}

/* Le header est dans le body, donc il commence après le menu */
.site-header {
	margin-left: 0 !important;
	width: 100% !important;
	position: sticky !important;
	top: 0 !important;
	z-index: 10000 !important;
	background: #ffffff !important;
}

@media (max-width: 1024px) {
	body {
		margin-left: 240px !important;
		width: calc(100% - 240px) !important;
		background: #ffffff !important;
	}
	
	.site-header {
		margin-left: 0 !important;
		width: 100% !important;
		position: sticky !important;
		top: 0 !important;
		z-index: 10000 !important;
		background: #ffffff !important;
	}
}

@media (max-width: 768px) {
	html {
		overflow-x: hidden !important;
		overflow-y: auto !important;
		max-width: 100vw !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-bottom: 0 !important;
		height: auto !important;
		/* Fix Safari iOS scroll white space */
		-webkit-overflow-scrolling: touch !important;
		background-color: #ffffff !important;
	}
	
	body {
		overflow-x: hidden !important;
		overflow-y: auto !important;
		max-width: 100vw !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-bottom: 0 !important;
		width: 100% !important;
		height: auto !important;
		min-height: 100vh !important;
		position: relative !important;
		/* Fix Safari iOS scroll white space */
		-webkit-overflow-scrolling: touch !important;
		background-color: #ffffff !important;
		/* Empêcher le body de créer un espace blanc lors du scroll */
		overflow-anchor: none !important;
	}
	
	/* S'assurer qu'aucun parent du header n'a overflow qui bloque le sticky */
	body > *:not(#site-header) {
		overflow-x: visible !important;
	}
	
	.site-header {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		position: fixed !important;
		top: 0 !important;
		z-index: 999 !important;
		background: rgba(255, 255, 255, 0.85) !important;
		backdrop-filter: blur(20px) !important;
		-webkit-backdrop-filter: blur(20px) !important;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
		/* Fix Safari iOS scroll transparency */
		-webkit-transform: translateZ(0) !important;
		transform: translateZ(0) !important;
		will-change: transform !important;
		-webkit-overflow-scrolling: touch !important;
	}
	
	/* Ajouter un padding-top au body pour compenser le header fixed */
	body {
		padding-top: 80px !important;
	}
	
	/* S'assurer que le contenu principal commence après le header */
	#main-content,
	main,
	.site-main,
	.content-area,
	.entry-content {
		margin-top: 0 !important;
	}
	
	.header-container {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	/* S'assurer que tous les conteneurs principaux n'ont pas de décalage */
	#main-content,
	main,
	.site-main,
	.content-area {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}
	
	* {
		max-width: 100%;
	}
}


/* Appliquer un arrondi de 10px à toutes les images sur le site */
img,
.wp-block-image img,
.elementor-widget-image img,
.elementor-column img,
.elementor-section img,
figure img {
    border-radius: 10px;
}


/* Arrondir l'image et son conteneur dans le mode "Carte" d'Elementor */
.elementor-post__thumbnail, 
.elementor-post__thumbnail img {
    border-radius: 10px;
    overflow: hidden;
}


#persistent-player-container {
    position: fixed;
    bottom: 16px;
    z-index: 9999;
}

/* Desktop : le player prend en compte le menu vertical */
@media (min-width: 769px) {
    #persistent-player-container {
        left: 280px;
        width: calc(100% - 280px);
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    #persistent-player-container {
        left: 240px;
        width: calc(100% - 240px);
    }
}

@media (max-width: 768px) {
    #persistent-player-container {
        left: 0;
        right: 0;
        width: 100%;
    }
}


/* Appliquer un arrondi de 10px à toutes les images */
img, 
.elementor-widget-image img,
.wp-block-image img,
iframe {
    border-radius: 10px;
}

/* Exception : pas de bords arrondis pour les logos de partenaires */
.partenaire-logo,
.partenaire-logo-img,
.partenaire-item img,
.partenaire-item .partenaire-logo {
    border-radius: 0 !important;
    background: transparent !important;
}



.elementor img {
    border-radius: 10px;
}




/* Ajoute un espacement vertical entre les titres et les paragraphes */
h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
    margin-bottom: 1em;
}

/* Ajuste l'espacement pour les éléments de liste */
ul, ol {
    margin-top: 0;
    margin-bottom: 0.8em;
    padding-left: 1.5em; /* pour indenter légèrement les listes */
}

/* Espacement entre les éléments de liste */
li {
    margin-bottom: 0.5em;
}



.publication-shortcode {
    font-family: 'Nunito', sans-serif;
    font-style: italic;
    font-size: 0.8em;
    font-weight: 400;
    color: #EF736c;
}





/* AFFICHAGE DES SOUS CATÉGORIES / PAGE ARCHIVE CATEGORIE

/* Assure que la liste s'affiche en flex et sans puces */
.subcategory-list {
    display: flex !important; /* Forcer le flex */
    gap: 10px; /* Espace entre les boutons */
    list-style-type: none !important; /* Supprime les puces */
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: nowrap; /* Maintient les boutons sur une même ligne */
    overflow-x: auto; /* Permet le défilement horizontal si nécessaire */
    align-items: center; /* Centre verticalement les boutons */
}

/* Suppression des marges sur chaque élément de liste */
.subcategory-list li {
    margin: 0 !important;
}

/* Style des boutons */
.subcategory-list a {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgb(248, 248, 248);
    color: FFF;
    text-decoration: none;
    border-radius: 10px; /* Arrondi de 10px */
    font-family: 'Nunito', sans-serif;
    white-space: nowrap; /* Empêche le retour à la ligne */
    transition: all 0.3s ease;
}

/* Couleur en survol */
.subcategory-list a:hover {
    background-color: rgb(253, 224, 224);
    color: rgb(195, 101, 97);
}

/* Couleur pour le bouton actif */
.subcategory-list a.active, .subcategory-list a:active {
    background-color: rgb(239, 115, 108);
    color: white;
}





/* AJOUTE ICONE CASQUE AUDIO */
.elementor-post__thumbnail::before {
    content: "headset" !important; /* Nom de l'icône de casque dans Material Icons */
    font-family: 'Material Icons' !important;
    color: #000 !important; /* Couleur de l'icône */
    background-color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
}





/* citations */
blockquote {
    font-family: 'Nunito', sans-serif; /* Police moderne */
    font-size: 1.4rem; /* Taille du texte de la citation */
    font-weight: bold; /* Texte de la citation en gras */
    font-style: italic;
    color: #ffffff; /* Couleur du texte */
    background-color: #EF736C; /* Couleur de fond */
    padding: 50px 40px; /* Espace généreux autour du texte */
    margin: 30px 0;
    position: relative;
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Ombre subtile */
}

blockquote::before {
    content: '"'; /* Guillemet ouvrant */
    font-size: 10rem; /* Taille énorme */
    color: rgba(255, 255, 255, 0.2); /* Couleur transparente */
    position: absolute;
    top: -10px; /* Ajusté pour rester dans le cadre */
    left: 10px;
    z-index: 0; /* Derrière le texte */
}

blockquote::after {
    content: '"'; /* Guillemet fermant */
    font-size: 10rem; /* Taille énorme */
    color: rgba(255, 255, 255, 0.2); /* Couleur transparente */
    position: absolute;
    bottom: -40px; /* Placé plus bas que le guillemet ouvrant */
    right: 10px;
    z-index: 0; /* Derrière le texte */
}

blockquote p {
    position: relative; /* Pour que le texte soit au-dessus des guillemets */
    z-index: 1;
    margin: 0;
}

blockquote footer {
    font-size: 1rem !important; /* Taille plus petite que la citation */
    font-weight: normal !important; /* Texte non gras */
    margin-top: 20px;
    padding-top: 10px;
    border-top: 2px solid #ffffff; /* Ligne séparatrice droite et épaisse */
    text-align: right; /* Alignement à droite */
    color: #ffffff !important; /* Couleur blanche */
    text-transform: uppercase !important; /* Texte en majuscules pour mise en avant */
}

blockquote footer cite {
    font-style: normal !important; /* Retire l'italique */
    font-weight: normal !important; /* Retire le gras */
    text-transform: none !important; /* Pas de majuscules */
    color: #ffffff !important; /* Couleur blanche */
}

/* ============================================
   FOOTER - Prend en compte le player en bas
   Amélioré pour correspondre à la charte graphique
   ============================================ */

/* S'assurer que le footer apparaît toujours */
#site-footer.site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #f5f6fb;
    border-top: 2px solid rgba(0, 244, 158, 0.15);
    padding: 50px 0;
    margin-top: 80px;
    /* Padding-bottom pour laisser de l'espace au player */
    padding-bottom: 120px; /* Desktop: player ~90px + 16px bottom + marge */
    position: relative;
    z-index: 1;
    width: 100%;
    clear: both;
}

/* S'assurer que le footer s'adapte au menu vertical */
body:not(.page-template-page-nouvelle-accueil) #site-footer.site-footer {
    margin-left: 0;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    width: 100%;
}

/* Widgets du footer */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(0, 244, 158, 0.1);
}

.footer-widget-area {
    display: flex;
    flex-direction: column;
}

.footer-widget-area h3,
.footer-widget-area h4,
.footer-widget-area .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    font-family: 'Nunito', sans-serif;
    letter-spacing: -0.01em;
}

.footer-widget-area p,
.footer-widget-area li,
.footer-widget-area a {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    font-family: 'Nunito', sans-serif;
}

.footer-widget-area a {
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-widget-area a:hover {
    color: #EF736c;
    transform: translateX(3px);
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 0;
}

.footer-widget-area ul li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #00F49E;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-widget-area ul li:hover::before {
    opacity: 1;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-copyright {
    flex: 1;
    min-width: 200px;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
}

.footer-copyright p strong {
    color: #000;
    font-weight: 700;
}

/* Navigation du footer */
.footer-navigation {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00F49E 0%, #EF736c 100%);
    transition: width 0.3s ease;
}

.footer-menu a:hover {
    color: #000;
}

.footer-menu a:hover::after {
    width: 100%;
}

/* Responsive - Tablette */
@media (max-width: 1024px) {
    #site-footer.site-footer {
        padding: 40px 0;
        padding-bottom: 120px; /* Même espacement que desktop */
        margin-top: 60px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-widget-3 {
        grid-column: 1 / -1; /* Prend toute la largeur sur 2 colonnes */
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-navigation {
        justify-content: flex-end;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    #site-footer.site-footer {
        padding: 30px 0;
        padding-bottom: 90px; /* Mobile: player ~60px + 8px bottom + marge */
        margin-top: 40px;
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
        padding-bottom: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-top: 25px;
    }
    
    .footer-navigation {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer-copyright {
        width: 100%;
    }
    
    .footer-copyright p {
        font-size: 0.85rem;
    }
    
    .footer-menu a {
        font-size: 0.85rem;
    }
    
    .footer-widget-area h3,
    .footer-widget-area h4,
    .footer-widget-area .widget-title {
        font-size: 1.1rem;
    }
}

/* S'assurer que le footer apparaît sur toutes les pages */
body #site-footer.site-footer,
body footer#site-footer,
body .site-footer {
    display: block !important;
    visibility: visible !important;
}

/* ============================================
   STYLES ARTICLES GÉNÉRÉS PAR IA
   ============================================ */

/* Chapeau d'article - introduction mise en avant */
.chapeau,
p.chapeau {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 0 1rem 0;
    border-bottom: 2px solid rgba(239, 115, 108, 0.2);
}

/* Point clé - encadré informatif important */
.point-cle {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
    font-weight: 500;
    color: #0c4a6e;
    line-height: 1.7;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.point-cle strong {
    color: #0369a1;
    font-weight: 700;
}

.point-cle p:last-child {
    margin-bottom: 0;
}

/* Style des H2 dans les articles générés */
.entry-content h2,
.post-content h2,
article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    padding-bottom: 0.5rem;
}

.entry-content h2::after,
.post-content h2::after,
article h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #EF736c 0%, #00F49E 100%);
    border-radius: 2px;
}

/* Style des H3 dans les articles générés */
.entry-content h3,
.post-content h3,
article h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Listes bien stylées pour le SEO et la lisibilité */
.entry-content ul,
.post-content ul,
article ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.entry-content ul li,
.post-content ul li,
article ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.entry-content ul li::before,
.post-content ul li::before,
article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #EF736c 0%, #ff9a8b 100%);
    border-radius: 50%;
}

/* Listes numérotées */
.entry-content ol,
.post-content ol,
article ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.entry-content ol li,
.post-content ol li,
article ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    counter-increment: item;
}

.entry-content ol li::before,
.post-content ol li::before,
article ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #EF736c 0%, #ff9a8b 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

