/* ----------- RESET + BASE ----------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #d9e4ec);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----------- LAYOUT ----------- */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* ----------- CARDS ----------- */
.card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  margin: 15px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ----------- TITRES ----------- */
h3 {
  text-align: center;
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 15px;
}

/* ----------- FORMULAIRES ----------- */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-weight: 600;
  margin-bottom: 4px;
}

input, select {
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fafafa;
  transition: border 0.2s ease;
}

input:focus, select:focus {
  border-color: #20a8d8;
  outline: none;
}

/* ----------- BOUTONS ----------- */
button,
input[type="submit"],
a.btn {
  display: inline-block;
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: white;
}

button:hover,
input[type="submit"]:hover,
a.btn:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.btn-primary { background: linear-gradient(153deg,rgba(107, 195, 207, 1) 0%, rgba(36, 144, 163, 1) 100%); }
.btn-success { background: linear-gradient(153deg,rgba(99, 194, 64, 1) 0%, rgba(21, 133, 42, 1) 100%); }
.btn-danger { background: linear-gradient(153deg,rgba(196, 65, 65, 1) 0%, rgba(161, 27, 27, 1) 100%); }
.btn-warning { background: #f3c24f; color: black; }

/* ----------- LISTES ----------- */
.presence-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.presence-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f9fc;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.presence-item:hover {
  background: #eef3f7;
}

/* ----------- COMPTEUR ----------- */



.comp{

    border: 1px solid #af4c4c;
    color: #af4c4c;
    padding: 10px;
}

.message_erreur{
	color: #B33232;
	text-align:center;
}

.appelez_boutton{
	text-align:center;
	background: linear-gradient(153deg,rgba(99, 194, 64, 1) 0%, rgba(21, 133, 42, 1) 100%);
	color: white;
	padding: 10px 15px;
	font-size: 1em;
	border-radius: 12px;
	margin:10px 0;
}
	
table td, table th{
	padding: 7px;
	text-align: center;
}

table{
	border-collapse: collapse;
}

.derniere_ligne{
	border-bottom: 1px solid grey;
}

.name p{
	box-shadow: 0 0 5px rgb(0,0,0,0.2);
	padding: 7px;
	border-radius: 7px;
	margin:0;
	background-color: white!important;
}

.name{
	padding: 2px;
}

.bi{
	margin-right: 10px;
}

.table_histo tr:hover{
	background-color: rgb(250,250,250);
}

.anniversaire{
	border: 3px solid;
	border-radius: 7px;
	border-image: linear-gradient(153deg, rgba(67,140,168,1) 0%, rgba(77,191,149,1) 100%);
	border-image-slice: 1;
	text-align:center;
	margin: 15px 0;
}
.anniversaire p{
	font-size: 1.2em;
	font-weight: bold;	
	text-align:center;
	background: linear-gradient(153deg,rgba(67, 140, 168, 1) 0%, rgba(77, 191, 149, 1) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	padding: 10px;
}
