/* Traiteur Delice - Thème Figma */
:root {
  --background: #0f0f0f;
  --foreground: #f5f5f5;
  --card: #1a1a1a;
  --primary: #E63946;
  --primary-hover: #d32f3c;
  --muted: #a0a0a0;
  --muted-foreground: #c2c8d0;
  --border: rgba(255, 255, 255, 0.1);
  --section-dark: #0a0a0a;
  --section-darker: #0f0f0f;
  --radius: 0.625rem;
  --font-size: 16px;
  --header-height: 3.5rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  background: var(--background);
}

body {
  margin: 0;
  padding: 0;
  background: var(--background);
}

.page-figma {
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--foreground);
  background: var(--background);
}

.main.pt-20 { padding-top: var(--header-height); }

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  gap: 0.75rem;
}

@media (min-width: 640px) { .header-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .header-inner { padding: 0 2rem; } }

.header-brand {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 2.25rem;
  width: 2.25rem;
  object-fit: contain;
}

.header-title {
  margin-left: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.header-nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-link {
  background: none;
  border: none;
  color: var(--muted-foreground);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
}

.header-lang {
  display: flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.header-lang:hover {
  opacity: 0.9;
}

.header-flag {
  display: block;
  width: 1.5rem;
  height: 1rem;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.header-flag svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


.header-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.header-toggle .icon-menu,
.header-toggle i {
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .header-toggle {
    display: none;
  }
}

.header-mobile {
  display: none;
  flex-direction: column;
  padding: 0 1rem 1rem;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
}

.header-mobile.is-open {
  display: flex;
}

.header-mobile .nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-desc {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.btn-hero {
  padding: 1rem 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.btn-block {
  width: 100%;
  padding: 1rem;
}

/* --- SECTIONS --- */ 
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--section-dark);
}

.section-darker {
  background: var(--section-darker);
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* --- SERVICES --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.service-icon {
  margin-bottom: 1rem;
}

.service-icon i {
  font-size: 3rem;
  color: var(--primary);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.service-card-desc {
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* --- MENU --- */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--card);
  transition: border-color 0.2s;
}

.menu-card:hover {
  border-color: var(--primary);
}

.menu-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.menu-card-icon {
  margin-right: 0.75rem;
}

.menu-card-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.menu-card-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  display: flex;
  align-items: center;
  color: var(--muted-foreground);
  padding: 0.375rem 0;
}

.menu-bullet {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.menu-note {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted-foreground);
  font-style: italic;
}

/* --- GALERIE --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-caption p {
  color: #fff;
  margin: 0;
}

.gallery-item--more {
  display: none;
}

.gallery-grid.is-expanded .gallery-item--more {
  display: block;
}

.gallery-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-gallery-more {
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-gallery-more:hover {
  background: var(--primary);
  color: #fff;
}

/* --- OPTIONS DE PAIEMENT --- */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .payment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .payment-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
}

.payment-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0.75rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, transform 0.2s;
}

.payment-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.payment-icon {
  font-size: 2rem;
  color: var(--primary);
}

.payment-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  text-align: center;
  line-height: 1.3;
}

/* --- CONTACT --- */
.section-contact {
  background: var(--section-darker);
}

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

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 2rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-block {
  padding-left: 1rem;
  border-left: 3px solid var(--primary);
}

.contact-detail-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-bottom: 0.35rem;
}

.contact-detail-value {
  margin: 0;
  color: var(--foreground);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-detail-value--bold {
  font-weight: 700;
}

.contact-tel,
.contact-detail-block a[href^="tel:"] {
  color: var(--foreground);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.contact-tel:hover,
.contact-detail-block a[href^="tel:"]:hover {
  color: var(--primary);
}

.contact-email,
.contact-detail-block a[href^="mailto:"] {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.contact-email:hover,
.contact-detail-block a[href^="mailto:"]:hover {
  color: var(--primary);
}

/* Formulaire style "underline" (ligne sous le champ uniquement) */
.contact-form--underline .form-group {
  margin-bottom: 1.5rem;
}

.contact-form--underline .form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 0.35rem;
}

.contact-form--underline .form-hint--above {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.contact-form--underline input,
.contact-form--underline select,
.contact-form--underline textarea {
  width: 100%;
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  transition: border-color 0.2s;
}

.contact-form--underline input::placeholder,
.contact-form--underline textarea::placeholder {
  color: var(--muted-foreground);
}

.contact-form--underline input:focus,
.contact-form--underline select:focus,
.contact-form--underline textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.contact-form--underline select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%239ca3af'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

.contact-form--underline select option {
  background: var(--card);
  color: var(--foreground);
}

.contact-form--underline .form-group--date {
  position: relative;
}

.contact-form--underline .form-group--date input {
  padding-right: 2.75rem;
}

.contact-form--underline .form-group--date input::-webkit-calendar-picker-indicator {
  margin-right: 0;
  padding: 0.15rem;
  cursor: pointer;
  filter: invert(1);
  opacity: 0.9;
}

.contact-form--underline textarea {
  resize: vertical;
  min-height: 5rem;
}

.contact-form--underline .form-group--consent {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-consent-label input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-consent-text a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.form-consent-text a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.btn-contact-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  margin-top: 0.5rem;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

/* Banderole flash (succès / erreur) en haut de page */
.flash-banner {
  width: 100%;
  padding: 0.875rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
}
.flash-banner__text {
  display: inline-block;
}
.flash-banner--success {
  background: #16a34a;
  color: #fff;
}
.flash-banner--error {
  background: #b91c1c;
  color: #fecaca;
}

.contact-form--underline .form-group ul {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.875rem;
  color: #fca5a5;
}
.contact-form--underline .form-group ul li {
  margin: 0;
}

.btn-contact-submit:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* --- PAGE MENTIONS LÉGALES --- */
.header-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.page-legal {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.legal-intro {
  margin: 0 0 2.5rem 0;
  color: var(--muted-foreground);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section:last-of-type {
  margin-bottom: 0;
}

.legal-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.75rem 0;
}

.legal-section p {
  margin: 0 0 0.5rem 0;
  color: var(--muted-foreground);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Rétrocompatibilité anciennes classes contact si utilisées ailleurs */
.contact-info-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
}

.contact-detail-icon {
  background: var(--primary);
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.contact-detail h4 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
  color: var(--foreground);
}

.contact-detail p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

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

.contact-form label {
  display: block;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.25);
}

.contact-form select option {
  background: var(--card);
  color: var(--foreground);
}

.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}

/* --- FOOTER --- */
.footer {
  background: #111827;
  color: #fff;
  padding: 3rem 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  align-items: start;
}

.footer-logo {
  height: 3rem;
  width: 3rem;
  object-fit: contain;
  grid-column: 1;
  grid-row: 1;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

/* Paragraphe en dessous du logo, aligné à gauche (bas gauche du logo) */
.footer-desc {
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0;
  margin-top: 0.75rem;
  grid-column: 1 / -1;
  grid-row: 2;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: #1f2937;
  border-radius: 50%;
  color: inherit;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-social i {
  font-size: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}
