/* ============================================================
   RESTAURANTE LORYNA — css/style.css
   ============================================================ */

/* ---- Variables ---- */
:root {
  --rouge:      #C0392B;
  --rouge-dark: #922b21;
  --jaune:      #F39C12;
  --jaune-dark: #d68910;
  --creme:      #FDF6EC;
  --creme-dark: #f5e9d6;
  --brun:       #6B3A2A;
  --brun-clair: #8B5A42;
  --blanc:      #FFFFFF;
  --texte:      #2c1810;
  --texte-clair:#6B3A2A;
  --ombre:      0 2px 16px rgba(107,58,42,.13);
  --rayon:      10px;
  --transition: .3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--texte);
  background: var(--creme);
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.8rem;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-rouge {
  background: var(--rouge);
  color: var(--blanc);
  border-color: var(--rouge);
}
.btn-rouge:hover {
  background: var(--rouge-dark);
  border-color: var(--rouge-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,.35);
}
.btn-creme {
  background: var(--creme);
  color: var(--rouge);
  border-color: var(--creme);
}
.btn-creme:hover {
  background: var(--blanc);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--blanc);
  border-color: var(--blanc);
}
.btn-outline:hover {
  background: var(--blanc);
  color: var(--rouge);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--creme);
  box-shadow: 0 2px 12px rgba(107,58,42,.12);
  height: 72px;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--rouge);
  letter-spacing: .08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--rouge-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  color: var(--brun);
  padding: .4rem .85rem;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--rouge);
  background: rgba(192,57,43,.08);
}

.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: .55rem 1.4rem; font-size: .88rem; }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--brun);
  cursor: pointer;
  padding: .3rem .5rem;
  border-radius: 6px;
  margin-left: auto;
  transition: color var(--transition);
}
.hamburger:hover { color: var(--rouge); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 2rem 1.5rem;
  background: var(--creme);
  border-top: 1px solid var(--creme-dark);
  box-shadow: 0 6px 20px rgba(107,58,42,.1);
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 999;
}
.nav-mobile a {
  display: block;
  padding: .65rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--brun);
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--rouge);
  background: rgba(192,57,43,.08);
}
.nav-mobile .btn { margin-top: .5rem; text-align: center; justify-content: center; }
.nav-mobile.open { display: flex; }

/* ============================================================
   PAGE WRAPPER (navbar offset)
   ============================================================ */
.page-content { padding-top: 72px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--blanc);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(192,57,43,.62) 0%, rgba(107,58,42,.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 2rem;
}
.hero-content .eyebrow {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--jaune);
  margin-bottom: .75rem;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: .9;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero sobre (pages internes) */
.hero-sobre {
  min-height: 38vh;
  background:
    linear-gradient(135deg, rgba(107,58,42,.92) 0%, rgba(192,57,43,.88) 60%, rgba(107,58,42,.95) 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 18px,
      rgba(255,255,255,.025) 18px,
      rgba(255,255,255,.025) 19px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-sobre .hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-sobre .hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.hero-sobre .hero-content .eyebrow { text-align: center; }

/* Wrapper h1 + ghost — le ghost se centre exactement sur le h1 */
.h1-ghost-wrap {
  position: relative;
  display: block;
}

/* Ghost / outlined word — centré sur le h1 via le wrapper */
.hero-ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  white-space: nowrap;
}

/* Homepage : remonte le ghost pour aligner sur le h1, pas la description */
.hero:not(.hero-sobre) .hero-ghost {
  top: 40%;
}
.hero-ghost span {
  font-family: 'Playfair Display', serif;
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 900;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.13);
  text-stroke: 1.5px rgba(255,255,255,.13);
  white-space: nowrap;
  user-select: none;
  text-transform: uppercase;
  line-height: 1;
  display: block;
}

/* Révélation gauche → droite sur le ghost (arrière-plan) uniquement */
.hero-ghost span {
  clip-path: inset(0 100% 0 0);
  animation: hero-title-reveal 1s cubic-bezier(.22,1,.36,1) 0.65s both;
}
@keyframes hero-title-reveal {
  to { clip-path: inset(0 0% 0 0); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: .5rem;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--brun);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--texte-clair);
  max-width: 600px;
  margin-bottom: 3rem;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================
   BANNIÈRE ACTUALITÉ
   ============================================================ */
.banner-actu {
  background: var(--jaune);
  color: var(--brun);
  text-align: center;
  padding: .9rem 2rem;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
}
.banner-actu a { color: var(--rouge); text-decoration: underline; }

/* ============================================================
   GRILLE SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(107,58,42,.18);
}
.service-card .icon {
  width: 64px;
  height: 64px;
  background: rgba(192,57,43,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  color: var(--rouge);
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .icon {
  background: var(--rouge);
  color: var(--blanc);
}
.service-card h3 {
  font-size: 1.2rem;
  color: var(--brun);
  margin-bottom: .6rem;
}
.service-card p {
  font-size: .95rem;
  color: var(--texte-clair);
}

/* ============================================================
   ÉQUIPE
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.team-card {
  text-align: center;
}
.team-card .team-photo {
  width: 220px;
  height: 280px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 1.5rem;
  box-shadow: var(--ombre);
  border: 4px solid var(--creme-dark);
  transition: transform var(--transition);
}
.team-card:hover .team-photo { transform: scale(1.03); }
.team-card h3 {
  font-size: 1.3rem;
  color: var(--brun);
  margin-bottom: .3rem;
}
.team-card .role {
  color: var(--rouge);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ============================================================
   SECTION CTA
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-dark) 100%);
  color: var(--blanc);
  text-align: center;
  padding: 5rem 2rem;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: .9;
}

/* ============================================================
   HORAIRES
   ============================================================ */
.horaires-section { background: var(--creme-dark); }
.horaires-table {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-collapse: collapse;
}
.horaires-table tr { border-bottom: 1px solid rgba(107,58,42,.12); }
.horaires-table tr:last-child { border-bottom: none; }
.horaires-table td {
  padding: .8rem 1rem;
  font-size: 1rem;
}
.horaires-table td:first-child { font-weight: 700; color: var(--brun); }
.horaires-table td:last-child { color: var(--texte-clair); text-align: right; }
.horaires-table tr.fermé td { color: #aaa; }

/* ============================================================
   MENU PHOTOS (carte.html)
   ============================================================ */
.menu-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}
.menu-photo-item {
  position: relative;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
}
.menu-photo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(107,58,42,.22);
}
.menu-photo-item img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--rayon);
}

/* CSS-only lightbox */
.lightbox-target { display: none; }
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-target:target ~ .lightbox-overlay { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--blanc);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

/* ============================================================
   VINS (cartevino.html)
   ============================================================ */
.vins-section { background: var(--blanc); }
.vins-section:nth-child(even) { background: var(--creme); }

.vins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}
.vin-card {
  background: var(--creme);
  border-radius: var(--rayon);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(107,58,42,.08);
}
.vin-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(107,58,42,.18);
}
.vin-card img {
  height: 160px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.15));
}
.vin-card .vin-nom {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--brun);
  font-weight: 700;
  margin-bottom: .25rem;
}
.vin-card .vin-appellation {
  font-size: .8rem;
  color: var(--rouge);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ============================================================
   GALERIE (galerie.html)
   ============================================================ */
.galerie-grid {
  columns: 3 280px;
  column-gap: 1.2rem;
}
.galerie-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.galerie-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(107,58,42,.22);
}
.galerie-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   CONTACT (contact.html)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-form { background: var(--blanc); border-radius: var(--rayon); padding: 2.5rem; box-shadow: var(--ombre); }
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--brun);
  margin-bottom: .4rem;
  letter-spacing: .03em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--creme-dark);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--texte);
  background: var(--creme);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--rouge); background: var(--blanc); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--texte-clair); margin-bottom: 1.2rem; font-style: italic; }

.contact-infos h3 {
  font-size: 1.4rem;
  color: var(--brun);
  margin-bottom: 1.5rem;
}
.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.info-item .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(192,57,43,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rouge);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.info-item .info-text strong { display: block; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--rouge); margin-bottom: .2rem; }
.info-item .info-text span { color: var(--brun); font-size: .97rem; }

.map-wrapper {
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  height: 360px;
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--brun);
  color: var(--creme);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--jaune);
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
.footer-brand p {
  font-size: .95rem;
  opacity: .7;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--jaune);
  margin-bottom: 1rem;
}
.footer-col li, .footer-col p {
  font-size: .92rem;
  opacity: .8;
  margin-bottom: .5rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.footer-col li i, .footer-col p i {
  color: var(--jaune);
  margin-top: .15rem;
  flex-shrink: 0;
  width: 16px;
}
.footer-col a:hover { color: var(--jaune); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(253,246,236,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  opacity: .6;
}

/* ============================================================
   DIVIDER DÉCORATIF
   ============================================================ */
.divider {
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--rouge);
  font-size: 1.4rem;
  opacity: .5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }

  .hero { min-height: 70vh; }
  section { padding: 3.5rem 1.25rem; }

  .ambiance-strip { height: 220px !important; }

  .team-grid { grid-template-columns: 1fr; max-width: 360px; }
  .vins-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .galerie-grid { columns: 2 180px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .galerie-grid { columns: 1; }
  .menu-photos-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .vins-grid { grid-template-columns: repeat(2, 1fr); }
}
