/* =========================================================
   Cala — chef à domicile / batch cooking
   Palette et tracés inspirés du logo : bleu encre, trait fin,
   beaucoup de blanc, aucune fioriture.
   ========================================================= */

:root {
  --navy:        #17276E;
  --navy-deep:   #0E1A4A;
  --navy-soft:   #45579F;
  --ink:         #1B1F2A;
  --muted:       #63697A;
  --cream:       #FBF9F5;
  --sand:        #F2EEE7;
  --mist:        #EBEFF8;
  --line:        #E2DED6;
  --white:       #FFFFFF;

  --radius:      2px;
  --radius-lg:   4px;
  --shadow:      0 18px 50px -28px rgba(23, 39, 110, .35);
  --shadow-lg:   0 30px 80px -40px rgba(23, 39, 110, .45);

  --font-display: "Outfit", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 82px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -.015em;
  color: var(--navy);
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { width: min(820px, 100%); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Typographie utilitaire ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy-soft);
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.eyebrow--light { color: rgba(255,255,255,.62); }

.u-accent { position: relative; white-space: nowrap; }
.u-accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em;
  height: 1px; background: var(--navy); opacity: .35;
}

/* ---------- Boutons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 400; letter-spacing: .02em;
  padding: .85rem 1.6rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background .35s ease, color .35s ease, transform .35s ease, border-color .35s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(23,39,110,.28); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(251, 249, 245, 0);
  transition: background .4s ease, box-shadow .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(251, 249, 245, .92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand__mark { display: block; width: 22px; color: var(--navy); }
.brand__mark svg { width: 100%; height: auto; display: block; }
.brand__mark--light { color: #fff; width: 30px; }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 300;
  letter-spacing: .3em; text-transform: uppercase;
  padding-left: .1em;
}

.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav__list { display: flex; align-items: center; gap: 2rem; }
.nav__list a {
  font-size: .92rem; text-decoration: none; color: var(--ink);
  position: relative; padding-block: .25rem; opacity: .82;
  transition: opacity .3s ease;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--navy); transition: width .35s ease;
}
.nav__list a:hover { opacity: 1; }
.nav__list a:hover::after { width: 100%; }
.nav__cta { padding: .65rem 1.35rem; font-size: .9rem; }

.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  padding: 10px; cursor: pointer;
}
.burger span {
  display: block; height: 1px; background: var(--navy); margin: 6px 0;
  transition: transform .35s ease, opacity .3s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 6rem));
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; z-index: 0;
  top: -22vw; right: -14vw; width: 58vw; height: 58vw;
  background: radial-gradient(circle at 50% 50%, var(--mist), transparent 68%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 5.4vw, 4.35rem);
  max-width: 15ch;
  margin-bottom: 1.6rem;
}
.hero__slogan {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted); max-width: 46ch; margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3.25rem; }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.hero__proof li { display: flex; flex-direction: column; }
.hero__proof strong {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  color: var(--navy); letter-spacing: -.01em;
}
.hero__proof span { font-size: .85rem; color: var(--muted); }

.hero__visual { position: relative; }
.hero__photo { margin: 0; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__photo img { width: 100%; height: clamp(380px, 52vw, 620px); object-fit: cover; }
.hero__card {
  position: absolute; left: clamp(-1rem, -2vw, -2.5rem); bottom: clamp(1.5rem, 4vw, 2.5rem);
  width: min(280px, 76%);
  background: #fff; border: 1px solid var(--line);
  padding: 1.4rem 1.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); font-size: .92rem; color: var(--muted);
}
.hero__card strong { color: var(--navy); font-weight: 500; display: block; }
.hero__card-mark { display: block; width: 17px; color: var(--navy); margin-bottom: .9rem; }
.hero__card-mark svg { width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--sand); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.86); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .section__lead { color: rgba(255,255,255,.75); }

.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(1.9rem, 3.5vw, 3rem); margin-bottom: 1.25rem; }
.section__lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cartes avantages ---------- */
.cards { display: grid; gap: clamp(1rem, 2.2vw, 1.75rem); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line);
  padding: 2rem 1.75rem; border-radius: var(--radius-lg);
  transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(23,39,110,.2); }
.card__icon { display: block; width: 30px; height: 30px; color: var(--navy); margin-bottom: 1.4rem; }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.18rem; margin-bottom: .7rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.step { position: relative; padding-top: 2rem; border-top: 1px solid rgba(23,39,110,.18); }
.step__num {
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .2em;
  color: var(--navy-soft); display: block; margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .45s ease, box-shadow .45s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.service:hover .service__media img { transform: scale(1.05); }
.service__body { padding: 1.9rem 1.75rem 2.1rem; }
.service__body h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.service__body > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }

.ticks { display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .92rem; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 9px; height: 5px; border-left: 1px solid var(--navy); border-bottom: 1px solid var(--navy);
  transform: rotate(-45deg);
}
.ticks--light li { color: rgba(255,255,255,.8); font-size: .98rem; }
.ticks--light li::before { border-color: rgba(255,255,255,.9); }

/* ---------- Crédit d'impôt ---------- */
.credit { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.credit__content .ticks { margin-top: 2rem; }
.credit__content strong { color: #fff; font-weight: 500; }
.credit__calc {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.credit__calc h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }
.calc { margin: 0 0 1.25rem; }
.calc > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.14);
}
.calc dt { color: rgba(255,255,255,.75); font-size: .95rem; }
.calc dd { margin: 0; font-family: var(--font-display); font-size: 1.05rem; color: #fff; }
.calc__minus dd, .calc dd.calc__minus { color: #fff; }
.calc__total { border-bottom: 0; padding-top: 1.1rem; }
.calc__total dt { color: #fff; font-size: 1rem; }
.calc__total dd { font-size: 1.9rem; font-weight: 400; }
.calc__note { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: 1.75rem; line-height: 1.5; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.gallery__item { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--mist); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.3,1); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 400;
  color: var(--navy); position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after,
.faq__item summary::before {
  content: ""; position: absolute; right: .4rem; top: 50%;
  background: var(--navy); transition: transform .35s ease, opacity .35s ease;
}
.faq__item summary::before { width: 14px; height: 1px; transform: translateY(-50%); }
.faq__item summary::after { width: 1px; height: 14px; right: calc(.4rem + 6.5px); transform: translateY(-50%); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq__body { padding: 0 3rem 1.6rem 0; }
.faq__body p { color: var(--muted); font-size: .97rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact__info { margin-top: 2.5rem; display: grid; gap: 1.35rem; }
.contact__info li { display: grid; gap: .2rem; padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.contact__info li:last-child { border-bottom: 0; }
.contact__label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-soft); font-family: var(--font-display); }
.contact__info a { text-decoration: none; color: var(--ink); transition: color .3s ease; }
.contact__info a:hover { color: var(--navy); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem); display: grid; gap: 1.25rem;
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .85rem; color: var(--ink); font-weight: 400; }
.field label span { color: var(--navy-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: .8rem .95rem; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s ease, background .3s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); background: #fff;
}
.field input::placeholder, .field textarea::placeholder { color: #A3A7B3; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem; }
.field--check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--navy); }
.field--check label { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.field--check .field__error { grid-column: 1 / -1; }
.field__error { font-size: .78rem; color: #B3261E; min-height: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #B3261E; }

.form__status { font-size: .9rem; text-align: center; color: var(--muted); }
.form__status.is-success { color: var(--navy); font-weight: 500; }
.form__status.is-error { color: #B3261E; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer__inner { display: grid; gap: 2.5rem; }
.site-footer__brand { display: flex; align-items: flex-start; gap: 1rem; }
.site-footer__word {
  font-family: var(--font-display); color: #fff; font-size: 1.3rem;
  letter-spacing: .3em; text-transform: uppercase; margin-bottom: .5rem;
}
.site-footer__tag { font-size: .88rem; line-height: 1.6; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.75rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.16); }
.site-footer__nav a { text-decoration: none; font-size: .9rem; opacity: .8; transition: opacity .3s ease; }
.site-footer__nav a:hover { opacity: 1; }
.site-footer__legal { font-size: .82rem; color: rgba(255,255,255,.5); }
.site-footer__legal a { color: inherit; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14, 26, 74, .93);
  display: grid; place-items: center; padding: clamp(1rem, 5vw, 4rem);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: var(--radius-lg); }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%; background: none; color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; transition: background .3s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.12); }

/* ---------- CTA flottant (mobile) ---------- */
.cta-float {
  display: none;
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  background: var(--navy); color: #fff; text-align: center; text-decoration: none;
  font-family: var(--font-display); padding: .95rem 1rem; border-radius: 999px;
  box-shadow: 0 12px 30px -12px rgba(14,26,74,.6);
  transform: translateY(150%); transition: transform .4s ease;
}
.cta-float.is-visible { transform: translateY(0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; }
  .service { flex-direction: row; }
  .service__media { flex: 0 0 40%; aspect-ratio: auto; }
  .credit, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin-inline: auto; }
  .hero__photo img { height: clamp(320px, 60vw, 460px); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .4s cubic-bezier(.2,.7,.3,1), opacity .3s ease;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; opacity: 1; }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: 1.5rem; }
  .site-header.is-open { background: var(--cream); }

  .cta-float { display: block; }
  .site-footer { padding-bottom: 5.5rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .cards--4, .steps { grid-template-columns: 1fr; }
  .service { flex-direction: column; }
  .service__media { flex: none; aspect-ratio: 16 / 10; }
  .form__row { grid-template-columns: 1fr; }
  .hero__proof { gap: 1.5rem 2rem; }
  .hero__card { position: static; width: 100%; margin-top: 1rem; }
  .gallery { grid-auto-rows: 150px; }
  .faq__item summary { font-size: 1rem; padding-right: 2.5rem; }
}

/* ---------- Repli image (photo distante indisponible) ---------- */
img.is-fallback { object-fit: cover; background: var(--mist); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
