/*!
 * Start Bootstrap - Small Business HTML Template (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

body {
}

.navbar-fixed-top .nav {
    padding: 15px 0;
}

.navbar-fixed-top .navbar-brand {
    padding: 0 15px;
}

footer {
    padding: 30px 0;
}

/* --- Remplacez votre section à partir d'ici --- */

@media(min-width:768px) {
    .navbar-fixed-top .navbar-brand {
        padding: 15px 0;
    }
}

/* Couleurs et Fond de la Nav */
.gradient_corporate_color {
    background-color: #0000ff;
    border: none; /* Supprime la bordure par défaut de Bootstrap */
}

/* Style des liens de navigation */
.nav li a {
    color: #ffffff !important; /* Force le texte en blanc */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    padding: 10px 15px;
}

/* États Hover et Focus */
.dropdown-menu > li > a:hover,
.navbar-nav > .active > a:hover,
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: #ffffff;
    background-color: #6666ff !important;
}

/* État Actif et Menus ouverts */
.navbar-nav > .dropdown.open > a, 
.navbar-nav > .dropdown.open > a:focus,
.navbar-nav > .active > a, 
.navbar-nav > .active > a:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Correction de la Barre de Navigation */
.navbar {
    min-height: 40px; /* Un peu plus que 35 pour laisser respirer le texte */
    z-index: 300;
    border-radius: 0;
}

/* Suppression de la hauteur fixe qui bloquait le menu mobile */
.navbar-collapse {
    border-top: none;
    box-shadow: none;
}

/* STYLE DU BOUTON HAMBURGER (Mobile) */
.navbar-toggle {
    border-color: #ffffff; /* Couleur de la bordure du bouton */
    margin-top: 4px;
    margin-bottom: 4px;
    border: none !important; /* Supprime la bordure */
    background-color: transparent !important; /* Supprime le fond */
}

.navbar-toggle .icon-bar {
    background-color: #ffffff; /* Rend les 3 barres blanches et visibles */
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: #6666ff !important;
}

/* Dropdown et menus ouverts */
.nav .open > a:hover, 
.nav .open > a, 
.dropdown-menu {
    background-color: #B7052C;
}

/* --- Fin de la section de remplacement --- */


.toplogo {
    margin-bottom: 5px;
    padding-right: 15px;
}

.toptitle {
    position:relative;
    color: #3F3F3F;
    text-transform: uppercase;
    padding-top:50px;
    vertical-align: bottom;
    font-size:20px;
}

.toptitle a {
    color: #3F3F3F;
    text-decoration: none;
    pointer-events: auto;
}

.toptitle .titleContent {
    position:relative;
    padding-left: 20px;
    width:100%;
    z-index:200;
    pointer-events: none;
}

.toptitle .titleContent .title {
  padding-top:30px;
  pointer-events: none;
}
.toptitle .titleContent .thlogo {
  text-align: right;
  z-index: 100;
  pointer-events: all;
}




div.pageData {
    background-color: #EEE;
    padding:10px;
}

.smallData {
    background-color: #EEE;
    padding:10px;
    width:420px;
    margin-bottom: 20px;
    margin-right:40px;
}

.summary {
    background-color: #EEE;
    padding:10px;
    margin-bottom: 40px;
}

.smallLogo {
    max-width:90px;
    max-height:100px;
    margin-bottom:0px;
    box-shadow: 1px 1px 2px 1px rgba(143,143,143,1);
}

.smallData {
  display: flex;
}

.smallData table.datatable {
    width:300px;
    margin-top:10px;
}

table.datatable th, table.datatable td  {
    vertical-align:top;
    padding: 5px;
}

.smallData table.datatable th, .smallData table.datatable td  {
    vertical-align:top;
    padding: 0px;
}

table.datatable th {
    width: 30%;
}
.smallData table.datatable th {
    width: 20%;
    padding-right:20px;
}

.smallData img {
  margin-right: 20px;
}

ul {
    list-style-type: square;
    padding-left:15px;
}

img.pageLogo {
    max-width:200px;
    max-height:250px;
    margin-bottom:20px;
    box-shadow: 1px 1px 2px 1px rgba(143,143,143,1);
}

img {
    max-width:100%;
}

.sectionitem {
    margin-bottom:40px;
}

.emad {
    color: #337ab7;
    text-decoration: none;
}

.emad:hover {
    color: #23527c;
    text-decoration: underline;
    cursor: pointer;
}

.lectureTable {
    width:80%;
    border-style:solid;
    border-width:1px;
}
.lectureTable td, .lectureTable th {padding:5px;}
.lectureTable tr:nth-child(even) {background: #CCC}
.lectureTable tr:nth-child(odd) {background: #FFF}

.sidebar div {
    margin-bottom: 30px;
}

/* D3 Vis */
/*
.titleBackground {
    position:absolute;
    top:0px;
    left:500px;
    padding-top:0px;
    padding-left:0px;
    z-index:200;
    opacity: 0.5;
} */

/* Ensure the parent container can hold an absolute child */
.toptitle {
    position: relative;
    overflow: hidden; /* Clips the SVG so it doesn't cause a wiggle */
}

.titleBackground {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0; /* Forces the container to reach the bottom (the navbar) */
    left: 0;   /* Allows it to span the whole header area if needed */
    z-index: 80; /* Lower than your text (100) */
    opacity: 0.3;
    /*pointer-events: none; */ /* Very important: clicks go through to links */
}

.titleBackground svg {
    width: 100%;
    height: 100%; /* Forces SVG to fill the container height */
    display: block;
    /* Optional: 'preserveAspectRatio' in HTML (see below) 
       handles how it scales */
}


.link {
  fill: none;
  stroke: #337ab7;
  stroke-width: 1.5px;
}

.link.l1 {
  stroke: #337ab7;
}

.link.l2 {
  stroke-dasharray: 0,2 1;
}

circle {
  fill: #ccc;
  stroke: #333;
  stroke-width: 1.5px;
}

text {
  font: 10px sans-serif;
  pointer-events: none;
  text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
}

#map { height: 300px; }

/* News */
/* The Grid Container */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 15px 0 15px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    height: 100%;
}

.news-image-container {
    position: relative; /* So the background can sit behind the image */
    width: 100%;
    height: 250px; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ccc; /* Fallback color */
}

/* The "Hidden" background layer */
.blurred-bg {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px; /* Slight overflow to hide white edges of the blur */
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.8); /* Adjust blur/darkness here */
    z-index: 1;
    transform: scale(1.1); /* Prevents blur "vignette" at edges */
}

/* The link and image layer */
.img-link {
    position: relative;
    z-index: 2; /* Sits above the blur */
    height: 100%;
    display: flex;
    align-items: center;
}

.full-view-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Full portrait visibility */
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Adds depth to the foreground image */
}



/* 3. Handling cards without images */
.news-image-spacer {
    height: 10px;
    background: #0000ff; /* A small accent bar instead of a big empty box */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title { margin: 0.5rem 0; font-size: 2rem; }
.news-summary { flex-grow: 1; color: #666; font-size:1.3rem }
.meta { font-size: 1.1rem; color: #999; }


/* Projects */
/* Project Specific Adjustments inside News Card */
.project-meta-list {
    font-size: 0.95rem;
    line-height: 1.4;
}

.meta-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.meta-row strong {
    color: #333;
    min-width: 80px;
}

.meta-row span {
    flex: 1;
    min-width: 200px; /* Forces wrap on very small screens */
}

/* Cleanup existing table styles if they interfere */
.sectionitem.news-card {
    margin-bottom: 0; /* Handled by news-grid gap */
}

.news-content hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 1rem 0;
}

/* Responsive Tweak: On mobile, ensure the card takes full width */
@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Project details */
/* Container Spacing */
.project-detail {
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Header & Abstract */
.project-full-title {
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.lead-abstract {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    border-left: 4px solid #0000ff;
    padding-left: 20px;
    margin-bottom: 30px;
}

/* Sidebar Styling */
.detail-sidebar {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.detail-image-container {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f8f8;
}

.detail-logo {
    position: relative;
    z-index: 2;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.detail-info {
    padding: 20px;
}

.info-heading {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-item {
    margin-bottom: 15px;
}

.info-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.info-item a {
    font-size: 0.95rem;
    word-wrap: break-word;
    color: #23527c
}

.info-item span {
    font-size: 0.95rem;
    color: #666;
    word-wrap: break-word;
}

.info-links a {
    display: block;
    margin-bottom: 5px;
    color: #23527c
;
    text-decoration: none;
}

.info-links a:hover {
    text-decoration: underline;
}

/* Responsive adjustment */
@media (max-width: 991px) {
    .col-md-push-8, .col-md-pull-4 {
        left: 0;
        right: 0;
    }
    .detail-sidebar {
        margin-bottom: 40px;
    }
}

/* People */

/* Container for the team members */
.team-grid {
    display: grid;
    /* This creates columns at least 350px wide, or 1 column on mobile */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

/* Optional: Make alumni slightly smaller or more compact */
.team-grid.alumni {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    opacity: 0.9;
}

/* Ensure the shortcode output (smallData) fits the grid */
.smallData {
    width: 100% !important; /* Overrides the fixed 420px in your current CSS */
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    height: 100%;
}
/* Ensure the card is a flex container */
.smallData {
    display: flex;
    align-items: flex-start; /* Aligns photo and text to the top */
    padding: 15px;
    background-color: #EEE;
    border-radius: 4px;
    height: 100%; /* Makes all cards in a row equal height */
}

.smallLogo {
    flex-shrink: 0; /* Prevents the image from squishing */
    width: 90px;
    height: 110px;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Container for the text details */
.person-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    line-height: 1.4;
}

.person-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.person-meta {
    margin-bottom: 8px;
    color: #555;
}

.person-contact {
    font-size: 0.9em;
    color: #333;
}

.person-contact strong {
    display: inline-block;
    width: 50px; /* Aligns the "Email:" and "Phone:" labels */
    color: #666;
}

/* Compact news summaries */
/* Compact News Items (for embedding) */
.news-item-compact {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.news-item-compact:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.compact-image {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

/* Blurred background layer */
.compact-blurred-bg {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.8);
    z-index: 1;
    transform: scale(1.1);
}

.compact-image img {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.compact-content {
    flex: 1;
    min-width: 0; /* Prevents text overflow issues */
}

.compact-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
}

.compact-title {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.compact-title a {
    color: #337ab7;
    text-decoration: none;
}



.compact-summary {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Mobile: Stack vertically on small screens */
@media (max-width: 576px) {
    .news-item-compact {
        flex-direction: column;
    }
    
    .compact-image {
        width: 100%;
        height: 150px;
    }
}

/* Videos */
.plyr {
    margin: 10px 0px 30px 0px;
}