/* MyKube — feuille de style commune (responsive, mobile d'abord) */

:root {
  --ink: #161a3a;
  --paper: #f5f6fb;
  --white: #ffffff;
  --cobalt: #2437d6;
  --cobalt-dark: #1a2aa8;
  --ticket: #ffd84a;
  --mist: #dfe3f3;
  --muted: #565c80;
  --radius: 6px;
  --wrap: 1120px;
  --font: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

img { max-width: 100%; height: auto; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-dark); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.75rem; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: 66ch; }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 50;
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- En-tête ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  position: sticky; top: 0; z-index: 30;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; flex-wrap: wrap; }
.logo img { display: block; height: 56px; width: auto; }

.menu-btn {
  font: inherit; font-weight: 700;
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 0.45rem 0.9rem; cursor: pointer;
}

#menu { display: none; width: 100%; padding-bottom: 0.75rem; }
#menu.open { display: block; }
#menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
#menu a {
  display: block; padding: 0.7rem 0.9rem;
  color: var(--ink); text-decoration: none; font-weight: 650;
  border-radius: var(--radius);
}
#menu a:hover { background: var(--paper); }
#menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cobalt); }
#menu a.nav-star { background: var(--ticket); }
#menu a.nav-tel { color: var(--cobalt); }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  #menu { display: block; width: auto; padding: 0; }
  #menu ul { flex-direction: row; align-items: center; gap: 0.15rem; }
  #menu a { padding: 0.5rem 0.8rem; }
  #menu a.nav-star { border-radius: 999px; padding-inline: 1rem; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font: inherit; font-weight: 750; text-decoration: none; text-align: center;
  background: var(--cobalt); color: #fff;
  border: 2px solid var(--cobalt); border-radius: var(--radius);
  cursor: pointer;
}
.btn:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ticket { background: var(--ticket); border-color: var(--ticket); color: var(--ink); }
.btn-ticket:hover { background: #ffe37a; border-color: #ffe37a; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Bloc carrousel d'accueil ---------- */

.pitch-section { padding: 3.5rem 0 0; }
.pitch {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 1.5rem 1.25rem 1rem;
}
.pitch-slides { display: grid; }
.pitch-slide {
  grid-area: 1 / 1;
  display: grid; gap: 1rem; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.pitch-slide.on { opacity: 1; visibility: visible; }
.pitch-title {
  font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 850;
  line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 0.75rem; max-width: 16ch;
}
.pitch-text p { max-width: 38ch; color: var(--muted); }
.pitch-text p.pitch-title { max-width: 16ch; color: var(--ink); }
.pitch-text a { font-weight: 750; }
.pitch-slide img { display: block; width: 100%; height: 230px; object-fit: contain; }

.pitch-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--mist);
}
.dots { display: flex; gap: 0.1rem; }
.dots button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.dots button::before { content: ""; position: absolute; inset: 8px; border: 2px solid var(--ink); border-radius: 50%; }
.dots button[aria-current="true"]::before { background: var(--ink); }
.pause {
  font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--ink);
  background: transparent; border: 0; padding: 0.4rem 0.5rem; cursor: pointer; text-decoration: underline;
}

@media (min-width: 760px) {
  .pitch { padding: 2.25rem 3rem 1rem; }
  .pitch-slide { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .pitch-slide img { height: 320px; }
}

/* ---------- Offre star ---------- */

.star { padding: 3.5rem 0 4rem; }
.star-grid { display: grid; gap: 2.5rem; align-items: center; }
.lead { font-size: 1.2rem; max-width: 52ch; }
.lead strong { font-weight: 800; }
.fineprint { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }

@media (min-width: 900px) {
  .star { padding: 5rem 0 5.5rem; }
  .star-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}

/* Le bon de retrait : l'élément mémorable de la page */

.ticket {
  position: relative;
  max-width: 400px; width: 100%; margin-inline: auto;
  padding: 1.5rem;
  background: var(--ticket); color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 16px 30px -14px rgba(22, 26, 58, 0.4);
}
.ticket-head { display: flex; justify-content: space-between; gap: 1rem; font-weight: 800; margin-bottom: 1rem; }
.ticket-head span:last-child { font-weight: 600; }
.ticket dl { margin: 0; }
.ticket .line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 2px dotted rgba(22, 26, 58, 0.35);
}
.ticket dt { font-weight: 600; }
.ticket dd { margin: 0; font-weight: 800; text-align: right; }
.ticket .perf { position: relative; margin: 1.25rem 0 1rem; border-top: 2px dashed rgba(22, 26, 58, 0.55); }
.ticket .perf::before, .ticket .perf::after {
  content: ""; position: absolute; top: -13px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--paper);
}
.ticket .perf::before { left: -36px; }
.ticket .perf::after { right: -36px; }
.ticket .total { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.ticket .total .label { font-weight: 700; line-height: 1.25; }
.ticket .total .price { font-size: 2.6rem; font-weight: 850; line-height: 1; letter-spacing: -0.03em; white-space: nowrap; }
.ticket .total .price small { font-size: 1rem; font-weight: 700; letter-spacing: 0; }

@media (min-width: 900px) {
  .ticket { transform: rotate(-2deg); }
}

/* ---------- Sections ---------- */

.section { padding: 3.5rem 0; }
.section-white { background: var(--white); }
.section-head { margin-bottom: 2rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: etape; }
.steps li { counter-increment: etape; border-top: 3px solid var(--ink); padding-top: 0.9rem; }
.steps li::before {
  content: counter(etape);
  display: block; font-size: 2.2rem; font-weight: 850; line-height: 1; color: var(--cobalt); margin-bottom: 0.4rem;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }

.split { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 0.8rem 0 0.8rem 2rem; border-bottom: 1px solid var(--mist); position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 1.1rem;
  width: 0.55rem; height: 0.95rem;
  border: solid var(--cobalt); border-width: 0 3px 3px 0; transform: rotate(40deg);
}
.ticks li:first-child { border-top: 1px solid var(--mist); }

.quote { margin: 0; max-width: 60ch; }
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.35; font-weight: 650; letter-spacing: -0.01em; }
.quote footer, .quote cite { font-style: normal; color: var(--muted); font-size: 0.95rem; }

.rows { border-top: 3px solid var(--ink); }
.row { display: grid; gap: 0.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--mist); align-items: start; }
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .row { grid-template-columns: 0.7fr 1.5fr auto; gap: 2rem; align-items: center; } }

.band { background: var(--ink); color: #fff; padding: 3.5rem 0; }
.band h2 { color: #fff; }
.band p { color: #d8dcf3; }
.band a:not(.btn) { color: var(--ticket); }
.band .btn-ghost { color: #fff; border-color: #fff; }
.band .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Pages intérieures ---------- */

.page-head { padding: 3rem 0 1.5rem; }
.page-head .lead { margin-bottom: 0; }

.offer { padding: 2.5rem 0; border-top: 3px solid var(--ink); display: grid; gap: 1.5rem; }
.offer + .offer { margin-top: 0.5rem; }
@media (min-width: 900px) { .offer { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }
.price-line { font-weight: 750; }
.tag {
  display: inline-block; background: var(--ticket); color: var(--ink);
  font-weight: 800; font-size: 0.9rem; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.75rem;
}

.testimonials { display: grid; gap: 0; }
.testimonials article { padding: 1.75rem 0; border-top: 1px solid var(--mist); }
.testimonials article:first-child { border-top: 3px solid var(--ink); }
.testimonials h2 { font-size: 1.4rem; }
.testimonials blockquote { margin: 0; }
.testimonials blockquote p { margin: 0 0 0.5rem; }
.testimonials cite { font-style: normal; font-weight: 700; color: var(--muted); }
@media (min-width: 900px) {
  .testimonials { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .testimonials article:nth-child(2) { border-top: 3px solid var(--ink); }
}

.works { border-top: 3px solid var(--ink); }
.work { display: grid; gap: 1.25rem; padding: 2rem 0; border-bottom: 1px solid var(--mist); align-items: start; }
.work-shot { display: block; width: 100%; max-width: 286px; border: 1px solid var(--mist); border-radius: 6px; overflow: hidden; background: var(--white); }
.work-shot img { display: block; width: 100%; height: auto; }
.work-shot:hover img { opacity: 0.88; }
.work h2 { font-size: 1.5rem; }
.work blockquote { margin: 0 0 0.9rem; }
.work blockquote p { font-size: 1.15rem; line-height: 1.45; font-weight: 600; margin: 0 0 0.5rem; }
.work cite { font-style: normal; font-weight: 700; color: var(--muted); }
@media (min-width: 760px) { .work { grid-template-columns: 286px 1fr; gap: 2.5rem; } }

details { border-bottom: 1px solid var(--mist); padding: 0.9rem 0; }
details:first-of-type { border-top: 1px solid var(--mist); }
summary { cursor: pointer; font-weight: 750; }
details p { margin: 0.6rem 0 0; color: var(--muted); }

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

.contact-grid { display: grid; gap: 2.5rem; padding-bottom: 3.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: 4rem; } }

form { display: grid; gap: 1rem; }
label { font-weight: 700; display: block; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.7rem 0.8rem; background: var(--white);
  border: 2px solid var(--mist); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px rgba(36, 55, 214, 0.2); }
textarea { min-height: 9rem; resize: vertical; }
.two { display: grid; gap: 1rem; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }
.status { padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 700; }
.status.ok { background: #dff5e4; color: #14532d; }
.status.err { background: #fde2e2; color: #7f1d1d; }
address { font-style: normal; }
.coords p { margin-bottom: 0.4rem; }

/* ---------- Pied de page ---------- */

.site-footer { border-top: 1px solid var(--mist); padding: 2.5rem 0 3rem; font-size: 0.95rem; }
.foot { display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer details { border: 0; padding: 0; margin-top: 1.5rem; }
.site-footer details:first-of-type { border: 0; }
.site-footer details p { font-size: 0.88rem; max-width: 80ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pitch-slide { transition: none; }
}
