/* Vitrine MoncabinetIDEL : mêmes couleurs et même police que l'application, aucune ressource externe. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/polices/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/polices/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  color-scheme: light;
  --vert: #0e6b5c;
  --vert-fonce: #0a5549;
  --vert-doux: #e2edeb;
  --fond: #f4f6f5;
  --surface: #ffffff;
  --texte: #10201b;
  --discret: #4f5e58;
  --bord: #e1e6e3;
  --attention: #8a4400;
  --attention-fond: #fff4e5;
  --attention-bord: #f6d7a8;
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font:
    1rem/1.6 'Plus Jakarta Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Arial,
    sans-serif;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--vert);
  font-weight: 600;
}

img {
  max-width: 100%;
}

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

.evitement {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--surface);
}

.evitement:focus {
  top: 1rem;
}

.entete,
main > section,
.pied {
  width: min(70rem, 100%);
  margin: 0 auto;
  padding-right: 1rem;
  padding-left: 1rem;
}

.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Le logo officiel : symbole et nom côte à côte (images tirées de logo.jpeg). */
.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
}

.marque__symbole {
  width: 3.25rem;
  height: auto;
}

.marque__nom {
  width: 12.5rem;
  height: auto;
}

.pied__logo {
  display: block;
  width: 13.75rem;
  height: auto;
  margin: 0 auto 1rem;
}

.pied {
  text-align: center;
}

.bloc--attente {
  max-width: 34rem;
  text-align: center;
}

.bloc--attente .actions {
  justify-content: center;
}

.logo-central {
  width: min(19rem, 80%);
  height: auto;
  margin-bottom: 1.5rem;
}

.entete nav {
  display: none;
  gap: 1.5rem;
}

.entete nav a {
  color: var(--discret);
  text-decoration: none;
}

@media (min-width: 56rem) {
  .entete nav {
    display: flex;
  }
}

/* Sur téléphone, le même bouton est juste en dessous : on ne le montre pas deux fois. */
@media (max-width: 32rem) {
  .entete .bouton {
    display: none;
  }
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid var(--vert);
  border-radius: 14px;
  background: var(--vert);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.bouton:hover {
  background: var(--vert-fonce);
}

.bouton--clair,
.bouton--discret {
  background: var(--surface);
  color: var(--vert);
}

.bouton--clair:hover,
.bouton--discret:hover {
  background: var(--vert-doux);
}

.bouton--discret {
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.actions--centre {
  justify-content: center;
  margin-top: 1.5rem;
}

.chapo {
  color: var(--discret);
  font-size: 1.15rem;
}

.precision {
  color: var(--discret);
  font-size: 0.9rem;
}

.accroche {
  display: grid;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

@media (min-width: 56rem) {
  .accroche {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

/* Un cadre de téléphone autour des captures. */
.telephone {
  width: min(19rem, 100%);
  margin: 0 auto;
  padding: 0.5rem;
  border-radius: 2.4rem;
  background: #10201b;
  box-shadow: 0 30px 60px -25px rgb(16 32 27 / 45%);
}

.telephone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.95rem;
}

.fonction {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--bord);
}

@media (min-width: 56rem) {
  .fonction {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }

  .fonction--inverse > div {
    order: 2;
  }
}

.repere {
  margin-bottom: 0.5rem;
  color: var(--vert);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fonction ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fonction li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.9rem;
}

.fonction li::before {
  content: '';
  position: absolute;
  top: 0.8rem;
  left: 0.35rem;
  width: 0.4rem;
  height: 0.75rem;
  border: solid var(--vert);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.et-aussi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 2.5rem 0;
  list-style: none;
}

.et-aussi li,
.carte {
  padding: 1.25rem;
  border: 1px solid var(--bord);
  border-radius: 18px;
  background: var(--surface);
}

.et-aussi strong {
  display: block;
}

.bloc {
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.bloc--vert {
  margin-top: 1rem !important;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  border-radius: 24px;
  background: var(--vert);
  color: #fff;
}

@media (max-width: 70rem) {
  .bloc--vert {
    border-radius: 0;
  }
}

.bloc--vert .chapo {
  color: #d3e7e2;
}

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.etapes li {
  padding: 1.25rem;
  border-radius: 18px;
  background: rgb(255 255 255 / 10%);
  counter-increment: etape;
}

.etapes li::before {
  content: counter(etape);
  display: grid;
  place-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--vert);
  font-weight: 800;
}

.deux,
.trois {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .deux {
    grid-template-columns: 1fr 1fr;
  }

  .trois {
    grid-template-columns: repeat(3, 1fr);
  }
}

.carte ul {
  margin: 0;
  padding-left: 1.2rem;
}

.carte li + li {
  margin-top: 0.5rem;
}

.carte p {
  margin: 0;
  color: var(--discret);
}

.carte--attention {
  border-color: var(--attention-bord);
  background: var(--attention-fond);
}

.carte--attention h3 {
  color: var(--attention);
}

details {
  border-bottom: 1px solid var(--bord);
}

summary {
  min-height: 44px;
  padding: 0.75rem 0;
  font-weight: 700;
  cursor: pointer;
}

details p {
  color: var(--discret);
}

.pied {
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--bord);
  color: var(--discret);
  font-size: 0.9rem;
}

/* Quand l'invitation est ouverte, la fin de page reste lisible. */
body.avec-invitation {
  padding-bottom: 12rem;
}

/* Invitation à installer l'application. */
.invitation {
  position: fixed;
  z-index: 10;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  background: #10201b;
  color: #fff;
  box-shadow: 0 18px 40px -12px rgb(16 32 27 / 55%);
  font-size: 0.875rem;
  line-height: 1.4;
  transform: translateY(130%);
  transition: transform 0.35s ease;
}

.invitation--ouverte {
  transform: none;
}

.invitation__icone {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
}

.invitation strong {
  display: block;
  font-size: 0.95rem;
}

.invitation__texte span {
  display: block;
  color: rgb(255 255 255 / 82%);
}

.invitation__fermer {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.invitation__actions {
  grid-column: 2 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.invitation__installer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #4fd1b5;
  color: #06231d;
  font-weight: 800;
  text-decoration: none;
}

.invitation :focus-visible {
  outline-color: #fff;
}

@media (min-width: 56rem) {
  .invitation {
    right: 20px;
    left: auto;
    max-width: 400px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .invitation {
    transition: none;
  }
}
