/*
 Theme Name: AMMOI Theme
 Theme URI: https://www.adil-golaup.fr/
 Author: Adil GOLAUP
 Author URI: https://www.adil-golaup.fr/
 Description: Thème AMMOI basé sur Bootstrap.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: ammoi-theme
*/

/*  ==========================================================
	1. VARIABLES GLOBALES & RÉGLAGES DE BASE
	========================================================== */

:root {
	--ammoi-green: #2e8b57;

	--ammoi-gray-700: #444444;
	--ammoi-gray-500: #7a7a7a;
	--ammoi-gray-400: #cbcbcb;

	--ammoi-gray-200: #e7e8e7;
	--ammoi-gray-100: #f5f5f5;
	--ammoi-gray-50:  #FCFCFC;
}

/* ---------- Styles de base du body ---------- */
body {
	font-family: 'Lato', sans-serif;
	font-size: 14px;
	line-height: 21px;
	color: var(--ammoi-gray-500);
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
	font-family: 'Montserrat', sans-serif;
	margin: 20px 0 10px 0;
	color: var(--ammoi-green);
}

h3 {
	position: relative;
	font-family: 'Montserrat', sans-serif;
	font-size: 28px;
	margin: 20px 0px;
	line-height: 30px;
	font-weight: 700;
	color: var(--ammoi-green);
	padding-left: 18px;
}

h3::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 70%;
	background: var(--ammoi-green);
	border-radius: 10px;
}

.ammoi-page-content h3:first-of-type {
	margin: 0 0 20px 0;
}

.ammoi-page-content img {
	border-radius: 10px;
}

.page-template-default {
	color: var(--ammoi-gray-500);
}

.wp-block-columns.is-layout-flex {
	align-items: center !important;
}

.anchor-offset {
	scroll-margin-top: 60px
}

[style*="color: #339966"] {
	color: var(--ammoi-green) !important;
}

/* ---------- Liens ---------- */
a {
	color: var(--ammoi-green);
}

/* ---------- Bouton ---------- */
.btn-green {
	border: none;
	background: var(--ammoi-green);
	color: white;
	cursor: pointer;
	align-items: center;
	text-align: center;
	font-weight: normal;
	font-size: 14px;
	padding: 5px 12px 7px 12px !important;
	-webkit-transition: opacity 0.4s;
	-moz-transition: opacity 0.4s;
	-o-transition: opacity 0.4s;
	transition: opacity 0.4s;
	text-decoration: none;
	display: inline-block;
	margin-top:	10px;
	border-radius: 999px;
}

/* Hover sur le bouton */
.btn-green:hover {
	opacity: 0.8;
	-webkit-transition: opacity 0.4s;
	-moz-transition: opacity 0.4s;
	-o-transition: opacity 0.4s;
	transition: opacity 0.4s;
}

/* ---------- Listes dans le contenu principal ---------- */
main ul{
	list-style: none;
	padding-left: 2rem;
}

main ul li::before {
	content: "\203A";
	position: absolute;
	left: -6px;
	top: 0;
	color: var(--ammoi-gray-500);
	margin-right: 0;
}

main ul li {
	position: relative;
	padding-left: 1.2em;
	margin: 10px 0 10px 10px;
}

main ol {
	padding-left: 2rem;
}

main ol li {
	position: relative;
	padding-left: 0.8em;
    margin: 10px 17px;
}

blockquote {
	background-color: var(--ammoi-gray-200);
	color: var(--ammoi-gray-500);
	padding: 30px;
	margin: 30px 0;
	border-radius: 10px;
}

blockquote p {
	margin-bottom: 0;
}

blockquote p + p {
	margin: 20px 0 0 0;
}

blockquote h4 {
	margin: 0 0 10px 0;
}

.wp-block-column blockquote {
	margin: 0;
}

@media (min-width: 992px) {

	/* 1) Sur desktop, on annule le centrage vertical et on étire les colonnes */
	.ammoi-page-content .wp-block-columns.is-layout-flex:has(blockquote) {
		align-items: stretch !important;
	}

	/* 2) Le blockquote prend toute la hauteur disponible */
	.ammoi-page-content .wp-block-column blockquote,
	.ammoi-page-content .wp-block-column .wp-block-quote {
		flex: 1;
		height: 100%;
	}
}




/*  ==========================================================
	1.1 CONTAINER GLOBAL
	========================================================== */

/* Largeur max du container sur grands écrans */
@media (min-width: 1400px) {
	.container,
	.container-lg,
	.container-md,
	.container-sm,
	.container-xl,
	.container-xxl {
		max-width: 1140px;
	}
}

/* Masquer complètement la barre d’admin WordPress sur le front */
div#wpadminbar {
	display: none;
	height: 0;
	min-width: 0;
}

/* Wrapper global utilisé pour pousser le site lors de l’ouverture du menu mobile */
#ammoi-page {
	transition: transform 0.3s ease;
}



/*  ==========================================================
	2. HEADER DESKTOP
	========================================================== */

/* ---------- Conteneur principal du header desktop ---------- */
.ammoi-header {
	position: relative;
	font-family: 'Montserrat', sans-serif;	
}

/* ---------- Bande supérieure avec background + logo ---------- */
.ammoi-header-top {
	background-attachment: fixed;
	background-position: 0 -58px;
	background-size: cover;
	background-image:
		/* Dégradé clair par-dessus l’image pour lisibilité */
		linear-gradient(to bottom, rgba(245,245,245,0.90), rgba(245,245,245,0.80)),
		url("assets/img/bg_header.jpg");
}

/* ---------- Logo dans le header ---------- */
.ammoi-logo img,
.ammoi-header .custom-logo {
	width: 90px;
	height: 90px;
}

/* ---------- Titre/nom AMMOI (SVG) centré verticalement ---------- */
.ammoi-site-title {
	display: flex;
	align-items: center;
}

/* SVG du titre AMMOI */
.ammoi-title-svg {
	display: block;
	height: 25px;
}



/*  ==========================================================
	3. NAVIGATION DESKTOP (BARRE DE MENU)
	========================================================== */

/* ---------- Barre blanche sous le header (menu principal) ---------- */
.ammoi-main-nav {
	background-color: white;
	border-bottom: 4px solid white;
	background: white
		url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAGCAQAAACoGTy6AAAAF0lEQVQImWNgYGIAIWYGBhYGBlYGBjYAAKAAF4mj2TgAAAAASUVORK5CYII=)
		repeat-x;
	background-position: bottom;         
	-webkit-transition: background-color 2s;
	-moz-transition: background-color 2s;
	-o-transition: background-color 2s;
	transition: background-color 2s;
	position: relative;
	z-index: 20;
}

/* ---------- Liens principaux de la navigation desktop ---------- */
.ammoi-menu > li > a {
	padding: 0 11px;
	height: 48px;
	line-height: 51px;
	font-size: 16px;
	color: var(--ammoi-gray-700) !important; 
	text-decoration: none !important;
	display: flex; 
	align-items: center;
	position: relative;
	z-index: 10000;
	font-weight: 500;
}

/* Chaque li du menu en flex pour aligner le lien au centre */
.ammoi-menu > li {
	display: flex;
	align-items: center;
}

/* ---------- Barre verte sous l’item actif / survolé ---------- */
.ammoi-main-nav .ammoi-menu > li {
	position: relative;
}

.ammoi-main-nav .ammoi-menu > li.current-menu-item::after,
.ammoi-main-nav .ammoi-menu > li.current_page_item::after,
.ammoi-main-nav .ammoi-menu > li.current-menu-ancestor::after,
.ammoi-main-nav .ammoi-menu > li:hover::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 100%;
	height: 4px;
	background-color: var(--ammoi-green);
	z-index: 50;
}

/* ---------- Items qui possèdent un sous-menu ---------- */
.ammoi-menu > li.menu-item-has-children {
	position: relative;
}

/* ---------- Flèche Font Awesome (chevron bas) sur les items avec sous-menu ---------- */
/* On exclut ceux qui ont la classe .menu_icon_item */
.ammoi-menu > li.menu-item-has-children:not(.menu_icon_item) > a::after {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f107";
	font-size: 12px;
	margin-left: 6px;
	display: inline-block;
	transform: translateY(1px);
}



/*  ==========================================================
	4. SOUS-MENUS DESKTOP (HOVER)
	========================================================== */

/* ---------- Bloc de sous-menu (niveau 1) ---------- */
.ammoi-menu .sub-menu {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	min-width: 200px;
	margin: 0;
	padding: 0;
	list-style: none;
	background-color: white; 
	box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(9px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 9999;
}

/* ---------- Affichage du sous-menu au survol du parent ---------- */
.ammoi-menu > li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* ---------- Items de sous-menu (niveau 1) ---------- */
.ammoi-menu .sub-menu > li {
	padding: 5px 14px 7px 13px;
	font-size: 14px;
	line-height: 24px;
}

/* ---------- États actif / hover sur un item de sous-menu ---------- */
.ammoi-menu .sub-menu > li.current-menu-item,
.ammoi-menu .sub-menu > li.current_page_item,
.ammoi-menu .sub-menu > li:hover {
	background-color: var(--ammoi-green);
}

.ammoi-menu .sub-menu > li.current-menu-item > a,
.ammoi-menu .sub-menu > li.current_page_item > a,
.ammoi-menu .sub-menu > li:hover > a {
	color: white;
}

/* ---------- Sous-menus de niveau 2+ (flyout à droite) ---------- */
.ammoi-menu .sub-menu > li.menu-item-has-children {
	position: relative;
}

/* Sous-menu de niveau 2 : à droite du parent */
.ammoi-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	transform: translateY(0);
}

/* Affichage des sous-menus de niveau 2+ au hover */
.ammoi-menu .sub-menu > li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
}

/* ---------- Liens de sous-menus + chevron droit ---------- */
.ammoi-menu .sub-menu > li > a {
	position: relative;
	display: block;
	font-size: 14px;
	color: var(--ammoi-gray-700);
	text-decoration: none;
	white-space: nowrap;
}

/* Chevron droit pour les items qui ont un sous-menu enfant */
.ammoi-menu .sub-menu > li.menu-item-has-children > a::after {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f105";
	font-size: 12px;
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
}



/*  ==========================================================
	5. RECHERCHE (LOUPE + PANNEAU + RÉSULTATS RAPIDES)
	========================================================== */

/* ---------- Wrapper du bouton loupe dans la nav (aligné à droite) ---------- */
.ammoi-search-wrapper {
	display: flex;
	align-items: center;
	margin-left: auto;
}

/* Bouton qui ouvre/ferme le panneau de recherche */
.ammoi-search-toggle {
	border: 0;
	background: none;
	padding: 0 4px;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
}

/* Icône loupe */
.ammoi-search-toggle i {
	color: var(--ammoi-gray-700);
	transition: color .2s ease;
}

/* Loupe active ou survolée */
.ammoi-search-toggle.is-open i,
.ammoi-search-toggle:hover i {
	color: var(--ammoi-green);
}


/* ---------- Panneau global de recherche (desktop + mobile) ---------- */
.ammoi-search-panel {
	right: 0;
	left: auto;
	width: 420px;
	background: white;
	border-top: 4px solid var(--ammoi-green);
	box-shadow: 0 8px 18px rgba(0,0,0,0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease-out,
				transform .25s ease-out,
				visibility .25s;
	z-index: 9999;
	pointer-events: none;
}

/* ---------- État ouvert du panneau de recherche ---------- */
.ammoi-search-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	border-radius: 0 0 10px 10px;
}

@media (max-width: 767.98px) {
	.ammoi-search-panel.is-open {
		border-radius: 0;
	}
}

/* ---------- Intérieur du panneau de recherche ---------- */
.ammoi-search-panel-inner {
	position: relative;
	padding: 20px 20px 25px;
}

/* Petite flèche verte au-dessus du panneau */
.ammoi-search-arrow {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 6px solid var(--ammoi-green);
	position: absolute;
	top: -10px;
	right: 9px;
}

/* ---------- Formulaire de recherche ---------- */
.ammoi-search-form {
	display: flex;
	flex-wrap: nowrap;
}

/* Champ texte */
.ammoi-search-input {
	flex: 1 1 auto;
	padding: 10px;
	border: 1px solid var(--ammoi-gray-100);
	border-right: 0;
	background-color: var(--ammoi-gray-50);
	font-size: 14px;
	border-radius: 999px;
	outline: none;
}

/* Bouton de soumission */
.ammoi-search-submit {
	flex: 0 0 auto;
	border: none;
	background: var(--ammoi-green);
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	font-weight: normal;
	font-size: 14px;
	border-radius: 999px;
	padding: 5px 12px 7px 12px !important;
	-webkit-transition: opacity 0.4s;
	-moz-transition: opacity 0.4s;
	-o-transition: opacity 0.4s;
	transition: opacity 0.4s;
}

/* Hover sur le bouton de recherche */
.ammoi-search-submit:hover {
	opacity: 0.8;
	-webkit-transition: opacity 0.4s;
	-moz-transition: opacity 0.4s;
	-o-transition: opacity 0.4s;
	transition: opacity 0.4s;
}

/* ---------- Résultats rapides (AJAX) ---------- */
.ammoi-search-results {
	margin-top: 10px;
	max-height: 320px;
	overflow-y: auto;
	display: none;
}

/* Liste de résultats */
.ammoi-search-results-list {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	background-color: var(--ammoi-gray-50);
}

/* Item individuel de résultat */
.ammoi-search-result-item {
	display: flex;
	align-items: flex-start;
	border-top: 1px solid var(--ammoi-gray-100);
	padding: 10px;
}

/* Dernier item : bordure basse également */
.ammoi-search-result-item:last-child {
	border-bottom: 1px solid #f0f0f0;
}

/* Vignette de l’article */
.ammoi-search-result-thumb {
	flex: 0 0 80px;
	display: block;
	margin-right: 10px;
}

/* Image dans la vignette */
.ammoi-search-result-thumb img {
	display: block;
	width: 80px;
	height: 60px;
	object-fit: cover;
}

/* Si pas de thumb : bloc gris */
.ammoi-search-no-thumb {
	display: block;
	width: 80px;
	height: 60px;
	background: var(--ammoi-gray-400);
}

/* Partie texte du résultat */
.ammoi-search-result-text {
	flex: 1 1 auto;
}

/* Titre du résultat */
.ammoi-search-result-title {
	display: block;
	font-size: 14px;
	line-height: 1.3;
	color: var(--ammoi-gray-700);
	text-decoration: none;
	margin-bottom: 3px;
}

/* Hover sur le titre de résultat */
.ammoi-search-result-title:hover {
	text-decoration: underline;
}

/* Date du résultat */
.ammoi-search-result-date {
	font-size: 13px;
	font-style: italic;
	color: var(--ammoi-gray-500);
}

/* Lien "voir tous les résultats" */
.ammoi-search-see-all {
	display: block;
	text-align: center;
	font-style: italic;
	font-size: 14px;
	padding: 0;
	color: var(--ammoi-gray-700);
	text-decoration: none;
}

/* Hover sur "voir tous les résultats" */
.ammoi-search-see-all:hover {
	text-decoration: underline;
}

/* Message "aucun résultat" */
.ammoi-search-no-result {
	font-size: 14px;
	color: var(--ammoi-gray-700);
}

/* Boutons du header mobile (icône grille + loupe) */
#ammoi-mobile-menu-toggle,
#ammoi-mobile-search-toggle {
	border: none;
	background: transparent;
}



/*  ==========================================================
	6. HEADER MOBILE (BANDEAU EN HAUT)
	========================================================== */

/* ---------- Bandeau header pour mobiles (caché sur desktop) ---------- */
.ammoi-mobile-header {
	display: none;
	background-color: white;
	background: white
		url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAGCAQAAACoGTy6AAAAF0lEQVQImWNgYGIAIWYGBhYGBlYGBjYAAKAAF4mj2TgAAAAASUVORK5CYII=)
		repeat-x;
	background-position: bottom;
	border-bottom: 4px solid white;
	-webkit-transition: background-color 2s;
	-moz-transition: background-color 2s;
	-o-transition: background-color 2s;
	transition: background-color 2s;
}

/* Container interne du header mobile */
.ammoi-mobile-header .container {
	height: 100%;
}

/* ---------- Icônes à gauche/droite dans le header mobile ---------- */
.ammoi-mobile-icon i {
	font-size: 24px;
	color: var(--ammoi-gray-700);
}

/* ---------- Logo centré dans le header mobile ---------- */
.ammoi-mobile-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ammoi-mobile-logo img,
.ammoi-mobile-logo .custom-logo {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

/* Boutons menu et recherche mobile : aucun style par défaut */
#ammoi-mobile-menu-toggle, #ammoi-mobile-search-toggle {
	border : none;
	background: transparent;
}



/*  ==========================================================
	7. MENU MOBILE OFF-CANVAS
	========================================================== */

/* ---------- Panneau latéral gauche du menu mobile ---------- */
.ammoi-mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 80vw;
	max-width: 340px;
	background: var(--ammoi-gray-100);
	box-shadow: 2px 0 10px rgba(0,0,0,0.3);
	z-index: 10000;
	transform: translateX(-120%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	font-family: 'Montserrat', sans-serif;
}

/* ---------- Barre "FERMER" en haut du menu mobile ---------- */
.ammoi-mobile-menu-header {
	background: var(--ammoi-green);
	color: white;
	position: relative;
	display: block;
	width: 100%;
	padding: 15px 0 16px;
	text-align: center;
	font-size: 17px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	z-index: -1;
	-webkit-box-shadow: inset -3px 0 17px 0 rgba(0, 0, 0, 0.15);
	-moz-box-shadow: inset -3px 0 17px 0 rgba(0, 0, 0, 0.15);
	box-shadow: inset -3px 0 17px 0 rgba(0, 0, 0, 0.15);
}

/* ---------- Petit triangle blanc à droite de la barre "FERMER" ---------- */
.ammoi-mobile-menu-triangle {
	position: absolute;
	right: 0;
	top: 19px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7.5px 8px 7.5px 0;
	border-color: transparent white transparent transparent;
}

/* ---------- UL principal du menu mobile ---------- */
.ammoi-mobile-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
	background: var(--ammoi-gray-100);
}

/* ---------- Items de niveau 1 dans le menu mobile ---------- */
.ammoi-mobile-menu-list > li > a {
	display: block;
	text-decoration: none;
	line-height: 21px;
	font-size: 15px;
	text-transform: uppercase;
	color: var(--ammoi-gray-700);
	padding: 12px 13px 14px 17px;
	transition: color .25s ease, background-color .25s ease;
	font-weight: 500;
}

/* ---------- Items "courants" (WP) dans le menu mobile ---------- */
.ammoi-mobile-menu-list > li.current-menu-item > a,
.ammoi-mobile-menu-list .sub-menu > li.current-menu-item > a,
.ammoi-mobile-menu-list .sub-menu > li.current_page_item > a {
	color: var(--ammoi-green);
	background-color: var(--ammoi-gray-50);
	font-weight: 600;
}

/* ---------- Sous-menus dans le mobile (accordéon via jQuery) ---------- */
.ammoi-mobile-menu-list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	background: var(--ammoi-gray-50);
}

/* ---------- Items avec enfants dans le mobile : flèche bas + padding ---------- */
.ammoi-mobile-menu-list li.menu-item-has-children > a {
	position: relative;
	padding-right: 36px;
}

/* Flèche bas sur les items avec sous-menu */
.ammoi-mobile-menu-list li.menu-item-has-children > a::after {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f107"; /* chevron bas */
	font-size: 12px;
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform .2s ease;
}

/* ---------- Chevron + style quand un sous-menu est ouvert ---------- */
.ammoi-mobile-menu-list li.is-open > a::after,
.ammoi-mobile-menu-list li.submenu-open > a::after {
	transform: translateY(-50%) rotate(180deg);
}

/* Seul le "dernier" sous-menu ouvert devient actif (vert) */
.ammoi-mobile-menu-list li.submenu-active > a {
	color: var(--ammoi-green) !important;
	background-color: var(--ammoi-gray-50) !important;
}

/* Transition sur la couleur / background des liens du mobile */
.ammoi-mobile-menu-list li > a {
	position: relative;
	transition: color .25s ease, background-color .25s ease;
}

/* ---------- Sous-menus de niveau 1 dans le mobile ---------- */
.ammoi-mobile-menu-list .sub-menu > li > a {
	padding: 7px 8px 9px 36px !important;
	text-decoration: none;
	display: block;
	line-height: 21px;
	font-size: 15px;
	text-transform: uppercase;
	color: var(--ammoi-gray-700);
}

/* ---------- Effet "escalier" pour niveaux 2+ ---------- */
.ammoi-mobile-menu-list .sub-menu .sub-menu > li > a {
	padding-left: 52px !important;
	font-size: 12.5px;
}

.ammoi-mobile-menu-list .sub-menu .sub-menu .sub-menu > li > a {
	padding-left: 68px !important;
	font-size: 12px;
}

/* ---------- Overlay semi-transparent sur le reste du site ---------- */
.ammoi-mobile-menu-overlay {
	position: fixed;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
	z-index: 9990;
	background: rgba(0,0,0,0.35);
	backdrop-filter: blur(4px);
}

/* ---------- État ouvert du menu mobile ---------- */
/* On décale la page vers la droite et on montre le panneau */
body.ammoi-mobile-menu-open #ammoi-page {
	transform: translateX(79vw);
}

body.ammoi-mobile-menu-open .ammoi-mobile-menu {
	transform: translateX(0);
}

body.ammoi-mobile-menu-open .ammoi-mobile-menu-overlay {
	opacity: 1;
	visibility: visible;
}

/* ---------- Hover / focus : effet green ---------- */
.ammoi-mobile-menu-list li > a:hover,
.ammoi-mobile-menu-list li > a:focus-visible {
	color: var(--ammoi-green);
	background-color: rgba(0, 150, 0, 0.06);
	padding-left: 40px;
}

/* Sous-menus : léger décalage */
.ammoi-mobile-menu-list .sub-menu li > a:hover {
	padding-left: calc(36px + 6px);
}

/* ---------- Indicateur green à gauche ---------- */
.ammoi-mobile-menu-list li > a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 0;
	background-color: var(--ammoi-green);
	transform: translateY(-50%);
	transition: height .25s ease;
	border-radius: 10px;
}

/* Apparition du trait au hover */
.ammoi-mobile-menu-list li > a:hover::before,
.ammoi-mobile-menu-list li > a:focus-visible::before,
.ammoi-mobile-menu-list li.submenu-active > a::before {
	height: 60%;
}

.ammoi-mobile-menu-list li.submenu-active > a {
	font-weight: 700;
}

/* ---------- Animation apparition des items ---------- */
@keyframes ammoiFadeSlideIn {
	from {
		opacity: 0;
		transform: translateX(-15px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}
/* Items cachés avant ouverture */
.ammoi-mobile-menu-list > li {
	opacity: 0;
}
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li {
	animation: ammoiFadeSlideIn 0.35s ease forwards;
}
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li:nth-child(1)  { animation-delay: 0.05s; }
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li:nth-child(2)  { animation-delay: 0.10s; }
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li:nth-child(3)  { animation-delay: 0.15s; }
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li:nth-child(4)  { animation-delay: 0.20s; }
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li:nth-child(5)  { animation-delay: 0.25s; }
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li:nth-child(6)  { animation-delay: 0.30s; }
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li:nth-child(7)  { animation-delay: 0.35s; }
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li:nth-child(8)  { animation-delay: 0.40s; }
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li:nth-child(9)  { animation-delay: 0.45s; }
body.ammoi-mobile-menu-open .ammoi-mobile-menu-list > li:nth-child(10) { animation-delay: 0.50s; }





/*  ==========================================================
	8. STICKY STATES (NAV DESKTOP + HEADER MOBILE)
	========================================================== */

/* ---------- Animation d’apparition pour le header mobile sticky ---------- */
@keyframes ammoiSlideDown {
	0% {
		opacity: 0;
		transform: translateY(-20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ----- Desktop (>768px) : nav sticky au scroll ----- */
@media (min-width: 768px) {
	/* Nav état normal (non sticky) */
	.ammoi-main-nav {
		position: relative;
		z-index: 20;
	}

	/* Nav sticky (classe ajoutée en JS) */
	.ammoi-main-nav.is-sticky {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 999;
		box-shadow: 0 3px 8px rgba(0,0,0,0.08);
		-webkit-transition: background-color 2s;
		-moz-transition: background-color 2s;
		-o-transition: background-color 2s;
		transition: background-color 2s;
		background-color: rgba(254, 254, 253, 0.95) !important;
	}

	/* On décale le contenu seulement pendant l’état sticky (pour ne pas masquer le haut) */
	body.ammoi-desktop-sticky #ammoi-page {
		padding-top: 52px;
	}

	/* En desktop, même si la classe mobile est là, on annule le translate */
	body.ammoi-mobile-menu-open #ammoi-page {
		transform: none;
	}

	body.ammoi-mobile-menu-open .ammoi-mobile-menu {
		transform: translateX(0);
	}

	body.ammoi-mobile-menu-open .ammoi-mobile-menu-overlay {
		opacity: 0;
		visibility: hidden;
	}
}

/* ----- Mobile (<768px) : header sticky au scroll ----- */
@media (max-width: 767.98px) {
	/* Header mobile normal */
	.ammoi-mobile-header {
		position: relative;
		z-index: 20;
	}

	/* Header mobile sticky (classe ajoutée en JS) */
	.ammoi-mobile-header.is-sticky {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 999;
		box-shadow: 0 3px 8px rgba(0,0,0,0.08);
		-webkit-transition: background-color 2s;
		-moz-transition: background-color 2s;
		-o-transition: background-color 2s;
		transition: background-color 2s;
		background-color: rgba(254, 254, 253, 0.95) !important;
		animation: ammoiSlideDown 0.25s ease-out;
	}

	/* On ajoute un padding-top au contenu pour ne pas qu’il passe sous le header sticky */
	body.ammoi-mobile-sticky #ammoi-page {
		padding-top: 60px;
	}
}



/*  ==========================================================
	9. RESPONSIVE VISIBILITÉ (HEADER DESKTOP / MOBILE)
	========================================================== */

/* ---------- Mobile : on cache header + nav desktop, on affiche le header mobile ---------- */
@media (max-width: 767.98px) {
	.ammoi-header-top,
	.ammoi-main-nav {
		display: none;
	}

	.ammoi-mobile-header {
		display: block;
	}

	/* Panneau de recherche sur mobile : fixe sous le header mobile */
	.ammoi-search-panel {
		position: fixed;
		top: 56px;
		left: 0;
		right: 0;
		width: 100%;
	}

	.ammoi-search-arrow {
		top: -10px;
		right: 20px;
	}
}

/* ---------- Desktop : panneau de recherche aligné à droite du container ---------- */
@media (min-width: 768px) {
	.ammoi-search-panel {
		position: fixed;
		top: 0;
		right: calc((100vw - 1140px) / 2);
		width: 420px;
		left: auto;     
	}

	.ammoi-search-arrow {
		top: -10px;
		right: 20px;
	}

	/* Sur desktop, menu mobile & overlay sont masqués */
	.ammoi-mobile-menu,
	.ammoi-mobile-menu-overlay {
		display: none;
	}
}



/*  ==========================================================
	10. BASE / ARTICLES – TITRES DE BLOCS
	========================================================== */

/* ---------- Titre de bloc générique ---------- */
.block-title {
	position: relative;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 28px;
	margin: 0px 0px 26px 0px;
	line-height: 30px;
	margin-left: calc(var(--bs-gutter-x) * .5);
}

/* Span interne pour mettre un fond vert derrière le texte */
.block-title span {
	color: var(--ammoi-green);
	position: relative;
	padding-left: 18px;
}

.block-title span::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 70%;
	background: var(--ammoi-green);
	border-radius: 10px;
}



/*  ===============================
	CARDS D’ARTICLES – HOMEPAGE
	=============================== */

/* ---------- Carte d’article (wrapper) ---------- */
.ammoi-post-card {
	margin: 0;
}

/* Lien interne de la carte (cover link) */
.ammoi-post-card-inner {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* ---------- Image avec effet de zoom au survol ---------- */
.ammoi-post-thumb {
	overflow: hidden;
	margin-bottom: 18px;
	border-radius: 10px;
}

.ammoi-post-thumb img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform .4s ease;
}

/* Zoom de l’image au survol de la carte d’article */
.ammoi-post-card:hover .ammoi-post-thumb img {
	transform: scale(1.06);
}

/* ---------- Titre de la carte d’article ---------- */
.ammoi-post-title {
	font-size: 21px;
	line-height: 25px;
	font-family: 'Montserrat', sans-serif;
	color: var(--ammoi-gray-700) !important;
	font-weight: 500;
}

/* ---------- Méta (date, commentaires, vues) ---------- */
.ammoi-post-meta {
	font-family: 'Lato', sans-serif;
	color: var(--ammoi-gray-400);
	font-size: 12px;
	margin: 2px 0px 6px 0px;
}

/* Espacement des blocs "commentaires" et "vues" */
.ammoi-post-comments, .ammoi-post-views {
	margin-left: 14px;
}

/* Icones dans les meta */
.ammoi-post-comments i, .ammoi-post-views i {
	padding-right: 6px;
}

/* ---------- Extrait de l’article ---------- */
.ammoi-post-excerpt {
	font-family: 'Lato', sans-serif;
	font-size: 14px;
	line-height: 21px;
	color: var(--ammoi-gray-500);
}

/* ---------- RESPONSIVE CARDS HOMEPAGE ---------- */
/* Smartphone : cacher le 4e article → on en voit 3 */
@media (max-width: 767.98px) {
	.home .ammoi-post-col:nth-child(4) {
		display: none;
	}
}

/* Desktop : cacher aussi le 4e article → on en voit 3 */
@media (min-width: 992px) {
	.home .ammoi-post-col:nth-child(4) {
		display: none;
	}
}

/* Marge basse entre les cards sur mobile */
@media (max-width: 767.98px) {
	.ammoi-post-col {
		margin-bottom: 20px;
	}
}

/* ---------- Bande "Voir la suite" sous les articles d’accueil ---------- */
.ammoi-see-more-wrapper {
	margin-top: 25px;
}

.ammoi-see-more-link {
	display: block;
	padding: 10px 0 12px;
	background-color: var(--ammoi-gray-200);
	text-align: center;
	text-decoration: none;
	color: var(--ammoi-green);
	font-size: 12px;
	font-family: 'Lato', sans-serif;
	font-weight: 700;
	opacity: 1;
	transition: background-color .25s ease, color .25s ease, opacity .25s ease;
	border-radius: 10px;
}

/* Hover du lien "voir la suite" */
.ammoi-see-more-link:hover {
	background-color: var(--ammoi-gray-400);
	color: var(--ammoi-gray-700);
	opacity: 0.85;
}

/*  ==========================================================
	PAGE ARTICLE (SINGLE)
	========================================================== */

/* ---------- Fil d’Ariane ---------- */
.ammoi-breadcrumb {
	font-family: 'Lato', sans-serif;
	font-size: 12px;
	line-height: 14px;
	color: var(--ammoi-gray-400);
}

.ammoi-breadcrumb a {
	color: var(--ammoi-gray-400);
	text-decoration: none;
}

.ammoi-breadcrumb a:hover {
	text-decoration: underline;
}

/* ---------- Titre de l’article (H1) ---------- */
.ammoi-single-title {
	color: var(--ammoi-gray-700);
	margin: 10px 0px 7px 0px;
	line-height: 37px !important;
	-ms-word-wrap: break-word;
	word-wrap: break-word;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 30px;
}

/* ---------- Meta haute de l’article (date, auteur, etc.) ---------- */
.ammoi-single-meta {
	font-family: 'Lato', sans-serif;
	color: var(--ammoi-gray-400);
	font-size: 12px;
}

/* ---------- Badges de catégories (vert) ---------- */
.ammoi-cat-badge {
	display: inline-block;
	margin-bottom: 4px;
	padding: 2px 8px 3px 8px;
	background-color: var(--ammoi-green);
	color: white;
	font-size: 12px;
	text-transform: none;
	text-decoration: none;
	margin-right: 6px;
	border-radius: 6px;
}

.ammoi-cat-badge:hover {
	opacity: 0.9;
}

/* Zone meta à droite (commentaires, vues, etc.) */
.ammoi-single-meta-right span {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	color: var(--ammoi-gray-400);
}

/* Espacement entre les blocs meta à droite */
.ammoi-single-meta-right span + span {
	margin-left: 10px;
}

.ammoi-single-meta-right i {
	margin-right: 4px;
	font-size: 12px;
}

/* ---------- Image à la une sur fond gris ---------- */
.ammoi-single-thumb-wrapper {
	text-align: center;
	margin-bottom: 23px;
	background-color: var(--ammoi-gray-100);
}

/* Image à la une elle-même */
.ammoi-single-thumb {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	max-height: 410px;
}

/* Si pas d'image : bloc gris minimum */
.ammoi-single-thumb-empty {
	min-height: 410px;
}

/*  ==========================================================
	NAVIGATION PREV / NEXT EN BAS D'ARTICLE
	========================================================== */

/* ---------- Wrapper global de la navigation d’article ---------- */
.ammoi-post-nav-wrapper {
	margin-top: 40px;
	margin-bottom: 30px;
}

/* Liens de navigation */
.ammoi-post-nav-item a {
	text-decoration: none;
}

/* Libellé "Article précédent / suivant" */
.ammoi-post-nav-label {
	display: inline-flex;
	align-items: center;
	font-family: 'Lato', sans-serif;
	font-size: 12px;
	font-weight: normal;
	color: var(--ammoi-gray-700);
	text-transform: uppercase;
}

/* Icônes fleches dans le label */
.ammoi-post-nav-label i {
	font-size: 12px;
	margin: 0 4px;
}

/* Titre de l’article précédent/suivant */
.ammoi-post-nav-title {
	display: inline-block;
	font-family: 'Lato', sans-serif;
	font-size: 15px;
	color: var(--ammoi-gray-500);
	display: block;
	line-height: 21px;
}

/* Hover sur le titre */
.ammoi-post-nav-title:hover {
	color: var(--ammoi-gray-700);
}

/*  ================================
	LISTE DE COMMENTAIRES 
	================================ */

.ammoi-comments-block .block-title {
	margin-left: 0;
	font-size: 24px;
}

/* ---------- UL de la liste de commentaires ---------- */
.comment-list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

/* Item de commentaire individuel */
.ammoi-comment-item {
	padding: 15px 0;
	border-top: 1px solid var(--ammoi-gray-100);
}

/* Le premier commentaire n’a pas de bordure supérieure */
.comment-list :first-child {
	border-top: none;
}

/* Conteneur interne du commentaire */
.ammoi-comment-item .comment-body {
	display: flex;
	gap: 12px;
}

/* ---------- Partie texte du commentaire ---------- */
.ammoi-comment-main {
	flex: 1 1 auto;
}

/* Avatar du commentateur */
.ammoi-comment-avatar {
	padding-right: 10px;
}

.ammoi-comment-avatar img {
	border-radius: 10px;
}

/* ---------- En-tête du commentaire (auteur + date) ---------- */
.ammoi-comment-header {
	flex-wrap: wrap;
	gap: 6px;
	align-items: baseline;
	margin-bottom: 4px;
}

/* Nom de l’auteur du commentaire */
.ammoi-comment-author {
	font-weight: 600;
	color: var(--ammoi-gray-700);
}

/* Date du commentaire */
.ammoi-comment-date {
	font-size: 13px;
	color: var(--ammoi-gray-500);
}

/* ---------- Texte du commentaire ---------- */
.ammoi-comment-text {
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 4px;
}

/* Message "en attente de modération" */
.ammoi-comment-moderation {
	font-size: 13px;
	color: var(--ammoi-green);
}

/* ---------- Lien "Répondre" sous chaque commentaire ---------- */
.ammoi-comment-footer .comment-reply-link {
	font-size: 13px;
	color: var(--ammoi-gray-400);
	text-decoration: none;
}

.ammoi-comment-footer .comment-reply-link:hover {
	text-decoration: underline;
}

/* ---------- Enfants (réponses) légèrement indentés ---------- */
.comment-list .children {
	list-style: none;
	margin: 10px 0 0 50px;
	padding: 0;
	border-top: 1px solid var(--ammoi-gray-100);
}

/* Lien "Annuler la réponse" en haut du formulaire de réponse */
#cancel-comment-reply-link {
	position: absolute;
	right: 0px;
	top: 7px;
	color: var(--ammoi-gray-400);
	font-size: 14px;
	text-decoration: none;
}

#cancel-comment-reply-link:hover {
	text-decoration: underline;
}

/*  ==========================================================
	FORMULAIRE DE COMMENTAIRE
	========================================================== */

/* ---------- Titre du bloc de formulaire de commentaire ---------- */
.ammoi-comment-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 20px;
	font-weight: normal;
	position: relative;
	margin: 13px 0px 17px 0px;
}

/* ---------- Champs du formulaire ---------- */
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
	width: 100%;
	border: 1px solid var(--ammoi-gray-100);
	background-color: var(--ammoi-gray-50);
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	outline: none;
	border-radius: 10px;

	-webkit-transition: border linear .2s, box-shadow linear .2s;
	-moz-transition: border linear .2s,box-shadow linear .2s;
	-o-transition: border linear .2s,box-shadow linear .2s;
	transition: border linear .2s, box-shadow linear .2s;
}

/* Zone de texte du commentaire */
.comment-form-comment textarea {
	resize: vertical;
	min-height: 220px;
}

/* Marge entre les différents champs du formulaire */
.comment-form p {
	margin-bottom: 10px;
}

/* ---------- Checkbox "Enregistrer mon nom..." ---------- */
.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	font-size: 13px;
	color: var(--ammoi-gray-700);
}

.comment-form-cookies-consent input[type="checkbox"] {
	margin-right: 6px;
}

/* ---------- Bouton d’envoi vert ---------- */
.ammoi-comment-submit {
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	background-image: none;
	background: var(--ammoi-green);
	color: white;
	border: none;
	text-shadow: none;
	font-family: 'Lato', sans-serif;
	font-weight: normal;
	font-size: 14px;
	padding: 5px 12px 7px 12px !important;
	margin-bottom: 4px;
	-webkit-transition: opacity 0.4s;
	-moz-transition: opacity 0.4s;
	-o-transition: opacity 0.4s;
	transition: opacity 0.4s;
	border-radius: 999px;
}

.ammoi-comment-submit:hover {
	opacity: 0.85;
}

/* reCAPTCHA (plugin) : on laisse respirer un peu */
.comment-form .grecaptcha-badge,
.comment-form .g-recaptcha {
	margin-top: 10px;
}

/* ---------- Ajustements mobiles pour les commentaires ---------- */
@media (max-width: 767.98px) {
	.comment-list > li {
		padding: 12px 0;
	}

	.comment-list .children {
		margin-left: 30px;
	}
}



/*  ==========================================================
	11. BANNIÈRE DE PAGE (PAGE-BANNER)
	========================================================== */

.page-banner {
	position: relative;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	text-align: center;
}

/* Overlay sombre par-dessus l’image */
.page-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
}

/* Contenu (titre, breadcrumbs) dans la bannière */
.banner-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 25vh;
	position: relative;
	z-index: 2;
}

@media (max-width: 768px) {
	.banner-content {
		margin: 0 30px;
	}
}

/* Titre dans la bannière */
.page-banner h1 {
	margin: 0;
	color: white;
}

/* Positionnement du fil d’Ariane dans la bannière si utilisé */
.entry-crumbs {
	position: inherit;
}

/* Sur mobile, on désactive le background fixe pour éviter les bugs */
@media (max-width: 768px) {
	.page-banner {
		background-attachment: scroll !important;
		background-position: center center;
		background-size: cover;
	}
}



/*  ==========================================================
	12. BLOC "DEVENIR MEMBRE" – CALL TO ACTION
	========================================================== */

.new_member {
	background-image: linear-gradient(to left, rgb(0 0 0 / 50%) , rgb(0 0 0 / 50%)), url(assets/img/newmembre.jpg);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	text-align: center;
}

@media (max-width: 768px) {
	.new_member {
		background-attachment: scroll !important;
		background-position: center center;
		background-size: cover;
	}
}

.new_member a {
	color: white;
	text-decoration: none;
}

.new_member .ammoi-button-member {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;

	margin: 0 10px;
	padding: 12px 28px;
	font-size: 18px;
	color: white;
	border-radius: 999px;
	text-decoration: none;

	/* Glassmorphism */
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.35);
	box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3),
	            inset -1px -1px 0 rgba(255,255,255,0.3);

	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.new_member .ammoi-button-member:hover {
	transform: scale(1.1);
	text-decoration: none;
}

.new_member .ammoi-buttons-blur {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: inherit;

	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);

	pointer-events: none;
	z-index: 10;
}

.new_member .ammoi-buttons-text {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	z-index: 99;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 22px;
	padding: 12px 28px 9px;
}


/*  ==========================================================
	13. PAGINATION
	========================================================== */

/* Conteneur principal de la pagination */
.ammoi-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 40px;
	gap: 20px;
}

/* Liste UL contenant les boutons de pages */
.ammoi-pagination__list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0;
}

nav.ammoi-pagination ul li {
	padding-left: 5px;
	margin:0;
}

/* Style commun aux boutons (liens + numéro courant) */
.ammoi-pagination__item a,
.ammoi-pagination__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	border: 1px solid var(--ammoi-gray-100);
	border-radius: 10px;
	text-decoration: none;
	font-size: 14px;
	color: var(--ammoi-gray-700);
	box-sizing: border-box;
}

/* Style du bouton de page actif */
.ammoi-pagination__item .page-numbers.current {
	background: var(--ammoi-green);
	border-color: var(--ammoi-green);
	border-radius: 10px;
	color: white;
}

/* Supprime le ::before global appliqué aux LI du site */
.ammoi-pagination__item::before {
	content: none !important;
	margin: 0 !important;
}

/* Effet hover sur les boutons (sauf la page active) */
.ammoi-pagination__item a:not(.current):hover,
.ammoi-pagination__next a:hover {
	box-shadow: 0 0 0 1px var(--ammoi-green) inset;
}

/* Bouton "Suiv. ›" */
.ammoi-pagination__next a {
	min-width: auto;
	padding: 0 24px;
}

/* Bouton "Préc. ‹" */
.ammoi-pagination__prev a {
	min-width: auto;
	padding: 0 10px;
}

/* Cacher le bouton si WordPress ne renvoie aucun lien */
.ammoi-pagination__prev a:empty {
	display: none;
}

/* Texte "Page X sur Y" */
.ammoi-pagination__info {
	font-size: 14px;
	color: var(--ammoi-gray-700);
	white-space: nowrap;
}




/*  ==========================================================
	14. FOOTER & RÉSEAUX SOCIAUX
	========================================================== */

/* ---------- Footer principal ---------- */
footer {
	background: var(--ammoi-gray-50);
}

/* Logo dans le footer */
footer img {
	width: 100px;
	height: auto;
}

/* Liens dans le footer */
footer a {
	color: var(--ammoi-gray-700);
	text-decoration: none;
}

footer a:hover {
	color: var(--ammoi-green);
	text-decoration: underline;
}

footer .block-title {
	margin-left: 0;
}

/* ---------- Icônes de réseaux sociaux ---------- */
.social-icons {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
}

/* Style de base de chaque icône */
.social-icons .icon {
	width: 32px;
	height: 32px;
	border-radius: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-size: 20px;
	text-decoration: none;
	transition: 0.3s ease;
}

/* ---------- Backgrounds individuels par réseau ---------- */
.icon.facebook {
	background: #1877f2;
}

.icon.instagram {
	background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.icon.email {
	background: var(--ammoi-green);
}

.icon.youtube {
	background: #ff0000;
}

/* ---------- Effet hover (lift + zoom léger) ---------- */
.social-icons .icon:hover {
	transform: translateY(-4px) scale(1.05);
}

/* ---------- Sous-footer (bande tout en bas) ---------- */
.sub-footer {
	background-color: var(--ammoi-gray-700);
	color: white;
	font-size: 12px;
}



/*  ==========================================================
	15. ERREUR 404
	========================================================== */

.error-404-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 60px;
	color: var(--ammoi-gray-700);
	text-align: center;
	line-height: 60px;
	padding: 30px 0px 17px 0px;
}

.error-404-sub-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: normal;
	font-size: 24px;
	line-height: 30px;
	color: var(--ammoi-gray-500);
	text-align: center;
}

.error-404-sub-sub-title {
	text-align: center;
}

.error-404-sub-sub-title a {
	color: white;
	padding: 7px 14px 8px 14px;
	margin-left: 10px;
	background-color: var(--ammoi-green);
	text-decoration: none;
	border-radius: 999px;
}



/*  ==========================================================
	15. SWIPER CAROUSSEL
	========================================================== */

.swiper-wrapper, .wp-block-gallery.has-nested-images figure.wp-block-image img {
	border-radius: 10px;
}

.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
	width: 100%;
	position: relative;
	margin: 10px;
}

.swiper-horizontal {
	.swiper-button-next, .swiper-button-prev, ~.swiper-button-next, ~.swiper-button-prev {
		margin-top: calc(-10px - var(--swiper-navigation-size) / 2) !important;;
	}
}

.swiper-button-next, .swiper-button-prev {
	svg {
		color: rgb(255 255 255 / 50%);
	}
}

.swiper-pagination-bullet-active {
	background: var(--ammoi-green) !important;
}



/*  ==========================================================
	16. ONGLETS
	========================================================== */

/* Desktop: onglets */
.tabs-acc__nav {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

.tabs-acc__tab {
	cursor: pointer;
	padding: 10px 14px;
	background: var(--ammoi-gray-200);
	border: 0;
	border-radius: 10px;
	color: var(--ammoi-gray-500);
}

.tabs-acc__tab.is-active {
	background: var(--ammoi-green);
	color: white;
	font-weight: 700;
}

.tabs-acc__panel { display: none; }
.tabs-acc__panel.is-active { display: block; }

/* Mobile: accordéon */
.tabs-acc__accbtn {
	display: none; /* caché sur desktop */
	width: 100%;
	text-align: left;
	cursor: pointer;
	padding: 12px 14px;
	border: 0;
	background: var(--ammoi-gray-200);
	margin-top: 10px;
	border-radius: 10px;
	color: var(--ammoi-gray-500);
}

.tabs-acc__accbtn.is-active {
	background: var(--ammoi-green);
	color: white;
	font-weight: 700;
}

/* breakpoint mobile */
@media (max-width: 768px) {
	.tabs-acc__nav { display: none; }        /* pas d’onglets */
	.tabs-acc__panel { display: block; }     /* tous les panels existent */
	.tabs-acc__accbtn { display: block; }    /* boutons accordéon */
}

/* Transition onglets (fade) */
@media (min-width: 769px) {
	.tabs-acc__panel {
		display: block;          /* on laisse en block pour animer l’opacité */
		opacity: 0;
		transform: translateY(6px);
		pointer-events: none;
		height: 0;
		overflow: hidden;
		transition: opacity .2s ease, transform .2s ease;
	}

	.tabs-acc__panel.is-active {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
		height: auto;
		overflow: visible;
	}
}

/* Transition accordéon (slide) */
@media (max-width: 768px) {
	.tabs-acc__acccontent {
		display: block;          /* important pour animer max-height */
		max-height: 0;
		overflow: hidden;
		padding: 0 10px;
		opacity: 0;
		transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
	}

	.tabs-acc__acccontent.is-open {
		max-height: 2500px;      /* suffisamment grand pour tes tableaux */
		opacity: 1;
		padding: 10px;
	}
}

.tabs-acc__acccontent table {
	width: 100%;
	background: var(--ammoi-gray-200);
	border-radius: 10px;
}

.tabs-acc__acccontent table th {
	padding: 20px;
}
.tabs-acc__acccontent table tr {
	border-bottom: solid 1px white;
}



/*  ==========================================================
	17. AUTRE CATEGORIES
	========================================================== */

blockquote.menu-pages-categorie {
    text-align: center;
    background-color: var(--ammoi-gray-100);
}
.menu-pages-categorie h3::before {
	content: none;
}
.learn-more {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 420px;
	height: auto;
	cursor: pointer;
	text-decoration: none;
	background: transparent;
	padding: 0;
	font-family: inherit;
}

/* Cercle */
.learn-more .circle {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	position: relative;
	display: block;
	width: 2rem;
	height: 2rem;
	background: var(--ammoi-green);
	border-radius: 999px;
}

/* Icône */
.learn-more .circle .icon {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
}

/* Flèche */
.learn-more .circle .icon.arrow {
  left: 0.75rem;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 1rem;
  height: 0.125rem;
  background: transparent;
}

.learn-more .circle .icon.arrow::before {
  content: "";
  position: absolute;
  top: -0.25rem;
  right: 0.5rem;             
  width: 0.55rem;
  height: 0.55rem;
  border-top: 0.125rem solid white;
  border-right: 0.125rem solid white;
  transform: rotate(45deg);
}

.learn-more.is-active .circle .icon.arrow::before {
  border-top: 0.125rem solid var(--ammoi-gray-700);;
  border-right: 0.125rem solid var(--ammoi-gray-700);;
}

/* Texte */
.learn-more .button-text {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.35rem 0;
	margin-left: 50px;
	color: var(--ammoi-gray-500);
	font-weight: 600;
	line-height: 1.6;
	text-align: left;
}

/* Hover */
.learn-more.is-active {
	pointer-events: none;
}

.learn-more.is-active .circle {
	width: 100%;
	background: var(--ammoi-gray-400);
}

.learn-more.is-active .button-text {
	color: var(--ammoi-gray-700);
	font-weight: 700;
}

.learn-more:hover .circle,
.learn-more:focus-visible .circle,
.learn-more:active .circle {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .learn-more:hover .circle .icon.arrow,
  .learn-more:focus-visible .circle .icon.arrow,
  .learn-more:active .circle .icon.arrow {
    transform: translateX(1rem);
  }
}

.learn-more:hover .button-text,
.learn-more:focus-visible .button-text,
.learn-more:active .button-text {
  color: white;
}

.learn-more.is-active .icon.arrow {
  transform: translateX(.5rem);
}



