/* Le Rital — lerital.ch */

:root {
  --italy-green: #009246;
  --italy-white: #ffffff;
  --italy-red: #ce2b37;
  --charcoal: #1a1a1a;
  --charcoal-soft: #2a2624;
  --warm-bg: #f7f2eb;
  --warm-card: #fffdf9;
  --text: #2c2825;
  --text-muted: #6b635c;
  --gold: #c9a227;
  --shadow: 0 8px 32px rgba(26, 26, 26, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --font: 'Source Sans 3', system-ui, sans-serif;
  --font-script: 'Dancing Script', cursive;
  --transition: 0.3s ease;
  --drawer-w: min(320px, 88vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--warm-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--italy-green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--italy-red);
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.script {
  font-family: var(--font-script);
  font-weight: 700;
}

.accent {
  color: var(--italy-red);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--italy-green);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--italy-green) 33%, var(--italy-white) 33% 66%, var(--italy-red) 66%) 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--italy-white);
}

.brand:hover {
  color: var(--italy-white);
}

.logo-mark {
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  display: block;
  font-family: var(--font-script);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-tagline {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-desktop a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1002;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--italy-white);
  line-height: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-check:checked ~ .nav-toggle .icon-open {
  display: none;
}

.nav-check:checked ~ .nav-toggle .icon-close {
  display: block;
}

/* Mobile drawer — slides from right */
.nav-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}

.nav-check:checked ~ .nav-panel {
  display: block;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  cursor: pointer;
  background: rgba(10, 10, 10, 0.55);
  opacity: 0;
  animation: fadeIn 0.35s ease forwards;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  width: var(--drawer-w);
  height: 100vh;
  height: 100dvh;
  background: var(--charcoal);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  animation: slideInRight 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--header-h);
}

.nav-drawer-title {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--italy-white);
}

.nav-mobile {
  list-style: none;
  padding: 1.25rem 1.5rem 2rem;
  flex: 1;
}

.nav-mobile li + li {
  margin-top: 0.25rem;
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  color: var(--italy-white);
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-mobile a:hover {
  color: var(--gold);
}

.nav-drawer-flag {
  display: flex;
  height: 4px;
  margin-top: auto;
}

.flag-green { background: var(--italy-green); flex: 1; }
.flag-white { background: var(--italy-white); flex: 1; }
.flag-red { background: var(--italy-red); flex: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--italy-green) 0%, #007a3a 100%);
  color: var(--italy-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 146, 70, 0.35);
  color: var(--italy-white);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--italy-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--italy-white);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
  border-bottom: none !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('le-rital-home-header.jpg') center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26, 26, 26, 0.82) 0%, rgba(26, 26, 26, 0.45) 55%, rgba(26, 26, 26, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 640px;
  color: var(--italy-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-flag {
  border-radius: 2px;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 .script {
  font-size: 1.15em;
  color: var(--gold);
}

.hero-lead {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Presentation */
.presentation {
  padding: 5rem 0;
  background: var(--warm-card);
}

.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.presentation-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.presentation-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.presentation-list {
  margin-top: 1.5rem;
  list-style: none;
}

.presentation-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.presentation-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--italy-green);
}

.presentation-visual {
  position: relative;
}

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

.presentation-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--charcoal);
  color: var(--italy-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 240px;
}

.presentation-card-number {
  font-family: var(--font-script);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.presentation-card-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Menu */
.carte {
  padding: 5rem 0;
  background: var(--warm-bg);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.menu-card {
  padding: 2rem 1.75rem;
  background: var(--warm-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.menu-card--pizza { border-top: 4px solid var(--italy-red); }
.menu-card--pasta { border-top: 4px solid var(--italy-green); }
.menu-card--dessert { border-top: 4px solid var(--gold); }

.menu-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.menu-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.menu-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sauce-list,
.dessert-list {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  color: var(--text);
}

.sauce-list li,
.dessert-list li {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Événements */
.evenements {
  padding: 5rem 0;
  background: var(--charcoal);
  color: var(--italy-white);
}

.evenements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.evenements .section-label {
  color: var(--gold);
}

.evenements h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.evenements p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.evenements-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-item {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

.detail-value {
  font-weight: 600;
}

.evenements-visual img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Galerie */
.galerie {
  padding: 5rem 0;
  background: var(--warm-card);
}

.galerie-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.galerie-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0;
}

.galerie-item--large {
  grid-row: span 2;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galerie-item:hover img {
  transform: scale(1.04);
}

.galerie-item--large img {
  min-height: 420px;
}

/* Contact */
.contact {
  padding: 5rem 0;
  background: var(--warm-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--warm-card);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.contact-brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.contact-brand span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-mail-fallback {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-form-wrap {
  position: relative;
}

.contact-form {
  padding: 1.75rem;
  background: var(--warm-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.contact-form.is-fading {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.contact-form.is-hidden {
  display: none;
}

.form-alert {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-alert--error {
  background: rgba(206, 43, 55, 0.1);
  border: 1px solid rgba(206, 43, 55, 0.35);
  color: #a01f28;
}

.form-success {
  padding: 2.5rem 2rem;
  background: var(--warm-card);
  border: 1px solid rgba(0, 146, 70, 0.25);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.form-success.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-success svg {
  margin: 0 auto 1rem;
  color: var(--italy-green);
}

.form-success h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--italy-green);
}

.form-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.required {
  color: var(--italy-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius);
  background: var(--italy-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--italy-green);
  box-shadow: 0 0 0 3px rgba(0, 146, 70, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-name {
  display: block;
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--italy-white);
}

.footer-tagline {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
}

.footer-flag {
  display: flex;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.footer-copy {
  font-size: 0.85rem;
}

.footer-copy a {
  color: var(--gold);
}

.footer-copy a:hover {
  color: var(--italy-white);
}

/* Responsive */
@media (max-width: 900px) {
  .presentation-grid,
  .evenements-grid,
  .contact-grid,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .evenements-visual {
    order: -1;
  }

  .galerie-grid {
    grid-template-columns: 1fr;
  }

  .galerie-item--large {
    grid-row: auto;
  }

  .galerie-item--large img {
    min-height: 240px;
  }

  .presentation-card {
    left: 0;
    bottom: -1rem;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .evenements-details {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }

  .presentation,
  .carte,
  .evenements,
  .galerie,
  .contact {
    padding: 3.5rem 0;
  }
}
