/* ================================================
   L'assiette by Julien — Feuille de styles
   ================================================ */

:root {
  --color-bg:         #F7F3EE;
  --color-bg-alt:     #EDE8E0;
  --color-accent:     #C97B4B;
  --color-accent-dark:#A35E32;
  --color-text:       #2E2A25;
  --color-text-muted: #6B6259;
  --color-sage:       #7A8C6E;
  --color-white:      #FFFFFF;
  --font-heading:     'Playfair Display', Georgia, serif;
  --font-body:        'Inter', system-ui, sans-serif;
  --radius:           4px;
  --transition:       0.2s ease;
  --max-width:        1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 400; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 4rem 0; }

/* ---- Bouton ---- */
.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn:hover { background-color: var(--color-accent-dark); color: var(--color-white); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.btn-outline:hover { background-color: var(--color-accent); color: var(--color-white); }

/* ================================================
   HEADER & NAVIGATION
   ================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(247, 243, 238, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-bg-alt);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(46, 42, 37, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 68px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.site-logo img {
  height: 42px;
  width: auto;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  font-weight: 600;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-accent); background-color: var(--color-bg-alt); }
.nav-link.active { color: var(--color-accent); }
.nav-link.nav-cta { background-color: var(--color-accent); color: var(--color-white); margin-left: 0.5rem; }
.nav-link.nav-cta:hover { background-color: var(--color-accent-dark); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 999;
  }
  .site-nav.open { display: flex; }
  .nav-link { font-size: 1.2rem; padding: 0.75rem 2rem; }
  .nav-link.nav-cta { margin-left: 0; margin-top: 0.5rem; }
}

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background-color: var(--color-text);
  color: var(--color-bg-alt);
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-copy { font-size: 0.85rem; color: #9E958A; }
.footer-links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--color-bg-alt); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-accent); }
.footer-instagram {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-bg-alt);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-instagram:hover { color: var(--color-accent); }
.footer-instagram svg { width: 18px; height: 18px; }

/* ================================================
   PAGE WRAPPER (compense le header fixe)
   ================================================ */
main { padding-top: 68px; }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--color-text);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}
.hero-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2E2A25 0%, #4A3728 50%, #C97B4B 100%);
  opacity: 0.9;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 700px;
}
.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  font-family: var(--font-body);
}
.hero .btn { font-size: 1.05rem; padding: 0.9rem 2.2rem; }

/* ================================================
   SECTION PRÉSENTATION
   ================================================ */
.presentation { background-color: var(--color-bg); }
.presentation-intro {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(46,42,37,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(46,42,37,0.1); }
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--color-accent);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.feature-card p { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 0; }

/* ================================================
   BANDEAU AVANTAGE FISCAL
   ================================================ */
.fiscal-banner {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 2.5rem 0;
  text-align: center;
}
.fiscal-banner p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 700px;
  margin: 0 auto 1.25rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
}
.fiscal-banner a {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fiscal-banner a:hover { opacity: 0.85; }

/* ================================================
   APERÇU FORMULES
   ================================================ */
.formulas-preview { background-color: var(--color-bg-alt); }
.formulas-preview .section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.formulas-preview .section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
}
.formula-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 12px rgba(46,42,37,0.07);
  position: relative;
  overflow: hidden;
}
.formula-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background-color: var(--color-accent);
}
.formula-card h3 { font-family: var(--font-heading); margin-bottom: 0.25rem; }
.formula-tagline { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }
.formula-price-main {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.formula-price-gross {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.formula-details { font-size: 0.9rem; color: var(--color-text-muted); }
.formula-details li { list-style: none; padding: 0.2rem 0; }
.formula-details li::before { content: '✓ '; color: var(--color-sage); font-weight: 600; }
.formulas-cta { text-align: center; }

/* ================================================
   INSTAGRAM SECTION
   ================================================ */
.instagram-section { background-color: var(--color-bg); text-align: center; }
.instagram-section h2 { margin-bottom: 0.5rem; }
.instagram-section p { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.instagram-widget {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-bg-alt);
  border-radius: 8px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.instagram-widget svg { width: 48px; height: 48px; color: var(--color-accent); }
.instagram-widget p { color: var(--color-text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* ================================================
   PAGE TARIFS
   ================================================ */
.page-hero {
  background-color: var(--color-bg-alt);
  padding: 3rem 0 2rem;
  text-align: center;
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { color: var(--color-text-muted); max-width: 680px; margin: 0 auto; font-size: 1.05rem; }

.tarifs-intro {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 700px) {
  .tarifs-grid { grid-template-columns: 1fr; }
}

.tarif-card {
  background-color: var(--color-white);
  border-radius: 10px;
  padding: 2.25rem 2rem;
  box-shadow: 0 3px 16px rgba(46,42,37,0.08);
  position: relative;
  overflow: hidden;
}
.tarif-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background-color: var(--color-accent);
}
.tarif-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.tarif-persons {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.tarif-price {
  margin-bottom: 1.5rem;
}
.price-after {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent);
  font-weight: 600;
  line-height: 1;
}
.price-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.price-before {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
.tarif-includes {
  list-style: none;
  margin-bottom: 1.5rem;
}
.tarif-includes li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-bg-alt);
}
.tarif-includes li:last-child { border-bottom: none; }
.tarif-includes li::before { content: '✓ '; color: var(--color-sage); font-weight: 600; }

.tarif-options h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-bg-alt);
}
.option-item:last-child { border-bottom: none; }
.option-price { color: var(--color-accent); font-weight: 600; white-space: nowrap; }

.tarif-devis {
  background-color: var(--color-bg-alt);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.tarif-devis h2 { margin-bottom: 0.75rem; }
.tarif-devis p { color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* ================================================
   PAGE FAQ
   ================================================ */
.faq-section { max-width: 780px; margin: 0 auto; }

.sap-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--color-sage);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}
.sap-badge svg { width: 20px; height: 20px; flex-shrink: 0; }

.accordion { border-top: 1px solid var(--color-bg-alt); }

.accordion details {
  border-bottom: 1px solid var(--color-bg-alt);
}
.accordion details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  list-style: none;
  color: var(--color-text);
  transition: color var(--transition);
}
.accordion details summary::-webkit-details-marker { display: none; }
.accordion details summary:hover { color: var(--color-accent); }
.accordion details summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--transition);
  line-height: 1;
}
.accordion details[open] summary::after {
  transform: rotate(45deg);
}
.accordion-body {
  padding-bottom: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-size: 0.97rem;
}

/* ================================================
   PAGE CONTACT
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-form-wrap h2, .contact-info-wrap h2 { margin-bottom: 1.5rem; }

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-bg-alt);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 123, 75, 0.15);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-required { color: var(--color-accent); }

.form-success {
  display: none;
  background-color: #EBF5EB;
  border: 1px solid var(--color-sage);
  color: #2D5A2D;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.95rem;
}
.form-success.visible { display: block; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.contact-info-item svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.contact-info-item p { margin-bottom: 0; font-size: 0.95rem; }
.contact-info-item strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 0.15rem; }

.instagram-link-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: var(--color-bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.instagram-link-block svg { width: 28px; height: 28px; color: var(--color-accent); flex-shrink: 0; }
.instagram-link-block p { margin-bottom: 0; font-size: 0.95rem; }
.instagram-link-block a { font-weight: 600; }

/* ================================================
   MENTIONS LÉGALES
   ================================================ */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
}
.legal-section {
  margin-bottom: 2.5rem;
}
.legal-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-bg-alt);
}
.legal-section p, .legal-section li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.legal-section ul { padding-left: 1.5rem; }
.legal-section li { margin-bottom: 0.4rem; }
.legal-divider {
  border: none;
  border-top: 2px solid var(--color-bg-alt);
  margin: 3rem 0;
}

/* ================================================
   UTILITIES
   ================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* Section title centered */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* Skeleton / placeholder pour hero.jpg manquant */
.hero-bg[style*="hero.jpg"] { display: none; }

/* ================================================
   URSSAF — Bloc visuel + mention obligatoire
   ================================================ */
.urssaf-block {
  text-align: center;
  margin-bottom: 2.5rem;
}
.urssaf-visuel {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 0.75rem;
  display: block;
}
.urssaf-mention {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0;
}

/* ================================================
   FOOTER — BAS DE PAGE SAP
   ================================================ */
.footer-bottom {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  padding: 1rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-legal-sap {
  font-size: 0.75rem;
  color: #9E958A;
  line-height: 1.6;
  text-align: center;
}
.footer-legal-sap a {
  color: inherit;
  text-decoration: underline;
}
.footer-logo-sap {
  display: block;
  height: 54px;
  width: auto;
  opacity: 0.85;
}
.footer-logo-urssaf {
  display: block;
  height: 36px;
  width: auto;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

/* ---- Header logos certification ---- */
.header-certification-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.header-logo-sap {
  height: 48px;
  width: auto;
}
.header-logo-urssaf {
  height: 32px;
  width: auto;
}
@media (max-width: 900px) {
  .header-certification-logos { display: none; }
}

/* ================================================
   TARIFS — Notice devis SAP obligatoire
   ================================================ */
.sap-devis-notice {
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1rem;
  background: var(--color-bg-alt);
  border-radius: 4px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ================================================
   TARIFS — Autres demandes (remplace Événements)
   ================================================ */
.tarif-autres-demandes {
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  margin-top: 2rem;
  text-align: center;
  background-color: var(--color-white);
}
.tarif-autres-demandes h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.tarif-autres-demandes p { color: var(--color-text-muted); margin-bottom: 1.25rem; }
.btn-devis {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color var(--transition);
}
.btn-devis:hover { background-color: var(--color-accent-dark); color: var(--color-white); }
