/* ==========================================================================
   BPOP — Restauration de type rapide — 1 sentier de la Pointe, Paris 20e
   ========================================================================== */

:root {
  --espresso: #241713;
  --cocoa:    #3C2620;
  --stone:    #7A6459;
  --cream:    #FDF7F0;
  --sand:     #F2E7DA;
  --berry:    #D6336C;
  --berry-dk: #B12455;

  --rule:     rgba(36, 23, 19, .14);
  --rule-mid: rgba(36, 23, 19, .34);
  --rule-inv: rgba(253, 247, 240, .26);

  --display: "Gabarito", "Helvetica Neue", Arial, sans-serif;
  --sans:    "Karla", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.6vw, 60px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; max-width: 62ch; }

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--espresso); color: var(--cream); padding: 12px 18px; z-index: 60; }
.skip:focus { left: 12px; top: 12px; }

.kicker {
  display: inline-block; font-family: var(--display);
  font-size: 12.5px; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--berry);
  margin-bottom: 16px;
}

.hero .kicker, .dark .kicker { color: #FF8FB4; }

/* ------------------------------------------------------------- Structure -- */

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }

section { padding-block: clamp(56px, 8.5vw, 104px); }

.sand { background: var(--sand); }
.dark { background: var(--espresso); color: var(--sand); }
.dark h2, .dark h3 { color: var(--cream); }
.dark p { color: #C4B2A6; }

/* ---------------------------------------------------------------- Entête -- */

.masthead { background: var(--cream); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }

.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 78px; flex-wrap: wrap;
}

.brand { display: flex; align-items: baseline; gap: 11px; text-decoration: none; }

.brand__mark {
  font-family: var(--display); font-size: 28px; font-weight: 700;
  letter-spacing: -.02em; color: var(--espresso); line-height: 1;
}
.brand__mark span { color: var(--berry); }

.brand__sub { font-size: 13px; color: var(--stone); }

.nav { display: flex; gap: clamp(16px, 2.6vw, 32px); font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--espresso); padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--berry); }
.nav a[aria-current="page"] { border-bottom-color: var(--berry); color: var(--berry); }

/* ------------------------------------------------------------------ Hero -- */

.hero { position: relative; overflow: hidden; background: var(--espresso); }

.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .46; }

.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(102deg, rgba(36,23,19,.93) 0%, rgba(36,23,19,.72) 56%, rgba(36,23,19,.42) 100%);
}

.hero .wrap { position: relative; z-index: 2; padding-block: clamp(66px, 11vw, 140px); }

.hero h1 { font-size: clamp(40px, 7.4vw, 90px); color: var(--cream); max-width: 15ch; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: #FF8FB4; }

.hero__lede { font-size: clamp(17px, 2vw, 21px); color: #E3D5C9; max-width: 50ch; margin-bottom: 34px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 15.5px; font-weight: 700;
  padding: 15px 28px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; border-radius: 999px;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.btn--solid { background: var(--berry); color: #fff; }
.btn--solid:hover { background: var(--berry-dk); }

.btn--line { border-color: var(--rule-inv); color: var(--cream); }
.btn--line:hover { border-color: var(--cream); background: rgba(253,247,240,.12); }

section:not(.dark) .btn--line { border-color: var(--rule-mid); color: var(--espresso); }
section:not(.dark) .btn--line:hover { border-color: var(--berry); color: var(--berry); background: rgba(214,51,108,.07); }

/* -------------------------------------------------------------- Repères -- */

.marks { background: var(--sand); border-bottom: 1px solid var(--rule); }

.marks .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.marks div { padding: 22px 26px 22px 0; border-right: 1px solid var(--rule); }
.marks div:last-child { border-right: 0; }

@media (max-width: 640px) {
  .marks div { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .marks div:last-child { border-bottom: 0; }
}

.marks dt { font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--stone); margin-bottom: 4px; }
.marks dd { margin: 0; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--cocoa); }

/* ---------------------------------------------------- Titrage de section -- */

.lead-in { max-width: 46ch; margin-bottom: clamp(32px, 4.4vw, 52px); }
.lead-in h2 { font-size: clamp(29px, 4.6vw, 50px); margin-bottom: 15px; }
.lead-in p { color: var(--stone); margin: 0; }
.dark .lead-in p { color: #C4B2A6; }

/* -------------------------------------------------------------- Services -- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: clamp(20px, 2.4vw, 30px); }

.card {
  background: var(--cream); border: 1px solid var(--rule);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}

.card:hover { box-shadow: 0 12px 32px rgba(36,23,19,.12); transform: translateY(-3px); }

.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: 24px 24px 28px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--stone); margin: 0; max-width: none; }

/* ------------------------------------------------------------ Deux colonnes -- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: clamp(30px, 4.6vw, 66px); align-items: center; }

.split__media { overflow: hidden; border-radius: 16px; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.tick-list { list-style: none; margin: 22px 0 0; padding: 0; }
.tick-list li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); font-size: 16.5px; position: relative; }
.tick-list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--berry); }
.dark .tick-list li { border-bottom-color: var(--rule-inv); }
.dark .tick-list li::before { background: #FF8FB4; }

/* ------------------------------------------------------------------- CTA -- */

.cta { background: var(--berry); }
.cta h2 { font-size: clamp(29px, 4.6vw, 50px); max-width: 17ch; margin-bottom: 16px; color: #fff; }
.cta p { color: #FBDCE7; max-width: 50ch; margin-bottom: 28px; }
.cta .btn--solid { background: var(--cream); color: var(--berry-dk); }
.cta .btn--solid:hover { background: #fff; }
.cta .btn--line { border-color: rgba(255,255,255,.45); color: #fff; }
.cta .btn--line:hover { border-color: #fff; background: rgba(255,255,255,.14); }

/* ------------------------------------------------------------ Pages texte -- */

.page-head { background: var(--espresso); color: var(--sand); padding-block: clamp(50px, 7.5vw, 92px); }
.page-head h1 { font-size: clamp(36px, 6.4vw, 74px); color: var(--cream); margin-bottom: 15px; }
.page-head p { color: #C4B2A6; font-size: 18px; max-width: 56ch; margin: 0; }

.prose h2 { font-size: clamp(25px, 3.4vw, 38px); border-top: 3px solid var(--berry); padding-top: 14px; margin: 0 0 18px; }
.prose h3 { font-size: 19px; margin: 36px 0 12px; }
.prose p, .prose li { color: #43302A; }
.prose + .prose { margin-top: clamp(46px, 5.6vw, 76px); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 0 38px; margin: 0; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 16.5px; }

.note { font-size: 15px; color: var(--stone); border-left: 3px solid var(--berry); padding-left: 18px; margin-top: 28px; }

/* --------------------------------------------------------------- Contact -- */

.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 70px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 19px; }
.field label { display: block; font-family: var(--display); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--espresso);
  background: #fff; border: 1px solid var(--rule-mid); padding: 13px 15px; border-radius: 10px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--berry); outline: 2px solid rgba(214,51,108,.28); }
.field textarea { min-height: 160px; resize: vertical; }

.form-note { font-size: 14.5px; color: var(--stone); margin-top: 15px; }

/* ------------------------------------------------------------------ Pied -- */

.foot { background: var(--espresso); color: #C4B2A6; padding-block: clamp(42px, 5.5vw, 66px); font-size: 15px; }
.foot a { color: var(--sand); text-decoration: none; border-bottom: 1px solid var(--rule-inv); }
.foot a:hover { color: #FF8FB4; border-bottom-color: #FF8FB4; }

.foot__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 28px 40px; padding-bottom: 28px; border-bottom: 1px solid var(--rule-inv); }

.foot__name { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--cream); margin-bottom: 10px; }
.foot__name span { color: #FF8FB4; }

.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }

.foot__bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; font-size: 13.5px; }

.credit { font-size: 12px; color: #866E62; margin-top: 16px; }
.credit a { border: 0; color: #866E62; }

/* ---------------------------------------------------------------- Motion -- */

.rise { opacity: 0; transform: translateY(14px); animation: rise .65s cubic-bezier(.2,.7,.3,1) forwards; }
.rise:nth-child(2) { animation-delay: .1s; }
.rise:nth-child(3) { animation-delay: .2s; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; animation: none; }
  .card:hover { transform: none; }
  * { transition-duration: .01ms !important; }
}
