/*mise en page de la page td.idex, tp.inex, et exam.ndex*/

.titre-td{
        margin-top: 280px;
        text-align: center;
        padding: 40px 20px 20px;
        font-family: 'Segoe UI', sans-serif;
    } 
    .titre-td h1 {
      font-size: 2rem;
      color: #4b6cfb;
    }

    .titre-td p {
      color: #666;
      font-size: 1rem;
      padding: 15px;
    }

    .td-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 30px;
      padding: 25px;
      max-width: 1200px;
      margin: auto;
    }

    .td-card {
      background: rgba(255, 255, 255, 0.3);
      border-radius: 15px;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.3s ease;
    }

    .td-card:hover {
      transform: translateY(-5px);
    }

    .image-container {
      position: relative;
      overflow: hidden;
    }

    .image-container img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      cursor: pointer;
    }

    .td-content {
      padding: 20px;
    }

    .td-content h3 {
      color: #333;
      margin-bottom: 10px;
      text-align: center;
    }

    .td-content p {
      color: #555;
      font-size: 0.9rem;
      margin-bottom: 15px;
      text-align: justify;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 10px 16px;
      border-radius: 25px;
      font-size: 0.8rem;
      font-weight: bold;
      text-decoration: none;
      cursor: pointer;
      border: none;
      transition: 0.3s;
    }

    .btn-download {
      color: #fff;
      background: linear-gradient(135deg, #4b6cfb, #6e8bff);
    }

    .btn-view {
      margin-left: 10px;
      color: #4b6cfb;
      background: #fff;
      border: 2px solid #4b6cfb;
      width: fit-content;
    }
.btn-view a {
  text-decoration: none;
  color: #4b6cfb;
}
  .btn-download:hover {
      box-shadow: 0 5px 15px rgba(75, 108, 251, 0.4);
    }

    .btn-view:hover {
      background: #4b6cfb;
      color: #fff;
    }
    .btn-view:hover a {
      color: #fff;
    }

    /* Zone TD complet (masquée au départ) */
    .td-full {
      display: none;
      border: 2px dashed #4b6cfb;
      border-radius: 12px;
      margin: 15px 20px;
      padding: 15px;
      background: rgba(255, 255, 255, 0.4);
      text-align: center;
    }

    .td-full img {
      max-width: 100%;
      border-radius: 10px;
      margin-top: 10px;
    }

    /*page examen index*/

    .exam-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      padding: 20px;
      max-width: 1100px;
      margin: auto;
    }
    .card {
      background: #fff;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(0,0,0,0.1);
      transition: transform 0.2s, box-shadow 0.2s;
      text-decoration: none;
      color: inherit;
    }
    .card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    }
    .card img {
      width: 100%;
      height: 260px;
      object-fit: cover;
    }
    .card-content {
      padding: 20px;
      text-align: center;
    }
    .card-content h3 {
      margin: 0 0 10px;
      font-size: 1rem;
      color: #222;
    }
    .card-content p {
      color: #555;
      font-size: 0.9rem;
    }
/*mise en page de page contact*/

.section-contact {
    max-width: 600px;
    width: 100%;
    background: #fff;
    border-radius: 15px;
    padding: 35px 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    text-align: center;
    margin: 0 auto;
    margin-top: 320px;
}
.section-contact h1 {
    color: #2a3f7d;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    position: relative;
}

input, textarea {
    padding: 12px 15px 12px 40px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus {
    border-color: #2a3f7d;
    box-shadow: 0 0 6px rgba(42,63,125,0.3);
    outline: none;
}

input::placeholder, textarea::placeholder {
    color: #999;
}

button {
    background-color: #2a3f7d;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
}

button:hover {
    background-color: #1d2b57;
    transform: translateY(-2px);
}

.field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a60a8;
    font-size: 18px;
    transition: transform 0.3s, color 0.3s;
}

.field-wrapper:hover .field-icon {
    transform: translateY(-50%) scale(1.1);
    color: #2a3f7d;
}

.field-wrapper {
    position: relative;
    width: 100%;
}

#successMessage {
    margin-top: 15px;
    padding: 12px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-size: 1rem;
    display: none;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.contact-info {
    margin-top: 35px;
    text-align: left;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    margin: 12px 0;
}

.contact-info i {
    color: #4a60a8;
    font-size: 20px;
    transition: transform 0.3s, color 0.3s;
}

.contact-info p:hover i {
    transform: scale(1.2);
    color: #2a3f7d;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    .container { padding: 25px 20px; }
}
/*page video index*/
  .image-container video {
      width: 100%;
      height: 180px;
      object-fit: cover;
      cursor: pointer;
    }