@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0;
    color: #334155;
    line-height: 1.6;
}

h1 {
    text-align: center;
    color: #1e293b;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.025em;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Titres h2 modernes */
h2 {
    color: #334155;
    font-weight: 600;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    margin: 32px 0 20px 0;
    padding-bottom: 12px;
    position: relative;
    line-height: 1.3;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 100px;
}

/* Titres h2 dans les encadrés */
.encadre h2 {
    margin: 0 0 20px 0;
    text-align: center;
    color: #1e293b;
    font-size: 1.6rem;
}

.encadre h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.encadre h2:hover::after {
    width: 80px;
    left: 50%;
    transform: translateX(-50%);
}

/* Container principal moderne */
#block_large {
    max-width: 1200px;
    width: 100%;
    margin: 40px auto 0 auto;
    padding: 32px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.6s ease-out;
}

/* Conteneurs avec design moderne */
.conteneurPresentation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 28px;
    width: 100%;
    margin-bottom: 40px;
}

.encadre {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(226, 232, 240, 0.8);
    padding: 28px;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.encadre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.encadre:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(226, 232, 240, 0.9);
}

.encadre:hover::before {
    transform: scaleX(1);
}

/* Formulaires modernes */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

input[type="text"],
input[type="password"],
textarea {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
    max-width: 320px;
    background: #ffffff;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Boutons modernes */
input[type="submit"], button {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="submit"]:hover, button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

input[type="submit"]:active, button:active {
    transform: translateY(0);
}

/* Labels modernes */
label {
    font-weight: 600;
    color: #475569;
    font-size: 1rem;
    margin-bottom: 6px;
    display: block;
}

/* Listes modernes */
ul {
    padding-left: 0;
    list-style: none;
}

li {
    margin-bottom: 10px;
    font-size: 1.2rem;
    padding: 10px 14px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

li:hover {
    background: rgba(255, 255, 255, 0.95);
    border-left-color: #3b82f6;
    transform: translateX(4px);
}

/* Liens modernes */
a {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

a:hover {
    color: #8b5cf6;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Images d'entreprises */
#entreprises {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

#entreprises img {
    height: 50px;
    filter: grayscale(0.3) brightness(0.9);
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.8);
}

#entreprises img:hover {
    filter: grayscale(0) brightness(1.05);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Messages élèves/enseignants */
.comEleve, .comEnseignant {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 12px;
    margin: 16px 0;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.comEleve:hover, .comEnseignant:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Zone de questions */
#test {
    min-height: 160px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 20px;
}

/* Animations subtiles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive moderne */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    #block_large {
        margin: 20px;
        padding: 24px;
    }
    
    .conteneurPresentation {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .encadre {
        padding: 20px;
    }
    
    input[type="text"], 
    input[type="password"], 
    textarea {
        max-width: 100%;
    }
    
    #entreprises img {
        height: 40px;
    }
}

/* Espacement entre sections */
#pres3 {
    margin-top: 40px;
}

/* Typographie moderne */
p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 16px;
}

/* Checkbox moderne */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    border-radius: 3px;
}

/* Scrollbar moderne */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Toggle Switch moderne - style similaire à l'image mais en bleu */
#switchArdoise {
    appearance: none;
    -webkit-appearance: none;
    width: 60px;
    height: 30px;
    background: #e2e8f0;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    margin: 10px;
}

#switchArdoise:checked {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

#switchArdoise::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#switchArdoise:checked::before {
    transform: translateX(30px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#switchArdoise:hover {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#switchArdoise:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
} 

 
