/*
Theme Name: Astra Child Alexander
Template: astra
Version: 1.3.0
Description: Charte d'alexander-casino.info (bleu pétrole et orange du logo Alexander Casino).
*/

:root {
	--aci-navy: #0e3442;
	--aci-navy-2: #164a5b;
	--aci-orange: #e8833a;
	--aci-orange-dark: #c96a24;
	--aci-sand: #f7f3ec;
	--aci-line: #dde3e6;
	--aci-text: #1f2a30;
}

body {
	color: var(--aci-text);
}

/* En-tête sombre : le logo a un fond bleu pétrole */
.main-header-bar,
.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
	background-color: var(--aci-navy);
	border-bottom: 0;
}
.ast-site-title-wrap {
	display: none;
}
.custom-logo {
	max-width: 190px;
	height: auto;
}
/* Liens du menu en blanc. Sélecteurs plus précis que ceux d'Astra (.ast-builder-menu-1 …), sinon ignorés */
.site-header .ast-builder-menu-1 .main-header-menu .menu-item > .menu-link,
.site-header .ast-builder-menu-1 .main-header-menu .menu-item > .ast-menu-toggle {
	color: #fff;
	font-weight: 600;
}
.site-header .ast-builder-menu-1 .main-header-menu .menu-item:hover > .menu-link,
.site-header .ast-builder-menu-1 .main-header-menu .menu-item.current-menu-item > .menu-link {
	color: var(--aci-orange);
}

/* Mobile : icône du menu en blanc, menu déroulant sur fond sombre */
.site-header [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal {
	color: #fff;
}
.site-header .ast-mobile-menu-trigger-minimal .ast-mobile-svg,
.site-header [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
	fill: #fff;
}
.site-header .ast-mobile-header-content,
.site-header .ast-builder-menu-mobile .main-navigation .main-header-menu,
.site-header .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item {
	background-color: var(--aci-navy);
}
.site-header .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link {
	color: #fff;
	font-weight: 600;
	background-color: var(--aci-navy);
	border-color: var(--aci-navy-2);
}
.site-header .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item.current-menu-item > .menu-link,
.site-header .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item:hover > .menu-link {
	color: var(--aci-orange);
	background-color: var(--aci-navy-2);
}

/* Titres */
.entry-title,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--aci-navy);
}
.entry-content h2 {
	border-left: 4px solid var(--aci-orange);
	padding-left: 12px;
	margin-top: 2em;
}

/* Images de contenu */
.entry-content .wp-block-image img {
	border-radius: 12px;
}

/* Tableaux */
.entry-content .wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}
.entry-content .wp-block-table thead {
	border-bottom: 0;
}
.entry-content .wp-block-table th {
	background: var(--aci-navy);
	color: #fff;
	border-color: var(--aci-navy);
	text-align: left;
}
.entry-content .wp-block-table td {
	border-color: var(--aci-line);
}
.entry-content .wp-block-table tbody tr:nth-child(even) {
	background: #f3f6f7;
}

/* Bouton d'appel à l'action */
.aci-cta .wp-block-button__link {
	background: var(--aci-orange);
	color: #fff;
	border-radius: 999px;
	padding: 0.9em 2.2em;
	font-weight: 700;
	box-shadow: 0 6px 18px rgba(232, 131, 58, 0.35);
}
.aci-cta .wp-block-button__link:hover,
.aci-cta .wp-block-button__link:focus {
	background: var(--aci-orange-dark);
	color: #fff;
}

/* Grilles de jeux : vignettes portrait, légende sous l'image */
.wp-block-gallery.aci-jeux .wp-block-image img {
	aspect-ratio: 530 / 700;
	object-fit: cover;
	border-radius: 10px;
}
.wp-block-gallery.aci-jeux .wp-block-image figcaption {
	position: static;
	background: none;
	color: var(--aci-text);
	text-align: center;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.4em 0 0;
	max-height: none;
	text-shadow: none;
}
.wp-block-gallery.aci-jeux .wp-block-image figcaption::before {
	display: none;
}
@media (max-width: 600px) {
	.wp-block-gallery.aci-jeux.columns-4 .wp-block-image {
		width: calc(50% - 0.5em) !important;
	}
}

/* Pied de page sombre (sélecteurs plus précis que le constructeur de pied de page d'Astra) */
.site-footer,
.site-footer .site-below-footer-wrap[data-section],
.site-footer .site-primary-footer-wrap[data-section] {
	background-color: var(--aci-navy);
	border-top: 0;
}
.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
	color: #cfdbe0;
}
.site-footer .ast-footer-copyright a {
	color: #fff;
	text-decoration: underline;
}
.site-footer .ast-footer-copyright a:hover {
	color: var(--aci-orange);
}

/* Images en portrait (vignettes de jeux, captures mobiles) : centrées et de taille raisonnable */
.entry-content .wp-block-image.aci-portrait img {
	max-width: 300px;
	height: auto;
}
.entry-content .wp-block-image.aci-grand-portrait img {
	max-width: 520px;
	height: auto;
}
.entry-content .wp-block-image.aci-portrait,
.entry-content .wp-block-image.aci-grand-portrait {
	text-align: center;
}

/* Respiration entre l'en-tête et le titre de page */
.ast-plain-container .site-content #primary {
	padding-top: 28px;
}

/* Mobile : le bouton « retour en haut » ne doit pas masquer le texte du pied de page */
@media (max-width: 921px) {
	.site-footer .site-below-footer-wrap[data-section] {
		padding-bottom: 64px;
	}
}

/* Galerie de visuels carrés (niveaux de fidélité) : pas de recadrage portrait */
.wp-block-gallery.aci-carres .wp-block-image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
}
