/* Couleurs de marque, extraites du logo BIS (voir README, section
   "Couleurs de marque") : une seule source de vérité pour tout le
   site, au lieu de couleurs codées en dur dans chaque règle. */
:root {
    --bis-navy: #081446;
    --bis-navy-dark: #050C2B;
    --bis-navy-light: #0B1B5F;
    --bis-gold: #DA9C04;
    /* Variante assombrie de l'or de marque, utilisée uniquement quand
       la couleur sert de TEXTE sur un fond clair : l'or vif du logo,
       très saturé, n'offre pas un contraste suffisant (~2,4:1) pour du
       texte sur blanc au sens des recommandations d'accessibilité
       WCAG AA (4,5:1 minimum) ; cette variante conserve la même teinte
       tout en assurant un contraste de 5:1. */
    --bis-gold-text: #916803;

    /* css/style.css (gabarit du thème d'origine) utilise par endroits
       la variable Bootstrap --bs-primary directement (menu au survol,
       superpositions "service"/"équipe"/"témoignages"...) plutôt qu'une
       couleur figée : la redéfinir ici suffit à corriger tous ces
       usages d'un coup, sans avoir à toucher ce fichier tiers. Les
       autres classes Bootstrap ci-dessous, elles, sont compilées avec
       une couleur figée (pas une variable) et doivent donc être
       redéfinies individuellement. */
    --bs-primary: var(--bis-navy);
}

/* Bootstrap (css/bootstrap.min.css) compile ses classes utilitaires
   .btn-primary / .text-primary / .bg-primary avec une couleur figée à
   la compilation (#0d6b68, un sarcelle issu du thème d'origine, sans
   rapport avec la marque BIS) et non avec une variable CSS — les
   redéfinir ici, une seule fois, plutôt que d'ajouter un style local à
   chaque page qui les utilise (bouton "retour en haut", menu mobile,
   spinner de chargement...). Les !important sont nécessaires : les
   règles Bootstrap correspondantes en utilisent déjà pour .text-primary
   et .bg-primary. */
.btn-primary {
    background-color: var(--bis-navy) !important;
    border-color: var(--bis-navy) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--bis-navy-light) !important;
    border-color: var(--bis-navy-light) !important;
    color: #fff !important;
}

.text-primary {
    color: var(--bis-navy) !important;
}

.bg-primary {
    background-color: var(--bis-navy) !important;
}

/* Icônes réseaux sociaux du pied de page (fond du bouton transparent,
   posé sur le fond navy du footer) : l'or de marque plutôt que le
   sarcelle par défaut de Bootstrap, avec un contraste largement
   suffisant sur fond navy (7:1). */
.btn-outline-primary {
    color: var(--bis-gold) !important;
    border-color: var(--bis-gold) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: var(--bis-navy) !important;
    background-color: var(--bis-gold) !important;
    border-color: var(--bis-gold) !important;
}

/* .bg-light (Bootstrap) est compilé avec un fond menthe/sarcelle pâle
   (#e6f0ef, avec !important dans la règle d'origine) plutôt qu'un gris
   neutre — utilisé sur la moitié des sections en alternance du site
   (Nos expertises, Pourquoi BIS, Nos partenaires sur l'accueil, ainsi
   que les pages Services, Points forts et Publications). */
.bg-light {
    background-color: #F4F6F8 !important;
}

/* Couleur de lien par défaut (Bootstrap : a{color:#0d6b68}), utilisée
   uniquement là où aucune classe plus spécifique (menu, boutons,
   pied de page...) ne s'applique déjà. */
a {
    color: var(--bis-navy);
}

a:hover {
    color: var(--bis-gold-text);
}

/* Couleur par défaut des liens du menu (non survolés / non actifs) :
   le gabarit d'origine (css/style.css) utilise --bs-dark — variable
   par ailleurs correcte pour d'autres usages neutres du gabarit, donc
   volontairement pas redéfinie globalement — qui donne ici un noir
   légèrement verdâtre (#03201f) plutôt que le gris neutre du reste du
   site. Réaligné spécifiquement pour le menu. */
.navbar .navbar-nav .nav-link {
    color: #1A1A1A;
}

/* Typographie */
body {
    font-family: 'Inter', sans-serif;
}

/* Couleurs */
.text-xl-primary {
    color: var(--bis-navy);
}

.text-xl-accent {
    color: var(--bis-gold-text);
}

/* Menu */
.navbar .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #1A1A1A;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--bis-gold-text);
}

/* Dropdown */
.dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 0.6rem 1.2rem;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #F4F6F8;
    color: var(--bis-navy);
}

/* Bouton CTA */
.btn-xl-primary {
    background-color: var(--bis-navy);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.btn-xl-primary:hover {
    background-color: var(--bis-gold);
    color: var(--bis-navy);
}


/* HERO */
.hero-xl {
    background-color: #F4F6F8;
}

.hero-badge {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bis-navy);
    border-left: 4px solid var(--bis-gold);
    padding-left: 12px;
    font-weight: 600;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--bis-navy);
    line-height: 1.2;
}

.hero-title span {
    color: var(--bis-gold-text);
}

.hero-text {
    font-size: 17px;
    color: #1A1A1A;
    max-width: 520px;
}

/* Boutons */
.btn-xl-primary {
    background-color: var(--bis-navy);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.btn-xl-primary:hover {
    background-color: var(--bis-gold);
    color: var(--bis-navy);
}

.btn-xl-outline {
    background: transparent;
    border: 1px solid var(--bis-navy);
    color: var(--bis-navy);
    border-radius: 6px;
    font-size: 14px;
}

.btn-xl-outline:hover {
    background-color: var(--bis-navy);
    color: #fff;
}

/* Variante claire, pour un bouton "outline" sur fond sombre
   (ex: bloc texte du bandeau "Domaines d'intervention"). */
.btn-xl-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.btn-xl-outline-light:hover {
    background-color: #fff;
    color: var(--bis-navy);
    border-color: #fff;
}

/* Stats */
.hero-stat h3 {
    color: var(--bis-navy);
    font-weight: 700;
    margin-bottom: 5px;
}

.hero-stat p {
    font-size: 14px;
    color: #555;
}

/* Section badge */
.section-badge {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bis-navy);
    border-left: 4px solid var(--bis-gold);
    padding-left: 12px;
    font-weight: 600;
}

/* Titres */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--bis-navy);
    line-height: 1.3;
}

/* Texte */
.section-text {
    font-size: 16px;
    color: #1A1A1A;
}

/* Images */
.about-image-grid {
    position: relative;
}

.about-img-main img {
    width: 100%;
}

/* Overlay expérience */
.about-img-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--bis-navy);
    color: #fff;
    padding: 15px 20px;
    border-radius: 6px;
}

.about-img-overlay span {
    font-size: 22px;
    font-weight: 700;
    display: block;
}

.about-img-overlay small {
    font-size: 13px;
    opacity: 0.9;
}

/* Points clés */
.about-point {
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1A1A1A;
}

.about-point i {
    color: var(--bis-gold-text);
    font-size: 14px;
}
/* Feature cards */
.feature-card {
    background: #FFFFFF;
    padding: 30px 25px;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card i {
    font-size: 34px;
    color: var(--bis-navy);
    margin-bottom: 15px;
}

.feature-card h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--bis-navy);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: #1A1A1A;
    line-height: 1.6;
}

/* Hover discret */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(8, 20, 70, 0.08);
}
.project-intro {
    background: var(--bis-navy);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 70, 0.75);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Bug préexistant (non lié à la marque) corrigé au passage : le titre
   h5 hérite d'une couleur de titre quasi noire définie par le gabarit
   (élément h5, cf. css/style.css) qui l'emporte sur le blanc du
   conteneur, illisible sur le fond navy semi-transparent au survol. */
.project-overlay h5 {
    color: #fff;
}

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

/* Couleur principale */
.bg-xl-primary {
    background-color: var(--bis-navy);
}

/* Bandeau "hero" générique des pages de section (à propos, nos
   expertises, domaines d'intervention, pourquoi BIS, partenaires,
   contact, détail de publication) : un seul style partagé plutôt qu'une
   règle dupliquée par page. */
.hero-page {
    background: linear-gradient(90deg, var(--bis-navy), var(--bis-navy-light));
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Carte "voir tout" utilisée sur les pages de listing (expertises,
   domaines d'intervention, pourquoi BIS, partenaires). */
.section-page-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(8, 20, 70, 0.06);
    transition: all 0.3s ease;
}

.section-page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(8, 20, 70, 0.1);
}

/* Cartes services */
.service-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease;
}

.service-card img {
    border-radius: 6px;
    margin-bottom: 15px;
}

.service-card h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--bis-navy);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    color: #1A1A1A;
    line-height: 1.6;
}

/* Hover discret */
.service-card:hover {
    box-shadow: 0 10px 25px rgba(8, 20, 70, 0.08);
    transform: translateY(-4px);
}

/* Lien "Lire la publication" (services) / "Lire les détails" (interventions) */
.service-card-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bis-gold-text);
    text-decoration: none;
}

.service-card:hover .service-card-link {
    color: var(--bis-navy);
    text-decoration: underline;
}

.project-card-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.project-card-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}
.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card img {
    width: 100%;
}

.team-info {
    padding: 15px;
}

.team-info small {
    font-size: 13px;
    color: #555;
}

.team-info h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--bis-navy);
    margin-top: 5px;
}

.team-card:hover {
    box-shadow: 0 10px 25px rgba(8, 20, 70, 0.08);
    transform: translateY(-4px);
}

/* Nom du partenaire (pages/partners.php et bloc partenaires de
   l'accueil) quand aucun site web n'est renseigné : sinon hérite du
   quasi-noir par défaut du gabarit au lieu du navy des autres titres
   de carte du site (services, équipe, publications liées...). */
.partner-card h6 {
    color: var(--bis-navy);
}


/* Boutons de partage réseaux sociaux (page de détail publication) */
.share-buttons-label {
    font-weight: 600;
    color: var(--bis-navy);
    font-size: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #F0F4F9;
    color: var(--bis-navy);
    font-size: 15px;
    border: none;
    transition: all .25s ease;
    text-decoration: none;
}

.share-btn:hover,
.share-btn:focus {
    color: #fff;
    transform: translateY(-2px);
}

.share-btn-facebook:hover { background-color: #1877F2; }
.share-btn-linkedin:hover { background-color: #0A66C2; }
.share-btn-twitter:hover { background-color: #000000; }
.share-btn-whatsapp:hover { background-color: #25D366; }
.share-btn-email:hover { background-color: var(--bis-gold); color: var(--bis-navy); }
.share-btn-copy:hover { background-color: var(--bis-navy); }

.share-btn-copy.share-btn-copied {
    background-color: #198754;
    color: #fff;
}
