/* =========================================================
   Medusa Genève — Traiteur d'entreprise
   Palette : #dff2ff (bleu clair) · #003a60 (bleu nuit) · #edd4a2 (or)
   Titres  : Dazzle Unicase (licence locale) — fallback Cormorant Unicase
   Textes  : Belleza
   ========================================================= */

/* Si la police sous licence "Dazzle Unicase" est déposée dans /fonts,
   elle sera utilisée automatiquement. Sinon, fallback unicase similaire. */
@font-face {
  font-family: "Dazzle Unicase";
  src: url("fonts/Dazzle-Unicase-Thin.woff2") format("woff2"),
    url("fonts/Dazzle-Unicase-Thin.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ice: #dff2ff;
  --navy: #003a60;
  --navy-deep: #002b47;
  --gold: #edd4a2;
  --paper: #fbfdff;
  --ink: #0f2233;

  --font-title: "Dazzle Unicase", "Cormorant Unicase", Georgia, serif;
  --font-body: "Belleza", "Helvetica Neue", Arial, sans-serif;

  --radius: 2px;
  --max: 1140px;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
.brand-mark,
.footer-brand,
.card-num {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  color: var(--navy);
}

h3 {
  font-size: 1.125rem;
  letter-spacing: 0.06em;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--ice);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.eyebrow.dark {
  color: #a8853f;
}

.lead {
  font-size: 1.1875rem;
  color: #23405a;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover {
  background: #e3c288;
}
.btn-navy {
  background: var(--navy);
  color: var(--ice);
}
.btn-navy:hover {
  background: var(--navy-deep);
}
.btn-outline {
  border-color: rgba(223, 242, 255, 0.55);
  color: var(--ice);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost {
  padding: 0.5rem 0.25rem;
  color: var(--ice);
  letter-spacing: 0.08em;
  text-transform: none;
}
.btn-ghost:hover {
  color: var(--gold);
}
.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(237, 212, 162, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand {
  text-decoration: none;
  color: var(--ice);
  display: grid;
}
.brand-mark {
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}
.brand-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 2rem;
}
.nav a {
  color: var(--ice);
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a.active {
  color: var(--gold);
  border-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid rgba(223, 242, 255, 0.4);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: var(--ice);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4.5rem;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 43, 71, 0.72) 0%, rgba(0, 43, 71, 0.88) 100%);
}
.hero-content {
  position: relative;
  color: var(--ice);
  max-width: 780px;
}
.hero h1 {
  color: var(--ice);
  text-transform: uppercase;
}
.hero-text {
  font-size: 1.1875rem;
  max-width: 46ch;
  color: rgba(223, 242, 255, 0.88);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.section-head {
  max-width: 620px;
  margin-bottom: 3rem;
}

.concept {
  background: var(--ice);
}
.concept-grid,
.formules-grid,
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .concept-grid,
  .formules-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.concept-media,
.formules-media {
  margin: 0;
}
.concept-media img,
.formules-media img {
  width: 100%;
  height: clamp(300px, 46vw, 480px);
  object-fit: cover;
  border-radius: var(--radius);
}

.facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.facts li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--navy);
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--gold);
}

/* Services */
.services {
  background: var(--navy);
  color: var(--ice);
}
.services h2 {
  color: var(--ice);
}
.cards {
  display: grid;
  gap: 1px;
  background: rgba(223, 242, 255, 0.18);
  border: 1px solid rgba(223, 242, 255, 0.18);
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--navy);
  padding: 2.25rem 1.75rem;
  transition: background 0.3s ease;
}
.card:hover {
  background: var(--navy-deep);
}
.card-num {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.card h3 {
  color: var(--ice);
  text-transform: uppercase;
}
.card p {
  margin: 0;
  color: rgba(223, 242, 255, 0.78);
  font-size: 1rem;
}

.includes {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.includes li {
  border: 1px solid rgba(237, 212, 162, 0.5);
  color: var(--gold);
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

/* Formules */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.steps li {
  counter-increment: step;
  padding-left: 3.25rem;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-title);
  font-size: 1.125rem;
  color: #a8853f;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.steps h3 {
  color: var(--navy);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.steps p {
  margin: 0;
  color: #33506a;
}

/* Contact */
.contact {
  background: var(--navy);
  color: var(--ice);
}
.contact h2 {
  color: var(--ice);
}
.contact .lead {
  color: rgba(223, 242, 255, 0.85);
}
.coords {
  font-style: normal;
  margin-top: 2rem;
  border-top: 1px solid rgba(223, 242, 255, 0.25);
  padding-top: 1.5rem;
}
.coords p {
  margin-bottom: 0.85rem;
  color: rgba(223, 242, 255, 0.9);
}
.coords-name {
  font-family: var(--font-title);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.coords a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 1px solid rgba(237, 212, 162, 0.6);
}
.coords a:hover {
  color: var(--gold);
}
.map-link {
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Form */
.form {
  background: var(--ice);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 520px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.form label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(0, 58, 96, 0.25);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.form textarea {
  resize: vertical;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--navy);
  outline: none;
}
.form-note {
  margin: 0;
  min-height: 1.3em;
  font-size: 0.9375rem;
  color: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(223, 242, 255, 0.8);
  padding: 3rem 0;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-title);
  font-size: 1.375rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.site-footer a {
  color: var(--ice);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold);
}
.footer-meta {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(223, 242, 255, 0.5);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .phone-link {
    display: none;
  }
  .header-actions .btn-gold {
    display: none;
  }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.is-open {
    max-height: 60vh;
    padding: 0.5rem 1.25rem 1.5rem;
  }
  .nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(223, 242, 255, 0.12);
  }
}
