/* ==========================================================================
   Le Malraux — Custom CSS Overrides
   Fichier chargé APRÈS main.css pour les personnalisations.
   ========================================================================== */

/* ──────────────────────────────────────────────
 * Self-hosted fonts (RGPD)
 * Télécharger les fonts depuis google-webfonts-helper :
 * https://gwfh.mranftl.com/fonts
 * Les placer dans assets/fonts/
 * ────────────────────────────────────────────── */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-v40-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-v40-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-v24-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-v24-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-v51-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-v51-latin-700.woff2") format("woff2");
}

/* ──────────────────────────────────────────────
 * Color overrides — Le Malraux
 * Adapter les couleurs accent au branding du resto.
 * ────────────────────────────────────────────── */

/*
:root {
  --accent-color: #c9a55c;
}
*/

/* ──────────────────────────────────────────────
 * Topbar — Horaires
 * ────────────────────────────────────────────── */
.lm-topbar-horaires {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.lm-topbar-horaires i {
  margin-right: 0.3rem;
}

/* ──────────────────────────────────────────────
 * Footer — Horaires list
 * ────────────────────────────────────────────── */
.lm-footer-horaires {
  list-style: none;
  padding: 0;
}

.lm-footer-horaires li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.lm-footer-horaires li strong {
  color: var(--heading-color);
}

.lm-fermeture-note {
  margin-top: 0.5rem;
  color: var(--accent-color);
  font-style: italic;
}

/* Footer CTA buttons */
.footer .cta-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer .cta-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.footer .cta-btn i {
  margin-right: 0.3rem;
}

/* ──────────────────────────────────────────────
 * Contact Form 7 — Style matching template forms
 * ────────────────────────────────────────────── */
.wpcf7 .form-control,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 input[type="time"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.wpcf7 select {
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--default-color);
  padding: 10px 15px;
  border-radius: 0;
  font-size: 14px;
  width: 100%;
}

.wpcf7 .form-control:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: none;
}

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
  background: var(--accent-color);
  border: 0;
  padding: 14px 60px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
  opacity: 0.85;
}

/* CF7 messages */
.wpcf7-response-output {
  border-radius: 4px !important;
  margin: 1rem 0 !important;
  padding: 10px 15px !important;
}

.wpcf7-mail-sent-ok {
  border-color: #28a745 !important;
  color: #28a745;
}

.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 0.85rem;
}

/* ──────────────────────────────────────────────
 * About content — wysiwyg cleanup
 * ────────────────────────────────────────────── */
.lm-about-content ul {
  list-style: none;
  padding: 0;
}

.lm-about-content ul li {
  padding: 5px 0 5px 28px;
  position: relative;
}

.lm-about-content ul li::before {
  content: "\f26a"; /* bi-check2-all */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--accent-color);
}

/* ──────────────────────────────────────────────
 * Testimonials stars
 * ────────────────────────────────────────────── */
.testimonials .stars {
  margin-bottom: 10px;
}

.testimonials .stars i {
  color: #ffc107;
  font-size: 1rem;
  margin-right: 2px;
}

/* ──────────────────────────────────────────────
 * Performance — lazy-loaded images smooth
 * ────────────────────────────────────────────── */
img[loading="lazy"] {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ──────────────────────────────────────────────
 * Mobile fixes
 * ────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Fix iOS background-attachment */
  .hero,
  .events {
    background-attachment: scroll !important;
  }

  /* Formulaire réservation pleine largeur */
  .book-a-table .form-control {
    font-size: 16px; /* Empêche le zoom iOS */
  }
}

/* ──────────────────────────────────────────────
 * WordPress admin bar compensation
 * ────────────────────────────────────────────── */
body.admin-bar .header.fixed-top {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .header.fixed-top {
    top: 46px;
  }
}

/* ──────────────────────────────────────────────
 * Bouton Réserver — nav sticky (tous breakpoints)
 * Spécificité (1,2,1) > (0,2,1) de main.css
 * ────────────────────────────────────────────── */
#navmenu ul li a.cta-btn,
#navmenu ul li a.cta-btn:focus {
  background: var(--accent-color) !important;
  color: #fff !important;
  padding: 8px 24px !important;
  border-radius: 50px !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  display: inline-block;
  transition: background 0.3s;
  border: 2px solid var(--accent-color) !important;
}

#navmenu ul li a.cta-btn:hover {
  background: #b8923f !important;
  border-color: #b8923f !important;
  color: #fff !important;
}

/* ──────────────────────────────────────────────
 * Bouton Réserver — section Événements (tous breakpoints)
 * ────────────────────────────────────────────── */
.events .cta-btn,
.events .event-item a.cta-btn {
  display: inline-block;
  background: var(--accent-color);
  color: #fff !important;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(205, 164, 94, 0.3);
  margin-top: 1rem;
}

.events .cta-btn:hover,
.events .event-item a.cta-btn:hover {
  background: #b8923f;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(205, 164, 94, 0.45);
}

.events .swiper-slide .content {
  overflow: visible;
}

/* ──────────────────────────────────────────────
 * Logo header
 * ────────────────────────────────────────────── */
.header .branding {
  min-height: 90px !important;
  padding: 5px 0 !important;
}

.header .logo .lm-logo {
  height: 80px !important;
  max-height: none !important;
  width: auto !important;
  margin-right: 12px;
}

.header .logo .sitename {
  font-size: 2rem !important;
}

/* ──────────────────────────────────────────────
 * Hero — surtitre SEO
 * ────────────────────────────────────────────── */
.hero .lm-hero-h1 {
  font-size: 1.1rem;
  color: var(--accent-color);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: var(--nav-font);
}

/* ──────────────────────────────────────────────
 * Switcher de langue Polylang
 * ────────────────────────────────────────────── */
.lm-lang-switcher {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0 0 0 15px;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 15px;
}

.lm-lang-switcher li a {
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-family: var(--nav-font);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  transition: all 0.3s;
}

.lm-lang-switcher li a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Fix images menu — forcer cercle même si image pas carrée */
.menu .menu-img {
  width: 65px;
  height: 65px;
  object-fit: cover;
}

/* Google Maps — placeholder jusqu'au clic */
.lm-map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.lm-map-placeholder:hover {
  background: #3a362e;
}
.lm-map-placeholder span {
  color: var(--accent-color);
  font-family: var(--heading-font);
  font-size: 1.1rem;
}

.book-a-table .lm-resa-form button[type="submit"] {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 14px 50px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

.book-a-table .lm-resa-form button[type="submit"]:hover {
  background: #b8923f;
}

.lm-nav-lang {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.lm-nav-lang .lm-lang-switcher {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.lm-nav-lang .lm-lang-switcher li {
  list-style: none;
}

.lm-nav-lang .lm-lang-switcher li a {
  color: rgba(255,255,255,0.6) !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 4px 10px !important;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.3s;
}

.lm-nav-lang .lm-lang-switcher li a:hover {
  color: var(--accent-color) !important;
  border-color: var(--accent-color);
}

/* Icônes SVG dans les info-items contact */
.info-item .bi {
  margin-right: 12px;
  min-width: 1em;
}

/* Footer horaires alignement */
.lm-footer-horaires li {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
}
.lm-footer-horaires li strong {
  margin-bottom: 0.2rem;
}
