:root {
  --blue-dark: #034e8f;
  --blue-main: #034e8f;
  --blue-mid: #3a6cb0;
  --blue-light: #caddec;
  --blue-pale: #dbe8f6;
  --bg: #eef2f8;
}

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--blue-main);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Structure plein écran ---------- */
.flyer {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.flyer-main { flex: 1 1 auto; }

/* ---------- Colonne gauche ---------- */
.flyer-left {
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3.5rem) 0;
  display: flex;
  flex-direction: column;
}

.flyer-title {
  color: var(--blue-dark);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.12;
  font-size: clamp(1.7rem, 3.3vw, 3rem);
  margin: 0;
}
.flyer-rule {
  width: 4.5rem;
  border: 0;
  border-top: 2px solid var(--blue-main);
  opacity: 1;
  margin: 1.5rem 0 1.25rem;
}
.flyer-subtitle {
  color: var(--blue-main);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.35;
  margin-bottom: 2rem;
}

/* ---------- Services ---------- */
.services { display: grid; gap: clamp(1rem, 2.5vh, 1.6rem); margin-bottom: 2rem; }
.service { display: flex; align-items: center; gap: 1.1rem; }
.service-icon {
  flex: 0 0 auto;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  background: var(--blue-main);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.45rem;
}
.service h2 {
  font-size: 1.05rem; font-weight: 800; text-transform: uppercase;
  color: var(--blue-dark); margin: 0; letter-spacing: .02em;
}
.service p { margin: 0; color: var(--blue-main); }

/* ---------- Encadré 7j/7 ---------- */
.coverage {
  margin-top: auto;
  margin-left: calc(-1 * clamp(1.25rem, 4vw, 3.5rem));
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
  background: var(--blue-pale);
  border-top-right-radius: 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
  max-width: 34rem;
}
.coverage-icon { font-size: 3.6rem; color: var(--blue-main); }
.coverage strong { display: block; font-size: 1.15rem; color: var(--blue-dark); }
.coverage p { margin: 0; font-size: 1.1rem; line-height: 1.35; }

/* ---------- Colonne droite ---------- */
.flyer-right {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--blue-light);
}

/* Bloc bleu foncé avec grand arrondi */
.identity {
  position: relative;
  background: var(--blue-dark);
  color: #fff;
  display: flex; align-items: center; gap: 1.1rem;
  padding: 0px 30px 15px;
}
.identity-logo {
  width: 100px;
}
.identity-name { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; margin: 0; }
.identity-job { margin: .15rem 0 0; opacity: .9; line-height: 1.35; }

/* Pièce / décor */
.room {
  position: relative;
  flex: 1 1 auto;
  min-height: 22rem;
  background-image: url('../img/room.jpg');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
}
.room-frame { position: absolute; top: 18%; right: 6%; font-size: clamp(3.5rem, 6vw, 6rem); color: var(--blue-mid); opacity: .75; }
.room-plant { position: absolute; bottom: 8%; left: 7%; font-size: clamp(3.5rem, 6vw, 6rem); color: var(--blue-mid); opacity: .85; transform: rotate(-8deg); }
.room-lamp  { position: absolute; bottom: 36%; right: 3%; font-size: clamp(3rem, 5vw, 5rem); color: var(--blue-mid); opacity: .6; }

.perso {
  height:80%;
  position: absolute;
  bottom: 0;
  left:30%;

}

/* Bulle de texte */
.bubble {
  position: relative;
  left: -88px;
  top: 50px;
  width: clamp(9.5rem, 15vw, 12rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-dark);
  border: 4px solid #fff;
  color: #fff;
  display: grid; place-items: center;
  text-align: center;
  font-family: "Segoe Script", "Brush Script MT", "Comic Sans MS", cursive;
  font-style: italic;
  font-size: clamp(.9rem, 1.3vw, 1.1rem);
  line-height: 1.5;
  padding: 1rem;
  z-index: 9;
}

/* Infirmier */
.nurse {
  position: absolute;
  bottom: 0; right: 4%;
  height: 88%;
  width: auto;
  max-width: 78%;
}

/* ---------- Pied de page ---------- */
.flyer-footer {
  background: var(--blue-dark);
  color: #fff;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 3.5rem);
}
.contact { display: flex; align-items: center; gap: 1rem; }
.contact-icon {
  flex: 0 0 auto;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: #fff; color: var(--blue-dark);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.contact address, .contact p { line-height: 1.4; }
.phone {
  display: block;
  color: #fff; text-decoration: none;
  font-size: 1.6rem; font-weight: 600; letter-spacing: .03em;
}
.phone:hover { text-decoration: underline; }
.signature {
  font-family: "Segoe Script", "Brush Script MT", "Comic Sans MS", cursive;
  font-style: italic;
  font-size: 1.1rem;
}
.email {
  display: block;
  color: #fff; text-decoration: none;
  font-size: 1.2rem; font-weight: 600; letter-spacing: .03em;
}
.email:hover { text-decoration: underline; }
.signature {
  font-family: "Segoe Script", "Brush Script MT", "Comic Sans MS", cursive;
  font-style: italic;
  font-size: 1.1rem;
}

/* ====================== RESPONSIVE ====================== */

/* Tablettes et mobiles */
@media (max-width: 991.98px) {
  .flyer-left { padding-bottom: 0; }
  .coverage { max-width: none; margin-right: calc(-1 * clamp(1.25rem, 4vw, 3.5rem)); border-top-right-radius: 0; margin-top: 1rem; }
  .room { min-height: 26rem; }
  .nurse { height: 92%; right: 50%; transform: translateX(50%); }
  .bubble { left: 5%; top: 12%; }
}

/* Mobiles */
@media (max-width: 575.98px) {
  .flyer-title { font-size: 1.65rem; }
  .flyer-subtitle { font-size: 1.1rem; margin-bottom: 1.5rem; }
  .service-icon { width: 3.1rem; height: 3.1rem; font-size: 1.2rem; }
  .coverage-icon { font-size: 2.8rem; }
  .identity {  }
  .room { min-height: 22rem; }
  .bubble { width: 7.5rem; font-size: .8rem; padding: .6rem; }
  .nurse { height: 86%; }
  .room-frame, .room-lamp { opacity: .45; }
  .phone { font-size: 1.4rem; }
}

/* Grands écrans : tout tient dans la hauteur de l'écran */
@media (min-width: 992px) and (min-height: 760px) {
  .flyer { height: 100vh; height: 100dvh; }
  .flyer-main { min-height: 0; }
  .flyer-right { min-height: 0; }
}
