/* =========================
   BASE
========================= */
:root {
  --bg-main: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-card: #ffffff;

  --text-main: #000000;
  --text-secondary: #808080;

  --border-color: #D8D8D8;

  --overlay-dark: rgba(0,0,0,0.4);
}

* {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  transition: 0.4s ease;
}
/* =========================
   NAVBAR PILL (LIGHT)
========================= */

.nav-floating{
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1030;
  pointer-events: none;
}

.nav-pill{
  pointer-events: auto;
  height: 70px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
}

.nav-brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
}

.nav-brand-badge{
  width: 64px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.6px;
  background: rgba(0,0,0,0.06);
}

.nav-links{
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.nav-link-pill{
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.4px;
  padding: 10px 10px;
}

.nav-link-pill:hover{ text-decoration: underline; }

.nav-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn img{ 
	display: block; 
	transition: opacity 0.25s ease;
}

.lang-pill{
  height: 42px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.9);
}

.lang-dot{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0,0,0,0.10);
  display: inline-block;
}

.lang-flag{
  width: 26px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.10);
  background: linear-gradient(90deg, #1a4cff 0 33%, #fff 33% 66%, #ff2a2a 66% 100%);
  display: inline-block;
}

/* Mobile burger */
.nav-burger{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.9);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-burger span{
  width: 18px;
  height: 2px;
  background: #000;
  display: block;
}

.nav-mobile{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px;
}

.nav-mobile-link{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
}
.nav-mobile-link:hover{ background: rgba(0,0,0,0.05); }

/* =========================
   HERO
========================= */

.hero{
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content{
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10vh;
}

.hero-copy{
  max-width: 860px;
}

.hero-title{
  color: #fff;
  font-size: clamp(40px, 4.2vw, 78px);
  line-height: 1.02;
  letter-spacing: -1.6px;
  font-weight: 800;
  margin: 0 0 18px;
}

.hero-sub{
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin: 0 0 26px;
}

.hero-cta{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-btn{
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.08);
}

.hero-link{
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  letter-spacing: -0.3px;
}

/* Sections spacing */
.section-pad{ padding: 90px 0; }

/* Small screens */
@media (max-width: 992px){
  .nav-pill{
    border-radius: 18px;
    height: auto;
    padding: 12px;
  }
  .nav-brand-badge{ width: 56px; }
}

/* =========================
   SECTION TITLES
========================= */
.sec-title{
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
  font-size: clamp(28px, 2.2vw, 40px);
}
.sec-sub{
  margin: 10px 0 0;
  color: var(--text-main);
  opacity: .8;
  font-size: 1.1rem;
}

/* =========================
   PROJECTS SLIDER
========================= */
.projects-wrap{ position: relative; }

.projects-rail{
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.projects-rail::-webkit-scrollbar{ height: 10px; }
.projects-rail::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.12); border-radius: 999px; }
.projects-rail::-webkit-scrollbar-track{ background: transparent; }

.project-card2{
  position: relative;
  border: 0;
  padding: 0;
  text-align: left;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  flex: 0 0 clamp(260px, 25vw, 420px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  outline: 1px solid rgba(255,255,255,0.45);
  cursor: pointer;
}

.project-dim{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: 180ms ease;
}

.project-meta2{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  color: #fff;
  z-index: 2;
}

.project-title2{
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.project-sub2{
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  opacity: .9;
}

.project-hover2{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: 180ms ease;
}

.project-tags{
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.project-arrow{
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-weight: 900;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-card2:hover .project-dim{ background: rgba(0,0,0,0.40); }
.project-card2:hover .project-hover2{ opacity: 1; }

.project-arrow{
  color: #000 !important;
}

/* Nav buttons under slider */
.projects-nav{
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 18px;
}

.projects-nav-btn{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 2px solid #d8d8d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  transition: 160ms ease;
}

.projects-nav-btn:hover{
  background: rgba(255,255,255,0.08);
}

/* =========================
   PROJECT MODAL
========================= */
.project-modal2{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}

.project-modal-close{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.project-modal-body{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 70vh;
}

.project-modal-hero{
  background-size: cover;
  background-position: center;
  min-height: 40vh;
}

.project-modal-content{
  padding: 28px;
  background: var(--bg-card);
}

.project-modal-title{
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 6px;
  font-size: clamp(26px, 2.2vw, 40px);
}
.project-modal-sub{
  margin: 0 0 18px;
  opacity: .75;
  font-weight: 600;
}
.project-modal-desc{
  margin: 0;
  opacity: .9;
  line-height: 1.6;
}

/* Mobile modal layout */
@media (max-width: 992px){
  .project-modal-body{ grid-template-columns: 1fr; }
}

/* ===== SECTION 3 : Vision / Approche / Exécution ===== */


/* =========================
   VISION TABS — SLIDING PILL
========================= */

/* Track */
.vision-tabs{
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.35rem;
  border-radius: 999px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;

  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* Le pill qui se déplace */
.vision-pill{
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;

  width: 0px; /* set par JS */
  border-radius: 999px;
  transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
  z-index: 0;
  pointer-events: none;
}

/* Les boutons au-dessus du pill */
.vision-tabs .nav-link{
  position: relative;
  z-index: 1;
  border: 0 !important;
  background: transparent !important;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: var(--text-main);
  font-weight: 600;
  transition: color .25s ease;
}

/* Couleur du pill selon thème */
html[data-bs-theme="light"] .vision-pill{ background:#000; }
html[data-bs-theme="dark"]  .vision-pill{ background:#fff; }

/* Texte actif */
html[data-bs-theme="light"] .vision-tabs .nav-link.active{ color:#fff; }
html[data-bs-theme="dark"]  .vision-tabs .nav-link.active{ color:#000; }

/* Sécurité : toujours un fond sur le bouton actif */
html[data-bs-theme="light"] .vision-tabs .nav-link.active{
  background: #000 !important;
  color: #fff !important;
}

html[data-bs-theme="dark"] .vision-tabs .nav-link.active{
  background: #fff !important;
  color: #000 !important;
}

/* Track en dark */
html[data-bs-theme="dark"] .vision-tabs{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.14);
}

.vision-shell{
  background: #F4F4F4;
  border: 1px solid #ffffff;
  border-radius: 1.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ICON */
.vision-ico{
  width: 3.2rem;
  margin-left: 10px
}

/* TITRES */
.vision-title{
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 1.05;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.04em;
}

.vision-divider{
  border-top: 2px solid #D8D8D8;
  opacity: 1;
  width: 100%;
  max-width: 36rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

/* ===== VISION SECTION — Mobile Adjustments ===== */
@media (max-width: 991.98px) {

  /* Réduit l’espace du divider */
  .vision-divider {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  /* Ajoute plus d’espace au-dessus du titre + icône */
  .vision-shell .d-flex.align-items-center {
    margin-top: 1.5rem;
  }

}

.vision-subtitle{
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.vision-text{
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 38rem;
  letter-spacing: -0.04rem;
}

/* IMAGE */
.vision-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border-radius: 1.2rem;
  border: 1px solid var(--border-color);
}

/* ============================= */
/* SOLUTIONS */
/* ============================= */

.section-title,
.sec-title{
  font: normal normal bold 30px/36px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -1.44px;
  color: var(--text-main);
}

.section-sub,
.sec-sub{
  font: normal normal 500 18px/20px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.77px;
  color: var(--text-main);
  opacity: 1;
}

.solution-card{
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  text-align: left;
  padding: 22px 22px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease;
}

/* petit lift sympa */
.solution-card:hover{ transform: translateY(-2px); }

/* overlay noir 40% au hover */
.solution-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.40);
  opacity:0;
  transition: 180ms ease;
  pointer-events:none;
}
.solution-card:hover::after{ opacity:1; }




.solution-text{
  position: relative;
  z-index: 2;
}

.solution-title{
  font: normal normal 500 20px/15px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.7px;
  color: var(--text-main);
}

.solution-subtitle{
  margin-top: 6px;
  font: normal normal 500 14px/18px "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

/* texte en blanc au hover */
.solution-card:hover .solution-title,
.solution-card:hover .solution-subtitle{
  color:#fff;
}

/* bouton flèche (52px, blanc, blur) */
.solution-arrow{
  position:absolute;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color:#000;
  font-weight: 800;
  z-index: 3;
  opacity: 0;
  transform: translateY(6px);
  transition: 180ms ease;
}

/* flèche visible uniquement au hover */
.solution-card:hover .solution-arrow{
  opacity: 1;
  transform: translateY(0);
}

/* accessibilité : focus clavier */
.solution-card:focus-visible{
  outline: 3px solid rgba(15,23,42,0.25);
  outline-offset: 3px;
}

/* ============================= */
/* PROCESS SECTION */
/* ============================= */

.process-step{
  position: relative;
  padding-right: 2rem;
  padding-bottom: 2rem;
}

.process-number{
  font-weight: 900;
  font-size: 7rem;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: #D8D8D8;
  margin-bottom: 1.5rem;
}

.process-title{
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.process-text{
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 90%;
}

@media (min-width: 992px){

  .process-step{
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .process-step:not(:last-child)::after{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: #D8D8D8;
  }

}

/* =========================
   THEME SYSTEM (Bootstrap data-bs-theme)
========================= */

/* LIGHT (déjà dans :root) -> tu peux garder tes variables actuelles */

/* DARK : on inverse via variables */
html[data-bs-theme="dark"] body{
  --bg-main: #121219;
  --bg-secondary: #121219;
  --bg-card: #121219;

  --text-main: #ffffff;
  --text-secondary: #D8D8D8;

  --border-color: #2e2e35;

  --overlay-dark: rgba(255,255,255,0.15);
}


section{ 
	background: var(--bg-main); 
}

/* Surfaces (cards / shells) */
.vision-shell,
.solution-card,
.project-modal2,
.project-modal-content,
.booking-shell,
.contact-shell{
  background: var(--bg-card);
  border-color: var(--border-color);
}

/* Textes secondaires */
.sec-sub,
.process-text{
  color: var(--text-secondary);
}

/* Dividers */
.vision-divider{
  border-top-color: var(--border-color);
}

/* =========================
   NAVBAR — DARK FIX (plus opaque pour contrer la vidéo derrière)
========================= */
html[data-bs-theme="dark"] .nav-floating .nav-pill{
  background-color: rgba(18,18,25,0.85) !important;
  background-image: linear-gradient(
    145deg,
    rgba(18,18,25,0.95),
    rgba(18,18,25,0.75)
  ) !important;

  border-color: var(--border-color) !important;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}


html[data-bs-theme="dark"] .nav-brand,
html[data-bs-theme="dark"] .nav-link-pill{
  color: #fff !important;
}


html[data-bs-theme="dark"] .nav-brand-badge,
html[data-bs-theme="dark"] .icon-btn,
html[data-bs-theme="dark"] .nav-burger{
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.18) !important;
}

html[data-bs-theme="dark"] .nav-burger span{
  background: #fff !important;
}

/* ============ THEME TOGGLE (clean) ============ */
.theme-toggle{
  position: relative;
  width: 78px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  cursor: pointer;
  overflow: hidden; /* important */
}

/* les icônes doivent être au-dessus du thumb */
.theme-icon{
  position: relative;
  z-index: 3;              /* au-dessus */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  opacity: 0.45;
  transition: opacity .25s ease, transform .25s ease;
}

/* thumb EN-DESSOUS des icônes */
.theme-thumb{
  position: absolute;
  top: 50%;
  left: 5px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  transform: translate(0, -50%);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  z-index: 2;              /* sous les icônes */
  transition: transform .28s cubic-bezier(.4,0,.2,1), background .25s ease;
}

/* état actif des icônes */
html[data-bs-theme="light"] .theme-icon.sun{ opacity: 1; transform: scale(1.03); }
html[data-bs-theme="dark"]  .theme-icon.moon{ opacity: 1; transform: scale(1.03); }

/* déplacement précis du thumb (78 - 30 - 10 = 38px) */
html[data-bs-theme="dark"] .theme-thumb{
  transform: translate(38px, -50%);
}

/* version dark du track */
html[data-bs-theme="dark"] .theme-toggle{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
}
html[data-bs-theme="dark"] .theme-thumb{
  background: rgba(46,47,74,0.95);
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}

/* =========================
   SOLUTIONS ICONS — DARK MODE INVERT
========================= */

html[data-bs-theme="dark"] .solution-ico-default{
  opacity: 0;
}

html[data-bs-theme="dark"] .solution-ico-hover{
  opacity: 1;
}

/* ====== ICON SWAP (stack) — SOLUTIONS ====== */
/* Taille du conteneur icône (OBLIGATOIRE sinon absolute = invisible) */
.solution-ico{
  position: relative;
  width: 180px;
  max-width: 60%;
  aspect-ratio: 180 / 158;
  margin: 0 auto 18px;      /* centre */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.solution-ico img{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease;
  pointer-events: none;
}

/* LIGHT : noir visible */
.solution-ico-default{ opacity: 1; }
.solution-ico-hover{ opacity: 0; }

/* LIGHT hover : blanc visible */
.solution-card:hover .solution-ico-default{ opacity: 0; }
.solution-card:hover .solution-ico-hover{ opacity: 1; }

/* =========================
   NAV MOBILE — DARK MODE
========================= */

html[data-bs-theme="dark"] .nav-mobile{
  background-color: rgba(18,18,25,0.92);
  background-image: linear-gradient(
    145deg,
    rgba(18,18,25,0.95),
    rgba(18,18,25,0.80)
  );
  border-color: var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Autorise le clic uniquement sur la nav + dropdown */
.nav-pill,
#navMobile,
#navMobile .nav-mobile{
  pointer-events: auto;
}

/* =========================
   VISION TABS — MOBILE (évite le retour à la ligne)
========================= */
@media (max-width: 575.98px){

  /* Track */
  .vision-tabs{
    gap: 0.35rem;          /* au lieu de 0.6rem */
    padding: 0.25rem;      /* au lieu de 0.35rem */
  }

  /* Boutons */
  .vision-tabs .nav-link{
    padding: 0.45rem 0.65rem;  /* réduit les côtés */
    font-size: 0.95rem;        /* optionnel, mais aide */
    white-space: nowrap;       /* évite que le texte casse */
  }
}

/* =======================================
   BOOKING — STYLE PREMIUM (SECTION + MODAL)
======================================= */

.booking-shell{
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  overflow: hidden;
}

/* Colonnes */
.booking-col{
  padding: 28px;
}

.booking-left{
  border-right: 1px solid var(--border-color);
}

.booking-mid{
  border-right: 1px solid var(--border-color);
}

/* Avatar */
.booking-avatar{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

/* Titres */
.booking-title{
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.booking-desc{
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ======================
   CALENDAR
====================== */

.booking-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.booking-month{
  font-weight: 700;
}

	/* =========================
   BOOKING — CALENDAR + SLOTS (clean)
========================= */

/* =========================
   BOOKING — CALENDAR + SLOTS (CLEAN / NO CONFLICT)
========================= */

/* Variables booking (locales) */
:root{
  --bk-gap: 12px;
  --bk-radius: 12px;
  --bk-hover: rgba(0,0,0,.06);
  --bk-selected: rgba(0,0,0,.10);
  --bk-border: rgba(0,0,0,.10);
}

html[data-bs-theme="dark"]{
  --bk-hover: rgba(255,255,255,.10);
  --bk-selected: rgba(255,255,255,.16);
  --bk-border: rgba(255,255,255,.16);
}

/* IMPORTANT : évite les débordements dans les colonnes Bootstrap */
.booking-shell .booking-col{ min-width: 0; }

/* ===== Weekdays row ===== */
.booking-weekdays{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--bk-gap);
  margin-top: 10px;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .78rem;
  text-transform: uppercase;
}

/* ===== Grille calendrier ===== */
.booking-grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--bk-gap);
  padding-top: 10px;
}

/* Cellules : carré fluide (pas de width fixe) */
.bk-day,
.bk-day--empty{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--bk-radius);
}

/* Empty */
.bk-day--empty{
  background: transparent;
}

/* Boutons jours */
.bk-day{
  border: 1px solid var(--bk-border);
  background: transparent;
  color: var(--text-main);
  font-weight: 650;
  display: grid;
  place-items: center;
  line-height: 1;
  position: relative;
  transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}

.bk-day:disabled{
  opacity: .35;
  cursor: not-allowed;
}

.bk-day.is-available{
  opacity: 1;
  cursor: pointer;
}

.bk-day.is-available:hover{
  background: var(--bk-hover);
  transform: translateY(-1px);
}

/* Selected */
.bk-day.is-selected{
  background: var(--bk-selected);
}

/* Petit dot */
.bk-day.is-selected::after{
  content:"";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  position: absolute;
  bottom: 10px;
  background: var(--text-main);
  opacity: .75;
}

/* Focus clavier */
.bk-day:focus-visible{
  outline: 3px solid rgba(15,23,42,0.22);
  outline-offset: 2px;
}
html[data-bs-theme="dark"] .bk-day:focus-visible{
  outline-color: rgba(255,255,255,0.22);
}

/* ===== Slots (heures) ===== */
.booking-slots{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.bk-slot{
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid var(--bk-border);
  background: transparent;
  color: var(--text-main);
  font-weight: 750;
  text-align: center;
  transition: background .18s ease, transform .18s ease, border-color .18s ease, color .18s ease;
}

.bk-slot:hover{
  background: var(--bk-hover);
  transform: translateY(-1px);
}

/* ===== Nav mois ===== */
.bk-nav-btn{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--bk-border);
  background: transparent;
  color: var(--text-main);
  font-weight: 900;
  transition: background .18s ease, transform .18s ease;
}
.bk-nav-btn:hover{
  background: var(--bk-hover);
  transform: translateY(-1px);
}

/* ===== Responsive spacing (évite que tout se colle) ===== */
@media (max-width: 991.98px){
  :root{ --bk-gap: 10px; }

  .booking-left,
  .booking-mid{
    border-right: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .booking-col{ padding: 22px; }
}

@media (max-width: 575.98px){
  :root{ --bk-gap: 8px; }
  .booking-col{ padding: 18px; }
}

/* Booking form replace calendar */
#bkFormWrapM{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bk-form-top{
  display: flex;
  align-items: center;
  gap: 12px;
}

.bk-back-day{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--bk-border);
  background: transparent;
  font-weight: 900;
  line-height: 1;
}

.bk-back-day:hover{
  background: var(--bk-hover);
}

.bk-form-top-title{
  font-weight: 700;
}

@media (min-width: 1200px) {
  .modal-xl {
    --bs-modal-width: 1400px;
  }
}

.project-modal2 {
  height: 88vh;
  display: flex;
  flex-direction: column;
}

.project-modal-body {
  flex: 1;
  overflow-y: auto;
}