/* ===========================================================
   FOUNEROU GOURMAND — styles des pages intérieures
   (histoire, carte, traiteur, contact)
   =========================================================== */

/* ---------- Bandeau de page ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(700px 500px at 78% 10%, rgba(232, 118, 27, 0.2), transparent 60%),
    radial-gradient(1200px 800px at 25% 120%, #41220F, #261207 70%);
  text-align: center;
}
.page-hero .wrap { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 640px) {
  .page-hero .wrap { padding-top: 36px; padding-bottom: 40px; }
  .page-hero h1 { font-size: clamp(30px, 8vw, 38px); }
  .page-hero .lead { font-size: 16.5px; }
}
.page-hero .hero-kicker { justify-content: center; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 5vw, 58px); line-height: 1.06;
  margin: 0 auto 14px; max-width: 18ch;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.page-hero h1 .script {
  font-family: var(--font-script); font-style: italic; font-weight: 700;
  color: #F5B71E;
}
.page-hero .lead {
  font-size: 19px; max-width: 56ch; margin: 0 auto;
  color: rgba(250, 241, 227, 0.85);
}

/* ---------- Histoire ---------- */
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 880px) { .story-grid { grid-template-columns: 1fr; } }
.story-copy h2 { text-align: left; }
.story-copy .section-kicker { text-align: left; display: block; }
.story-copy p { margin-bottom: 16px; font-size: 17.5px; color: rgba(42, 27, 16, 0.82); }
.story-photo {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  transform: rotate(-1.5deg);
}
.story-photo img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.story-photo.alt { transform: rotate(1.5deg); }

.valeurs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
@media (max-width: 760px) { .valeurs-grid { grid-template-columns: 1fr; } }
.valeur-card {
  background: var(--white-warm); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-card);
  border-top: 6px solid var(--orange);
}
.valeur-card .v-tri {
  width: 0; height: 0; margin-bottom: 16px; display: block;
  border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-top: 20px solid var(--orange);
}
.valeur-card:nth-child(2) { border-top-color: #2E7D43; }
.valeur-card:nth-child(2) .v-tri { border-top-color: #2E7D43; }
.valeur-card:nth-child(3) { border-top-color: #CE3B26; }
.valeur-card:nth-child(3) .v-tri { border-top-color: #CE3B26; }
.valeur-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; color: var(--brown); margin-bottom: 8px; }
.valeur-card p { font-size: 15.5px; color: rgba(42, 27, 16, 0.75); }

.big-quote {
  text-align: center; max-width: 740px; margin: 0 auto;
}
.big-quote .q {
  font-family: var(--font-script); font-style: italic; font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; color: var(--orange-deep);
}
.big-quote .who { margin-top: 18px; font-weight: 800; color: var(--brown); }

/* ---------- Carte interactive ---------- */
.carte-toolbar {
  position: sticky; top: 70px; z-index: 40;
  background: rgba(250, 241, 227, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(62, 36, 21, 0.12);
  padding: 14px 0;
}
.carte-toolbar .wrap { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 2px solid rgba(62, 36, 21, 0.25); background: transparent;
  color: var(--brown); font-family: var(--font-body); font-weight: 800; font-size: 14.5px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: 0.15s;
}
.chip:hover { border-color: var(--orange); color: var(--orange-deep); }
.chip.active { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.carte-search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: var(--white-warm); border: 2px solid rgba(62, 36, 21, 0.2);
  border-radius: 999px; padding: 8px 16px; min-width: 220px;
}
.carte-search input {
  border: none; outline: none; background: transparent; flex: 1;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--brown);
}
.carte-search input::placeholder { color: rgba(62, 36, 21, 0.4); }
@media (max-width: 700px) { .carte-search { margin-left: 0; width: 100%; } }

.carte-cat { margin-bottom: 56px; }
.carte-cat:last-child { margin-bottom: 0; }
.carte-cat-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.carte-cat-head h2 {
  font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--brown);
}
.carte-cat-head .count {
  font-weight: 800; font-size: 14px; color: var(--orange-deep);
  background: rgba(232, 118, 27, 0.12); padding: 3px 12px; border-radius: 999px;
}
.carte-cat-head::after { content: ""; flex: 1; height: 3px; background: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 24px); border-radius: 2px; }
.carte-cat .cat-sub { font-style: italic; color: rgba(42, 27, 16, 0.6); margin-bottom: 22px; font-size: 15px; }

.carte-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; list-style: none; }
@media (max-width: 880px) { .carte-list { grid-template-columns: 1fr; } }
.carte-item {
  display: flex; gap: 16px; align-items: center;
  background: var(--white-warm); border-radius: 16px; padding: 12px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s, box-shadow 0.18s;
}
.carte-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.carte-item.hidden { display: none; }
.carte-thumb {
  width: 86px; height: 86px; flex: none; border-radius: 12px; overflow: hidden;
  background: var(--cream-2);
}
.carte-thumb img { width: 100%; height: 100%; object-fit: cover; }
.carte-thumb.ph { display: grid; place-items: center; }
.carte-thumb.ph::after {
  content: ""; width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 22px solid rgba(232, 118, 27, 0.45);
}
.carte-item-body { flex: 1; min-width: 0; }
.carte-item-body .row { display: flex; align-items: baseline; gap: 10px; }
.carte-item-body .name { font-weight: 800; font-size: 17px; color: var(--brown); }
.carte-item-body .dots { flex: 1; border-bottom: 2px dotted rgba(62, 36, 21, 0.25); transform: translateY(-4px); min-width: 20px; }
.carte-item-body .price { font-family: var(--font-display); font-size: 17px; color: var(--orange-deep); white-space: nowrap; }
.carte-item-body .desc { font-size: 14px; color: rgba(42, 27, 16, 0.65); margin-top: 2px; }
.carte-empty {
  text-align: center; padding: 60px 20px; display: none;
}
.carte-empty.show { display: block; }
.carte-empty p { font-family: var(--font-script); font-style: italic; font-weight: 700; font-size: 26px; color: var(--orange-deep); }

/* Impression de la carte */
@media print {
  .topbar, .nav, .carte-toolbar, .kente-band, footer, .carte-cta, .btn { display: none !important; }
  .page-hero { background: none; color: var(--brown); }
  .page-hero h1 .script { color: var(--orange-deep); }
  .page-hero .lead { color: rgba(42, 27, 16, 0.8); }
  .carte-item { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .carte-list { grid-template-columns: 1fr 1fr; }
  section { padding: 20px 0; }
}

/* ---------- Traiteur ---------- */
.formules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 820px) { .formules-grid { grid-template-columns: 1fr; } }
.formule-card {
  background: var(--white-warm); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.formule-card .f-photo { aspect-ratio: 16 / 8; overflow: hidden; }
.formule-card .f-photo img { width: 100%; height: 100%; object-fit: cover; }
.formule-card .f-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.formule-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 23px; color: var(--brown); }
.formule-card p { font-size: 15.5px; color: rgba(42, 27, 16, 0.75); }
.formule-card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.formule-card li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; font-weight: 700; color: var(--brown); }
.formule-card li::before {
  content: ""; width: 0; height: 0; flex: none; transform: translateY(1px);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 8px solid var(--orange);
}

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: etape; }
@media (max-width: 760px) { .etapes { grid-template-columns: 1fr; } }
.etape {
  position: relative; background: var(--white-warm); border-radius: var(--radius);
  padding: 64px 26px 28px; box-shadow: var(--shadow-card);
}
.etape::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; top: -22px; left: 26px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: var(--white-warm);
  font-family: var(--font-display); font-size: 26px;
  display: grid; place-items: center;
  border: 3px dashed rgba(255, 251, 244, 0.7);
  box-shadow: 0 8px 18px rgba(194, 90, 12, 0.4);
}
.etape h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--brown); margin-bottom: 8px; }
.etape p { font-size: 15.5px; color: rgba(42, 27, 16, 0.75); }

/* ---------- Formulaires ---------- */
.form-card {
  background: var(--white-warm); border-radius: 22px;
  padding: 40px; box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange-deep);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: 16px; font-weight: 600; color: var(--brown);
  background: var(--cream); border: 2px solid rgba(62, 36, 21, 0.18);
  border-radius: 12px; padding: 13px 16px; outline: none; transition: border-color 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--orange); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-actions { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-note { font-size: 14px; color: rgba(42, 27, 16, 0.6); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.horaires-table { width: 100%; border-collapse: collapse; }
.horaires-table td { padding: 10px 0; border-bottom: 1px dashed rgba(62, 36, 21, 0.2); font-weight: 700; color: var(--brown); }
.horaires-table td:last-child { text-align: right; font-family: var(--font-display); color: var(--orange-deep); }

/* ---------- CTA bandeau bas de page ---------- */
.cta-band { background: var(--orange); color: var(--white-warm); text-align: center; }
.cta-band .wrap { padding-top: 56px; padding-bottom: 60px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 10px; }
.cta-band p { font-size: 18px; opacity: 0.95; margin-bottom: 28px; }
.cta-band .btn-primary { background: var(--brown-deep); }
.cta-band .btn-primary:hover { background: #1a0e06; }

/* ---------- Fil d'ariane nav active ---------- */
.nav-links a.current { color: var(--orange-deep); border-bottom-color: var(--orange); }

/* ---------- image-slot équipe ---------- */
image-slot.team-slot {
  width: 100%; aspect-ratio: 4 / 3; height: auto !important;
  min-height: 320px; border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
}
