/*Importation du CSS de Bootstrap */
@import url("../vendor/bootstrap/dist/css/bootstrap.min-1712f0378f8675ca7cd423d6262fcccf.css");
@import url("../vendor/bootstrap-icons/font/bootstrap-icons.min-913588d480f81c75bb807100fb42a058.css");
@import url("../vendor/select2/dist/css/select2.min-85f0f85f6f631990b9de31e8db0c7630.css");

/* ***************** BOOTSTRAP OVERRIDE STYLES *********************** */

:root {
    --bs-primary: #2195de !important;
    --bs-primary-rgb: 33, 149, 222;
}
.border-primary {
    border-color: #2195de !important;
}
.btn-primary {
    background-color: #2195de !important;
    border-color: #2195de !important;
}

.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}
.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.form-group label.required:after,
.form-group .col-form-label.required:after {
    content: " *";
    color: red;
}

.form-group label:not(.required):after, 
.form-group .form-check label.required:after {
    content: "  ";
    white-space: pre;
}

.form-check-input:checked {
    background-color: #2195de;
    border-color: #2195de;
}

/* ***************** SELECT2 OVERRIDE STYLES *********************** */

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--bs-primary);
    color: white;
}

/* Personnalisation de la hauteur de Select2 pour qu'elle corresponde aux autres inputs de Bootstrap */
.select2-container .select2-selection--single {
    height: calc(1.5em + .75rem) !important ;
    line-height: 1.5;
    padding: 0.375rem 0.75rem;
    border-radius: .375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
}

.select2-container--default .select2-results__option {
    padding: 0.375rem 0.75rem;
}


/************************************** POPOVER LIKE TOOLTIPS ******************************************/
/* Popover principal */
.popover {
  background-color: #333 !important;
  color: #fff !important;
  border-radius: 0.5rem;
  max-width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  max-width: 500px;
  width: auto;
  white-space: normal;
}

.popover-body {
  color: #fff !important;
  padding: 6px 10px;
}

.popover a {
  color: #0d6efd !important;
  text-decoration: underline;
}

.popover .popover-arrow {
  display: none !important;
}

/*******************************************************************************************************/

/***************************************** CAPTCHA CSS ************************************************/

.captcha-container {
    display: flex;
    align-items: center; /* Aligne les éléments verticalement */
    justify-content: flex-end; /* Aligne le contenu à droite */
    gap: 15px; /* Espacement entre les éléments */
    margin-bottom: 15px; /* Espacement sous le CAPTCHA */
    flex-wrap: wrap;
}

.captcha-label {
    font-weight: bold;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

.captcha-input {
    width: 300px;
    padding: 5px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/***************************************** CUSTOM CSS *************************************************/

/* Aligner les labels du formulaire à droite*/
/*.form-group .col-3 label {
    text-align: right;
    display: block;
}*/
header#masthead {background:#ffffff;position: fixed;width: 100%;z-index: 100;top:0;transition: .4s;height:90px;padding-top:9px;}
header#masthead.scrolled{ height:60px;box-shadow: 0 0 10px #aaaaaa; }
header#masthead .wrapper { position:relative;z-index:2; }

header .site-branding { z-index:3;position: relative; }
header h1.site-title { display:block;margin:0;position: relative;border-bottom:none !important; }
header .site-title img {position: relative;margin: 10px 0 20px 50px;height: 41px; -webkit-transition: .4s all ease;transition: .4s all ease;}
header .site-title img#logo-txt {position: absolute;left: 0;bottom: 1px;margin: -10px 0;width: 100px;opacity:1;}
header.scrolled .site-title img#logo-img {height:30px;margin: 10px 0 10px 30px;}
header.scrolled .site-title img#logo-txt {opacity: 0;width: 0px;}
header {position: sticky; top: 0; background-color: #fff; z-index: 1000; width: 100%; transition: box-shadow 0.3s ease;}
header.sticky-shadow {box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);}
section.site-content {position: relative; margin: 100px 0 0 0; min-height: calc(100% - 230px); clear: both;}

.bold { 
    font-weight:bold
}

.uppercase {
    text-transform: uppercase;
}

.small-text{
    font-size: 15px;
    color: #2195de;
    --bs-text-opacity: 1 !important;
    margin-left: 10px;
    font-weight: normal !important;
}

.flatpickr-input .datepicker {
    cursor: pointer !important;
}

/******************************************Overly Loader*****************************************/
#form-overlay-loader {
    opacity: 0;
    pointer-events: none; /* empêche les clics tant qu'il est invisible */
    transition: opacity 0.3s ease-in-out;
}

#form-overlay-loader.show {
    display: flex !important;
    opacity: 1;
    pointer-events: auto; /* permet de bloquer les clics quand visible */
}

/***********************************************************************************/


@media (max-width: 576px) {
    h1, h2, h3 {
        font-size: 1rem !important;
    }

    h4, h5 {
        font-size: 0.9rem !important;
    }

    p, span, label, li, legend, small {
        font-size: 0.65rem !important;
    }

    .captcha-container {
        justify-content: flex-start;
        text-align: flex-start;
    }

    .captcha-container label,
    .captcha-container .captcha-input {
        width: 100%;
    }

    ::placeholder {
        font-size: 0.75rem !important;
    }

    input::placeholder,
    textarea::placeholder {
        font-size: 0.75rem !important;
    }

    input[type="file"] {
        font-size: 0.75rem;
        padding: 6px 8px;
        width: 100%; /* Pour s'adapter à l'écran */
    }

    input[type="date"],
    .flatpickr-input {
        font-size: 0.85rem !important;
        padding: 0.375rem 0.75rem; /* ajuste l'espacement */
  }
}
