# -*- coding: utf-8 -*-
"""
Created on Fri Jun 12 02:58:28 2026

@author: LabGEE
"""

body{
font-family:Arial;
background:#f5f5f5;
margin:0;
padding:0;
}

header{
background:#0077cc;
color:white;
text-align:center;
padding:30px;
}

nav{
background:#222;
padding:15px;
text-align:center;
}

nav a{
color:white;
margin:15px;
text-decoration:none;
}

section{
padding:30px;
}

.card{
background:white;
padding:20px;
margin:15px 0;
border-radius:10px;
box-shadow:0 0 10px rgba(0,0,0,0.1);
}

form{
width:500px;
margin:auto;
background:white;
padding:20px;
border-radius:10px;
}

input,
select,
button{
width:100%;
padding:10px;
margin-top:10px;
margin-bottom:15px;
}

button{
background:#0077cc;
color:white;
border:none;
cursor:pointer;
}


.intro{
    background:white;
    margin:30px;
    padding:30px;
    border-radius:10px;
    box-shadow:0 0 10px rgba(0,0,0,0.1);
}

.intro h2{
    color:#0056b3;
}

.intro p{
    line-height:1.8;
    text-align:justify;
}


#google_translate_element{
    text-align:right;
    padding:10px;
    background:#f4f4f4;
}

.user-menu {
    position: absolute;
    top: 20px;
    right: 30px;
}

.avatar-btn {

    width: 50px;
    height: 50px;

    border-radius: 50%;

    border: none;

    background: white;

    color: #0077cc;

    font-size: 22px;

    font-weight: bold;

    cursor: pointer;
}

.dropdown-content {

    display: none;

    position: absolute;

    right: 0;

    background: white;

    min-width: 220px;

    box-shadow: 0 0 10px rgba(0,0,0,0.2);

    padding: 10px;

    z-index: 999;
}

.user-menu:hover .dropdown-content {

    display: block;
}

.dropdown-content a {

    display: block;

    padding: 8px;

    text-decoration: none;

    color: black;
}

.dropdown-content a:hover {

    background: #f0f0f0;
}

.card img {
    border: 4px solid #0077cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn {
    background: #0077cc;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 6px;
}

.btn:hover {
    background: #005fa3;
}


.calculateur{

margin-top:20px;
padding:15px;

border:1px solid #ccc;
background:white;

width:900px;
margin-left:auto;
margin-right:auto;

}

.ligne{

margin:10px;

}

.ligne input{

width:150px;
padding:5px;

}

.ligne span{

margin-left:15px;
font-weight:bold;
color:darkblue;

}


/*Pour les cours de math_phy_chie*/

.matiere{
    background:white;
    padding:20px;
    margin:20px 0;
    border-radius:10px;
    cursor:pointer;
    transition:0.3s;
}

.matiere:hover{
    transform:scale(1.02);
    background:#f0f8ff;
}

/*Pour la sim de l'electrolyse de 3*/
#formule3D{
    font-size:32px;
    font-weight:bold;
    color:#cc0000;
    text-align:center;
    margin:20px 0;
    min-height:50px;
}


* Centrer la simulation*/
.centre-simulation{

    width:100%;

    display:flex;

    justify-content:center;

    margin:20px auto;

}

#canvas-holder-3d{

    border:2px solid #555;

    border-radius:12px;

    padding:10px;

    background:#f7f7f7;

    box-shadow:0 0 10px rgba(0,0,0,0.2);

}