/* ============================================================
   Portugril — feuille de styles
   - Sidebar à gauche
   - Hover navigation : changement de couleur (Portugal)
   - Page carte : fond noir, texte blanc
   - Responsive : 16:9, tablette, mobile
   ============================================================ */

:root {
  --pt-green: #006341;
  --pt-green-dark: #004d33;
  --pt-red: #c8102e;
  --pt-red-dark: #9b0c24;
  --pt-yellow: #ffcc29;

  --ink: #1c1c1c;
  --ink-soft: #4a4a4a;
  --paper: #fbfaf6;
  --paper-warm: #f3eedf;
  --line: #e6e1d2;

  --dark-bg: #0d0d0d;
  --dark-bg-alt: #161616;
  --dark-line: #2a2a2a;

  --sidebar-w: 280px;
  --sidebar-w-lg: 320px;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
  --radius: 6px;

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --tr: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; }

.wrap { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Bandeau Portugal en haut ---------- */
.pt-banner {
  display: flex;
  width: 100%;
  height: 6px;
}
.pt-banner__green  { flex: 0 0 45%; background: var(--pt-green); }
.pt-banner__yellow { flex: 0 0 10%; background: var(--pt-yellow); }
.pt-banner__red    { flex: 0 0 45%; background: var(--pt-red); }
.pt-banner span { display: block; height: 100%; }
.pt-banner--top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 40px 28px 28px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
  transition: transform 0.35s ease;
}

.sidebar__brand {
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.5px;
  color: var(--pt-green);
  line-height: 1;
  transition: color var(--tr);
}
.brand__tag {
  margin-top: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--pt-red);
}
.sidebar__brand:hover .brand__name { color: var(--pt-red); }

.sidebar__nav ul { display: flex; flex-direction: column; gap: 4px; }
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  border-left: 3px solid transparent;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
}
.sidebar__bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
  transition: background var(--tr), transform var(--tr);
}
.sidebar__label { flex: 1; }

/* Hover : change de couleur — rotation Portugal */
.sidebar__link:hover {
  background: var(--pt-green);
  color: #fff;
  border-left-color: var(--pt-yellow);
  transform: translateX(2px);
}
.sidebar__link:hover .sidebar__bullet {
  background: var(--pt-yellow);
  transform: scale(1.4);
}

/* Couleur de hover différente par rubrique pour rappeler les 3 couleurs */
.sidebar__nav li:nth-child(1) .sidebar__link:hover { background: var(--pt-green); border-left-color: var(--pt-yellow); }
.sidebar__nav li:nth-child(2) .sidebar__link:hover { background: var(--pt-red);   border-left-color: var(--pt-yellow); }
.sidebar__nav li:nth-child(3) .sidebar__link:hover { background: var(--ink);      border-left-color: var(--pt-red); }
.sidebar__nav li:nth-child(4) .sidebar__link:hover { background: var(--pt-green); border-left-color: var(--pt-red); }
.sidebar__nav li:nth-child(5) .sidebar__link:hover { background: var(--pt-red);   border-left-color: var(--pt-green); }

/* État actif */
.sidebar__link.is-active {
  background: var(--paper-warm);
  color: var(--pt-green);
  border-left-color: var(--pt-red);
  font-weight: 600;
}
.sidebar__link.is-active .sidebar__bullet {
  background: var(--pt-red);
}
.sidebar__link.is-active:hover {
  color: #fff;
}

.sidebar__contact {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.sidebar__phone {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: var(--paper-warm);
  border-left: 3px solid var(--pt-red);
  border-radius: 4px;
  margin-bottom: 16px;
  transition: background var(--tr), color var(--tr);
}
.sidebar__phone span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pt-red);
  font-weight: 600;
}
.sidebar__phone strong {
  font-size: 1.05rem;
  margin-top: 2px;
}
.sidebar__phone:hover {
  background: var(--pt-red);
  color: #fff;
}
.sidebar__phone:hover span { color: var(--pt-yellow); }

.sidebar__addr {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.sidebar__flag {
  display: flex;
  height: 4px;
  margin-top: 20px;
  border-radius: 2px;
  overflow: hidden;
}
.sidebar__flag-green  { flex: 1; background: var(--pt-green); }
.sidebar__flag-yellow { flex: 0 0 30%; background: var(--pt-yellow); }
.sidebar__flag-red    { flex: 1; background: var(--pt-red); }

/* ---------- Bouton mobile ---------- */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 70;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow);
}
.sidebar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--tr), opacity var(--tr);
}
.sidebar-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-toggle.is-active span:nth-child(2) { opacity: 0; }
.sidebar-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MAIN
   ============================================================ */
.main {
  margin-left: var(--sidebar-w);
  padding-top: 6px; /* place pour le bandeau Portugal */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius);
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
  border: 2px solid transparent;
}
.btn--primary { background: var(--pt-red); color: #fff; }
.btn--primary:hover { background: var(--pt-red-dark); transform: translateY(-2px); }
.btn--ghost {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__image, .hero__overlay { position: absolute; inset: 0; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.6));
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 8%;
  max-width: 760px;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.78rem;
  margin: 0 0 18px;
  color: var(--pt-yellow);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin: 0 0 20px;
  line-height: 1;
  letter-spacing: -1px;
}
.hero__lead {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 0 32px;
  opacity: 0.95;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--paper-warm); }

.page-head {
  padding: 80px 0 40px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin: 0 0 14px;
  line-height: 1.1;
}
.page-head .lead {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--pt-red);
  font-weight: 600;
  margin: 0 0 12px;
}
.eyebrow--light { color: var(--pt-yellow); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0 0 20px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 30px;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 60px; align-items: center; }
.grid--2 { grid-template-columns: 1fr 1fr; }

/* ---------- Cartes infos accueil ---------- */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.info-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--tr), box-shadow var(--tr);
}
.info-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s;
}
.info-card > div { padding: 20px 24px; }
.info-card h3 { color: var(--pt-green); margin-bottom: 6px; transition: color var(--tr); }
.info-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.info-card:hover h3 { color: var(--pt-red); }
.info-card:hover img { transform: scale(1.05); }

/* ---------- Features ---------- */
.features { margin: 28px 0; display: grid; gap: 14px; }
.features li {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background: #fff;
  border-left: 3px solid var(--pt-green);
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.features li strong { color: var(--pt-green); }
.features li span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 180px;
  gap: 12px;
}
.gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery__img--tall { grid-row: span 2; }

/* ---------- Ambiance strip ---------- */
.ambiance-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
}
.ambiance-strip img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.4s, transform 0.4s;
}
.ambiance-strip img:hover { filter: none; transform: scale(1.03); }

/* ============================================================
   PAGE CARTE — fond noir
   ============================================================ */
body.page--dark { background: var(--dark-bg); color: #fff; }
body.page--dark .sidebar { background: #fff; } /* sidebar reste claire */

.page-head--dark {
  background: var(--dark-bg-alt);
  border-bottom: 1px solid var(--dark-line);
  color: #fff;
}
.page-head--dark .lead { color: rgba(255,255,255,0.75); }
.page-head--dark h1 { color: #fff; }

.section--dark {
  background: var(--dark-bg);
  color: #fff;
}

.lead--light { color: rgba(255,255,255,0.78); }

/* ---------- Bloc menu (carte) ---------- */
.menu-block {
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid var(--dark-line);
}
.menu-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 30px; }
.menu-block__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.menu-block__head h2 {
  color: var(--pt-yellow);
  margin: 0;
}
.menu-block__head p {
  margin: 0;
  color: var(--pt-red);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 60px;
}
.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--dark-line);
  transition: padding var(--tr), background var(--tr);
}
.menu-item:hover {
  padding-left: 12px;
  padding-right: 12px;
  background: rgba(255, 204, 41, 0.05);
  border-bottom-color: var(--pt-yellow);
}
.menu-item__info { flex: 1; }
.menu-item__info h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: #fff;
  font-weight: 600;
}
.menu-item__info p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.menu-item__price {
  font-weight: 600;
  color: var(--pt-yellow);
  white-space: nowrap;
  font-size: 1.05rem;
}
.menu-item--highlight .menu-item__info h4 { color: var(--pt-yellow); }
.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--pt-yellow);
  border-radius: 999px;
  vertical-align: middle;
}

/* ---------- Horaires ---------- */
.hours-card {
  background: #fff;
  padding: 36px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--pt-red);
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.hours li:last-child { border-bottom: 0; }
.hours__day { font-weight: 600; color: var(--pt-green); }
.hours__times { color: var(--ink-soft); display: inline-flex; gap: 8px; flex-wrap: wrap; }
.hours__sep { color: var(--pt-red); }
.hours-card__cta { margin-top: 24px; }

.hours-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Contact ---------- */
.address {
  font-style: normal;
  font-size: 1.05rem;
  margin: 20px 0 28px;
  line-height: 1.7;
}
.address strong { color: var(--pt-green); font-size: 1.1rem; }

.contact-block { display: grid; gap: 14px; margin-bottom: 32px; }
.contact-line {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background: var(--paper-warm);
  border-left: 3px solid var(--pt-red);
  border-radius: 4px;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr);
}
.contact-line:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  background: var(--pt-green);
  color: #fff;
}
.contact-line:hover .contact-line__label { color: var(--pt-yellow); }
.contact-line__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pt-red);
  font-weight: 600;
  transition: color var(--tr);
}
.contact-line__value {
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 2px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row--center { justify-content: center; margin-top: 60px; }

.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
}
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: #d8d4c4;
  margin-top: auto;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding: 60px 8% 30px;
  width: 100%;
}
.site-footer p { margin: 4px 0; font-size: 0.92rem; }
.site-footer a { color: var(--pt-yellow); transition: color var(--tr); }
.site-footer a:hover { color: #fff; }
.brand--footer { display: block; margin-bottom: 14px; }
.brand--footer .brand__name { color: #fff; }
.site-footer__legal {
  text-align: right;
  font-size: 0.82rem;
  color: #8c8675;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Très grand 16:9 (1440 / 1920) : sidebar plus large --- */
@media (min-width: 1600px) {
  :root { --sidebar-w: var(--sidebar-w-lg); }
  .wrap { width: min(1280px, 90%); }
  .hero__content { padding: 100px 10%; max-width: 880px; }
}

/* --- Desktop 16:9 standard (1280-1599) --- */
@media (min-width: 1280px) and (max-width: 1599px) {
  .wrap { width: min(1080px, 90%); }
}

/* --- Tablette paysage / petit desktop --- */
@media (max-width: 1100px) {
  .grid--2 { grid-template-columns: 1fr; gap: 40px; }
  .ambiance-strip { grid-template-columns: 1fr 1fr; }
  .ambiance-strip img { height: 220px; }
  .menu { grid-template-columns: 1fr; gap: 0; }
  .card-row { grid-template-columns: 1fr; }
}

/* --- Tablette portrait + mobile : sidebar masquée par défaut --- */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-100%);
    width: min(320px, 88vw);
    box-shadow: var(--shadow);
  }
  .sidebar.is-open { transform: translateX(0); }

  .sidebar-toggle { display: flex; }

  .main { margin-left: 0; }

  body.sidebar-open { overflow: hidden; }
  body.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 35;
  }

  .hero { min-height: 70vh; }
  .hero__content { padding: 70px 6%; }

  .section { padding: 60px 0; }
  .page-head { padding: 70px 0 30px; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 6% 24px;
  }
  .site-footer__legal { text-align: left; }
}

/* --- Mobile --- */
@media (max-width: 560px) {
  .hero h1 { font-size: 2.6rem; }
  .hero__lead { font-size: 1rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { text-align: center; }

  .hours-card { padding: 24px 20px; }
  .hours li { flex-direction: column; gap: 4px; padding: 12px 0; }

  .menu-block__head { gap: 8px; }
  .menu-block__head h2 { font-size: 1.6rem; }
  .menu-item { flex-direction: column; gap: 6px; }
  .menu-item__price { align-self: flex-start; }

  .gallery { grid-auto-rows: 140px; }

  .ambiance-strip img { height: 180px; }

  .cta-row .btn { width: 100%; text-align: center; }
}
