:root {
  --max: 1100px;
  --pad: 1.2rem;
  --accent: #0b63f6;
  --ink: #0f172a;
}

/* ===== Reset & base ===== */
* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: #fff
}

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

a:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px
}

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

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

/* ===== Header & nav (structure commune) ===== */
.topbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 20;
  height: 96px;
  display: flex;
  align-items: center
}

.mainnav {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 1.2rem
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem
}

.logo-img {
  height: 90px;
  width: auto
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: .5rem;
  padding: .5rem .7rem;
  cursor: pointer
}

.mainnav ul {
  list-style: none;
  display: flex;
  gap: .6rem;
  margin: 0;
  padding: 0
}

.mainnav li a {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: .8rem;
  border: 1px solid transparent;
  font-weight: 600
}

.mainnav li a:hover {
  border-color: #e5e7eb;
  background: #f8fafc
}

.mainnav li a:active,
.mainnav li a[aria-current="page"] {
  border-color: var(--accent)
}

.cta-phone {
  font-weight: 700;
  padding: .6rem 1rem;
  border: 1px solid var(--ink);
  border-radius: .8rem
}

.cta-phone:hover {
  background: var(--ink);
  color: #fff
}

/* ===== Hero / sections / cartes ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0
}

.hero-text .lead {
  color: #475569;
  max-width: 60ch
}

.badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none
}

.badges li {
  background: var(--ink);
  color: #fff;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .92rem
}

.mascot {
  max-width: 420px;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(2, 6, 23, .12)
}

.section {
  padding: 3rem 0
}

.section.alt {
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: .9rem;
  padding: 1rem;
  background: #fff
}

.card:hover {
  box-shadow: 0 4px 14px rgba(2, 6, 23, .06)
}

.scene {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0
}

.scene img {
  width: 140px;
  height: auto;
  border-radius: .7rem;
  flex-shrink: 0
}

.scene p {
  margin: 0
}

/* ===== Tables & chips ===== */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem
}

.price {
  border: 1px dashed #cbd5e1;
  border-radius: .9rem;
  padding: 1rem;
  background: #fff
}

.table {
  width: 100%;
  border-collapse: collapse
}

.table th,
.table td {
  border: 1px solid #e5e7eb;
  padding: .7rem;
  text-align: left
}

.chips {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap
}

.chip {
  padding: .35rem .6rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff
}

.map-wrap {
  margin: 1rem 0;
  border: 1px solid #e5e7eb;
  border-radius: .8rem;
  overflow: hidden
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  background: var(--ink);
  color: #fff;
  margin-top: 2rem
}

.footer a {
  color: #fff
}

/* ===== Sticky call ===== */
.sticky-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--ink);
  color: #fff;
  padding: .8rem 1rem;
  border-radius: .7rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 6, 23, .2)
}

.hidden {
  display: none
}

/* =================================================================== */
/* ================   RESPONSIVE — MOBILE FIRST   ===================== */
/* =================================================================== */

/* --- ≤ 860px : Mobile & tablette --- */
@media (max-width:860px) {

  /* Header grandit quand le menu s’ouvre */
  .topbar {
    height: auto
  }

  /* Barre d’entête : logo à gauche, burger à droite, espace entre */
  .mainnav {
    position: static;
    display: block
  }

  .brand {
    display: inline-flex;
    align-items: center;
    margin-right: auto
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: right;
    margin-left: auto
  }

  /* Numéro : CACHÉ sur petit écran */
  .mainnav .nav-phone {
    display: none !important
  }

  /* Menu : caché par défaut, s’affiche SOUS la barre quand .open */
  .mainnav #menu {
    display: none;
    flex-direction: column;
    margin: .5rem 0 0;
    padding: 0;
    width: 100%
  }

  .mainnav.open #menu {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: #fff;
    padding: .8rem 0;
    border-top: 1px solid #eee;
    position: static;
    box-shadow: none;
  }

  .mainnav #menu li a {
    display: block;
    padding: .85rem 1rem;
    border-radius: .5rem;
    border: 1px solid #e5e7eb;
    background: #f8fafc
  }

  /* Typo & espacements */
  h1 {
    font-size: 1.6rem;
    line-height: 1.3
  }

  h2 {
    font-size: 1.3rem
  }

  p,
  li {
    font-size: 1rem
  }

  .section {
    padding: 1.5rem 0
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.2rem 0;
    text-align: center
  }

  .hero img {
    max-width: 200px;
    margin: 0 auto
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem
  }

  .card {
    padding: 1rem
  }

  .table {
    display: block;
    overflow-x: auto
  }
}

/* --- ≤ 480px : très petit mobile --- */
@media (max-width:480px) {
  h1 {
    font-size: 1.3rem
  }

  h2 {
    font-size: 1.1rem
  }

  p,
  li {
    font-size: .95rem
  }

  .logo-img {
    height: 32px
  }

  .sticky-call {
    font-size: .9rem;
    padding: .6rem .8rem
  }

  .mainnav #menu li a {
    padding: .7rem;
    font-size: .95rem
  }
}

/* =================================================================== */
/* ================     RESPONSIVE — DESKTOP       ==================== */
/* =================================================================== */

/* --- ≥ 861px : Desktop --- */
@media (min-width:861px) {

  /* Layout header : logo | numéro (centre) | menu (droite) */
  .mainnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem
  }

  .mainnav .brand {
    order: 1;
    margin-right: 2rem
  }

  .mainnav .nav-phone {
    order: 2;
    flex: 1;
    text-align: center;
    margin: 0 2rem
  }

  .mainnav #menu {
    order: 3;
    display: flex;
    gap: 1.2rem;
    margin-left: 2rem
  }

  /* Bouton burger masqué sur desktop */
  .nav-toggle {
    display: none !important
  }

  /* Dropdown (ex.: Services) */
  #menu>li {
    position: relative
  }

  #menu>li>.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: .5rem 0;
    min-width: 220px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    z-index: 100;
  }

}

/* ===== Mobile (≤ 860px) : logo à gauche, menu à droite ===== */
@media (max-width: 860px) {
  .mainnav {
    display: flex;
    /* toujours en flex */
    align-items: center;
    justify-content: space-around;
    /* espace entre logo et menu */
  }

  .brand {
    margin-right: auto;
    /* pousse le logo à gauche */
  }

  .nav-toggle {
    margin-left: auto;
    /* pousse le menu  à droite */
  }

  /* Important : on garde .mainnav.open #menu en bloc sous la barre */
  .mainnav.open {
    flex-direction: column;
    /* pour que le menu s'affiche sous le logo/menu */
    align-items: stretch;
  }

  .mainnav.open #menu {
    width: 100%;
  }
}

.porte {
  width: 800px;
  /* fixe la largeur */
  height: auto;
  /* conserve les proportions */
}