/***********************************/
/***********************************/
/***********************************/
/***********************************/
/* Couleur primary = #0a5073 */
:root {
--bs-primary: #107cb1;
--bs-primary-rgb: 10, 80, 115;
}

/* Outline primary en #0a5073 (border + texte), avec hover rempli */
.btn-outline-primary {
--bs-btn-color: #107cb1;
--bs-btn-border-color: #107cb1;

--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #107cb1;
--bs-btn-hover-border-color: #107cb1;

--bs-btn-active-color: #fff;
--bs-btn-active-bg: #107cb1;
--bs-btn-active-border-color: #107cb1;

--bs-btn-focus-shadow-rgb: 10, 80, 115;
}


.btn-primary {
--bs-btn-color: #fff;
--bs-btn-border-color: #107cb1;
--bs-btn-bg: #107cb1;

--bs-btn-hover-color: #107cb1;
--bs-btn-hover-bg: #fff;
--bs-btn-hover-border-color: #107cb1;

--bs-btn-active-color: #fff;
--bs-btn-active-bg: #107cb1;
--bs-btn-active-border-color: #107cb1;

--bs-btn-focus-shadow-rgb: 10, 80, 115;
}

a {
	color: #107cb1;
}

a:hover {
	/* color: #ffffff; */
	/* background-color: rgba(16, 124, 177, 0.697); */
	/* border-radius: 5px; */
	color: #002335;
	-webkit-transition: all 0.5s ease;
	transition: all 0.3s ease;
	background-color: rgba(16, 124, 177, 0.1);	
	border-radius: 5px;
}



	/* Barre de navigation */
.navbar {
	background-color: #f8f9fa;
}

/* Logo plus grand */
.navbar-brand img {
	height: 80px;
	width: auto;
}

/* Menu centré */
.navbar-nav {
	justify-content: center;
	width: 100%;
}

/***********************************/
/* --- STRUCTURE MULTI-NIVEAUX --- */
.dropdown-submenu {
	position: relative;
}

.dropdown-menu .dropdown-submenu > .dropdown-menu {
	top: 0;
	left: 100%;
	margin-top: 0;
}

/* --- TRANSITIONS MENUS --- */
:root {
	--menu-transition: 180ms;
	--menu-ease: ease;
	--menu-shift: 6px;
}

.dropdown-menu {
	display: block;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(var(--menu-shift));
	transition:
	opacity var(--menu-transition) var(--menu-ease),
	transform var(--menu-transition) var(--menu-ease),
	visibility 0s linear var(--menu-transition);
}

.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-menu.show {
	background-color: #e4e4e4;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition:
	opacity var(--menu-transition) var(--menu-ease),
	transform var(--menu-transition) var(--menu-ease),
	visibility 0s linear 0s;
}

.dropdown-submenu > .dropdown-menu {
	transform: translateX(var(--menu-shift));
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu > .dropdown-menu.show {
	transform: translateX(0);
}

/* --- MOBILE: fond + scroll uniquement dans le menu --- */
@media (max-width: 991.98px) {
  /* on rend le panneau du menu scrollable */
  #navbarNav {
	background: #f8f9fa;
	border-top: 1px solid #e9ecef;
	padding: 0.5rem 1rem;

	/* zone scrollable */
	max-height: calc(100vh - 96px); /* ~ hauteur navbar (ajuster si besoin) */
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
  }

  /* optionnel: dropdowns internes sans ombre/bordure sur mobile */
  #navbarNav .dropdown-menu {
	background: #f8f9fa;
	border: 0;
	box-shadow: none;
  }

  .dropdown-menu {
	  display: none;
  }

  /* Quand le menu est ouvert: on bloque le scroll de la page */
  body.mobile-menu-open {
	overflow: hidden;
	height: 100%;
	touch-action: none;
  }
}

#navbarEp .active {
	background-color: rgba(16, 124, 177, 0.1);	
	border-radius: 5px;
}

.navbar-expand-md .navbar-nav .nav-link {
	padding-right: initial;
 }
 
/***********************************/
/***********************************/
/***********************************/
/***********************************/
/* --- Images des cartes: taille cohérente + recadrage --- */
.card {
	transition: transform 0.3s ease;
}
.card:hover {
	transform: scale(1.01);
}

.news-card-img {
	height: 250px;
	object-fit: cover;
}

.card-media {
  width: 100%;
  height: 100%;
  min-height: 220px;        /* hauteur mini sur desktop */
  object-fit: cover;
}

/* --- Cartes: texte à gauche + style date --- */
.news-card .card-text {
	text-align: left; /* aligne tout le contenu texte à gauche */
}
.news-card .card-title {
	text-align: left; /* aligne tout le contenu texte à gauche */
}
.news-card .card-meta-date {
	text-align: left; /* aligne tout le contenu texte à gauche */
	font-size: 0.85rem;
	color: #6c757d; /* Bootstrap secondary */
	margin-bottom: 0.25rem;
}
/* Icône: on la garde alignée à gauche aussi */
.news-card .card-icon {
	text-align: left; /* aligne tout le contenu texte à gauche */
	font-size: 1.4rem;
	display: inline-block;
	margin-bottom: 0.5rem;
}
.news-card .card-btn {
	float: right; /* aligne tout le contenu texte à gauche */
}

.news-card .card-btn-back {
	float: left; /* aligne tout le contenu texte à gauche */
}		
.news-card .card-body {
	display: flex;
	flex-direction: column;
}
.news-card .btn {
	margin-top: auto;      /* pousse le bouton en bas */
	align-self: flex-end;  /* aligne à droite */
}

/***********************************/
/***********************************/
/***********************************/
/***********************************/
/* PROJECTS SECTION */

.projects-section {
	margin-top: 0px; 
	padding: 1rem 0;
	padding-bottom: 0px;
	/* border: 1px;
	border-style: solid;
	border-color: red; */
}

@media (min-width: 992px) {
	.projects-section .featured-text {
		border-left: 0.5rem solid #107cb1;
	}
}

.projects-section .project-text {
	font-size: 120%;
}

@media (min-width: 992px) {
	.projects-section .project-text {
	}

	.projects-section .project-text hr {
		border-color: #107cb1;
		border-width: .25rem;
		width: 30%;
	}
}


/***********************************/
/***********************************/
/***********************************/
/***********************************/
/* PROJECTS SECTION */
.bg-1, .bg-2, .bg-3 {
	border : solid 1px rgba(10, 81, 115, 0.3);
	border-radius : 10px;
	background-color: #ffffff !important;
	color: rgba(0, 0, 0, 1) !important;
}


/***********************************/
/***********************************/
/***********************************/
/***********************************/
	  /* Breadcrumb discret */
  .breadcrumb-type1 {
	margin: 0;
	font-size: 0.875rem;            /* plus petit */
	--bs-breadcrumb-divider: "›";   /* séparateur fin (Bootstrap 5) */
  }
  .breadcrumb-type1 .breadcrumb-item + .breadcrumb-item::before {
	opacity: 0.5;                   /* séparateur discret */
  }
  .breadcrumb-type1 a {
	color: #6c757d;                 /* gris Bootstrap */
	text-decoration: none;
  }
  .breadcrumb-type1 a:hover {
	color: #495057;
	text-decoration: underline;
  }
  .breadcrumb-type1 .active {
	color: #adb5bd;                 /* très léger */
  }



/***********************************/
/***********************************/
/***********************************/
/***********************************/
  /* images in ITEM  */
  
  .image-row {
	text-align: center;
  }
  
  @media (min-width: 720px) {
	.image-row {
	  text-align: left;
	}
  }
  .lighbox-image-link {
	display: inline-block;
	background-color: var(--bg-color);
	line-height: 0;
	border-radius: var(--border-radius-large);
  }
  .lighbox-image-link:hover {
	background-color: var(--primary-color);
  }
  
  .lighbox-image {
	width: 7rem;
	border-radius: 5px;
  }



/***********************************/
/***********************************/
/***********************************/
/***********************************/
// FORM CSS

		/* Ajustement pour Select2 avec Bootstrap */
.select2-container--bootstrap-5 .select2-selection {
	min-height: 38px;
}
/* Largeur réduite par défaut (fermé) */
#countryCode + .select2-container {
	max-width: 130px !important;
	flex: 0 0 130px;
	transition: all 0.3s ease;
}
/* Largeur complète quand ouvert */
#countryCode + .select2-container.select2-container--open {
	max-width: 100% !important;
	flex: 1 1 auto;
	position: absolute;
	z-index: 9999;
	left: 0;
	right: 0;
}
/* Conteneur parent pour gérer le positionnement */
.phone-group-wrapper {
	position: relative;
}
/* Assurer que le champ téléphone prend le reste de l'espace */
.phone-input-wrapper {
	flex: 1;
}
/* Dropdown de Select2 en pleine largeur */
.select2-container--open .select2-dropdown {
	width: 100% !important;
}
/* Animation douce */
.select2-container {
	transition: max-width 0.3s ease, flex 0.3s ease;
}

/***********************************/
/* SAFE AREA (iPhone en paysage) - 2026-09-19
   index.php utilise viewport-fit=cover : les fonds vont jusqu'aux bords de l'ecran,
   le contenu des blocs pleine largeur s'ecarte de l'encoche / Dynamic Island.
   En portrait les insets valent 0 : rien ne change. Les .container centres ont deja
   assez de marge et ne sont pas touches. */
.container-fluid {
	padding-left:  max(calc(var(--bs-gutter-x) * .5), env(safe-area-inset-left));
	padding-right: max(calc(var(--bs-gutter-x) * .5), env(safe-area-inset-right));
}
div[aria-label="breadcrumb"].ps-3 {
	padding-left:  max(1rem, env(safe-area-inset-left)) !important;
	padding-right: env(safe-area-inset-right);
}

/* titre d'objet cliquable (obj_title_link) */
.mq-title-link { color: inherit; text-decoration: none; }
.mq-title-link:hover { text-decoration: underline; }

/* crayon d'edition (admin) : petit triangle bleu en haut a droite de la fiche, visible seulement au survol de la fiche (essai) */
.card { position: relative; }
a.mq-edit-ico { position: absolute; top: 0; right: 0; z-index: 5; width: 3.4rem; height: 3.4rem; background: var(--bs-primary, #107cb1); clip-path: polygon(0 0, 100% 0, 100% 100%); border-top-right-radius: inherit; color: #fff !important; text-decoration: none; opacity: 0; transition: opacity .2s; }
a.mq-edit-ico i { position: absolute; top: .45rem; right: .45rem; font-size: 1rem !important; line-height: 1; }
.card:hover a.mq-edit-ico, a.mq-edit-ico:focus-visible { opacity: 1; }
a.mq-edit-ico:hover { filter: brightness(1.15); }
