/*
Theme Name:   Astra Child – Rotary Aix Connection
Theme URI:    https://rotary-aix-connection.fr/
Description:  Thème enfant Astra du Rotary Club Aix-en-Provence Connection.
Author:       Altercloud Conseil
Author URI:   https://altercloud-conseil.com/
Template:     astra
Version: 2.19.2
Requires PHP: 8.1
Text Domain:  astra-child
*/

/* Variables charte Rotary International (Brand Center) */
:root {
	--rotary-royal: #17458F;
	--rotary-gold: #F7A81B;
	--rotary-azure: #0067C8;
	--rotary-sky: #00A2E0;
	--rotary-charcoal: #54565A;
	--rotary-silver: #D0CFCD;
}

/* Header collant (remplace le sticky header d'Astra Pro)
   Desktop : la barre du haut (réseaux sociaux, 51 px) défile, la barre principale reste.
   Mobile : toute la barre mobile reste en haut. */
#masthead {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
@media (min-width: 922px) {
	#masthead { top: calc(-1 * var(--rac-above-h, 51px)); }
	.admin-bar #masthead { top: calc(32px - var(--rac-above-h, 51px)); }
}
@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar #masthead { top: 46px; }
}

/* Pages construites avec l'éditeur de blocs (hors Elementor) : base charte Rotary
   en attendant la refonte. Police web Open Sans (repli Arial), titres Royal Blue,
   texte courant Charcoal (contraste AA). */
body:not(.elementor-page) .entry-title,
body:not(.elementor-page) .entry-content h2,
body:not(.elementor-page) .entry-content h3 {
	text-transform: none;
	font-family: "Open Sans", Arial, sans-serif;
	color: var(--rotary-royal);
	line-height: 1.25;
}
body:not(.elementor-page) .entry-title { font-size: 2.25rem; }
body:not(.elementor-page) .entry-content h2 { font-size: 1.75rem; margin-top: 2em; }
body:not(.elementor-page) .entry-content {
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--rotary-charcoal);
}
body:not(.elementor-page) .entry-content .has-large-font-size { font-size: 1.5rem; line-height: 1.45; }
body:not(.elementor-page) .entry-content li { margin-bottom: .5em; }
body:not(.elementor-page) .entry-content .wp-block-button__link { min-height: 44px; font-weight: 600; }

/* En-tête : tailles agrandies (menu 17 px, bouton 14 px) sans retour à la ligne */
@media (min-width: 922px) {
	.ast-primary-header-bar .site-primary-header-wrap { gap: 24px; }
	.main-header-menu { flex-wrap: nowrap; }
	.main-header-menu > .menu-item > .menu-link {
		white-space: nowrap;
		padding-left: .6em;
		padding-right: .6em;
	}
	.ast-header-button-1 .ast-custom-button,
	.ast-custom-button {
		white-space: nowrap;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
	}
	.site-header-primary-section-right { flex-shrink: 0; }
}

/* Écrans d'ordinateur étroits : on resserre pour garder le menu sur une ligne */
@media (min-width: 922px) and (max-width: 1279px) {
	.main-header-menu > .menu-item > .menu-link { font-size: 15px; padding-left: .45em; padding-right: .45em; }
	#masthead .custom-logo-link img { max-width: 170px; }
	.ast-custom-button { font-size: 13px; padding-left: 14px; padding-right: 14px; }
}

/* Accès à l'espace membres (2.1.3) : bouton dans la barre du haut (desktop), entrée de menu mobile uniquement */
.club-acces-membres{display:inline-flex;align-items:center;gap:6px;color:#fff!important;font-weight:600;font-size:.9rem;line-height:1;text-decoration:none!important;padding:7px 12px;border:1px solid rgba(255,255,255,.7);border-radius:4px;margin-right:14px;white-space:nowrap}
.club-acces-membres:hover,.club-acces-membres:focus{background:var(--rotary-gold,#F7A81B);border-color:var(--rotary-gold,#F7A81B);color:#1a1a1a!important}
.club-acces-membres:focus{outline:2px solid #fff;outline-offset:2px}
.club-acces-membres svg{width:14px;height:14px;fill:currentColor;flex:0 0 auto}
@media (min-width:922px){.main-header-menu .menu-item.club-menu-mobile{display:none!important}}

/* ---------------------------------------------------------------------------
   Pied de page du club (2.9.4) : bandeau Royal Blue, 3 colonnes, barre basse
   --------------------------------------------------------------------------- */
.site-footer { background: var(--rotary-royal, #17458F); color: #dbe4f3; }
.site-footer a { color: #fff; }
.site-footer a:hover, .site-footer a:focus { color: var(--rotary-gold, #F7A81B); }
.site-above-footer-wrap { padding: 54px 0 44px; }
.club-pied { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; text-align: left; align-items: start; }
.club-pied-col h3 { color: #fff; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 16px; padding-bottom: 10px; position: relative; }
.club-pied-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; background: var(--rotary-gold, #F7A81B); border-radius: 2px; }
.club-pied-col p { color: #c9d6ec; font-size: .95rem; line-height: 1.6; margin: 0 0 10px; }
.club-pied-col ul { list-style: none; margin: 0; padding: 0; }
.club-pied-col li { margin-bottom: 9px; font-size: .95rem; line-height: 1.5; color: #c9d6ec; }
.club-pied-col li a { text-decoration: none; }
.club-pied-col li a:hover { text-decoration: underline; }
.club-pied-logo { max-width: 200px; height: auto; margin-bottom: 14px; }
.club-pied-devise { color: var(--rotary-gold, #F7A81B) !important; font-weight: 700; font-size: 1.05rem !important; letter-spacing: .02em; margin-bottom: 10px !important; }
.club-pied-contact li { margin-bottom: 12px; }
.club-pied-bouton { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; margin-top: 4px; border: 2px solid var(--rotary-gold, #F7A81B); border-radius: 6px; color: var(--rotary-gold, #F7A81B) !important; font-weight: 700; text-decoration: none !important; }
.club-pied-bouton:hover, .club-pied-bouton:focus { background: var(--rotary-gold, #F7A81B); color: #15213c !important; }

/* Barre basse : liens légaux + réseaux sociaux */
.site-primary-footer-wrap { border-top: 1px solid rgba(255, 255, 255, .18); padding: 16px 0 !important; }
.site-primary-footer-wrap .footer-nav-wrap .ast-builder-menu-1 .menu-item > a { color: #c9d6ec; font-size: .9rem; padding: 6px 14px 6px 0; }
.site-primary-footer-wrap .footer-nav-wrap .menu-item > a:hover { color: var(--rotary-gold, #F7A81B); }
.site-footer .ast-builder-social-element { color: #fff; }
.site-footer .ast-builder-social-element:hover { color: var(--rotary-gold, #F7A81B); }
.site-below-footer-wrap { border-top: 1px solid rgba(255, 255, 255, .12); padding: 12px 0 !important; }
.site-below-footer-wrap .ast-footer-copyright { color: #9fb3d6; font-size: .82rem; }
@media (max-width: 921px) {
	.club-pied { grid-template-columns: 1fr 1fr; gap: 32px; }
	.club-pied-ident { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.club-pied { grid-template-columns: 1fr; gap: 28px; }
	.site-above-footer-wrap { padding: 40px 0 32px; }
	/* Sur téléphone, la rangée Astra ne pose aucune gouttière : le contenu touchait le bord. */
	.site-footer .site-above-footer-wrap,
	.site-footer .site-primary-footer-wrap,
	.site-footer .site-below-footer-wrap { padding-left: 20px !important; padding-right: 20px !important; }
	.site-footer .site-below-footer-wrap .ast-builder-grid-row { gap: 10px; }
}

/* Les trois rangées du pied de page Astra ont leur propre fond : on les rend transparentes
   pour laisser apparaître le bleu du club, et on force les couleurs de texte en conséquence. */
.site-footer .site-above-footer-wrap,
.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap { background: transparent !important; background-color: transparent !important; }
.site-footer .ast-builder-menu-1 .menu-item > a,
.site-footer .ast-builder-menu-1 .menu-link,
.site-footer .footer-nav-wrap a { color: #dbe4f3 !important; }
.site-footer .ast-builder-menu-1 .menu-item > a:hover,
.site-footer .footer-nav-wrap a:hover { color: var(--rotary-gold, #F7A81B) !important; }
.site-footer .ast-footer-copyright, .site-footer .ast-footer-copyright * { color: #9fb3d6 !important; }
.site-footer .ast-builder-social-element { color: #fff !important; }
.site-footer .ast-builder-social-element:hover { color: var(--rotary-gold, #F7A81B) !important; }
.site-footer .ast-builder-social-element svg { fill: currentColor; }

/* La rangée du haut reste sur une colonne : on laisse le bloc du club occuper toute la largeur. */
.site-above-footer-wrap .ast-builder-footer-grid-columns { grid-template-columns: 1fr !important; }
.site-above-footer-wrap .site-footer-section,
.site-above-footer-wrap .footer-widget-area,
.site-above-footer-wrap .ast-header-html,
.site-above-footer-wrap .ast-builder-html-element { width: 100%; max-width: none; }

/* 2.19.0 – Crédit Altercloud Conseil (ligne de copyright du pied de page) */
.club-credit { white-space: nowrap; }
.club-credit a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; vertical-align: middle; }
.club-credit img { width: 22px; height: auto; display: inline-block; opacity: .85; transition: opacity .15s ease; }
.club-credit a:hover img, .club-credit a:focus img { opacity: 1; }
.site-footer .ast-footer-copyright .club-credit a:hover,
.site-footer .ast-footer-copyright .club-credit a:focus,
.site-footer .ast-footer-copyright .club-credit a:hover span,
.site-footer .ast-footer-copyright .club-credit a:focus span { color: #fff !important; text-decoration: underline; }
.club-credit a:focus { outline: 2px solid var(--rotary-gold, #F7A81B); outline-offset: 2px; border-radius: 2px; }
.club-credit-sep { margin: 0 4px; }
@media (max-width: 600px) {
	.club-credit-sep { display: none; }
	.site-footer .ast-footer-copyright .club-credit { display: block; margin-top: 6px; }
}
/* Filet de sécurité : bandeau si la ligne de copyright d'Astra est désactivée */
.club-credit-bandeau { background: #0f3470; color: #9fb3d6; font-size: .8rem; text-align: center; padding: 8px 16px; }
.club-credit-bandeau a, .club-credit-bandeau a span { color: #c9d6ec; }
.club-credit-bandeau a:hover span, .club-credit-bandeau a:focus span { color: #fff; text-decoration: underline; }
