/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* Accueil - Hero section */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to right, #f8f9fa, #e2e6ea);
  animation: fadeIn 0.8s ease;
}

.hero-content {
  max-width: 700px;
  margin: auto;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #212529;
}

.hero p {
  font-size: 18px;
  color: #495057;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Boutons */
.btn {
  background-color: #198754;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover {
  background-color: #146c43;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #198754;
  color: #198754;
}
.btn-outline:hover {
  background-color: #198754;
  color: white;
}


/* Header */
.header {
  background-color: #343a40;
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.5s ease;
}

.header .container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  color: #f8f9fa;
  font-weight: bold;
  text-shadow: 1px 1px 2px #00000088;
  margin: auto;
}

.nav a {
  color: #ffffffcc;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #00ffcc;
}


/* Mini Header pour login/register */
.header-solo {
  background: linear-gradient(90deg, #198754, #0d6efd);
  padding: 20px 0;
  text-align: center;
  color: white;
  animation: fadeInDown 0.5s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.header-solo .container {
  max-width: 600px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}

.header-solo .logo {
  font-size: 22px;
  font-weight: bold;
}

.home-link {
  color: #f8f9fa;
  font-size: 14px;
  text-decoration: underline;
  transition: color 0.3s;
}

.home-link:hover {
  color: #d1ecf1;
}


/* Body */
body {
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  color: #212529;
  padding: 30px;
  min-height: 100vh;
 
}

/* Headings */
h1, h2, h3, p{
  color: #343a40;
  margin-bottom: 15px;
  animation: fadeInDown 0.6s ease;
  text-align: center;
}



/* Links */
a {
  color: #007bff;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Forms */
form {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  max-width: 500px;
  animation: fadeIn 0.7s ease;
  margin: auto;
  
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0 20px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  transition: 0.2s ease-in-out;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #80bdff;
  outline: none;
  box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* Button */
button {
  background-color: #198754;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s ease;
}
button:hover {
  background-color: #157347;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  animation: fadeInUp 0.7s ease;
}
th, td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid #dee2e6;
}
th {
  background-color: #343a40;
  color: white;
}
tr:nth-child(even) {
  background-color: #f1f3f5;
}

.pdf {
    margin-top: 2%;
    text-align: center;
}

.footer {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 20px 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.5s ease;
  margin-top: 40px;
}

.footer .container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  text-align: center;
}

.footer-content p {
  margin: 5px 0;
  font-size: 14px;
  color: #ffffffcc;
}

.footer-content p a {
  color: #00ffcc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content p a:hover {
  color: #ffffff;
}




/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === CSS Responsive tableau Mon Carnet Parental === */

/* Structure responsive pour les tableaux */
@media screen and (max-width: 768px) {
  thead {
    display: none !important;
  }

  table, tbody, tr, td {
    display: block;
    width: 100%;
  }

  tr {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 10px;
  }

  td {
    position: relative;
    padding-left: 50%;
    padding-top: 10px;
    padding-bottom: 10px;
    border: none;
    border-bottom: 1px solid #eee;
    text-align: left;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    top: 10px;
    font-weight: bold;
    color: #495057;
    white-space: nowrap;
  }

  h3 {
    margin-top: 25px;
  }

  .nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }

  .nav a {
    margin: 8px 0;
    text-align: center;
  }

  .header .container {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    text-align: center;
    margin-bottom: 10px;
  }
.footer-container {
    padding: 0 10px;
    font-size: 13px;
  }
  
}







