/* ==========================================
   PAGE ÉDUCATION — MODULE MOSAÏQUE
   ========================================== */

/* Structure générale */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.edu-hero {
  text-align: center;
  margin-bottom: 35px;
}

.edu-hero h1 {
  font-size: 2.2rem;
  color: #1e7e34;
  margin-bottom: 10px;
  font-weight: 700;
}

.edu-hero p {
  color: #4a5568;
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Bannière Enseignants / Contributeurs */
.teacher-banner {
  background: #f0fff4;
  border-left: 5px solid #1e7e34;
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.teacher-content h2 {
  margin: 0 0 8px 0;
  color: #1e7e34;
  font-size: 1.3rem;
  font-weight: 700;
}

.teacher-content p {
  color: #2d3748;
  margin: 0 0 18px 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.btn-teacher {
  display: inline-block;
  background-color: #1e7e34;
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-teacher:hover {
  background-color: #145a23;
  transform: translateY(-1px);
}

/* Sections & Conteneurs de niveaux */
.section-level {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.section-level h2 {
  font-size: 1.35rem;
  color: #1a202c;
  border-bottom: 2px solid #1e7e34;
  padding-bottom: 12px;
  margin: 0 0 25px 0;
  font-weight: 700;
}

/* Grille Mosaïque */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

/* Cartes de classes */
.card-class {
  background-color: #ffffff;
  border: 1px solid #cbd5e0;
  border-radius: 10px;
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.card-class:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(30, 126, 52, 0.12);
  border-color: #1e7e34;
}

/* Carte mise en avant (CM2 / CEP) */
.card-class.featured {
  background-color: #f4faf5;
  border: 2px solid #1e7e34;
}

.badge-status {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #ff6600;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-class h3 {
  font-size: 1.5rem;
  color: #1e7e34;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.card-class p {
  color: #4a5568;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.card-btn {
  color: #1e7e34;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.card-class:hover .card-btn {
  color: #145a23;
  text-decoration: underline;
}

/* Cartes désactivées (Secondaire / En préparation) */
.card-class.disabled {
  background-color: #f7fafc;
  border-color: #e2e8f0;
  opacity: 0.75;
  cursor: not-allowed;
  box-shadow: none;
}

.card-class.disabled:hover {
  transform: none;
  border-color: #e2e8f0;
  box-shadow: none;
}

.card-class.disabled h3 {
  color: #a0aec0;
}

.card-btn-disabled {
  color: #a0aec0;
  font-style: italic;
  font-size: 0.85rem;
}

/* Adaptations Écrans Mobiles (< 768px) */
@media screen and (max-width: 768px) {
  .section-level {
    padding: 20px 15px;
  }
  
  .teacher-banner {
    padding: 20px;
  }
  
  .mosaic-grid {
    grid-template-columns: 1fr;
  }
}





/* FOOTER */


footer a{color:#ccc;}
.whatsapp-float{position:fixed; 
bottom:20px; 
right:20px; 
background:#25d366; 
color:#fff; 
border-radius:50%; 
padding:15px 18px; 
font-size:24px; 
text-align:center; z-index:999;}


{
  background-color: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 20px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #00c3ff;
  transform: scale(1.2);
}






/* ==========================================
   STYLE DU FORMULAIRE DE SOUMISSION
   ========================================== */

.form-wrapper {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 35px;
  max-width: 820px;
  margin: 20px auto 40px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h1 {
  font-size: 1.8rem;
  color: #1e7e34;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-header p {
  color: #4a5568;
  font-size: 0.98rem;
  line-height: 1.5;
}

.contrib-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #2d3748;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #2d3748;
  background-color: #f7fafc;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1e7e34;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 126, 52, 0.12);
}

.form-group input[type="file"] {
  padding: 8px;
  background-color: #ffffff;
  cursor: pointer;
}

.btn-submit {
  background-color: #1e7e34;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #145a23;
  transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
  .form-wrapper {
    padding: 20px 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}







/* ==========================================
   PAGE SPÉCIFIQUE CLASSE (CM2, CM1, ETC.)
   ========================================== */

.class-header-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-back {
  color: #1e7e34;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.btn-back:hover {
  color: #145a23;
  text-decoration: underline;
}

.badge-exam {
  background-color: #ff6600;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Bloc de ressources */
.resources-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 35px;
}

.resource-block {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.block-header {
  background-color: #1e7e34;
  color: #ffffff;
  padding: 14px 20px;
}

.block-header h2 {
  font-size: 1.15rem;
  margin: 0;
  color: #ffffff;
  border: none;
  padding: 0;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #edf2f7;
}

.file-item:last-child {
  border-bottom: none;
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-title {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.98rem;
}

.file-meta {
  font-size: 0.78rem;
  color: #718096;
}

/* Boutons de téléchargement */
.btn-download {
  background-color: #0275d8;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.btn-download:hover {
  background-color: #025aa5;
}

.btn-corrige {
  background-color: #1e7e34;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.btn-corrige:hover {
  background-color: #145a23;
}

@media screen and (max-width: 600px) {
  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}







/* Mosaïque pour les ressources du secondaire */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.resource-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.card-title {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 12px;
  font-weight: 600;
}

.card-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  font-size: 0.88rem;
  color: #64748b;
}

.card-meta-list li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta-list strong {
  color: #334155;
}

.btn-card-action {
  display: inline-block;
  text-align: center;
  background-color: #159957;
  color: #ffffff;
  padding: 9px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-card-action:hover {
  background-color: #117a45;
}

.btn-card-corrige {
  background-color: #2563eb;
}

.btn-card-corrige:hover {
  background-color: #1d4ed8;
}





















/* Bannière d'avertissement - Maintenance / En préparation */
.notice-maintenance {
  background-color: #fef2f2;
  border: 2px dashed #dc2626;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 20px auto 30px auto;
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #991b1b;
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.08);
}

.notice-maintenance i {
  font-size: 1.8rem;
  color: #dc2626;
  flex-shrink: 0;
}

.notice-maintenance-content h3 {
  margin: 0 0 5px 0;
  color: #991b1b;
  font-size: 1.1rem;
  font-weight: 700;
}

.notice-maintenance-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #7f1d1d;
}