/* ===========================================================
   Café Florette — feuille de style unique (desktop + responsive)
   =========================================================== */

:root {
  --espresso: #241a14; /* header, footer, boutons sombres */
  --ink: #2c221b; /* texte courant */
  --cream: #faf5ee; /* fond général chaud */
  --surface: #ffffff;
  --accent: #a9743f; /* caramel / café */
  --accent-dark: #855827;
  --line: rgba(36, 26, 20, 0.12);
  --maxw: 1080px;
  --display: "Lobster", cursive;
  --serif: Georgia, Cambria, "Times New Roman", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin-bottom: 18px;
}

section {
  padding: clamp(56px, 9vw, 96px) 24px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
}

.underline {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
}

.separator {
  width: 90px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  margin: 22px auto;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 14px 30px;
  border-radius: 45px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--surface);
  color: var(--espresso);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}
.btn-dark {
  background: var(--espresso);
  color: #fff;
  border-color: var(--espresso);
}
.btn-dark:hover {
  background: transparent;
  color: var(--espresso);
}

.my-10 {
  margin-top: 10px;
}
.my-20 {
  margin-top: 20px;
}

/* ---------- Super-header (retour vers FantiWebConception) ---------- */
.superheader {
  background: #17110d;
  color: #d8c9b6;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  text-align: center;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.superheader__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  transition: color 0.2s ease;
}
.superheader__link:hover {
  color: var(--accent);
}
.superheader__arrow {
  transition: transform 0.2s ease;
}
.superheader__link:hover .superheader__arrow {
  transform: translateX(-3px);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--espresso);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px clamp(16px, 4vw, 40px);
}
.brand {
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.5px;
}
.header nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 4px;
}
.header nav a {
  display: block;
  color: #f3e9dd;
  padding: 10px 16px;
  border-radius: 30px;
  transition: background 0.2s ease;
}
.header nav a:hover,
.header nav .active a {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Menu hamburger (mobile) — géré en CSS pur via une checkbox. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none; /* affiché uniquement en mobile */
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.nav-toggle:focus-visible ~ .nav-burger span {
  background: var(--accent);
}

/* ---------- Hero ---------- */
.vp {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url(../images/cafe1.jpg) center/cover no-repeat;
}
.vp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 14, 10, 0.55),
    rgba(20, 14, 10, 0.7)
  );
}
.vp-content {
  position: relative;
  max-width: 640px;
  padding: 0 8px;
}
.vp-content h1 {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 400;
}
.vp-content p {
  font-size: 18px;
  margin-bottom: 8px;
}

/* ---------- Features ---------- */
.features {
  text-align: center;
}
.features .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.feature {
  flex: 1 1 260px;
}
.feature .icon {
  font-size: 44px;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature h2 {
  font-size: 24px;
}
.feature p {
  color: #5b4d42;
}

/* ---------- Bande image ---------- */
.image {
  height: clamp(420px, 42vw, 600px);
  background: url(../images/cafe3.jpg) center/cover no-repeat;
}

/* ---------- Réservation ---------- */
.reservation {
  text-align: center;
  background: var(--surface);
}
.reservation .container {
  max-width: 680px;
}
.reservation h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
}
.reservation p {
  color: #5b4d42;
}

/* ---------- Où nous trouver ---------- */
.where .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.where-img {
  flex: 1 1 340px;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
}
.where .text {
  flex: 1 1 280px;
}
.where .text h1 {
  font-size: clamp(28px, 4vw, 40px);
}
.where .text h2 {
  font-weight: 400;
  font-size: 22px;
}
.number {
  display: inline-block;
  min-width: 34px;
  padding: 0 4px;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
}
.number-violet {
  background: #7b3f9d;
}
.number-marron {
  background: #8a5a2b;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(../images/cafe1.jpg) center/cover no-repeat;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.55);
}
.form-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: 16px;
  padding: clamp(28px, 5vw, 44px);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5);
}
.form-container h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 34px);
  color: var(--accent);
}
.form-container .icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 10px;
}
.form-container label {
  display: block;
  font-weight: 700;
  margin: 16px 0 6px;
}
.form-container input,
.form-container textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--serif);
  font-size: 15px;
  background: var(--cream);
  transition: border-color 0.2s ease;
}
.form-container input:focus,
.form-container textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-container textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Footer ---------- */
footer {
  background: var(--espresso);
  color: #e9ddce;
  text-align: center;
  padding: 34px 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-burger {
    display: inline-flex;
  }
  .header nav {
    flex-basis: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .nav-toggle:checked ~ nav {
    max-height: 260px;
  }
  .header nav ul {
    flex-direction: column;
    gap: 2px;
    padding-top: 6px;
  }
  .header nav a {
    text-align: center;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .where .container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .where-img {
    width: 100%;
  }
}
