body{font-family:system-ui, sans-serif;margin:0;padding:0;background:#f9fafb;color:#111;}
header{background:#2563eb;color:white;padding:20px;text-align:center;}
header h1{margin:0;font-size:1.8em;}
main{max-width:1000px;margin:20px auto;padding:15px;}
h2{color:#2563eb;}
.section{margin-bottom:30px;}
.article{background:white;padding:20px;margin-bottom:20px;border-radius:12px;box-shadow:0 4px 14px rgba(0,0,0,0.05);}
.article h2{margin-top:0;}
.article .date{color:#6b7280;font-size:0.9em;margin-bottom:10px;}
.article img{max-width:100%;border-radius:8px;margin-top:10px;}

/* Newsletter */
.newsletter{
  background:#fff3cd;
  padding:20px;
  border:1px solid #ffeeba;
  border-radius:12px;
}
.newsletter form{
  display:flex;
  flex-direction:column;
  gap:15px;
}
.newsletter label{
  font-weight:600;
  margin-bottom:5px;
}
.newsletter input{
  padding:10px;
  border-radius:6px;
  border:1px solid #e5e7eb;
  width:100%;
  box-sizing:border-box;
}
.newsletter button{
  margin-top:10px;
  background:#2563eb;
  color:white;
  padding:10px 16px;
  border:none;
  border-radius:6px;
  cursor:pointer;
}
.newsletter button:hover{background:#34A853;}
.child-entry{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  border:1px solid #e5e7eb;
  padding:10px;
  border-radius:8px;
  background:#f9fafb;
  position:relative;
}
.child-entry label{flex:1 1 100%;}
.child-entry input{flex:1 1 45%;}
.remove-child{position:absolute;top:10px;right:10px;padding:4px 8px;background:#dc2626;color:white;border:none;border-radius:4px;cursor:pointer;}
.remove-child:hover{background:#b91c1c;}
#form-message{color:red;margin-top:10px;}

/* Calendrier */
#calendar {
  max-width: 900px;
  margin: 20px auto;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

@media (max-width:600px){
    header h1{font-size:1.4em;}
    .child-entry input{flex:1 1 100%;}
}

/* --- Barre de navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 1); /* fond blanc visible par défaut */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.navbar.scrolled {
  background: rgba(0, 107, 159, 0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- Conteneur --- */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.5rem;
  max-width: 1200px;
  margin: auto;
}

/* --- Logo --- */
.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.4s ease;
  color: #006b9f;
}

/* --- Liens --- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #006b9f;
  transition: color 0.4s ease;
}

.nav-links a:hover {
  color: #004f73;
}

/* --- État au scroll : texte blanc --- */
.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-links a {
  color: #ffffff;
}

.navbar.scrolled .nav-links a:hover {
  color: #e0e0e0;
}

/* --- Bouton menu --- */
.nav-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
  transition: color 0.4s ease;
  color: #006b9f;
}

.navbar.scrolled .nav-toggle {
  color: #ffffff;
}

/* --- Menu mobile --- */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    width: 100%;
    text-align: center;
    display: none;
    transition: all 0.4s ease;
    background: rgba(255,255,255,1); /* fond blanc par défaut */
  }

  /* Quand la page est scrollée : fond bleu + texte blanc */
  .navbar.scrolled .nav-links {
    background: rgba(0,107,159,0.98);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    padding: 1rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
  }

  .navbar.scrolled .nav-links a {
    color: #ffffff;
  }

  .navbar.scrolled .nav-links a:hover {
    color: #e0e0e0;
  }

  .nav-toggle {
    display: block;
  }
}

/* --- Ajustement du contenu --- */
body {
  margin-top: 75px;
  background-color: #f9fafb;
}


form{background:white;padding:20px;border-radius:12px;margin-bottom:20px;box-shadow:0 4px 14px rgba(0,0,0,0.05);}
input, select, button{padding:8px;margin:5px 0;display:block;width:100%;max-width:300px;border-radius:6px;border:1px solid #e5e7eb;}
button{background:#2563eb;color:white;border:none;cursor:pointer;}
button:hover{background:#34A853;}
table{width:100%;border-collapse:collapse;margin-top:20px;}
th,td{border:1px solid #e5e7eb;padding:10px;text-align:left;}
th{background:#2563eb;color:white;}
a.delete{color:#dc2626;text-decoration:none;}
a.delete:hover{text-decoration:underline;}

/*/*.navbar.scrolled { background-color: white; transition: 0.3s; }
.nav-links { display:flex; list-style:none; }
.nav-links.active { display:block; } /* pour mobile */
/*/*.nav-toggle { display:none; }
/* media query pour mobile */
/**@media (max-width:768px){
  .nav-links { display:none; flex-direction:column; }
  .nav-toggle { display:block; }
}*/
