:root{
  /* Brand - Déménagement */
  --bs-primary:#2f7df6;
  --bs-link-color-rgb:47,125,246;

  --ui-bg:#07111f;
  --ui-surface:rgba(255,255,255,.06);
  --ui-surface-2:rgba(255,255,255,.09);
  --ui-border:rgba(255,255,255,.12);
  --ui-text:#eef5ff;
  --ui-muted:rgba(238,245,255,.72);

  --ui-accent:var(--bs-primary);
  --ui-accent-2:#76b7ff;
  --ui-success:#33d17a;
  --ui-danger:#ff5c7a;

  --ui-radius:18px;
  --ui-radius-lg:26px;

  --ui-shadow:0 12px 34px rgba(0,0,0,.35);
  --ui-shadow-soft:0 10px 26px rgba(0,0,0,.22);
  --ui-ring:0 0 0 .25rem rgba(47,125,246,.22);

  --bs-body-font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji";
  --bs-body-font-size:1rem;
  --bs-body-line-height:1.55;
  --bs-body-bg:#07111f;
}

@media (prefers-reduced-motion: reduce){
  *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

body{
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(47,125,246,.22), transparent 60%),
    radial-gradient(900px 520px at 95% 10%, rgba(118,183,255,.14), transparent 55%),
    radial-gradient(1200px 700px at 50% 110%, rgba(42,196,166,.10), transparent 60%),
    var(--ui-bg);
  color:var(--ui-text);
  font-family:var(--bs-body-font-family);
  font-size:var(--bs-body-font-size);
  line-height:var(--bs-body-line-height);
  margin:0;
  padding:0;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:rgb(var(--bs-link-color-rgb));text-decoration:none}
a:hover{color:var(--ui-accent-2)}

h1,h2,h3,h4,h5,h6{
  color:var(--ui-text);
  font-weight:700;
  letter-spacing:-.02em;
  margin-bottom:1rem;
}

.section-subtitle{color:var(--ui-muted)}
.section-title{color:var(--ui-text);font-weight:800}

header #topBar{
  background:linear-gradient(90deg, rgba(47,125,246,.95), rgba(118,183,255,.75));
  border-bottom:1px solid rgba(255,255,255,.08);
}

.navbar{
  background:rgba(7,17,31,.68);
  backdrop-filter:saturate(140%) blur(14px);
  -webkit-backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.navbar .navbar-brand,
.navbar .nav-link{
  color:var(--ui-text)!important;
  font-weight:600;
}

.navbar .nav-link:hover{
  color:var(--ui-accent-2)!important;
}

.nav-link.active{
  font-weight:bold;
  color:rgba(47,125,246,1)!important;
}

.featurette{padding:0}

.cta_paralax{
  background:
    linear-gradient(180deg, rgba(7,17,31,.35), rgba(7,17,31,.86)),
    radial-gradient(900px 520px at 20% 0%, rgba(47,125,246,.24), transparent 60%),
    url(/images/siteconfig/image_services_thumb.webp) center/cover fixed;
  padding:72px 0;
  color:var(--ui-text);
  border-top:1px solid rgba(255,255,255,.10);
  border-bottom:1px solid rgba(255,255,255,.10);
}

@media (max-width:991.98px), (hover:none){
  .cta_paralax{background-attachment:scroll}
}

#featured{min-height:300px}

.card{
  border:1px solid var(--ui-border);
  border-radius:var(--ui-radius);
  background:linear-gradient(180deg, var(--ui-surface), rgba(255,255,255,.04));
  box-shadow:var(--ui-shadow-soft);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:has(.card-footer a, a.stretched-link, a.display-6):hover{
  transform:translateY(-4px);
  box-shadow:var(--ui-shadow);
  border-color:rgba(47,125,246,.32);
}

.card.text-bg-dark,
.text-white{
  background:linear-gradient(180deg, var(--ui-surface), rgba(255,255,255,.04))!important;
  color:var(--ui-text)!important;
}

.card.text-bg-dark a.lh-1{color:var(--ui-text)!important}

.btn{
  border-radius:999px;
  font-weight:700;
  letter-spacing:.01em;
  padding:.7rem 1.05rem;
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:active{transform:translateY(1px)}

.btn-primary,
.btn-dark{
  background:linear-gradient(135deg, rgba(47,125,246,1), rgba(118,183,255,1));
  border-color:rgba(47,125,246,.35);
  box-shadow:0 10px 18px rgba(47,125,246,.18);
  color:#06101f!important;
}

.btn-primary:hover,
.btn-dark:hover{
  background:linear-gradient(135deg, rgba(118,183,255,1), rgba(47,125,246,1));
  border-color:rgba(118,183,255,.55);
  box-shadow:0 14px 26px rgba(47,125,246,.22);
}

.btn-secondary{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:var(--ui-text)!important;
}

.btn-secondary:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(47,125,246,.28);
  box-shadow:0 10px 22px rgba(0,0,0,.25);
}

.form-control,
.form-select{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:var(--ui-text);
  border-radius:14px;
}

.form-control::placeholder{color:rgba(238,245,255,.48)}

.form-control:focus,
.form-select:focus{
  background:rgba(255,255,255,.08);
  border-color:rgba(47,125,246,.45);
  box-shadow:var(--ui-ring);
  color:var(--ui-text);
}

.mb-section{margin-bottom:3.25rem}

.hero-section{
  min-height:50vh;
}

.hero-bg{
  background-image:url('/images/assets/assets_0_thumb.webp');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.hero-overlay{
  background:linear-gradient(
    to bottom,
    rgba(4,10,18,.78),
    rgba(4,10,18,.64)
  );
}

.hero-section .btn-primary{
  box-shadow:0 10px 30px rgba(47,125,246,.3);
}

.hero-section .btn-primary:hover{
  transform:translateY(-2px);
  transition:transform .2s ease, box-shadow .2s ease;
}

/* Footer */
footer.bg-dark{
  padding:3rem 0 1.25rem;
  border-top:1px solid rgba(255,255,255,.08);
}

footer.bg-dark .row{
  margin:0;
  row-gap:2rem;
}

footer.bg-dark .col-12{
  padding:0 1.25rem;
}

footer.bg-dark p{
  margin-bottom:.75rem;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:.2px;
  color:rgba(255,255,255,.92);
}

footer.bg-dark .col-12 > p,
footer.bg-dark .footer-logo p{
  text-transform:uppercase;
}

footer.bg-dark .footer-logo p{
  font-size:1.1rem;
  margin-bottom:1rem;
  color:rgba(255,255,255,.95);
}

footer.bg-dark ul.nav{
  gap:.4rem;
}

footer.bg-dark ul.nav li{
  color:rgba(255,255,255,.72);
  line-height:1.35;
}

footer.bg-dark a{
  color:rgba(255,255,255,.72);
  text-decoration:none;
  transition:color .15s ease, transform .15s ease;
}

footer.bg-dark a:hover{
  color:var(--ui-accent-2);
  text-decoration:none;
}

footer.bg-dark svg{
  margin-right:.5rem;
  vertical-align:-2px;
  color:rgba(255,255,255,.65);
}

#footerBottom{
  padding-top:1.25rem;
  margin-top:1.25rem;
}

#footerBottom hr{
  opacity:.12;
  border-color:rgba(255,255,255,.18);
  margin:0 auto 1rem;
  width:min(920px, 92%);
}

#footerBottom p{
  margin:0;
  font-weight:500;
  color:rgba(255,255,255,.6);
  font-size:.95rem;
  text-transform:none;
}

.accordion-header{
  padding:10px;
}

/* hero subs */
.subcats_page #featured{
  position:relative;
  overflow:hidden;
  min-height:250px;
  display:flex;
  align-items:center;
}

.subcats_page #featured > div:first-child{
  position:absolute!important;
  inset:0;
  height:100%!important;
  width:100%!important;
  margin:0!important;
  background-size:cover!important;
  background-position:center center!important;
  filter:none!important;
  transform:scale(1.02);
}

.subcats_page #featured::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    90deg,
    rgba(4,10,18,.92) 0%,
    rgba(4,10,18,.82) 40%,
    rgba(4,10,18,.55) 70%,
    rgba(4,10,18,.15) 100%
  );
}

.subcats_page #featured .section-header{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:60px 48px!important;
  text-align:left;
  color:#fff;
}

.subcats_page #featured h1{
  max-width:760px;
  margin-bottom:14px;
  color:#fff;
  font-size:clamp(2rem, 4vw, 3.3rem);
  line-height:1.08;
}

.subcats_page #featured .lead{
  max-width:560px;
  margin-bottom:0!important;
  color:rgba(255,255,255,.88);
  font-size:1.08rem;
  line-height:1.65;
}

.subcats_page #featured nav[aria-label='breadcrumb'],
.subcats_page #featured h1,
.subcats_page #featured .col-lg-6.mx-auto{
  max-width:760px;
  margin-left:0!important;
  margin-right:0!important;
}

.subcats_page #featured nav[aria-label='breadcrumb']{
  margin-bottom:14px;
}

.subcats_page #featured .breadcrumb{
  justify-content:flex-start!important;
  margin-bottom:0;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(4px);
  padding:8px 12px;
  border-radius:999px;
  display:inline-flex;
  flex-wrap:wrap;
}

.subcats_page #featured .breadcrumb-item,
.subcats_page #featured .breadcrumb-item a{
  color:rgba(255,255,255,.82);
  text-decoration:none;
  font-size:.8125rem;
  letter-spacing:.04em;
}

.subcats_page #featured .breadcrumb-item.active a{
  color:#fff;
}

.subcats_page #featured .hero-cta-btn{
  border-radius:999px;
  font-weight:600;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
  transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.subcats_page #featured .btn-warning.hero-cta-btn{
  background:linear-gradient(135deg, #76b7ff, #2f7df6);
  border:none;
  color:#06101f;
}

.subcats_page #featured .hero-cta-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(0,0,0,.45);
}

.subcats_page #featured .hero-cta-group{
  position:relative;
  z-index:3;
}

#form_devis{
  margin-top:50px;
}

@media (max-width:991.98px){
  .subcats_page #featured{
    min-height:220px;
  }

  .subcats_page #featured .section-header{
    padding:36px 28px!important;
  }
}

@media (max-width:767.98px){
  main#main .hero-section{
    min-height:auto!important;
    padding:0!important;
  }

  main#main .hero-section .container{
    padding-top:1.5rem!important;
    padding-bottom:1.5rem!important;
    padding-left:16px!important;
    padding-right:16px!important;
  }

  main#main .hero-section .col-lg-9,
  main#main .hero-section .col-lg-10{
    max-width:100%;
  }

  main#main .hero-section h1{
    font-size:1.6rem!important;
    line-height:1.15!important;
    margin-bottom:.75rem!important;
  }

  main#main .hero-section .lead{
    text-shadow:0 1px 3px rgba(0,0,0,.6);
    font-size:1rem!important;
    line-height:1.45!important;
    margin-bottom:1rem!important;
  }

  main#main .hero-section .btn{
    width:100%;
    max-width:280px;
    margin:0 auto;
    font-size:.92rem!important;
    padding:.72rem 1rem!important;
  }

  main#main .hero-section .d-flex.justify-content-center.gap-3.flex-wrap{
    gap:.65rem!important;
  }

  main#main section.py-5,
  main#main .cta_paralax,
  main#main #block_contact .section,
  main#main .villes-list-external .container,
  main#main #custom-cards,
  main#main .py-4.px-4.text-center{
    padding-top:1.5rem!important;
    padding-bottom:1.5rem!important;
  }

  main#main .container,
  main#main .container-fluid{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  main#main .row.g-4{
    --bs-gutter-y:1rem;
    --bs-gutter-x:1rem;
  }

  main#main .card{
    border-radius:14px!important;
  }

  main#main .card .d-flex.flex-column.h-100.p-5.pb-3{
    padding:0!important;
  }

  main#main .card .card-body{
    padding:.9rem .9rem .4rem;
  }

  main#main .card .card-footer{
    padding:0 0 1rem;
  }

  main#main .card a.display-6{
    font-size:1.2rem!important;
    line-height:1.2!important;
    margin-top:.85rem!important;
    padding-left:.75rem;
    padding-right:.75rem;
  }

  main#main .card .body-content{
    font-size:.92rem;
    line-height:1.45;
  }

  main#main .accordion-button{
    padding:.9rem 1rem;
    font-size:.94rem;
    line-height:1.35;
  }

  main#main .accordion-body{
    font-size:.92rem;
    line-height:1.45;
    padding:.9rem 1rem 1rem;
  }

  main#main .badge{
    font-size:.8125rem;
  }

  main#main .contact-information h5,
  main#main .contact-information p{
    padding-left:50px;
    font-size:.92rem;
    line-height:1.4;
  }

  main#main .single-contact-info-box{
    margin-top:18px;
  }

  main#main #block_contact .section-header p,
  main#main .text-secondary,
  main#main .lead,
  main#main p{
    color:rgba(255,255,255,.82);
  }

  main#main .featurette .col-md-6[style],
  main#main .featuretteDivImg > div{
    min-height:260px!important;
  }

  .subcats_page #featured{
    min-height:200px;
  }

  .subcats_page #featured .section-header{
    padding:28px 18px!important;
  }

  .subcats_page #featured h1{
    font-size:1.9rem;
    line-height:1.15;
  }

  .subcats_page #featured .lead{
    font-size:1rem;
    line-height:1.55;
    color:#fff;
    text-shadow:0 1px 3px rgba(0,0,0,.6);
  }

  .subcats_page #featured::before{
    background:linear-gradient(180deg, rgba(4,10,18,.88) 0%, rgba(4,10,18,.80) 100%);
  }

  .subcats_page #featured .breadcrumb-item,
  .subcats_page #featured .breadcrumb-item a{
    font-size:.8125rem;
  }

  #btnCallbackZones{
    margin-left:0!important;
  }

  footer.bg-dark{
    padding:2rem 0 1rem;
  }

  footer.bg-dark .row{
    row-gap:1.25rem;
  }

  footer.bg-dark .col-12{
    padding:0 16px;
  }
}

#block-content .card {
    color: #fff;
}

/* Correctif débordement horizontal des blocs featurette */
main#main .row.featurette.vertical-center {
  margin-left: 0;
  margin-right: 0;
}


/* Correctif contraste CTA des pages service */
main.subcats_page #block-content section.bg-light.border.text-center {
  background-color:var(--ui-surface-2)!important;
  border-color:var(--ui-border)!important;
  color:var(--ui-text)!important;
}

main.subcats_page #block-content section.bg-light.border.text-center p {
  color:var(--ui-muted);
}


/* Espacement entre le hero et le contenu des pages service */
main.subcats_page #featured + #block-content.container {
  padding-top:3rem;
}

@media (max-width:767.98px) {
  main.subcats_page #featured + #block-content.container {
    padding-top:2rem;
  }
}


/* Contraste du texte secondaire sur le fond navy */
.text-secondary {
  --bs-secondary-color: rgba(238,245,255,.82);
  color: rgba(238,245,255,.82) !important;
}

.hero-section .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(238,245,255,.55);
}
.hero-section .breadcrumb-item,
.hero-section .breadcrumb-item a {
  color: rgba(238,245,255,.88);
  font-size: .95rem;
  text-decoration: none;
}
.hero-section .breadcrumb-item.active {
  color: #fff;
}
.hero-section .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(238,245,255,.55);
}
.hero-section .hero-postal {
  color: rgba(238,245,255,.9);
  font-size: 1rem;
  margin-bottom: .75rem;
}

/* Accessibilité : focus clavier visible */
a:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.accordion-button:focus-visible,
.form-check-input:focus-visible,
.btn-close:focus-visible{
  outline:3px solid #8cc4ff;
  outline-offset:2px;
  box-shadow:0 0 0 .25rem rgba(47,125,246,.35);
}

/* Liens dans le texte : contraste AA et soulignement */
main#main :is(p, li:not(.breadcrumb-item), dd, td, .accordion-body, .alert) a:not(.btn):not(.badge):not(.nav-link),
.modal-body a:not(.btn){
  color:#8cc4ff;
  text-decoration:underline;
  text-underline-offset:.18em;
}
main#main :is(p, li:not(.breadcrumb-item), dd, td, .accordion-body, .alert) a:not(.btn):not(.badge):not(.nav-link):hover,
.modal-body a:not(.btn):hover{
  color:#cfe6ff;
  text-decoration-thickness:2px;
}
/* Textes trop petits : 13 px minimum */
main#main .badge{
  font-size:.8125rem;
}

/* Lien d'évitement (ajouté en JS) */
.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
}
.skip-link:focus{
  position:fixed;
  top:.5rem;
  left:.5rem;
  z-index:2000;
  padding:.6rem 1rem;
  border-radius:999px;
  background:#fff;
  color:#06101f;
  font-weight:700;
}

/* Confirmation d'envoi du rappel (ajoutée en JS) */
#callbackStatus{
  position:fixed;
  left:50%;
  bottom:1rem;
  transform:translateX(-50%);
  z-index:1090;
  width:min(520px, calc(100% - 2rem));
}
#callbackStatus .alert{
  background:#d1e7dd;
  color:#0a3622;
  border:1px solid #a3cfbb;
  border-radius:14px;
}

