* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

header {
    background: linear-gradient(90deg, #136ccb, #451c70);
    color: white;
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

nav h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 25px;
    transition: background 0.3s ease;
}

nav ul li a.active,
nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

main {
    flex: 1;
    padding: 40px 20px;
    width: 90%;
    margin: auto;
}

h1 {
    text-align: center;    
    color: #ffffff;
}

#barchart_material {
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
}

.accueil, .about {
    text-align: center;
    padding: 20px 20px;
}

.accueil h2, .about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #136ccb;
}

.accueil p, .about p {
    font-size: 1.2rem;
    color: #555;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #136ccb;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-3px);
}

footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(90deg, #136ccb, #451c70);
    color: white;
    margin-top: auto;
}

#barchart_material {
    width: 100%;
    max-width: 900px;
    height: 500px;
}

#grap2 {
  margin: 0 auto;    
  transform: scale(0.8); 
}

#cheminee1 {
  transform-box: fill-box;       
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 1s ease;
}

#cheminee1.show {
  transform: scaleY(1);
}

#cheminee2 {
  transform-box: fill-box;       
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 1s ease;
}

#cheminee2.show {
  transform: scaleY(1);
}

#cheminee3 {
  transform-box: fill-box;       
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 1s ease;
}

#cheminee3.show {
  transform: scaleY(1);
}

#cheminee4 {
  transform-box: fill-box;       
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 1s ease;
}

#cheminee4.show {
  transform: scaleY(1);
}
#cheminee5 {
  transform-box: fill-box;      
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 1s ease;
}

#cheminee5.show {
  transform: scaleY(1);
}

#cheminee6 {
  transform-box: fill-box;      
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 1s ease;
}

#cheminee6.show {
  transform: scaleY(1);
} 

#legende {
  opacity: 0;
  transition: opacity 1s ease; 
}

#legende.show {
  opacity: 1;
}
 
      
.text-container {
    flex: 0 0 45%; 
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

.graph-container {
    margin-bottom: 80px; 
}

.prompt-container {
    padding: 15px 20px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.prompt-container h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #333;
}

.prompt-container p {
    margin: 0;
    line-height: 1.6;
}

.result-container {
    padding: 15px 20px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.result-container h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #333;
}

.result-container p {
    margin: 0;
    line-height: 1.6;
}

.graph-content {
    display: flex;
    flex-wrap: nowrap; 
    align-items: flex-start;
    gap: 20px;
    justify-content: flex-start;
}

.graph-content img {
    flex: 0 0 50%;
    max-width: 600px; 
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.graph-content img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .graph-content {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }

    .graph-content img {
        flex: 1;
        max-width: 90%;
        margin: 0 auto;
    }

    .text-container {
        flex: 1;
        width: 90%;
        margin-top: 15px;
    }
}

.image-datacenter {
    text-align: center; 
    margin-top: 20px;  
    margin-bottom: 0px;
}


.image-datacenter img {
    max-width: 100%;    
    height: auto;
    border-radius: 10px; 
}
.text-container {
     display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}
.prompt-container, .result-container {
    flex: 1;              
}

.graph-paragraphe {
    max-width: 800px;     
    margin: 20px auto;       
    padding: 15px;           
    border: 2px solid #136ccb; 
    border-radius: 8px;  
    background-color: #f9f9f9;
    text-align: justify;   
}

table {
    width: 60%;
    border-collapse: collapse;
    margin: auto;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
th, td {
     padding: 12px 15px;
     text-align: center;
     border-bottom: 1px solid #ddd;
}
th {
    background: #136ccb;
    color: white;
}
tr:hover {
    background-color: #f1f1f1;
}
caption {
    caption-side: top;
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: bold;
        }


.video-container {
    width: 80%;           
    margin: 0 auto;        
}

.video-container video {
    width: 100%;           
    height: auto;          
    display: block;       
}