/* /css/etudiants.css – Styles spécifiques page Étudiants, compatibles avec le thème Kerkito */

/* Formulaire étudiants */
.students-form-grid {
    display: grid;
    gap: 2rem;
    align-items: flex-start;
}
@media (min-width: 960px) {
    .students-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.students-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.95;
}

.students-form input,
.students-form select,
.students-form textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(15,20,40,0.65);
    color: #fff;
    padding: 0.75rem 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    transition: all .2s;
}

.students-form input:focus,
.students-form select:focus,
.students-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}

.students-form textarea {
    min-height: 90px;
    resize: vertical;
}

/* Bloc résultat PONT */
#resultat {
    min-height: 260px;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(5,10,25,0.9);
    border: 1px solid rgba(59,130,246,0.35);
    backdrop-filter: blur(8px);
}
#resultat pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Actions (copier / Grok) */
#actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Blocs code (templates + exemple) */
.code-block {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
    font-size: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(5,10,30,0.9);
    overflow-x: auto;
    white-space: pre;
}

/* Cartes templates */
.templates-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 960px) {
    .templates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.template-card {
    cursor: pointer;
    transition: all .3s;
}
.template-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Légère adaptation glass-card sur cette page pour renforcer l'effet "étudiants" */
.glass-card {
    background: rgba(15,20,40,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
}

/* Citation pédagogique */
.students-quote {
    font-style: italic;
    padding-left: 1rem;
    border-left: 3px solid rgba(255,255,255,0.18);
    opacity: 0.95;
}


/* Mise en avant forte du bloc "Générateur PONT spécial étudiants" */
#generateur-etudiants {
    position: relative;
    scroll-margin-top: 90px; /* plus confortable quand on clique sur l’ancre */
}

/* Header de section plus massif et focalisant */
#generateur-etudiants .section-header {
    text-align: left;
    max-width: 780px;
    margin-inline: auto;
}

#generateur-etudiants .section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 2rem;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Petit badge visuel devant le titre */
#generateur-etudiants .section-title::before {
    content: "⚙️";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.18);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45);
    flex-shrink: 0;
}

/* Sous-titre un peu plus lisible */
#generateur-etudiants .section-subtitle {
    font-size: 0.98rem;
    opacity: 0.95;
}

/* Légère mise en avant du fond de la section */
#generateur-etudiants.section--alt {
    background: radial-gradient(circle at top, rgba(59,130,246,0.25), transparent 55%),
                rgba(5,10,25,0.95);
}

/* On donne un léger focus visuel sur la colonne générateur au scroll */
#generateur-etudiants .students-form-grid > div:first-child .glass-card {
    border: 1px solid rgba(59,130,246,0.55);
    box-shadow: 0 18px 45px rgba(15,23,42,0.8);
}
