/* =========================================================
   base.css – Styles partagés Geovariances
   ========================================================= */

/* Typographie */
body {
    font-family: 'Inter', sans-serif;
}

a:not([class]),
a:not([class]):visited {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.font-display {
    font-family: 'Hanken Grotesk', sans-serif;
}


.logo-top,
.logo-footer {
    width: 80%;
    min-width: 160px;
    margin-right: 10px;
}
#primary-menu{
    text-wrap-mode: nowrap;
    margin-right: 20px;
}

.logo-top img,
.logo-footer img {
    max-height: 60px;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Secteurs – bordure supérieure colorée */
.sector-mine {
    border-top-color: #4b4038;
}

.sector-energie {
    border-top-color: #0ca5c7;
}

.sector-sous-sol {
    border-top-color: #f66d47;
}

.sector-environnement {
    border-top-color: #A2C42D;
}

.sector-bioressources {
    border-top-color: #117070;
}

/* Masquer le marqueur natif de <details> */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

/* =========================================================
   Composants spécifiques à certaines pages
   ========================================================= */

/* --- catalogue.html : modale d'inscription --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

/* --- about-us.html --- */
.hero-overlay {
    background: linear-gradient(90deg, rgba(0, 103, 126, 0.95) 0%, rgba(0, 103, 126, 0.4) 100%);
}

.technical-glass {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(109, 121, 126, 0.1);
}

/* --- isatis-neo.html / kartotrak.html --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(188, 200, 206, 0.2);
}

.technical-gradient {
    background: linear-gradient(135deg, #00677e 0%, #3156c3 100%);
}

/* Ajustements de taille sur les pages logiciels */
h3.font-headline-md.text-headline-md.text-surface-container-lowest.mb-sm {
    font-size: 21px;
}

p.text-surface-variant\/90.text-body-md.opacity-0.group-hover\:opacity-100.transition-opacity.transform.translate-y-4.group-hover\:translate-y-0.duration-300 {
    font-size: 14px;
}

.whatyougain li{
    list-style: disc inside;
}

/* =========================
   Menu déroulant desktop
   ========================= */

#primary-menu,
#primary-menu ul {
    list-style: none;
}

#primary-menu > li {
    position: relative;
}

/* #primary-menu li.menu-item-has-children > a::after {
    content: "⌄";
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    line-height: 1;
    transition: transform 0.2s ease;
}

#primary-menu li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
} */

#primary-menu .sub-menu {
    display: block;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 260px;
    padding: 10px;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(188, 200, 206, 0.45);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 999;
}

#primary-menu li:hover > .sub-menu,
#primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#primary-menu .sub-menu li {
    position: relative;
}

#primary-menu .sub-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 10px;
    color: #31515c;
    white-space: nowrap;
    transform: none !important;
}

#primary-menu .sub-menu a:hover {
    background: rgba(0, 103, 126, 0.08);
    color: #00677e;
}

/* Sous-sous-menu */
#primary-menu .sub-menu .sub-menu {
    top: -10px;
    left: calc(100% + 10px);
}

/* Petite zone invisible pour éviter que le menu se ferme entre deux niveaux */
#primary-menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

#primary-menu .sub-menu .sub-menu::before {
    top: 0;
    left: -12px;
    width: 12px;
    height: 100%;
    right: auto;
}

/* Évite que le dernier menu parte hors écran */
#primary-menu > li:last-child .sub-menu {
    left: auto;
    right: 0;
}

#primary-menu > li:last-child .sub-menu .sub-menu {
    left: auto;
    right: calc(100% + 10px);
}

.language-switcher select {
    border: 0 none;
    padding: 0 30px 0px 0;
}

.gv-language-select {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0.35rem 1.25rem 0.35rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f2933;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 8px) 50%, calc(100% - 4px) 50%;
    background-size: 4px 4px, 4px 4px;
    background-repeat: no-repeat;
}

.gv-language-select:focus {
    outline: 2px solid var(--wp--preset--color--primary, #006579);
    outline-offset: 3px;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    list-style: none;
}

.mobile-menu a {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: inherit;
    padding: 0.35rem 0;
}

.mobile-menu .sub-menu {
    margin: 0.5rem 0 0.75rem 1rem;
    padding-left: 1rem;
    border-left: 1px solid #e5e7eb;
}

.mobile-menu .sub-menu a {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* =========================
   Header hide / show on scroll
   ========================= */

.site-header-spacer {
    height: 80px;
}

#site-header {
    transform: translate3d(0, 0, 0);
}

#site-header.is-hidden {
    transform: translate3d(0, -100%, 0) !important;
}

body.admin-bar #site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #site-header {
        top: 46px;
    }
}

.contact-hero-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    /* pointer-events: none; */
}

.page-template-tpl-contact .gv-breadcrumbs{
        color: rgb(0 103 126 / var(--tw-text-opacity, 1)) !important;
}


.page-template-tpl-contact .\[\&_a\]\:hover\:text-white:hover a{
    color: rgb(0 103 126 / var(--tw-text-opacity, 1)) !important;
}

.section_grille_secteurs ul li{
        list-style-type: disc;
    list-style-position: inside;
}

.header-search {
    gap: 0.5rem;
}

.header-search__input {
    width: 0;
    opacity: 0;
    padding: 0;
    border: 0 solid transparent;
    pointer-events: none;
    transition: width 0.25s ease, opacity 0.2s ease, padding 0.25s ease, border-width 0.25s ease;
}

.header-search.is-open .header-search__input {
    width: 12rem;
    opacity: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-surface-container, #e5e7eb);
    pointer-events: auto;
}

@media (min-width: 1280px) {
    .header-search.is-open .header-search__input {
        width: 14rem;
    }
}

.infos_formation .duree, .infos_formation .prix{
    width: 50%;
}
.infos_formation .prix{
    text-align: right;
}


.section_contenu_classique h1{
    font-size: 36px;
    font-weight: 900;
}

.section_contenu_classique h2{
    font-size: 30px;
    font-weight: 700;
}
.section_contenu_classique h3{
    font-size: 26px;
    font-weight: 700;
}
.section_contenu_classique h4{
    font-size: 24px;
    font-weight: 700;
}
.section_contenu_classique h5{
    font-size: 20px;
    font-weight: 700;
}
.section_contenu_classique h6{
    font-size: 18px;
    font-weight: 700;
}

.section_contenu_classique ul{
    list-style: disc inside;
    margin-top: 10px;
    margin-bottom: 10px;
}

.section_contenu_classique a{
    color: #E75113;
    text-decoration: underline;
}

.section_contenu_classique p{
    margin-bottom: 10px;
}