/*
Theme Name: Aurelie Restaurant
Theme URI: https://datasweb.fr/
Author: Datasweb
Author URI: https://datasweb.fr/
Description: Theme WordPress sur mesure pour le site d'Aurelie - V1 (header, accueil, footer).
Version: 1.0.0
Text Domain: aurelie
*/

:root {
  --aurelie-header-height: 104px;
  --aurelie-green: #0f3427;
  --aurelie-green-dark: #0a281f;
  --aurelie-rust: #a43d25;
  --aurelie-cream: #f6f2e9;
  --aurelie-ink: #1d211f;
  --aurelie-muted: #6e6c66;
  --aurelie-border: rgba(26, 47, 38, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x:hidden; }
body { overflow-x:hidden; margin: 0; padding-top: var(--aurelie-header-height); color: var(--aurelie-ink); background: #fff; font-family: Arial, Helvetica, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-header {
  background: rgba(255,255,255,.98);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* Laisse la barre d'administration WordPress visible lorsque l'utilisateur est connecté. */
body.admin-bar .site-header { top: 32px; }

/* Evite que les ancres soient masquees derriere l'entete fixe. */
html { scroll-padding-top: calc(var(--aurelie-header-height) + 16px); }
/*
 * Header desktop en deux niveaux, comme sur la maquette :
 * - le logo occupe toute la hauteur a gauche ;
 * - langue + boutons de reservation sont places sur la ligne haute ;
 * - le menu principal dispose seul de toute la ligne basse.
 * Cette disposition evite que les elements du menu passent sur deux lignes.
 */
.site-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 104px;
  padding: 6px 28px 7px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  grid-template-rows: 45px 46px;
  column-gap: 24px;
  row-gap: 0;
  align-items: center;
}
.site-branding { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.site-branding img { display: block; width: 255px; max-height: 82px; object-fit: contain; object-position: left center; }
.site-nav { margin-right: auto; grid-column: 2; grid-row: 2; min-width: 0; align-self: end; }
.site-nav ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; justify-content: flex-end; gap: 28px; flex-wrap: nowrap; }
.site-nav li { flex: 0 0 auto; }
.site-nav a { display: block; text-decoration: none; font-size: 14px; color: #2c2e2d; transition: color .2s ease, border-color .2s ease; white-space: nowrap; padding: 0 0 8px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--aurelie-rust); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_ancestor > a {
  color: var(--aurelie-rust);
  border-bottom-color: var(--aurelie-rust);
}
.site-header__actions { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; display: flex; align-items: center; gap: 10px; }
.site-lang { white-space: nowrap; font-size: 12px; font-weight: 700; }
.site-lang a { text-decoration: none; opacity: .75; }
.site-lang a:first-child { opacity: 1; }
.site-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; border-radius: 6px; color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1.1; }
.site-cta--table { background: var(--aurelie-green); }
.site-cta--gite { background: var(--aurelie-rust); }
.site-cta__icon { font-size: 18px; }
.menu-toggle { display: none; border: 0; background: var(--aurelie-green); color: #fff; width: 44px; height: 44px; border-radius: 5px; font-size: 22px; cursor: pointer; }

.site-footer { background: linear-gradient(180deg, #0e2f24 0%, #082219 100%); color: #fff; }
.site-footer__top { max-width: 1440px; margin: 0 auto; padding: 36px 34px 30px; display: grid; grid-template-columns: .9fr 1.1fr 1.7fr; gap: 36px; align-items: stretch; }
.site-footer h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; margin: 0 0 18px; font-size: 21px; }
.footer-contact p, .footer-hours p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; }
.footer-contact a { color: #fff; }
.footer-contact__row { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact__ico { width: 24px; flex: 0 0 24px; font-size: 20px; line-height: 1.2; }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; }
.footer-hours__grid { display: grid; grid-template-columns: 90px 1fr; gap: 4px 16px; font-size: 14px; line-height: 1.45; }
.footer-map { min-height: 245px; background: rgba(255,255,255,.08); overflow: hidden; }
.footer-map iframe { width: 100%; height: 100%; min-height: 245px; display: block; border: 0; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.18); }
.site-footer__bottom-inner { max-width: 1440px; margin: 0 auto; padding: 22px 34px; display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center; }
.footer-logo img { width: 220px; max-height: 80px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.footer-nav { text-align: right; }
.footer-nav ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.footer-nav a { color: #fff; text-decoration: none; font-size: 12px; }
.footer-legal { text-align: right; font-size: 11px; opacity: .8; }
.footer-legal a { color: #fff; text-decoration: none; margin-left: 14px; }

@media (max-width: 1180px) {
  .site-header__inner { grid-template-columns: 220px minmax(0, 1fr); column-gap: 14px; padding-left: 18px; padding-right: 18px; }
  .site-branding img { width: 210px; }
  .site-nav ul { gap: 17px; }
  .site-nav a { font-size: 12px; }
  .site-cta { padding: 0 11px; font-size: 12px; }
}
@media (max-width: 980px) {
  :root { --aurelie-header-height: 78px; }
  .site-header__inner { grid-template-columns: 1fr auto; grid-template-rows: auto; min-height: 78px; padding-top: 10px; padding-bottom: 10px; }
  .site-branding { grid-column: 1; grid-row: 1; }
  .site-branding img { width: 205px; max-height: 62px; }
  .menu-toggle { display: inline-block; grid-column: 2; grid-row: 1; justify-self: end; }
  .site-header__actions { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; align-self: auto; display: none; padding: 10px 0 12px; }
  .site-header.is-open .site-header__actions { display: flex; flex-wrap: wrap; }
  .site-nav { grid-column: 1 / -1; grid-row: auto; display: none; order: 3; }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { display: block; padding: 10px 0 18px; }
  .site-nav li { border-top: 1px solid rgba(0,0,0,.08); }
  .site-nav a { display: block; padding: 12px 4px; font-size: 14px; white-space: normal; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (max-width: 700px) {
  .site-header__inner { padding: 10px 14px; }
  .site-footer__top { grid-template-columns: 1fr; padding: 28px 20px; }
  .footer-map { grid-column: auto; }
  .site-footer__bottom-inner { grid-template-columns: 1fr; padding: 20px; }
  .footer-nav, .footer-legal { text-align: left; }
  .footer-nav ul { justify-content: flex-start; }
}

/* GTranslate : selecteur de langue dans les actions du header. */
.site-nav .menu-item-gtranslate { display: none !important; }
.site-header__actions .site-lang--gtranslate { display: flex; align-items: center; flex: 0 0 auto; white-space: nowrap; font-size: 12px; line-height: 1.2; }
.site-lang--gtranslate .gtranslate_wrapper, .site-lang--gtranslate .switcher, .site-lang--gtranslate .gt_switcher { display: inline-flex; align-items: center; }
.site-lang--gtranslate a.glink { display: inline-block; padding: 4px 5px; color: #272b29; text-decoration: none; font-weight: 600; opacity: .78; border: 0; }
.site-lang--gtranslate a.glink:hover, .site-lang--gtranslate a.glink.gt-current-lang { color: var(--aurelie-rust); opacity: 1; }
.site-lang--gtranslate a.glink + a.glink::before { content: '|'; display: inline-block; color: #a4a09a; margin-right: 9px; font-weight: 400; }
.site-lang--gtranslate img { vertical-align: middle; }
@media (max-width: 980px) {
  .site-header.is-open .site-header__actions .site-lang--gtranslate { width: 100%; padding-bottom: 5px; }
}
