/* EdukaTchat - Propriété Intellectuelle Exclusive */

/* --- FONDATIONS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
    overflow-x: hidden;
    background-color: #020617; 
}

body {
    background: linear-gradient(135deg, #020617 0%, #0F172A 50%, #172554 100%);
    color: #F8FAFC;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

/* --- L'EN-TÊTE TRANSLUCIDE --- */
header {
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-signature {
    height: 45px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    background-color: #FFFFFF;
    padding: 2px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-text h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-pilote {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
    color: #60A5FA;
}

.brand-text p {
    color: #94A3B8;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

/* --- L'ACCUEIL --- */
#home-view {
    flex: 1;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.container-sas {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero {
    text-align: center;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.hero p {
    font-size: 1.05rem;
    color: #94A3B8;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero strong {
    color: #F8FAFC;
}

.glass-card {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.doors {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 800px; 
    margin: 0 auto;
}

/* --- L'ARCHITECTURE DES PÔLES --- */
.pole-section {
    margin-bottom: 4rem;
    width: 100%;
}

.pole-title {
    text-align: center;
    color: #94A3B8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
}

.pole-title::before, .pole-title::after {
    content: "";
    height: 1px;
    background-color: rgba(71, 85, 105, 0.4);
    flex-grow: 0.1;
    max-width: 80px;
}

body.light-theme .pole-title {
    color: #64748B;
}

/* Grille du Pôle Fondamental (2 colonnes centrales) */
.grid-fondamental {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 850px; 
    margin: 0 auto;
}

/* Grilles Spécialisée et Accompagnement (3 colonnes) */
.grid-trois-piliers {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Harmonisation visuelle des nouvelles cartes */
.door-card.philo .icon-wrapper { background-color: rgba(79, 70, 229, 0.1); color: #818CF8; }
.door-card.philo:hover { border-color: #4F46E5; box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 70, 229, 0.4); }

.door-card.sciences .icon-wrapper { background-color: rgba(5, 150, 105, 0.1); color: #34D399; }
.door-card.sciences:hover { border-color: #059669; box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(5, 150, 105, 0.4); }

.door-card.boussole .icon-wrapper { background-color: rgba(245, 158, 11, 0.1); color: #FBBF24; }
.door-card.boussole:hover { border-color: #F59E0B; box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.4); }

@media (max-width: 900px) {
    .grid-trois-piliers {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .grid-fondamental, .grid-trois-piliers {
        grid-template-columns: 1fr;
    }
}

.door-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    height: 100%; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.door-card p {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1; /* Le texte occupe tout l'espace libre, poussant le bouton */
}

.door-card:hover {
    transform: translateY(-5px);
    background-color: rgba(30, 41, 59, 0.7);
}

.sas:hover { border-color: #10B981; box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.3); }
.eleve:hover { border-color: #3B82F6; box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.4); }
.enseignant:hover { border-color: #A855F7; box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.4); }
.parents:hover { border-color: #94A3B8; box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(148, 163, 184, 0.4); }

/* L'aura de la Boussole Universitaire (Teal) */
.door-card.boussole-univ:hover { border-color: #14B8A6; box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(20, 184, 166, 0.4); }
.boussole-univ .icon-wrapper { background-color: rgba(20, 184, 166, 0.1); color: #14B8A6; }

.icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.8rem;
}

.sas .icon-wrapper { background-color: rgba(16, 185, 129, 0.1); color: #34D399; }
.eleve .icon-wrapper { background-color: rgba(59, 130, 246, 0.1); color: #60A5FA; }
.enseignant .icon-wrapper { background-color: rgba(168, 85, 247, 0.1); color: #C084FC; }
.parents .icon-wrapper { background-color: rgba(148, 163, 184, 0.1); color: #94A3B8; }

.door-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #F8FAFC;
    margin-bottom: 0.75rem;
}

.card-action-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: auto; 
}

.action-footer {
    min-height: 24px;
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-entrer {
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sas .btn-entrer { background-color: #10B981; }
.sas .btn-entrer:hover { background-color: #059669; }

.eleve .btn-entrer { background-color: #3B82F6; }
.eleve .btn-entrer:hover { background-color: #2563EB; }

.enseignant .btn-entrer { background-color: #A855F7; }
.enseignant .btn-entrer:hover { background-color: #9333EA; }

.parents .btn-entrer { background-color: #475569; }
.parents .btn-entrer:hover { background-color: #334155; }

.info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.info-box h4 {
    font-size: 1.2rem;
    color: #F8FAFC;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.5);
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box p {
    color: #CBD5E1;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.info-box ul { list-style-type: none; }

.info-box li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-box li strong { color: #E2E8F0; }

.info-box li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #3B82F6;
    font-size: 0.9rem;
}

.news-box {
    border-left: 4px solid #3B82F6;
}

.news-box li::before {
    content: "•";
    color: #60A5FA;
    font-size: 1.2rem;
    top: -2px;
}

/* --- L'ESPACE DE TRAVAIL --- */
#app-view {
    display: none;
    flex-direction: column;
    background-color: #020617;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 100;
}

.toolbar {
    background-color: #0F172A;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #1E293B;
    flex-shrink: 0;
}

.btn-retour {
    background: none;
    border: 1px solid #334155;
    color: #94A3B8;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.btn-retour:hover { 
    background-color: #1E293B;
    color: #F8FAFC; 
}

.btn-fullscreen {
    background-color: rgba(37, 99, 235, 0.1);
    color: #60A5FA;
    border: 1px solid #2563EB;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-fullscreen:hover {
    background-color: #2563EB;
    color: #FFFFFF;
}

.teacher-navigation {
    display: none;
    gap: 0.5rem;
    margin-left: auto;
}

.tab-btn {
    background-color: transparent;
    color: #64748B;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #CBD5E1;
    background-color: rgba(30, 41, 59, 0.5);
}

.tab-btn.active {
    background-color: rgba(168, 85, 247, 0.15);
    color: #C084FC;
}

.iframe-container {
    flex: 1;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0; 
}

.custom-chat-container {
    display: none; 
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0; 
    background-color: #020617;
}

.custom-chat-container.active {
    display: flex; 
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

iframe.active {
    display: block;
}

@media (max-width: 900px) {
    .info-section { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .toolbar { flex-direction: column; gap: 1rem; align-items: stretch; }
    .teacher-navigation { margin-left: 0; justify-content: center; flex-wrap: wrap; }
    .btn-fullscreen { margin-left: 0; justify-content: center; }
}

/* --- FILIGRANE EDUKATCHAT --- */
.watermark-background {
    background-image: url('logo-fond.png');
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-image: url('logo-edukatchat.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; 
    opacity: 0.15;
    pointer-events: none; 
    z-index: 0; 
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 90%);
    mask-image: radial-gradient(circle, black 40%, transparent 90%);
}

.chat-history {
    flex: 1;
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 0; 
}

.message {
    max-width: 90%; 
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 1rem;
}

.user-message {
    align-self: flex-end;
    background-color: #3B82F6;
    color: white;
    border-bottom-right-radius: 0;
}

.bot-message {
    align-self: flex-start;
    background-color: #1E293B;
    border: 1px solid #334155;
    color: #E2E8F0;
    border-bottom-left-radius: 0;
    white-space: pre-wrap; 
    word-wrap: break-word; 
}

.system-message {
    align-self: center;
    background-color: transparent;
    color: #94A3B8;
    font-style: italic;
    text-align: center;
    font-size: 0.85rem;
}

.chat-input-area {
    width: 100%;
    background-color: #0F172A;
    border-top: 1px solid #1E293B;
    padding: 1.5rem 2rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    display: flex;
    justify-content: center; 
    flex-shrink: 0;
}

.chat-input-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px; 
    gap: 1rem;
    align-items: center;
}

.chat-input-wrapper input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background-color: #020617;
    color: #F8FAFC;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input-wrapper input:focus {
    border-color: #3B82F6;
}

.chat-input-wrapper .btn-entrer {
    width: auto; 
    white-space: nowrap;
    background-color: #3B82F6; 
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-input-wrapper .btn-entrer:hover {
    background-color: #2563EB;
}

.btn-attachment {
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-attachment:hover {
    color: #60A5FA;
}

.btn-attachment svg {
    width: 26px;
    height: 26px;
}

/* --- HARMONIE VISUELLE : THÈME CLAIR --- */
body.light-theme {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #BAE6FD 100%);
    color: #0F172A;
}
body.light-theme header {
    background-color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
}
body.light-theme .brand-text h1, body.light-theme .hero h2, 
body.light-theme .door-card h3, body.light-theme .info-box h4 { color: #0F172A; }
body.light-theme .brand-text p, body.light-theme .door-card p { color: #475569; }
body.light-theme .hero p, body.light-theme .hero strong, 
body.light-theme .info-box p, body.light-theme .info-box li { color: #334155; }
body.light-theme .info-box li strong { color: #0F172A; }
body.light-theme .glass-card {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(203, 213, 225, 0.8);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
body.light-theme .info-box h4 { border-bottom-color: rgba(148, 163, 184, 0.4); }
body.light-theme #app-view, body.light-theme .custom-chat-container { background-color: #F8FAFC; }
body.light-theme .toolbar {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
}
body.light-theme .btn-retour, body.light-theme .btn-theme-toggle {
    border-color: #CBD5E1;
    color: #475569;
}
body.light-theme .btn-retour:hover, body.light-theme .btn-theme-toggle:hover {
    background-color: #F1F5F9;
    color: #0F172A;
}
body.light-theme .tab-btn { color: #64748B; }
body.light-theme .tab-btn:hover { color: #0F172A; background-color: #F1F5F9; }
body.light-theme .chat-input-area {
    background-color: #FFFFFF;
    border-top: 1px solid #E2E8F0;
}
body.light-theme .chat-input-wrapper input {
    background-color: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
}
body.light-theme .bot-message {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #334155;
}
body.light-theme .system-message, body.light-theme .btn-attachment { color: #64748B; }

/* --- MODALE PREMIUM --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh;
    background-color: rgba(2, 6, 23, 0.8); backdrop-filter: blur(8px);
    display: none; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; display: flex; }
.modal-content {
    position: relative; max-width: 400px; width: 90%; text-align: center;
    transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 1rem; right: 1rem; background: none; border: none;
    color: #94A3B8; font-size: 1.5rem; cursor: pointer; transition: color 0.2s ease;
}
.modal-close:hover { color: #F8FAFC; }
.modal-content h3 { color: #F8FAFC; font-size: 1.4rem; margin-bottom: 1rem; }
body.light-theme .modal-content h3 { color: #0F172A; }
.modal-content p { color: #94A3B8; font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; }
.input-matricule {
    width: 100%; padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid #3B82F6;
    background-color: rgba(2, 6, 23, 0.6); color: #F8FAFC; font-size: 1rem; text-align: center;
    letter-spacing: 2px; margin-bottom: 1rem; outline: none; transition: box-shadow 0.2s ease;
}
body.light-theme .input-matricule { background-color: #FFFFFF; color: #0F172A; border-color: #CBD5E1; }
.input-matricule:focus { box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.feedback-text { margin-top: 1rem; font-size: 0.85rem; min-height: 20px; font-weight: 500; }
body.light-theme .modal-content p { color: #475569; }
body.light-theme .modal-close { color: #64748B; }
body.light-theme .modal-close:hover { color: #0F172A; }

/* --- BOUTONS D'ACTION (IMPRIMER & PDF) --- */
.message-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-action-doc {
    background-color: transparent;
    border: 1px solid #3B82F6;
    color: #60A5FA;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-action-doc:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: #F8FAFC;
}

body.light-theme .btn-action-doc {
    border-color: #3B82F6;
    color: #2563EB;
}
body.light-theme .btn-action-doc:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: #1D4ED8;
}

/* --- LE FILTRE DE PURIFICATION POUR L'IMPRIMANTE --- */
#print-area { display: none; }
@media print {
    body > *:not(#print-area) {
        display: none !important;
    }
    html, body {
        background: #FFFFFF !important;
        height: auto !important;
        width: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #print-area {
        display: block !important;
        width: 100% !important;
    }
}

/* ❖ L'APPARITION FLUIDE DES MESSAGES ❖ */
.apparition-fluide {
    animation: fonduDeroule 0.8s ease-out forwards;
}

@keyframes fonduDeroule {
    0% { 
        opacity: 0; 
        transform: translateY(15px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Le nouveau bouton minimaliste d'envoi */
.btn-envoyer-icon {
    background-color: #3B82F6;
    color: white;
    border: none;
    border-radius: 8px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.1s ease;
}

.btn-envoyer-icon:active {
    transform: scale(0.95);
}

.btn-envoyer-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- L'ARÈNE (LE VOILE D'IMMERSION) --- */
.eduka-arene-cache {
    display: none;
}

.eduka-arene-active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.90);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* --- LE BOUTON DE SORTIE --- */
.btn-fermer-arene {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    color: white;
    font-size: 2.5em;
    border: none;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.btn-fermer-arene:hover {
    transform: scale(1.2);
}

/* --- LA FENÊTRE DE L'EXAMINATEUR --- */
.eduka-iframe {
    display: block !important;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5); 
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-color: #ffffff;
}

/* --- LE SOUFFLE D'ATTENTE (ANIMATION) --- */
.eduka-loader {
    position: absolute;
    display: flex;
    gap: 12px;
    z-index: 10000;
}

.eduka-loader .point {
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: eduka-respiration 1.4s infinite ease-in-out both;
}

.eduka-loader .point:nth-child(1) { animation-delay: -0.32s; }
.eduka-loader .point:nth-child(2) { animation-delay: -0.16s; }

@keyframes eduka-respiration {
    0%, 80%, 100% { transform: scale(0); opacity: 0.2; }
    40% { transform: scale(1); opacity: 1; }
}
/* --- LE MYSTÈRE DU SCEAU (PROTECTION VISUELLE ET IMPRESSION) --- */

/* 1. Sur l'écran : Le sceau est totalement invisible */
@media screen {
    img[alt*="Sceau"], .sceau-image {
        display: none !important;
    }
}

/* 2. Sur le papier (Impression) : Le sceau apparaît, intact et proportionné */
@media print {
    img[alt*="Sceau"], .sceau-image {
        display: block !important;
        max-width: 200px !important;
        height: auto !important;
        margin-top: 30px;
        page-break-inside: avoid;
    }
}
