.btnPaiement {
  background-color: #8e0000;
  border-color: #8e0000;
  color: #ffffff;
}
.btnPaiement:hover {
  background-color: #ffffff !important;
  border-color: #8e0000 !important;
  color: #8e0000 !important;
}

.btnContact {
  background-color: #3a3a3a;
  border-color: #3a3a3a;
}
.btnContact:hover {
  background-color: #ffffff !important;
  border-color: #3a3a3a !important;
  color: #3a3a3a !important;
}

#mainMenu nav > ul > li > a:hover {
  color: #8e0000 !important;
}

.txt-5 {
  margin-top: 5em;
}
.txt-2 {
  margin-top: 2em;
}

.portrait {
  border-radius: 20px;
  height: 24em;
}
.blanc {
  color: #ffffff !important;
}
.rouge {
  color: #8e0000;
}
.centrer {
  text-align: center;
}

.zoom {
  width: 100%;
  /*height: 240px;*/
}
.image {
  width: 100%;
  height: 100%;
}
.image img {
  /* La transition s'applique à la fois sur la largeur et la hauteur, avec une durée d'une seconde. */
  -webkit-transition: all 1s ease; /* Safari et Chrome */
  -moz-transition: all 1s ease; /* Firefox */
  -ms-transition: all 1s ease; /* Internet Explorer 9 */
  -o-transition: all 1s ease; /* Opera */
  transition: all 1s ease;
}
.image:hover img {
  /* L'image est grossie de 25% */
  -webkit-transform: scale(1.25); /* Safari et Chrome */
  -moz-transform: scale(1.25); /* Firefox */
  -ms-transform: scale(1.25); /* Internet Explorer 9 */
  -o-transform: scale(1.25); /* Opera */
  transform: scale(1.25);
}

.lienPaiement {
  color: #8e0000 !important;
}
.lienPaiement:hover {
  color: #3a3a3a !important;
}

.titreRouge {
  display: inline;
  position: relative;
  color: #3a3a3a;
  text-decoration: none;
}

.titreRouge:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 2px;
  width: 0%;
  left: 0px;
  height: 1px;
  transition: 0.25s cubic-bezier(0.72, -0.01, 0.19, 0.92);
  background: #8e0000;
}

.titreRouge:hover:after {
  width: 100%;
}

.xl-1 {
  text-decoration: underline;
  text-decoration-color: #8e0000;
  text-decoration-thickness: from-font;
}
.txt-justify {
  text-align: justify;
}

@font-face {
	font-family: "Poppins Bold";
  src: url("font/Poppins-Bold_1.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
	font-family: "Poppins Bold Italic";
  src: url("font/Poppins-BoldItalic.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
	font-family: "Poppins Medium";
  src: url("font/Poppins-Medium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
	font-family: "Poppins Medium Italic";
  src: url("font/Poppins-MediumItalic.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.font-x1  {
	font-family: 'Poppins Bold', serif !important;
}
.font-x2  {
	font-family: 'Poppins Bold Italic', serif !important;
}
.font-x3  {
	font-family: 'Poppins Medium', serif !important;
}
.font-x4  {
	font-family: 'Poppins Medium Italic', serif !important;
}

/* Structure du slide */
#slider,
#slider .slide {
    height: 100vh; /* toujours toute la hauteur de l'écran */
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center; /* centre l'image sur tous les écrans */
}

/* Filtre blanc */
#slider .slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

/* Contenu centré verticalement */
#slider .slide .slide-captions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.logo-wrapper {
    display: inline-block;
    padding: 10px; /* espace autour du logo */
    background: rgba(255,255,255,0.3); /* blanc semi-transparent */
    border-radius: 8px; /* arrondi facultatif */
}
.logo-wrapper img {
    width: 600px !important;
    max-width: 90%;
    height: auto;
    transition: all 0.3s ease;
}

/* Tablette : logo un peu plus petit */
@media (max-width: 768px) {
    #slider .slide {
        height: 100vh; /* force la pleine hauteur */
    }

    #slider .slide .slide-captions img {
        width: 180px;
    }
}

/* Mobile : logo réduit et image centrée */
@media (max-width: 480px) {
    #slider .slide {
        height: 100vh; /* garde la pleine hauteur sur mobile */
        background-position: center center; /* évite le rognage haut */
    }

    #slider .slide .slide-captions img {
        width: 160px; /* logo réduit */
    }
}


.mission-card {
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.mission-card h4 {
    color: #3e3e3e;
    font-weight: 600;
}

.mission-card p {
    margin-bottom: 0.5rem;
}

/* Style des boutons des missions */
.mission-card .btn {
    background-color: #3e3e3e;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.mission-card .btn:hover,
.mission-card .btn:focus,
.mission-card .btn:active {
    background-color: #8e0000 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: none !important;
}

.btn-pers {
    background-color: #8e0000;
    color: #ffffff;
    border: none !important;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 5px;
}

.btn-pers:hover {
    background-color: #3a3a3a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

#demande {
    position: relative;
    background-image: url('images/fond-gris.jpg');
    background-size: contain;
    background-position: center;
    width: 100%;
    overflow: hidden; /* pour éviter tout débordement du filtre */
}

#demande::before {
    content: "";
    position: absolute;
    inset: 0; /* remplit toute la section */
    background: rgba(0, 0, 0, 0.5); /* filtre blanc avec opacité 0.3 */
    z-index: 1;
}

/* Pour que ton contenu soit au-dessus du filtre */
#demande > .container {
    position: relative;
    z-index: 2;
}

#map-section {
    overflow: hidden;
}

#map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Style du texte pour le rendre plus lisible */
#map-section h3 {
    color: #3e3e3e;
    font-weight: 600;
}

#map-section ul li {
    margin-bottom: 10px;
    color: #555;
}

#arrondissements .accordion-button {
  background-color: #3e3e3e !important;
  color: #fff;
  font-weight: 300 !important;
  transition: background-color 0.3s ease !important;
  border-radius: 10px;
  border: none !important;
  padding: 20px 40px !important;
}

#arrondissements .accordion-button:hover {
  background-color: #8e0000 !important;
  color: #fff !important;
}

#arrondissements .list-group-item:hover a {
  color: #8e0000 !important;
  font-weight: 300 !important;
}

/* Cache le logo Alesia en dessous de 1200px */
@media (max-width: 1199px) {
    #logo img[alt="Logo Alesia Justice"] {
        display: none !important;
    }
}