/*
Theme Name: Concours theme
Author: Amine Belouaer
Author URI:www.inp.tn
Description: 
Version: 1.0
License: 
License URI: 
Text Domain: concourstheme
Tags: 
*/

@charset "UTF-8";
:root {
    --bs-primary: #2271b1;       /* Ta nouvelle couleur (ex: Orange) */
    --bs-primary-rgb: 34, 113, 177; /* La même couleur en format RGB (obligatoire pour les transparences) */
}

@font-face {
  font-family: 'Noto Naskh Arabic';
  font-style: normal;
  font-weight: 400;
  src: local('Noto Naskh Arabic'),
  local('Noto Naskh Arabic'),
  url(./assets/NotoNaskhArabic-VariableFont_wght.ttf) format('truetype');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 500;
src: local('Open Sans'),
local('Open Sans'),
url(./assets/OpenSans-VariableFont_wdth_wght.ttf) format('truetype');
}

body{
	font-family: 'Noto Naskh Arabic','Open Sans'
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    
}
/* On ajuste le survol (hover) pour qu'il soit un peu plus foncé */
.btn-primary:hover, 
.btn-primary:active, 
.btn-primary:focus {
    background-color: #135e96 !important;
    border-color: #135e96 !important;
}

/* Optionnel : Ajuster l'ombre au clic (focus-ring) */
.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(34, 113, 177, 0.5);
}


.text-primary {
    color: #2271b1 !important;
}

.bg-primary {
    background-color: #2271b1 !important;
}

/* Si tu veux que tes liens "Plus de détail" utilisent aussi cette couleur */
a {
    color: #2271b1;
}

a:hover {
    color: #135e96;
}

/* 1. État normal (Bordure et texte bleus, fond transparent) */
.btn-outline-primary {
    color: #2271b1 !important;
    border-color: #2271b1 !important;
}

/* 2. État au survol (Le bouton se remplit de bleu) */
.btn-outline-primary:hover, 
.btn-outline-primary:active, 
.btn-outline-primary.show, 
.btn-outline-primary.dropdown-toggle.show {
    background-color: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important; /* Texte en blanc pour la lisibilité */
}

/* 3. L'ombre de focus (optionnel pour l'accessibilité) */
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(34, 113, 177, 0.5) !important;
}



/* --- Personnalisation SUCCESS (Vert Olive #689F38) --- */

/* Boutons Success */
.btn-success {
    background-color: #689F38 !important;
    border-color: #689F38 !important;
    color: #ffffff !important; /* Texte blanc pour lisibilité */
}

/* Effet au survol (légèrement plus sombre) */
.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: #558B2F !important; 
    border-color: #558B2F !important;
}

/* Fonds Success (Alertes, Badges, etc.) */
.bg-success {
    background-color: #689F38 !important;
}

/* Texte Success */
.text-success {
    color: #689F38 !important;
}

/* Bordures Success */
.border-success {
    border-color: #689F38 !important;
}

/* Focus sur les champs de formulaire valides */
.form-control.is-valid:focus, .was-validated .form-control:valid:focus {
    border-color: #689F38 !important;
    box-shadow: 0 0 0 0.25 margin-rgba(104, 159, 56, 0.25) !important;
}


/* --- Personnalisation WARNING (Ocre Jaune #E2A32B) --- */

/* Boutons Warning */
.btn-warning {
    background-color: #E2A32B !important;
    border-color: #E2A32B !important;
    color: #ffffff !important; /* Texte blanc pour un look moderne et lisible */
}

/* Effet au survol (plus ambré) */
.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
    background-color: #C68E22 !important; 
    border-color: #C68E22 !important;
    color: #ffffff !important;
}

/* Fonds Warning (Alertes, Badges, etc.) */
.bg-warning {
    background-color: #E2A32B !important;
}

/* Texte Warning */
.text-warning {
    color: #E2A32B !important;
}

/* Bordures Warning */
.border-warning {
    border-color: #E2A32B !important;
}



.errors-block{
	color: red;
	font-size: .9rem;
}

.form-section{
	background-color: #f8f9fa29;
  border-radius: 10px;
  border: 1px solid;
   
  border-color: aliceblue;
}

 @media print {
        .no-print {
            display: none !important;
        }
    }



/* Couleur des liens au repos */
 .navbar-nav .nav-link {
    color: #2c3338; /* Un gris foncé pro */
    font-weight: 600; /* Optionnel : mettre en gras l'élément actif */
}

/* Couleur au survol (Hover) et pour la page active */
 .navbar-nav .nav-link:hover,
 .navbar-nav .nav-link.active {
    color: #2271b1 !important;
    
     
}

.navbar-nav .current-menu-item a {
    color: #2271b1 !important;
}


/* Style du formulaire pour correspondre à Bootstrap 5 */
#loginform-custom p {
    margin-bottom: 1rem; /* mb-3 en Bootstrap */
}

#loginform-custom label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Style des champs de saisie (Form Control) */
#loginform-custom input[type="text"],
#loginform-custom input[type="password"] {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Focus sur les inputs */
#loginform-custom input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Le bouton de connexion (Btn Primary) */
#loginform-custom input[type="submit"] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background-color: #0d6efd; /* Bleu Bootstrap */
    border: none;
    color: white;
    border-radius: 0.375rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

#loginform-custom input[type="submit"]:hover {
    background-color: #0b5ed7;
}

/* Alignement du "Se souvenir de moi" */
.login-remember label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-weight: normal !important;
}



 .hero-patrimoine {
        background: #dfceb542, 
                    url('<?php echo get_template_directory_uri(); ?>/assets/images/bg-hero.jpg') no-repeat center center;
        background-size: cover;
        min-height: 35vh;
        display: flex;
        align-items: center;
        
        color: #4a4037;
  background-color: #dfceb542;
  border-bottom: 1px solid #4a403729;
  border-top: 1px solid #4a403729;
    }
/* --- COMPORTEMENT À L'ÉCRAN --- */
.printable-receipt {
    display: none !important;
	position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        padding: 20px !important;
}

/* --- COMPORTEMENT À L'IMPRESSION --- */
@media print {
    body * {
        visibility: hidden !important;
    }

    .printable-receipt.active-to-print, 
    .printable-receipt.active-to-print * {
        visibility: visible !important;
        display: block !important;
    }

    .printable-receipt.active-to-print {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        padding: 20px !important;
        direction: rtl !important;
        text-align: right !important; 
    }
    
    /* Supprimer les marges par défaut du navigateur */
    @page {
        margin: 1cm;
    }
}