/* ============================================================
   Le Café Bleu — feuille de style du site (refonte 2026)
   Restaurant de bord de mer : fond clair, marine, un bleu mer.
   ============================================================ */

:root {
  --white: #ffffff;
  --sand: #f5efe4;
  --sand-2: #ebe2d2;
  --line: #ddd2bf;
  --ink: #0f2a44;
  --ink-soft: #4b5e71;
  --sea: #1b5d86;
  --sea-deep: #134a6d;
  --sea-tint: #d9e8f1;
  --on-sea: #f4f8fb;
  --on-sea-soft: #c9dceb;
  --closed: #a5311d;
  --open: #1d6a44;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --step-4: clamp(3rem, 1.8rem + 6vw, 6rem);

  --space-s: 0.75rem;
  --space-m: 1.25rem;
  --space-l: 2rem;
  --space-xl: clamp(3rem, 2rem + 4vw, 5.5rem);

  --radius: 6px;
  --wrap: 72rem;
  --shadow: 0 10px 30px -12px rgba(15, 42, 68, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-3);
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

::selection {
  background: var(--sea);
  color: var(--on-sea);
}

:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.muted {
  color: var(--ink-soft);
}

.nowrap {
  white-space: nowrap;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.skip:focus {
  top: 1rem;
}

/* ---------- Liens et boutons ---------- */
.link {
  color: var(--sea);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness 0.2s;
}

.link:hover {
  text-decoration-thickness: 2px;
}

.link--strong {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 var(--step-0) / 1.2 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease-out),
    box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--sea);
  color: var(--on-sea);
}

.btn--primary:hover {
  background: var(--sea-deep);
  box-shadow: var(--shadow);
}

.btn--light {
  background: var(--white);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--sand);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
}

.btn--ghost {
  border-color: rgba(244, 248, 251, 0.7);
  color: var(--on-sea);
}

.btn--ghost:hover {
  border-color: var(--on-sea);
  background: rgba(244, 248, 251, 0.12);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: var(--step--1);
}

.btn--large {
  min-height: 3.75rem;
  padding: 1rem 1.9rem;
  font-size: var(--step-1);
}

/* ---------- Encadré de fermeture ---------- */
.notice {
  background: var(--ink);
  color: var(--white);
}

.notice__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.6rem;
  padding-block: 0.85rem;
  text-align: center;
  font-size: var(--step-0);
}

.notice__inner span {
  color: #c9d6e2;
}

.notice[hidden] {
  display: none;
}

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-l);
  min-height: 4.25rem;
}

.brand {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sea);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.nav a:hover {
  color: var(--ink);
  background: var(--sand);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--sea);
  border-radius: 0;
}

/* ---------- Hero (aplat mer, futur emplacement photo) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(52vh, 30rem);
  background: var(--sea) var(--hero-photo, none) center / cover no-repeat;
  color: var(--on-sea);
  overflow: clip;
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 48, 0.75), rgba(10, 30, 48, 0) 65%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-xl) clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.hero__lead {
  max-width: 34ch;
  margin-top: var(--space-m);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.3;
}

.hero__place {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: var(--space-m);
  color: var(--on-sea-soft);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * {
    animation: rise 0.9s var(--ease-out) both;
  }
  .hero__inner > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero__inner > :nth-child(3) {
    animation-delay: 0.14s;
  }
  .hero__inner > :nth-child(4) {
    animation-delay: 0.2s;
  }
}

@keyframes rise {
  from {
    transform: translateY(16px);
  }
}

/* ---------- Infos pratiques ---------- */
.practical {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

.practical__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
}

.practical__item {
  display: flex;
  gap: 0.8rem;
  padding: var(--space-l) var(--space-m);
  border-left: 1px solid var(--line);
}

.practical__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.practical__item > .icon {
  margin-top: 0.15rem;
  color: var(--sea);
}

.practical__status > .icon {
  color: currentColor;
}

.practical__label {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink-soft);
}

.status {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
}

.practical__status:has(.status[data-state="closed"]) {
  color: var(--closed);
}

.practical__status:has(.status[data-state="open"]) {
  color: var(--open);
}

/* ---------- Introduction ---------- */
.intro {
  padding-block: var(--space-xl);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-l) var(--space-xl);
  align-items: start;
}

.intro__text {
  display: grid;
  gap: var(--space-m);
  max-width: 62ch;
  font-size: var(--step-1);
  line-height: 1.55;
}

.intro__text .muted {
  font-size: var(--step-0);
}

/* ---------- La carte en bref ---------- */
.carte {
  padding-block: var(--space-xl);
  background: var(--sand);
}

.carte__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-l) var(--space-xl);
  align-items: start;
}

.carte__head {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
}

.carte__head p {
  font-size: var(--step-1);
  color: var(--ink-soft);
}

.prices {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.prices li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 0.35rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.prices__name {
  font-size: var(--step-1);
  font-weight: 600;
}

.prices__dots {
  grid-column: 2;
  grid-row: 1;
  align-self: baseline;
  height: 0.3em;
  border-bottom: 2px dotted rgba(75, 94, 113, 0.55);
  min-width: 0.75rem;
}

.prices__note {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--ink-soft);
}

.prices__price {
  grid-column: 3;
  grid-row: 1;
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--sea);
  font-variant-numeric: tabular-nums;
}

/* ---------- Réservation ---------- */
.resa {
  padding-block: var(--space-xl);
}

.resa__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-l) var(--space-xl);
  align-items: center;
}

.resa__facts {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--space-m);
  padding-left: 1.2rem;
  font-size: var(--step-1);
}

.resa__facts li::marker {
  color: var(--sea);
}

.resa__actions {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
}

/* ---------- Pages intérieures : en-tête de page ---------- */
.page-head {
  padding-block: var(--space-xl) var(--space-l);
}

.page-head h1 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.page-head__lead {
  margin-top: var(--space-m);
  max-width: 48ch;
  font-size: var(--step-1);
  color: var(--ink-soft);
}

.page-head__actions {
  margin-top: var(--space-l);
}

/* ---------- Demande par e-mail ---------- */
.resa-mail {
  padding-block: var(--space-xl);
  background: var(--sand);
  border-top: 1px solid var(--line);
}

.resa-mail__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-l) var(--space-xl);
  align-items: start;
}

.resa-mail__intro {
  display: grid;
  gap: var(--space-m);
  max-width: 44ch;
}

.resa-mail__intro h2 {
  font-size: var(--step-2);
}

.resa-mail__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.25rem, 1rem + 2vw, 2.25rem);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

.field {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--ink-soft);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-soft);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px var(--sea-tint);
}

.field [aria-invalid="true"] {
  border-color: var(--closed);
}

.field__hint {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.field__error {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--closed);
}

.field__error:empty {
  display: none;
}

.form__submit {
  width: 100%;
  margin-top: var(--space-l);
}

.btn--outline {
  border-color: var(--sea);
  color: var(--sea);
  background: transparent;
}

.btn--outline:hover {
  background: var(--sea-tint);
}

.sent {
  display: grid;
  gap: var(--space-m);
  justify-items: start;
}

.sent[hidden] {
  display: none;
}

.sent:focus {
  outline: none;
}

.sent h3 {
  font-size: var(--step-2);
}

@media (max-width: 960px) {
  .resa-mail__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- La carte ---------- */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-l);
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.jump a:hover {
  border-color: var(--sea);
  background: var(--sea-tint);
}

.menu-ardoise {
  padding-block: var(--space-xl);
  background: var(--sand);
  border-block: 1px solid var(--line);
}

.menu-sec--ardoise {
  max-width: 44rem;
}

.menu-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-xl);
  padding-block: var(--space-xl) var(--space-l);
}

.menu-col {
  display: grid;
  gap: var(--space-xl);
  align-content: start;
}

.menu-sec {
  scroll-margin-top: 5.5rem;
}

.menu-sec h2 {
  font-size: var(--step-2);
  margin-bottom: var(--space-m);
}

.menu-sec__note {
  margin-top: var(--space-s);
  color: var(--ink-soft);
}

.resa__text {
  margin-top: var(--space-m);
  max-width: 52ch;
  font-size: var(--step-1);
  color: var(--ink-soft);
}

.practical--page {
  border-top: 1px solid var(--line);
}

@media (min-width: 961px) {
  .practical--page .practical__grid {
    grid-template-columns: 1.2fr 1fr 1.15fr 1.5fr;
  }
}

@media (max-width: 960px) {
  .menu-cols {
    grid-template-columns: 1fr;
  }
  .menu-col + .menu-col {
    margin-top: var(--space-xl);
  }
}

/* ---------- Pied de page ---------- */
.footer {
  background: var(--ink);
  color: #dbe4ec;
  padding-block: var(--space-xl) var(--space-l);
}

.footer .link {
  color: var(--white);
}

.footer .muted {
  color: #a9bbcb;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-l);
}

.footer__brand {
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__title {
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer__legal {
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(219, 228, 236, 0.18);
  font-size: var(--step--1);
  color: #a9bbcb;
}

/* ---------- Barre d'actions mobile ---------- */
.actionbar {
  display: none;
}

/* ---------- Tablette ---------- */
@media (max-width: 960px) {
  .practical__grid {
    grid-template-columns: 1fr 1fr;
  }
  .practical__item:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .practical__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .intro__grid,
  .carte__grid,
  .resa__inner {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .header {
    position: static;
  }
  .header__call {
    display: none;
  }
  .header__inner {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 0.6rem;
  }
  .nav {
    width: 100%;
    margin-left: -0.45rem;
    justify-content: space-between;
  }
  .nav a {
    padding: 0 0.45rem;
    font-size: var(--step--1);
    white-space: nowrap;
  }
  .notice__inner span {
    display: none;
  }
  .hero {
    min-height: 0;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
  }
  .practical__grid {
    grid-template-columns: 1fr;
  }
  .practical__item,
  .practical__item:nth-child(3) {
    border-left: 0;
    padding: var(--space-m) 0;
  }
  .practical__item + .practical__item {
    border-top: 1px solid var(--line);
  }
  .btn--large {
    width: 100%;
    white-space: normal;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }

  body.has-actionbar {
    padding-bottom: 5rem;
  }
  .actionbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(15, 42, 68, 0.35);
  }
  .actionbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    border-radius: 999px;
    border: 2px solid var(--sea);
    color: var(--sea);
    font-weight: 700;
    text-decoration: none;
  }
  .actionbar__btn--primary {
    background: var(--sea);
    color: var(--on-sea);
  }
}
