/* ===================================================
   ARTISAN BTP — style.css — Version finale
   =================================================== */

:root {
  --navy:       #0D1B5E;
  --navy-dark:  #080F3A;
  --blue:       #1E4FD8;
  --blue-light: #7BA7E0;
  --grey-100:   #F5F6F8;
  --grey-200:   #E8EAED;
  --grey-400:   #9AA0AC;
  --grey-600:   #5A6070;
  --grey-800:   #2C3040;
  --white:      #FFFFFF;
  --text:       #1A1F2E;
  --success:    #1a7f3c;

  --font: 'Inter', system-ui, sans-serif;
  --radius:    3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow:    0 2px 12px rgba(13,27,94,0.08);
  --shadow-lg: 0 8px 32px rgba(13,27,94,0.14);
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-desc { color: var(--grey-600); font-size: 1rem; }
.section-header { margin-bottom: 3rem; }

/* Boutons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--white { background: #fff; color: var(--navy); font-weight: 700; }
.btn--white:hover { background: var(--grey-100); }
.btn--full { width: 100%; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 120px;
  background: #fff;
  border-bottom: 1px solid var(--grey-200);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav__logo { display: flex; align-items: center; }
.nav__logo-img {
  height: 120px;
  width: auto;
  object-fit: contain;
}

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: 0.875rem; font-weight: 500; color: var(--grey-800); transition: color var(--transition); }
.nav__links a:hover { color: var(--blue); }

.nav__cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav__cta:hover { background: var(--navy) !important; color: #fff !important; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--grey-800); border-radius: 2px; }

.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 999;
  align-items: center; justify-content: center; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: 1px solid rgba(255,255,255,0.2); color: #fff;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin: 1.25rem 0; }
.mobile-menu a { font-size: 1.75rem; font-weight: 600; color: rgba(255,255,255,0.85); transition: color var(--transition); }
.mobile-menu a:hover { color: var(--blue-light); }

/* ===== HERO ===== */
/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 45%, var(--blue) 100%);
  background-size: 220% 220%;
  animation: heroGradient 18s ease-in-out infinite;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 90px;
  overflow: hidden;
}

@keyframes heroGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}




.hero__title, .hero__subtitle, .hero__actions {
  opacity: 0;
  animation: heroSlideUp 0.8s ease forwards;
}
.hero__title    { animation-delay: 0.1s; }
.hero__subtitle { animation-delay: 0.3s; }
.hero__actions  { animation-delay: 0.5s; }

@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title, .hero__subtitle, .hero__actions {
    animation: none; opacity: 1; transform: none;
  }
}




.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  background: var(--blue-light);
  top: -120px; right: -80px;
  animation: heroDrift1 14s ease-in-out infinite;
}
.hero::after {
  width: 360px; height: 360px;
  background: var(--blue);
  bottom: -140px; left: 10%;
  animation: heroDrift2 16s ease-in-out infinite;
}

@keyframes heroDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes heroDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(30px, -20px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .hero::before, .hero::after { animation: none; }
}

.hero__overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231E4FD8' fill-opacity='0.04'%3E%3Crect x='0' y='0' width='1' height='80'/%3E%3Crect x='0' y='0' width='80' height='1'/%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative; z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 750px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero__title-main {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__title-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  margin-top: 0.4rem;
}

.hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
  line-height: 1.75;
  max-width: 580px;
}

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__stats {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 2rem 0;
}
.hero__stat {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero__stat:last-child { border-right: none; }
.hero__stat strong { display: block; font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 0.35rem; }
.hero__stat span { font-size: 0.75rem; color: rgba(255,255,255,0.42); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== APERÇU (accueil) ===== */
.apercu { padding: 6rem 0; background: var(--grey-100); }
.apercu__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.apercu__col { display: flex; flex-direction: column; align-items: flex-start; }
.apercu__text { color: var(--grey-600); line-height: 1.7; margin: 0.75rem 0 1.25rem; }

.apercu__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 1.75rem; padding: 0; }
.apercu__tags li {
  background: #fff; border: 1px solid #e4e6ee; border-radius: 999px;
  padding: 0.45rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--navy);
}

.apercu__col--realisations { background: var(--navy); border-radius: 16px; padding: 2.5rem; }
.apercu__col--realisations .section-eyebrow { color: rgba(255,255,255,0.6); }
.apercu__col--realisations .section-title { color: #fff; }

.apercu__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; width: 100%; margin: 1.25rem 0 1.75rem; }
.apercu__photos img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }

@media (max-width: 860px) {
  .apercu__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ===== FILTRES (utilisé par realisations.html) ===== */
.filtre {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--grey-200); background: #fff; color: var(--grey-600);
  font-family: var(--font); font-size: 0.83rem; font-weight: 500;
  border-radius: 100px; cursor: pointer; transition: all var(--transition);
}
.filtre:hover, .filtre.actif { background: var(--blue); border-color: var(--blue); color: #fff; }

.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(5,10,35,0.96); z-index: 9999;
  align-items: center; justify-content: center; flex-direction: column; gap: 1rem;
}
.lightbox.open { display: flex; }
.lightbox__content { max-width: 90vw; max-height: 80vh; border-radius: var(--radius-md); overflow: hidden; }
.lightbox__caption { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: 1px solid rgba(255,255,255,0.2); color: #fff;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.1); }

/* ===== CONFIANCE — engagements + certifications ===== */
.confiance { background: #fff; padding: 4.5rem 0 3.5rem; }

.confiance__points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  text-align: center; margin-bottom: 2.75rem;
}
.confiance__point { padding: 0 0.5rem; }
.confiance__icon { display: block; margin: 0 auto 0.6rem; color: var(--blue); }
.confiance__point h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.confiance__point p { font-size: 0.85rem; color: var(--grey-600); line-height: 1.6; }

.confiance__badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem;
}
.confiance__badge {
  background: var(--grey-100); border: 1px solid var(--grey-200);
  color: var(--navy); font-size: 0.8rem; font-weight: 600;
  padding: 0.5rem 1.1rem; border-radius: 100px;
}

@media (max-width: 700px) {
  .confiance__points { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== TEMOIGNAGE ===== */
.temoignage { background: var(--grey-100); padding: 5rem 0; }
.temoignage__quote { max-width: 820px; width: 100%; margin: 0 auto; text-align: center; }
.temoignage__quote p { overflow-wrap: break-word; word-break: break-word; }
.temoignage__quote p {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 400; color: var(--navy);
  line-height: 1.65; margin-bottom: 1.5rem; font-style: italic;
}
.temoignage__quote cite { font-size: 0.82rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em; font-style: normal; }

.temoignage__sub {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem) !important;
  font-weight: 400;
  color: rgba(0,0,0,0.5) !important;
  font-style: normal !important;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem !important;
}

.temoignage__avis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-top: 2.5rem;
}
.avis-card {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-md);
  padding: 1.5rem;
}
.avis-card__stars { color: #f5a623; font-size: 0.9rem; margin-bottom: 0.6rem; letter-spacing: 0.1em; }
.avis-card p { font-size: 0.88rem; color: var(--grey-600); line-height: 1.6; font-style: italic; margin-bottom: 0.9rem; }
.avis-card__auteur { font-size: 0.78rem; font-weight: 600; color: var(--navy); }

@media (max-width: 780px) {
  .temoignage__avis { grid-template-columns: 1fr; }
}

/* ===== EQUIPE ===== */
.equipe { padding: 6rem 0; background: #fff; }
.equipe__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.equipe__card {
  display: flex; gap: 1.75rem; align-items: flex-start;
  padding: 2rem; border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}
.equipe__card:hover { box-shadow: var(--shadow-lg); }

.equipe__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.equipe__avatar--a { background: var(--navy); }
.equipe__avatar--m { background: var(--blue); }

.equipe__avatar-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid var(--grey-200);
}

.equipe__role { font-size: 0.72rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.equipe__info h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; }
.equipe__info > p { font-size: 0.9rem; color: var(--grey-600); line-height: 1.7; margin-bottom: 1rem; }

.equipe__contacts { display: flex; flex-direction: column; gap: 0.35rem; }
.equipe__contacts a { font-size: 0.88rem; color: var(--grey-600); transition: color var(--transition); }
.equipe__contacts a:hover { color: var(--blue); }

.equipe__rdv-btn {
  display: inline-block; margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--grey-100); border: 1px solid var(--grey-200);
  border-radius: var(--radius); font-size: 0.82rem; font-weight: 600;
  color: var(--navy); transition: all var(--transition); width: fit-content;
}
.equipe__rdv-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===== CONTACT ===== */
.contact { padding: 6rem 0; background: var(--grey-100); }
.contact__inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }

.contact__info .section-title { color: var(--navy); }
.contact__info > p { font-size: 0.95rem; color: var(--grey-600); line-height: 1.75; margin-bottom: 2rem; }

.contact__bloc { margin-bottom: 1.5rem; }
.contact__bloc-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); margin-bottom: 0.4rem; }
.contact__bloc a, .contact__bloc span { display: block; font-size: 0.92rem; color: var(--grey-600); transition: color var(--transition); }
.contact__bloc a:hover { color: var(--blue); }

.contact__form {
  background: #fff; border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); padding: 2.25rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.contact__form-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__calendly-hint { font-size: 0.85rem; color: var(--navy, #1b2a4a); opacity: 0.65; margin: 0; }
.calendly-inline-widget { min-width: 280px; height: 630px; border-radius: 10px; overflow: hidden; }
.calendly-inline-widget.is-empty { display: flex; align-items: center; justify-content: center; height: 80px; background: #f4f5f7; color: #8a8f98; font-size: 0.9rem; }
.form__group { display: flex; flex-direction: column; gap: 0.3rem; }

label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey-800); }

input, select, textarea {
  font-family: var(--font); font-size: 0.9rem; color: var(--text);
  background: var(--grey-100); border: 1px solid var(--grey-200);
  border-radius: var(--radius); padding: 0.75rem 0.9rem;
  outline: none; transition: border-color var(--transition); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: #fff; }
input::placeholder, textarea::placeholder { color: var(--grey-400); }
textarea { resize: vertical; min-height: 100px; }
select { cursor: pointer; }

.form__radio-group { display: flex; gap: 0.6rem; }
.form__radio { flex: 1; cursor: pointer; }
.form__radio input { display: none; }
.form__radio-box {
  display: block; padding: 0.65rem 1rem;
  border: 1px solid var(--grey-200); border-radius: var(--radius);
  background: var(--grey-100); font-size: 0.85rem; font-weight: 500;
  color: var(--grey-600); transition: all var(--transition); text-align: center; cursor: pointer;
}
.form__radio input:checked + .form__radio-box {
  border-color: var(--blue); background: rgba(30,79,216,0.06);
  color: var(--navy); font-weight: 600;
}

.form__note { font-size: 0.75rem; color: var(--grey-400); text-align: center; }

.form__success {
  display: none; background: #f0faf4;
  border: 1px solid #86efac; border-radius: var(--radius);
  padding: 1rem 1.25rem; flex-direction: column; gap: 0.2rem; font-size: 0.88rem;
}
.form__success strong { color: var(--success); }
.form__success span { color: #166534; font-size: 0.83rem; }
.form__success.visible { display: flex; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); padding: 3rem 0 0; }
.footer__inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
}
.footer__left { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }

.footer__logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: none;
  display: block;
}

.footer__partenaire-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  align-self: center;
  flex-shrink: 0;
}

.footer__logo-partenaire {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: none;
  display: block;
  opacity: 1;
  transition: opacity 0.22s ease;
}
.footer__logo-partenaire:hover { opacity: 0.8; }

.footer__partenaire-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  font-style: italic;
  margin-top: 0.25rem;
}

.footer__left p { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.6; }

.footer__links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__links a { font-size: 0.88rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer__links a:hover { color: rgba(255,255,255,0.9); }

.footer__contact { display: flex; flex-direction: column; gap: 0.45rem; }
.footer__contact span, .footer__contact a { font-size: 0.85rem; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer__contact a:hover { color: rgba(255,255,255,0.85); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 1.25rem 0; }
.footer__bottom .container {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap;
}
.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.22); text-align: center; margin: 0; }
.footer__legal-link { font-size: 0.78rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer__legal-link:hover { color: #fff; }

/* ===== ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-up    { transform: translateY(24px); }

.reveal-left.visible, .reveal-right.visible, .reveal-up.visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__left { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); }
  .galerie__grid { grid-template-columns: repeat(2, 1fr); }
  .equipe__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .galerie__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form__radio-group { flex-direction: column; }
  .equipe__card { flex-direction: column; }
  .hero__stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
  .hero__content { padding: 3rem 0 2rem; }
  .nav { height: 95px; }
  .nav__logo-img { height: 85px; }
}

/* ===== CHATBOT ===== */
.chat-bubble {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  z-index: 9000; width: 54px; height: 54px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 4px 16px rgba(30,79,216,0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: background var(--transition), transform var(--transition);
}
.chat-bubble:hover { background: var(--navy); transform: scale(1.05); }

.chat-bubble__notif {
  display: none; position: absolute; top: -3px; right: -3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #dc2626; color: #fff; font-size: 0.65rem; font-weight: 700;
  align-items: center; justify-content: center; border: 2px solid #fff;
}

.chat-window {
  position: fixed; bottom: 5.5rem; right: 1.75rem;
  z-index: 8999; width: 350px; max-height: 500px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(13,27,94,0.22);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.97); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform-origin: bottom right;
}
.chat-window.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

.chat-window__header {
  background: var(--navy); padding: 0.9rem 1.1rem;
  display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0;
}
.chat-window__avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue);
  color: #fff; font-size: 0.95rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden;
}
.chat-window__avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-window__info { flex: 1; }
.chat-window__info strong { display: block; color: #fff; font-size: 0.88rem; font-weight: 600; }
.chat-window__status { display: flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.chat-window__dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.chat-window__minimize { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.3rem; cursor: pointer; padding: 0 0.2rem; line-height: 1; }
.chat-window__minimize:hover { color: #fff; }

.chat-window__messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem; background: var(--grey-100);
}
.chat-window__messages::-webkit-scrollbar { width: 3px; }
.chat-window__messages::-webkit-scrollbar-thumb { background: var(--grey-200); border-radius: 3px; }

.chat-msg { display: flex; flex-direction: column; }
.chat-msg--user { align-items: flex-end; }
.chat-msg--bot { align-items: flex-start; }

.chat-msg__bubble {
  max-width: 85%; padding: 0.65rem 0.9rem; border-radius: 10px;
  font-size: 0.86rem; line-height: 1.55;
}
.chat-msg--bot .chat-msg__bubble { background: #fff; color: var(--text); border: 1px solid var(--grey-200); border-bottom-left-radius: 3px; }
.chat-msg--user .chat-msg__bubble { background: var(--blue); color: #fff; border-bottom-right-radius: 3px; }

.chat-msg__suggestions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.chat-suggestion {
  padding: 0.3rem 0.7rem; background: #fff; border: 1px solid var(--grey-200);
  border-radius: 100px; font-size: 0.76rem; font-weight: 500; color: var(--blue);
  cursor: pointer; transition: all var(--transition); font-family: var(--font);
}
.chat-suggestion:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.chat-typing { display: flex; align-items: center; gap: 4px; padding: 0.75rem 0.9rem !important; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-400); animation: typingDot 1.2s ease infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.chat-window__footer {
  padding: 0.75rem; border-top: 1px solid var(--grey-200);
  display: flex; gap: 0.5rem; background: #fff; flex-shrink: 0;
}
.chat-window__footer input {
  flex: 1; border: 1px solid var(--grey-200); border-radius: 100px;
  padding: 0.55rem 0.9rem; font-size: 0.86rem; background: var(--grey-100);
  color: var(--text); outline: none; transition: border-color var(--transition); font-family: var(--font);
}
.chat-window__footer input:focus { border-color: var(--blue); background: #fff; }
.chat-window__footer input::placeholder { color: var(--grey-400); }

.chat-send {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue);
  border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--transition);
}
.chat-send:hover:not(:disabled) { background: var(--navy); }
.chat-send:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 480px) {
  .chat-window { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; }
  .chat-bubble { right: 1rem; bottom: 1rem; }
}
/* ===== BANDEAU APPEL MOBILE ===== */
.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 9500;
  background: var(--navy);
  color: #fff;
  font-weight: 700; font-size: 0.92rem;
  align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1rem;
  padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
  text-decoration: none;
  box-shadow: 0 -4px 16px rgba(13,27,94,0.25);
}
.mobile-call-bar svg { flex-shrink: 0; }

@media (max-width: 768px) {
  .mobile-call-bar { display: flex; }
  /* On remonte le chatbot pour qu'il ne soit pas caché par le bandeau d'appel */
  .chat-bubble { bottom: calc(1.75rem + 56px); }
  .chat-window { bottom: calc(5.5rem + 56px); }
  /* Marge en bas de page pour que le bandeau ne cache pas le footer */
  body { padding-bottom: 56px; }
}


.zoomable{
    cursor: zoom-in;
    transition: transform .3s;
}

.zoomable:hover{
    transform: scale(1.05);
}

.image-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.image-modal__content{
    max-width:90%;
    max-height:90%;
    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.5);
    animation:zoom .25s ease;
}

.image-modal__close{
    position:absolute;
    top:20px;
    right:35px;
    color:#fff;
    font-size:45px;
    cursor:pointer;
    user-select:none;
}

@keyframes zoom{
    from{
        transform:scale(.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}
