/* ==========================================================================
   MYCOSCOPIA — Design « laboratoire d'analyses » (apparence uniquement)
   --------------------------------------------------------------------------
   Style clinique : blanc, bleu, gris-bleu clair, lignes nettes, coins peu
   arrondis, fond « papier millimétré » discret sur les sections de contenu.
   Cette feuille se charge sur toutes les pages via Content/seo.php.
   Elle ne modifie ni la structure HTML ni les textes.
   Les sélecteurs commencent par « html body » pour passer devant Bootstrap
   (chargé plusieurs fois, dont une version 4 dans le pied de page).
   Pour revenir à l'ancien design : retirer la ligne design.css de seo.php.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --lab-navy: #003366;          /* bleu institutionnel (déjà la couleur du thème) */
    --lab-navy-2: #0a2a4d;
    --lab-blue: #0067b1;          /* bleu « laboratoire » principal */
    --lab-blue-dark: #00508a;
    --lab-cyan: #00a6d6;          /* accent clair */
    --lab-green: #2e9e5b;         /* rappel « contrôle qualité » */
    --lab-bg: #ffffff;
    --lab-bg-alt: #f1f5f9;        /* gris-bleu clair des sections alternées */
    --lab-line: #d9e2ec;          /* filets et bordures */
    --lab-text: #1d2b3a;
    --lab-muted: #5a6b7d;
    --lab-radius: 6px;
    --lab-shadow: 0 1px 2px rgba(0, 51, 102, .06), 0 4px 14px rgba(0, 51, 102, .07);
    --lab-font: 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

/* --- Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }

html body {
    font-family: var(--lab-font);
    color: var(--lab-text);
    background-color: var(--lab-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html body h1, html body h2, html body h3, html body h4, html body h5,
html body .h1, html body .h2, html body .h3, html body .h4, html body .h5,
html body .display-1, html body .display-5, html body .display-6 {
    font-family: var(--lab-font);
    line-height: 1.25;
}

/* Titres de section : capitales espacées + petit trait bleu au-dessus */
html body .display-6 {
    font-weight: 600;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--lab-navy);
}

html body .display-6::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin: 0 0 1rem;
    background: linear-gradient(90deg, var(--lab-blue), var(--lab-cyan));
}
html body .text-center > .display-6::before,
html body .display-6.text-center::before,
html body .text-center .display-6::before { margin-left: auto; margin-right: auto; }

html body .display-5 {
    font-weight: 600;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    color: var(--lab-navy);
}

html body h4 {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lab-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

html body h5 { color: var(--lab-navy); font-weight: 600; letter-spacing: .02em; }

html body p { max-width: 78ch; margin-left: auto; margin-right: auto; }
html body .text-start p, html body p.text-start { margin-left: 0; }

html body strong { font-weight: 600; color: var(--lab-navy); }

html body a { color: var(--lab-blue); transition: color .15s ease; }
html body a:hover { color: var(--lab-blue-dark); }

html body hr { border: 0; border-top: 1px solid var(--lab-line); opacity: 1; }

html body ::selection { background: var(--lab-blue); color: #fff; }

/* --- Barre de navigation : blanche, filet bleu ---------------------------- */
html body #Navbar {
    background-color: #fff !important;
    border-bottom: 1px solid var(--lab-line);
    box-shadow: 0 2px 10px rgba(0, 51, 102, .06);
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
    z-index: 1030;
}
html body #Navbar::after {           /* bande de couleur sous le menu */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 3px;
    background: linear-gradient(90deg, var(--lab-navy), var(--lab-blue) 50%, var(--lab-cyan));
}

/* Logo blanc sur noir → inversé en noir sur blanc, puis fondu dans la barre */
html body #logo {
    filter: invert(1);
    mix-blend-mode: multiply;
    max-height: 60px;
    width: auto !important;
}

html body #Navbar .nav-link {
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .02em;
    color: var(--lab-navy) !important;
    white-space: nowrap;
    border-radius: var(--lab-radius);
    transition: color .15s ease, background-color .15s ease;
}
html body #Navbar .nav-link:hover,
html body #Navbar .nav-link:focus {
    color: var(--lab-blue) !important;
    background-color: var(--lab-bg-alt);
}

/* Le menu blanc a besoin d'un bouton « burger » foncé */
html body #Navbar .navbar-toggler { border-color: var(--lab-line); }
html body #Navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23003366' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Bandeau d'informations des pages intérieures (header.php) */
html body #Navbar1 {
    background-color: var(--lab-navy) !important;
    padding-top: .35rem !important;
    padding-bottom: .35rem !important;
}
html body #Navbar1 a { color: rgba(255, 255, 255, .8) !important; font-size: .82rem !important; text-decoration: none; letter-spacing: .02em; }
html body #Navbar1 a:hover { color: #fff !important; }

/* --- Bannières avec image de fond : voile bleu ---------------------------- */
html body header[style*="background-image"],
html body [style*="contact.jpg"] {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

html body header[style*="background-image"]::before,
html body [style*="contact.jpg"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, rgba(0, 51, 102, .92) 0%, rgba(0, 80, 138, .78) 45%, rgba(0, 166, 214, .45) 100%);
}

html body header[style*="background-image"] > .container { width: 100%; }

html body header #PageTitle,
html body [style*="contact.jpg"] #PageTitle {
    font-family: var(--lab-font) !important;
    font-weight: 600 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
}
html body header .display-1 { font-size: clamp(2.4rem, 7vw, 5.2rem); }
html body #PageTitle:hover { font-weight: 600 !important; }

html body header hr {
    width: 60px !important;
    height: 3px;
    border: 0;
    margin: 1.25rem auto;
    background: var(--lab-cyan);
    opacity: 1;
}

html body header p.h4 {
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    letter-spacing: .04em;
    text-transform: none;
    color: rgba(255, 255, 255, .92);
}

/* --- Sections « sombres » → sections claires gris-bleu, papier millimétré -- */
html body .bg-dark:not(#FooterContact) {
    background-color: var(--lab-bg-alt) !important;
    background-image:
        linear-gradient(rgba(0, 103, 177, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 103, 177, .045) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--lab-text) !important;
    border-top: 1px solid var(--lab-line);
    border-bottom: 1px solid var(--lab-line);
}
html body .bg-dark:not(#FooterContact).text-white,
html body .bg-dark:not(#FooterContact) .text-white { color: var(--lab-text) !important; }
html body .bg-dark:not(#FooterContact) h3 { color: var(--lab-navy); }
html body .bg-dark:not(#FooterContact) p { color: var(--lab-text); }

html body .container-fluid.bg-dark { padding-top: 3.5rem; padding-bottom: 3rem; }

/* Bloc « Les moisissures… » : encadré type note scientifique */
html body .bg-dark > .mx-auto {
    background: #fff;
    border: 1px solid var(--lab-line);
    border-left: 4px solid var(--lab-blue);
    border-radius: var(--lab-radius);
    padding: 2rem 2.25rem;
    box-shadow: var(--lab-shadow);
}
html body .bg-dark > .mx-auto h3 { font-weight: 600; letter-spacing: .04em; font-size: 1.15rem; margin-bottom: 1rem; }

html body .bg-white { background-color: #fff !important; }
html body .bg-light { background-color: var(--lab-bg-alt) !important; }

/* --- Images -------------------------------------------------------------- */
/* Les balises <img> déclarent leurs dimensions (évite que la page « saute » au
   chargement) : elles ne doivent jamais déborder ni être déformées. */
html body img { max-width: 100%; height: auto; }

/* Logo du pied de page (blanc sur noir) : fondu dans le fond bleu */
html body #FooterContact .SocialContact img { mix-blend-mode: lighten; max-width: 220px; }

html body .container-fluid img.img-fluid:not(#logo),
html body .container img.img-fluid:not(#logo) {
    border-radius: var(--lab-radius);
    border: 1px solid var(--lab-line);
    background: #fff;
    box-shadow: var(--lab-shadow);
    margin-bottom: 1rem;
}

/* Légendes en italique sous les photos : style « légende de figure » */
html body p[style*="italic"] {
    margin-top: .25rem;
    color: var(--lab-muted) !important;
    font-size: .8rem !important;
}

/* Logos partenaires : cartes blanches bordées */
html body .bg-light img.shadow-sm {
    padding: .5rem;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
html body .bg-light img.shadow-sm:hover { border-color: var(--lab-blue); box-shadow: var(--lab-shadow) !important; }

/* --- Boutons : rectangulaires, capitales, bleu --------------------------- */
html body .btn {
    font-family: var(--lab-font);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: .75rem 1.4rem;
    border-width: 1px;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
html body .btn:focus-visible { outline: 3px solid var(--lab-cyan); outline-offset: 2px; box-shadow: none; }

/* Icônes dans les boutons : neutraliser la règle .fa de Style.css (pastilles) */
html body .btn .fa,
html body .btn .fas {
    padding: 0;
    width: auto;
    margin: 0 .5rem 0 0;
    font-size: 1em;
    border-radius: 0;
    background: none;
    color: inherit;
}

html body .btn-outline-dark {
    color: var(--lab-blue);
    border-color: var(--lab-blue);
    background: #fff;
}
html body .btn-outline-dark:hover {
    color: #fff;
    background: var(--lab-blue);
    border-color: var(--lab-blue);
}

/* Boutons des sections claires (Mycofiches, Presse, Nos services) :
   lignes de document à télécharger */
html body .btn-outline-light {
    color: var(--lab-navy);
    background: #fff;
    border-color: var(--lab-line);
    border-left: 4px solid var(--lab-blue);
    box-shadow: var(--lab-shadow);
}
html body .btn-outline-light:hover {
    color: var(--lab-blue);
    background: #fff;
    border-color: var(--lab-blue);
    box-shadow: 0 6px 18px rgba(0, 103, 177, .15);
}
html body .btn-outline-light .fa-download { color: var(--lab-blue); }

html body .btn-info,
html body .btn-primary {
    color: #fff;
    background: var(--lab-blue);
    border-color: var(--lab-blue);
}
html body .btn-info:hover,
html body .btn-primary:hover {
    color: #fff;
    background: var(--lab-blue-dark);
    border-color: var(--lab-blue-dark);
}

/* Bouton « Nous contacter » sur la bannière bleue : blanc */
html body [style*="contact.jpg"] .btn-info {
    background: #fff;
    color: var(--lab-navy);
    border-color: #fff;
}
html body [style*="contact.jpg"] .btn-info:hover { background: var(--lab-bg-alt); color: var(--lab-blue); }

/* --- Bandeau « Ils nous ont fait confiance » ----------------------------- */
html body .bandeau-confiance {
    width: 100%;
    background: var(--lab-navy);
    padding: 1.75rem 1rem !important;
    margin-top: 3rem;
}
html body .bandeau-confiance h2 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}

/* --- Formulaires (contact) ----------------------------------------------- */
html body .form-control {
    border-radius: 4px;
    border: 1px solid #c3cfdc;
    padding: .7rem .9rem;
    background: #fff;
}
html body .form-control:focus {
    border-color: var(--lab-blue);
    box-shadow: 0 0 0 3px rgba(0, 103, 177, .15);
}
html body .form-label {
    font-weight: 600;
    color: var(--lab-navy);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* --- FAQ de l'accueil : tableau de questions ----------------------------- */
html body #FAQ { padding-top: 2.5rem; padding-bottom: 2rem; max-width: 960px; }
html body #FAQ > h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--lab-navy);
}
html body #FAQ > div {
    background: #fff;
    border: 1px solid var(--lab-line);
    border-radius: var(--lab-radius);
    padding: 1.25rem 1.5rem 1.25rem 3.25rem;
    margin-bottom: .75rem !important;
    position: relative;
}
html body #FAQ > div::before {          /* pastille « ? » */
    content: "?";
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    border-radius: 50%;
    background: var(--lab-blue);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
}
html body #FAQ > div h3 { color: var(--lab-navy); font-weight: 600; margin-bottom: .4rem; }
html body #FAQ > div p { margin: 0; color: var(--lab-muted); max-width: none; }

/* --- Pied de page : bleu institutionnel ---------------------------------- */
html body #FooterContact {
    background-color: var(--lab-navy) !important;
    background-image: none;
    border-top: 4px solid var(--lab-cyan);
    color: rgba(255, 255, 255, .78) !important;
}

html body #FooterContact > .m-5 { margin: 0 !important; padding: 3.5rem 1rem 2rem !important; }

html body #FooterContact .h1,
html body #FooterContact h2,
html body #FooterContact .LienUtile h2 {
    font-family: var(--lab-font);
    font-size: .8rem !important;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #8fd3f0;
    margin-bottom: 1rem;
}

html body #FooterContact p { color: rgba(255, 255, 255, .78); }
html body #FooterContact strong { color: #fff; }

html body #FooterContact .contactMode .ContactText {
    font-family: var(--lab-font);
    font-size: .95rem !important;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, .7);
    font-weight: 400;
    margin-bottom: .4rem;
}
html body #FooterContact .contactMode span { font-family: var(--lab-font); font-size: .95rem; text-decoration: none; }
html body #FooterContact .contactMode span:hover { font-size: .95rem; font-weight: 600; }

html body #FooterContact .FooterLink {
    font-family: var(--lab-font);
    font-size: .95rem;
    color: rgba(255, 255, 255, .8);
    margin: .35rem 0;
}
html body #FooterContact .FooterLink:hover { color: #fff; text-decoration: underline; }

html body #FooterContact .SocialNetWork .fa {
    width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    margin: .75rem .3rem;
    font-size: 1.05rem;
    font-family: 'Font Awesome 5 Brands', FontAwesome;   /* icônes de marque FA5 */
    font-weight: 400;
    border-radius: 4px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transition: background-color .15s ease;
}
html body #FooterContact .SocialNetWork .fa:hover { opacity: 1; background: var(--lab-blue); }

html body #FooterContact hr { border-top-color: rgba(255, 255, 255, .12); margin: 0; }
html body #FooterContact .bg-dark { background: transparent !important; border: 0; }
html body #FooterContact > div:last-child p { font-size: .8rem; color: rgba(255, 255, 255, .5); margin: 0; }
html body #FooterContact a.text-white { color: rgba(255, 255, 255, .8) !important; text-decoration: none; }
html body #FooterContact a.text-white:hover { color: #fff !important; }

/* --- Écrans moyens : menu plus compact ----------------------------------- */
@media (min-width: 768px) and (max-width: 1099.98px) {
    html body #Navbar .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; font-size: .86rem; }
}

/* --- Petits écrans ------------------------------------------------------- */
@media (max-width: 767.98px) {
    html body #logo { max-height: 46px; }
    html body .row.p-5 { padding: 1.5rem .5rem !important; }
    html body .container-fluid.p-5 { padding: 2rem 1rem !important; }
    html body .btn.w-50 { width: 100% !important; }
    html body img.w-50 { width: 100% !important; }
    html body .bg-dark > .mx-auto { max-width: 100% !important; padding: 1.5rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html body *, html body *::before, html body *::after { transition: none !important; }
}
