

:root {

    --formasoft-green: #9eb330;
    --formasoft-green-dark: #7d8c25;
    --formasoft-bg: #f3f3f3;
    --formasoft-white: #f3f3f3;
    --formasoft-text: #333;
    --formasoft-muted: #888;
    --formasoft-border: #ddd;
    --formasoft-soft: rgba(158, 179, 48, .12);
    --formasoft-success: #198754;
    --formasoft-info: #0dcaf0;
    --formasoft-warning: #ffc107;
    --formasoft-danger: #dc3545;
    --formasoft-light: #f8f9fa;
    --formasoft-dark: #262626;

    --formasoft-nav-color: #bbb;
    /* --formasoft-nav-bg: #ee0000; */
    --formasoft-nav-hover-color: #fff;
    --formasoft-nav-hover-bg: #9eb330;
    --formasoft-nav-active-color: #fff;
    --formasoft-nav-active-bg: #7d8c25;


    --bs-primary : var(--formasoft-green) !important;
    --bs-primary-rgb : 158, 179, 48 !important;
    --bs-secondary-rgb : var(--formasoft-muted);
    --bs-secondary-color: var(--formasoft-muted);

    /* --bs-tertiary-bg: #9eb330; */
    --bs-secondary : var(--formasoft-green-dark);
    --bs-success : var(--formasoft-success);
    --bs-info : var(--formasoft-info);
    --bs-warning : var(--formasoft-warning);
    --bs-danger : var(--formasoft-danger);
    --bs-light : var(--formasoft-light);
    --bs-dark : var(--formasoft-dark);
    --bs-dark-rgb : 38, 38, 38 !important;
    
    /* --bs-secondary-rgb : 125, 140, 37; */


    /* --bs-link-color: #f00;
    --bs-link-hover-color: #f0f; */
    --bs-link-color-rgb: 158, 179, 48;
    --bs-link-hover-color-rgb: 125, 140, 37;

}

html {
    scrollbar-color: rgba(38, 38, 38, .45) rgba(0, 0, 0, .08);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .08);
}

::-webkit-scrollbar-thumb {
    background: rgba(38, 38, 38, .45);
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, .7);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(38, 38, 38, .62);
}

.dropdown-menu {
    --bs-dropdown-link-color: var(--formasoft-nav-color);
    --bs-dropdown-link-hover-color: var(--formasoft-nav-hover-color);
    --bs-dropdown-link-hover-bg: var(--formasoft-nav-hover-bg);
    --bs-dropdown-link-active-color: var(--formasoft-nav-active-color);
    --bs-dropdown-link-active-bg: var(--formasoft-nav-active-bg);
}

.header {
    position: relative;
    isolation: isolate;
    width: 100%;
    z-index: 1030;
}

.header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.header.header-home::before,
.header.header-home::after {
    display: none;
}

.header.header-home.header-scrolled {
    background-color: #000;
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #0d0d0d;
    background-image:
        linear-gradient(rgba(13, 13, 13, 0.55), rgba(13, 13, 13, 0.55)),
        var(--header-bg-image, none);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% auto;
}

.header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.header .header-navbar {
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.header .navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    margin: 0 1rem 0 0;
    padding: 0;
}

.header .navbar-brand img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    transform-origin: center center;
}

.header.header-compact .navbar-brand {
    width: auto;
    height: 80px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.header.logo-shrink-out .navbar-brand img {
    animation: logoShrinkOut 0.12s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.header.logo-grow-in .navbar-brand img {
    animation: logoGrowIn 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes logoShrinkOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes logoGrowIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.header .dropdown-menu .dropdown-item {
    padding: .55rem 1rem !important;
}

.btn {
    
    /* --bs-btn-bg: var(--formasoft-green);
    --bs-btn-border-color: var(--formasoft-green);
    --bs-btn-color: #fff; */

}

/* .btn-close {
    --bs-btn-close-color: #9eb330;
    --bs-btn-close-bg: #9eb330;
    --bs-btn-close-opacity: 1;
} */

.card {
    --bs-card-color: var(--bs-light);
}

.card-overlay {
    /* transform: translateY(-250px); */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(-350px);
    transition: transform 0.3s ease-in-out;
}

.card:hover .card-overlay {
    transform: translateY(0);
}

/* =============================================
   GLOBAL
   ============================================= */

body {
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

p {
    font-family: 'Raleway', sans-serif;
}

::selection {
    background: var(--bs-primary);
    color: #fff;
}

@media (min-width: 992px) {
    .sidebar-sticky {
        position: sticky;
        top: 9rem;
        align-self: flex-start;
    }
}

/* =============================================
   PROJETS RÉCENTS (accueil + page standard)
   ============================================= */

.project-item {
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
}
/*
Source - https://stackoverflow.com/a/29642222
Posted by Tom
Retrieved 2026-05-29, License - CC BY-SA 3.0
*/

img {
  display: block;
  max-width: 100%;
  height: auto;
}


.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(158, 179, 48, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-overlay-content {
    color: #fff;
    text-align: left;
}

.project-overlay-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.project-overlay-content p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
}

.project-overlay-btn {
    align-self: flex-end;
    color: #fff;
    border: 1px solid #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
}

.project-overlay-btn:hover {
    background: #fff;
    color: var(--bs-primary);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

/* =============================================
   PAGE STANDARD — ARTICLE
   ============================================= */

#texte_article h2 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

#texte_article h3 {
    font-size: 1.1rem;
    color: var(--bs-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#texte_article strong {
    color: #333;
}

#texte_article ul {
    padding-left: 1.2rem;
}

#texte_article ul li {
    margin-bottom: 0.5rem;
}

#texte_article a {
    color: var(--bs-primary);
}

.btn-formation {
    background: var(--bs-primary);
    color: #fff;
    border: 1px solid #fff;
}

.btn-formation:hover {
    background: #fff;
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* =============================================
   PAGE LISTE — ACCORDION
   ============================================= */

.accordion-liste-btn.collapsed {
    transition: background 0.2s ease, color 0.2s ease;
}

.accordion-liste-btn.collapsed:hover {
    background: #555 !important;
    color: #fff !important;
}

.accordion-liste-btn.collapsed:hover .accordion-liste-icon {
    color: #fff !important;
}

/* =============================================
   TEXTE ARTICLE
   ============================================= */

.text-article h2,
#tinymce h2 {
  font-weight: 500;
  font-size: 2rem;
  /* text-transform: uppercase; */
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: #555;
  letter-spacing: 1px;
}

.text-article h3,
#tinymce h3 {
  font-weight: 400;
  font-size: 0.875rem;
  /* text-transform: uppercase; */
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #555;
  letter-spacing: 1px;
}

.text-article h4,
#tinymce h4 {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #555;
  letter-spacing: 1px;
}

.text-article p,
#tinymce p {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.75;
}

.text-article ul,
#tinymce ul {
  list-style: none;
  padding-left: 0;
}

.text-article li,
#tinymce li {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.75;
  margin-bottom: 0.5rem;
  margin-left: 1.5rem;
}

.text-article li::before,
#tinymce li::before {
  content: '\F27B';
  font-family: 'bootstrap-icons';
  font-weight: 900;
  color: var(--bs-primary);
  margin-right: 0.75rem;
  margin-left: -1.5rem;
}

/* =============================================
   TEXT ARTICLE — DARK BACKGROUND
   ============================================= */

footer .text-article h2,
footer .text-article h3,
footer .text-article li,
footer .text-article a {
  color: #fff;
}
footer .text-article h4 {
  color: #999;
}

footer .text-article p {
    color: #777;
}

footer .text-article a {
  color: var(--bs-primary);
}

footer .text-article a:hover {
  color: #fff;
}




/* =============================================
   PDF - FORMATIONS
   ============================================= */



.pdf .row {
    display: -webkit-box;
}

.pdf .row>div {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
}

/* Fix wkhtmltopdf compatibility with BS tables borders */

.pdf table {
    border-collapse: separate !important;
}

.pdf th,
.pdf td {
    border-top: none;
    border-left: none;
    border-right: none;
}

.pdf .text-programme {
    padding: 0;
    margin: 0;
    font-size: 0.7em;
}

.pdf .text-programme li, .pdf .text-programme p, .pdf .text-programme span, .pdf .text-programme h3 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pdf .text-programme ul {
    margin: 0;
    padding-left: 2em;
}

/* =============================================
   INFOBULLE AIDE / ACCOMPAGNEMENT
   ============================================= */

.aide-tip {
    position: fixed;
    left: 1.25rem;
    bottom: 1.5rem;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: min(280px, calc(100vw - 5.5rem));
    padding: 0.7rem 1rem 0.7rem 0.7rem;
    background: #9eb330;
    color: #fff;
    text-decoration: none;
    border-radius: 18px 18px 18px 6px;
    box-shadow: 0 8px 24px rgba(158, 179, 48, 0.35);
    border: 1px solid #9eb330;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.aide-tip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: aide-tip-shake 5s ease-in-out infinite;
}

.aide-tip:hover {
    background: #fff;
    color: #333;
    border-color: #9eb330;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    animation: none;
}

.aide-tip-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #9eb330;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.aide-tip:hover .aide-tip-icon {
    background: #9eb330;
    color: #fff;
}

.aide-tip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.aide-tip-text strong {
    font-size: 0.85rem;
    font-weight: 600;
}

.aide-tip-text span {
    font-size: 0.75rem;
    opacity: 0.8;
}

@keyframes aide-tip-shake {
    0%, 8%, 100% {
        transform: translateX(0);
    }
    1.5% {
        transform: translateX(-5px) rotate(-1.5deg);
    }
    3% {
        transform: translateX(5px) rotate(1.5deg);
    }
    4.5% {
        transform: translateX(-3px) rotate(-1deg);
    }
    6% {
        transform: translateX(3px) rotate(1deg);
    }
    7.5% {
        transform: translateX(0);
    }
}

@media (max-width: 575.98px) {
    .aide-tip {
        left: 0.75rem;
        bottom: 5.5rem;
        max-width: calc(100vw - 1.5rem);
    }
}