/* Images des cards : largeur et hauteur fixes, responsive */
.card-img-topo {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 6px 6px 0 0;
  display: block;
}


.card-img-top {
    border-radius: 6px 6px 0 0;
    width: 100%;
    height: 100%;
}

/* @media (max-width: 992px) {
  .card-img-top {
    height: 90px;
  }
}

@media (max-width: 576px) {
  .card-img-top {
    height: 60px;
  }
} */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;700&family=Nunito:wght@400;700&display=swap');

:root {
    --font-family: 'Fredoka', 'Nunito', sans-serif;
    --background-color: #f8f9fa;
    --text-color: #222;
    --primary-color: #2b7cff;
    --background-color-code: #e9ecef;
}

[data-theme="dark"] {
    --background-color: #181a1b;
    --background-color-section: #212529;
    --text-color: #f8f9fa;
    --primary-color: #2b7cff;
    --background-color-code: #222e3d;
}

body {
    font-family: var(--font-family);
    background: var(--background-color-section);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    margin-bottom: 1rem;
}


.btn-primary, .btn-warning, .btn-accent, .btn-secondary {
  /* background: linear-gradient(90deg, #3d76ad 60%, #5fa3e7 100%);
  color: #fff !important; */
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 16px rgba(61, 118, 173, 0.08);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.btn-warning {
  background: linear-gradient(90deg, #254b6e 60%, #1e5181 100%);
  color: #fff !important;
}
.btn-secondary {
  background: linear-gradient(90deg, #6c757d 60%, #5d6268 100%);
  color: #fff !important;
}
.btn-primary:hover, .btn-warning:hover, .btn-accent:hover, .btn-secondary:hover {
  box-shadow: 0 4px 24px rgba(61, 118, 173, 0.15);
  filter: brightness(1.08);
  background: linear-gradient(90deg, #1d5083 60%, #3d76ad 100%);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
 .btn-secondary:hover {
  box-shadow: 0 4px 24px rgba(93, 95, 97, 0.15);
  filter: brightness(1.08);
  background: linear-gradient(90deg, #6c757d 60%, #3d76ad50 100%);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

body {
  font-family: var(--font-family);
  background: var(--background-color-section);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  margin: 0;
  padding: 0;
  padding-top: 65px; /* Hauteur de la navbar sticky-top */
}


/* Images toujours fluides */
img, .img-fluid {
    max-width: 100%;
    /* height: auto; */
    display: block;
    /* margin-left: auto;
    margin-right: auto; */
}

.card,
.card-body,
.card-header {
    background: var(--background-color); 
    /* background: #212529 !important;*/
    color:var(--text-color);
    border:0;
    border-radius: 6px;
}

.border-bottom {
  border-bottom: 5px solid #3d76ad !important;
	border-radius: 5px;
}

/* Unification du bleu pour les titres et éléments d'accent 
.text-warning {
  color: #3d76ad !important;
}*/
.text-warning {
	color: #fff !important;
	background-color: #2c3237;
	padding: 4px 15px;
	border-radius: 6px;
}

/* sections */
section[id] {
  scroll-margin-top: 65px;
  width: 100%;
  box-sizing: border-box;
}

/* Section principale */
#rapports,
#qui,
#hero,
#services,
#price,
#contact {
  /* background: var(--background-color-section, #f8f9fa); */
  color: var(--text-color);
  /* border-radius: var(--bs-border-radius, 0.5rem); */
  padding: 2rem 1rem;
  /*margin-bottom: 2rem;
   box-shadow: 0 2px 8px rgba(0,0,0,0.05); */
}

/* .devis {
	background: #f60;
	/* padding: 5px 3px; 
	border-radius: 6px;
	color: #000;
} */

.navbar .nav-link.devis {
  padding: 0.2rem 1.5rem 0.3rem;
  background: linear-gradient(90deg, #254b6e 60%, #3d76ad 100%);
  color: #fff !important;
  /*font-weight: 600;
   box-shadow: 0 2px 18px rgba(26, 19, 221, 0.56); */
  border-radius: 6px;
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  margin-right: 1rem;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.navbar .nav-link.devis:hover {
  background: rgba(61, 118, 173, 0.15);
  color:#fff !important;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.navbar .nav-link.test {
  padding: 0.2rem 1.5rem 0.3rem;
  background: linear-gradient(90deg, #6e5d25 60%, #ad893d 100%);
  color: #fff !important;
  /*font-weight: 600;
   box-shadow: 0 2px 18px rgba(26, 19, 221, 0.56); */
  border-radius: 6px;
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.navbar .nav-link.test:hover {
  background: rgba(61, 118, 173, 0.15);
  color:#fff !important;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 1020 !important;
}

.text-left {
	text-align: left;
}

.lead{
  text-align: left  !important;
}

.navbar-toggler {
	
	border: 0px solid transparent;

}
.container, .container-fluid {
    padding-left: 0;
    padding-right:0;
  }

/* @MEDIA 

@media (max-width: 576px) {
  .sticky-top {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100vw;
    z-index: 1050 !important;
    box-shadow: 0 2px 16px rgba(43, 124, 255, 0.18);
  }
  body {
    padding-top: 56px !important;
  }
  section[id] {
    scroll-margin-top: 100px !important;
  }
}


/* Centrage des titres et boutons sur mobile */
@media (max-width: 768px) {
  h1, h2, h3, .btn, .btn-primary {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  footer {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
  }

  .titre,
  .lead,
  .link {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .hide {
    display: none !important;
  }
  section[id] {
    scroll-margin-top: 222px !important;
  }
}

/* Responsive design */
@media (max-width: 992px) { 
   section[id] {
    scroll-margin-top: 222px !important;
  }
  .test {
    margin-bottom: 10px;
   
  }
  .devis{
    margin-right: 0 !important;
  }
  .hide{ display: none !important;   }
  .titre,
  .lead,
  .link{ text-align: left; }

  h1 { font-size: 2rem; text-align: center; }
  h2 { font-size: 1.5rem; text-align: center; }
  h3 { font-size: 1.2rem; text-align: center; }
  .btn-primary {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    display: block;
    margin: 0.5rem auto;
  }
  #rapports,
  #qui,
  #hero,
  #services,
  #price,
  #contact {
    padding: 1.2rem 0.5rem;
    /* margin-bottom: 1.2rem; */
  }
  /* .container, .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  } */
  .feature-icon,
  .icon-square,
  .feature-icon-small {
    width: 2.5rem;
    height: 2.5rem;
  }
}



/* MEDIA */

/* Utilitaires */
.text-shadow-1 { text-shadow: 0 .125rem .25rem rgba(0, 0, 0, .25); }
.text-shadow-2 { text-shadow: 0 .25rem .5rem rgba(0, 0, 0, .25); }
.text-shadow-3 { text-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25); }

.card-cover {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: .75rem;
}

.icon-square {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
}

.feature-icon-small {
  width: 3rem;
  height: 3rem;
}

/* Amélioration de la navbar sticky sur mobile */
.sticky-top {
  top: 0;
  z-index: 1020;
}

/* Footer responsive */
footer {
	padding: 1.5rem 1rem;
	background: var(--background-color-section, #f8f9fa);
	color: var(--text-color);
	text-align: center;
	font-size: 0.95rem;
	border-top: 1px solid #3e3f40;
}

.text-muted {
	--bs-text-opacity: 1;
	color:#a1a4a7 !important;
}
.text-muted:hover {
	--bs-text-opacity: 1;
	color:#e0e4e9 !important;
}

