/*
Theme Name: Abraham Trembley
Theme URI: https://abrahamtembley.residence-colladon.ch
Author: Qubitech
Description: Thème sur mesure de l'Espace culturel Abraham Trembley, Genève.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: abraham-trembley
*/

html { scroll-behavior: smooth; }
body { margin: 0; position: relative; -webkit-font-smoothing: antialiased; }
a:focus-visible, button:focus-visible { outline: 3px solid #AD4A14; outline-offset: 3px; }
.at-hero a:focus-visible, .at-header a:focus-visible, .at-card a:focus-visible, .at-access a:focus-visible { outline-color: #FFF9EE; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Trame commune */
.at-section { background: #FFF9EE; }
.at-wrap { box-sizing: border-box; max-width: 1360px; margin: 0 auto; padding: clamp(56px, 7.5vw, 108px) clamp(20px, 3vw, 40px) 0; }
.at-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #5E4A5B; }
.at-star { flex: none; fill: currentColor; }
.at-eyebrow .at-star { color: #301A2D; }
.at-h2 { margin: 0; font-family: 'Poppins', sans-serif; font-weight: 400; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -.035em; color: inherit; }

/* En-tête */
.at-site-header { position: relative; z-index: 10; box-sizing: border-box; max-width: 1360px; margin: 16px auto 0; padding: 0 clamp(12px, 2vw, 24px); }
.has-at-hero .at-site-header { position: absolute; top: 0; left: 0; right: 0; }
.at-header { gap: 16px 32px; padding: 28px clamp(24px, 3.5vw, 44px); color: #FFF9EE; border-radius: 12px; background: #301A2D; }
.has-at-hero .at-header { background: transparent; }
.at-header__logo { display: block; line-height: 0; }
.at-header__logo img { display: block; width: 198px; height: auto; }
.at-nav { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.at-nav .wp-block-navigation__container { gap: 12px 36px; }
.at-nav .wp-block-navigation-item__content { padding: 10px 0; text-decoration: none; }
.at-nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 6px; }
.has-at-hero .at-nav .wp-block-navigation-item:first-child .wp-block-navigation-item__content { text-decoration: underline; text-underline-offset: 6px; }

/* Pages de texte */
body:not(.has-at-hero) .at-page { box-sizing: border-box; max-width: 840px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) 20px; font-size: 18px; line-height: 1.7; }
body:not(.has-at-hero) .at-page p, body:not(.has-at-hero) .at-page ul { margin: 0 0 1.1em; }
body:not(.has-at-hero) .at-page h1, body:not(.has-at-hero) .at-page h2 { margin: 1.2em 0 .5em; line-height: 1.1; letter-spacing: -.03em; }
body:not(.has-at-hero) .at-page h1 { margin-top: 0; font-size: clamp(36px, 5.2vw, 64px); }

/* Pied de page */
.at-footer { background: #F2E8E4; }
.at-footer__inner { box-sizing: border-box; max-width: 1360px; margin: 0 auto; padding: clamp(56px, 7vw, 100px) clamp(20px, 3vw, 40px) 40px; }
.at-footer a { text-decoration: none; }
.at-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.at-footer__cols { display: flex; flex-wrap: wrap; gap: 48px 64px; justify-content: space-between; padding-bottom: 48px; border-bottom: 1px solid rgba(48,26,45,.2); }
.at-footer__brand { flex: 1 1 300px; max-width: 420px; }
.at-footer__brand p { margin: 0; font-size: 16px; line-height: 1.65; color: #5E4A5B; }
.at-footer__brand .at-footer__logo { margin: 0 0 20px; line-height: 0; }
.at-footer__logo img { width: 216px; height: auto; }
.at-footer__col { flex: 1 1 200px; }
.at-footer__col h3 { margin: 0 0 16px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5E4A5B; }
.at-footer__col p { margin: 0; font-size: 16px; line-height: 1.8; }
.at-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 28px; font-size: 14px; color: #5E4A5B; }
.at-footer__bottom p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Menu mobile */
.at-nav .wp-block-navigation__responsive-container-open { display: none; }
@media (max-width: 599px) {
	.at-header { padding: 20px; flex-wrap: nowrap; }
	.at-header__logo img { width: 164px; }
	.at-nav .wp-block-navigation__responsive-container-open { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; }
	.at-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
}
.at-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 0; background: #301A2D; color: #FFF9EE; }
.at-nav .is-menu-open .wp-block-navigation__responsive-close { width: 100%; max-width: none; }
.at-nav .is-menu-open .wp-block-navigation__responsive-dialog { position: relative; display: flex; flex-direction: column; min-height: 100%; margin: 0; padding: 92px 28px 28px; box-sizing: border-box; }
.at-nav .is-menu-open .wp-block-navigation__responsive-dialog::before { content: ""; position: absolute; top: 26px; left: 28px; width: 164px; height: 38px; background: url(assets/logo-blanc.svg) left center / contain no-repeat; }
.at-nav .is-menu-open .wp-block-navigation__responsive-container-close { position: absolute; top: 22px; right: 18px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #FFF9EE; }
.at-nav .is-menu-open .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.at-nav .is-menu-open .wp-block-navigation__responsive-container-content { flex: 1; padding: 0; align-items: stretch; }
.at-nav .is-menu-open .wp-block-navigation__container { flex: 1; align-items: stretch; gap: 0; width: 100%; }
.at-nav .is-menu-open .wp-block-navigation-item { display: block; width: 100%; border-bottom: 1px solid rgba(255,249,238,.2); }
.at-nav .is-menu-open .wp-block-navigation-item:first-child { border-top: 1px solid rgba(255,249,238,.2); }
.at-nav .is-menu-open .wp-block-navigation-item__content { display: flex; align-items: center; min-height: 64px; padding: 0; font-family: 'Poppins', sans-serif; font-size: 28px; letter-spacing: -.025em; text-transform: none; text-decoration: none; }
.at-nav .is-menu-open .wp-block-navigation-item:first-child .wp-block-navigation-item__content { text-decoration: none; }
