/*
 Theme Name:   Ashoka (GeneratePress Child)
 Theme URI:    https://restaurant-ashoka.fr
 Description:  Thème enfant GeneratePress — header et footer sur mesure du Restaurant Ashoka.
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  ashoka
*/

/* =========================================================================
   Tokens
   ====================================================================== */
:root {
	--ash-red:        #8E1418;
	--ash-red-dark:   #5E0C0F;
	--ash-saffron:    #F2A900;
	--ash-cream:      #FBF5EC;
	--ash-ink:        #2A1A14;
	--ash-on-red:     #FFF7EA;
	--ash-on-red-2:   #F6DCCB;
	--ash-line:       rgba(255, 247, 234, .2);
	--ash-font-title: 'Rozha One', Georgia, serif;
	--ash-font-body:  'DM Sans', system-ui, -apple-system, sans-serif;
	--ash-container:  1280px;
	--ash-gutter:     32px;
}

html.ash-no-scroll { overflow: hidden; }

.ash-container {
	max-width: var(--ash-container);
	margin: 0 auto;
	padding-left: var(--ash-gutter);
	padding-right: var(--ash-gutter);
	box-sizing: border-box;
}

.ash-icon { flex: none; display: block; }

/* =========================================================================
   Boutons
   ====================================================================== */
.ash-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	font-family: var(--ash-font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color .15s, color .15s, border-color .15s;
}
.ash-btn--saffron,
.ash-btn--saffron:visited { background: var(--ash-saffron); color: var(--ash-ink); }
.ash-btn--saffron:hover,
.ash-btn--saffron:focus-visible { background: #FFC233; color: var(--ash-ink); }

.ash-btn--outline,
.ash-btn--outline:visited { border: 1.5px solid rgba(255, 247, 234, .6); color: var(--ash-on-red); }
.ash-btn--outline:hover,
.ash-btn--outline:focus-visible { border-color: var(--ash-saffron); color: var(--ash-saffron); }

.ash-btn--block { display: flex; width: 100%; height: 52px; font-size: 17px; }

.ash-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ash-on-red);
	cursor: pointer;
	text-decoration: none;
}
.ash-icon-btn:hover,
.ash-icon-btn:focus-visible { color: var(--ash-saffron); background: rgba(255, 247, 234, .08); }

.ash-site-header a:focus-visible,
.ash-site-header button:focus-visible,
.ash-footer a:focus-visible {
	outline: 2px solid var(--ash-saffron);
	outline-offset: 3px;
}

/* =========================================================================
   Logo
   ====================================================================== */
.ash-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--ash-on-red);
	text-decoration: none;
}
.ash-brand:hover { color: var(--ash-on-red); }
.ash-brand__mark { width: 56px; height: 56px; color: var(--ash-saffron); flex: none; }
.ash-brand__logo { display: block; height: 64px; width: auto; }
.ash-brand__name {
	font-family: var(--ash-font-title);
	font-size: 28px;
	line-height: 1;
	font-weight: 400;
}

/* =========================================================================
   Header
   ====================================================================== */
.ash-site-header { font-family: var(--ash-font-body); color: var(--ash-on-red); }

/* Bandeau infos */
.ash-topbar { background: var(--ash-red-dark); font-size: 14px; }
.ash-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	min-height: 40px;
}
.ash-topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.ash-topbar__item .ash-icon { color: var(--ash-saffron); }
.ash-topbar__links { margin-left: auto; display: inline-flex; align-items: center; gap: 24px; }
.ash-topbar a { color: var(--ash-on-red); text-decoration: none; }
.ash-topbar a:hover { color: var(--ash-saffron); }
.ash-topbar__link { text-decoration: underline !important; text-underline-offset: 3px; }

/* Barre principale */
.ash-header { background: var(--ash-red); }
.ash-header__inner {
	display: flex;
	align-items: center;
	gap: 16px 40px;
	min-height: 100px;
}

.ash-nav { margin-left: auto; }
.ash-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ash-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 12px 14px;
	color: var(--ash-on-red);
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	box-sizing: border-box;
}
.ash-nav__list a:hover { color: var(--ash-saffron); }
.ash-nav__list .current-menu-item > a,
.ash-nav__list .current-menu-ancestor > a,
.ash-nav__list .current_page_item > a {
	box-shadow: inset 0 -3px 0 var(--ash-saffron);
}

.ash-header__actions { display: flex; align-items: center; gap: 12px; }

.ash-cart { border: 1.5px solid rgba(255, 247, 234, .5); }
.ash-cart__count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--ash-saffron);
	color: var(--ash-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-sizing: border-box;
}
.ash-cart__count[hidden] { display: none; }

.ash-header__tel,
.ash-burger { display: none; }

/* Menu mobile (plein écran) */
.ash-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	background: var(--ash-red);
	color: var(--ash-on-red);
	overflow-y: auto;
}
.ash-mobile-menu[hidden] { display: none; }

.ash-mobile-menu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	padding: 0 12px 0 16px;
	border-bottom: 1px solid var(--ash-line);
}
.ash-mobile-menu__nav { padding: 16px 24px; }
.ash-mobile-menu__list { margin: 0; padding: 0; list-style: none; }
.ash-mobile-menu__list li + li { border-top: 1px solid rgba(255, 247, 234, .15); }
.ash-mobile-menu__list a {
	display: block;
	padding: 12px 0;
	font-family: var(--ash-font-title);
	font-size: 32px;
	line-height: 1.2;
	color: var(--ash-on-red);
	text-decoration: none;
}
.ash-mobile-menu__list .current-menu-item > a,
.ash-mobile-menu__list a:hover { color: var(--ash-saffron); }

.ash-mobile-menu__foot {
	margin-top: auto;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ash-mobile-menu__addr {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	color: var(--ash-on-red-2);
}

/* =========================================================================
   Footer
   ====================================================================== */
.ash-footer {
	font-family: var(--ash-font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ash-on-red);
}
.ash-footer__frise img { display: block; width: 100%; height: auto; }

.ash-footer__main { background: var(--ash-red); }
.ash-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 40px;
}
.ash-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ash-footer__brand .ash-brand__mark { width: 48px; height: 48px; }
.ash-footer__tagline { margin: 0; color: var(--ash-on-red-2); }
.ash-footer__call { display: none; }

.ash-footer__title {
	margin: 0 0 12px;
	font-family: var(--ash-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ash-saffron);
}
.ash-footer__col p { margin: 0; }
.ash-footer a { color: var(--ash-on-red); }
.ash-footer__col p a { text-decoration: none; }
.ash-footer a:hover { color: var(--ash-saffron); }
.ash-footer__link { display: inline-block; margin-top: 10px; text-underline-offset: 3px; }
.ash-footer .ash-btn--saffron { color: var(--ash-ink); }

.ash-footer__bottom { border-top: 1px solid var(--ash-line); }
.ash-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 14px;
	color: var(--ash-on-red-2);
}
.ash-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.ash-footer__legal a { color: var(--ash-on-red-2); }

/* =========================================================================
   Tablette / mobile
   ====================================================================== */
@media (max-width: 1024px) {
	:root { --ash-gutter: 16px; }

	.ash-topbar,
	.ash-nav,
	.ash-header__cta { display: none; }

	.ash-header__inner { min-height: 72px; gap: 4px; padding-right: 12px; }
	.ash-header__actions { margin-left: auto; gap: 0; }
	.ash-header__tel,
	.ash-burger { display: inline-flex; width: 44px; height: 44px; }
	.ash-cart { width: 44px; height: 44px; border: 0; }
	.ash-cart__count { top: 2px; right: 2px; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; }

	.ash-brand { gap: 10px; }
	.ash-brand__mark { width: 40px; height: 40px; }
	.ash-brand__logo { height: 48px; }
	.ash-site-header .ash-brand__name,
	.ash-mobile-menu .ash-brand__name { font-size: 20px; }
}

@media (max-width: 782px) {
	.admin-bar .ash-mobile-menu { top: 46px; }
}
@media (min-width: 783px) {
	.admin-bar .ash-mobile-menu { top: 32px; }
}

@media (max-width: 640px) {
	.ash-footer__grid { grid-template-columns: 1fr; gap: 0; padding-top: 40px; padding-bottom: 0; }

	.ash-footer__brand { align-items: stretch; text-align: center; padding-bottom: 32px; }
	.ash-footer__brand .ash-brand { flex-direction: column; gap: 12px; align-self: center; }
	.ash-footer__brand .ash-brand__name { font-size: 30px; }
	.ash-footer__brand .ash-btn { display: flex; height: 52px; }

	.ash-footer__col { padding: 20px 0; border-top: 1px solid var(--ash-line); }
	.ash-footer__title { margin-bottom: 8px; }

	.ash-footer__bottom-inner { flex-direction: column-reverse; align-items: center; text-align: center; }
	.ash-footer__legal { justify-content: center; gap: 8px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.ash-btn { transition: none; }
}
