/* ----- RESET DE BASE ----- */
* { box-sizing: border-box; }
body {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  background: #f8fafc;
  color: #222;
}

h1, h2, h3 { margin-top: 0.6em; margin-bottom: 0.3em; }
p { margin-top: 0.2em; margin-bottom: 0.8em; }

/* ----- LAYOUT GÉNÉRAL ----- */
.container {
  width: 92%;
  max-width: 850px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}
header.site-header {
  background: var(--bg);
  color: #fff;
  padding: 0.5rem 0;
  box-shadow: 5px 5px 5px 0 rgba(0,0,0,0.1);
}
header .branding {
  font-size: 1.3rem;
  font-weight: 600;
}
footer.site-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  padding: 1rem 0 2rem;
}

/* ----- TABLEAU DE BORD ----- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.graphs {
  display: flex;
  gap: .8rem;
  margin: 0.8rem 0;
}

.card {
  flex: 1 1 160px;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.1rem;
  box-shadow: 5px 5px 5px 0 rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.1s ease;
  width: 48%;
}

.map {
  flex: 1 1 160px;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  box-shadow: 5px 5px 5px 0 rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.1s ease;
  width: 48%;
}

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

.card h3 {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.3rem;
}
.map h3 {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.3rem;
}
.card p {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bg);
  margin: 0;
}

/* ----- TABLEAUX ----- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.8rem;
}
th, td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}
th {
  background: #f1f5f9;
  font-weight: 600;
}
tr:hover td { background: #f9fbfd; }
td:last-child {
  text-align: right;
}

/* ----- FORMULAIRES ----- */
form label {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

form label.multi {
  width: 50%;
  padding-right: 10px;}

form div.multi {
  display: flex;
  flex-wrap: wrap;
}
form input[type=email],
form input[type=text],
form input[type=date],
form input[type=number],
form select,
form textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background: #ffffff;
}
form input[readonly] {
  background: #f3f4f6;
  color: #777;
}

form button.btn, .btn {
  display: inline-block;
  background: var(--bg);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
}
form button.btn:hover, .btn:hover {
  background: var(--bg-d);
}

/* ----- COMPTEURS + / -  ----- */
.counter-group {
  margin-top: 1rem;
}
.counter-group input[type=number] {
  width: 90px;
  text-align: center;
/*  font-size: 1.1rem;*/
  margin: 0 0.4rem;
}
.counter-group button {
  border: none;
  border-radius: 5px;
/*  background: #e2e8f0;*/
  width: 64px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
/*.counter-group button:hover { background: #cbd5e1; }*/
.counter-buttons button {
  margin-right: 4px;
}
.btn-plus { background: var(--grey); color: white; }
.btn-moins { background: var(--grey); color: white; }
.btn-plus:hover { background: white; border: 1px solid var(--grey); color: var(--grey); }
.btn-moins:hover { background: white; border: 1px solid var(--grey); color: var(--grey); }

.btn-orange { background: var(--fa); color: white; }
.btn-blue { background: var(--fe); color: white; }
.btn-green { background: var(--ai); color: white; }
.btn-orange:hover { background: white; border: 1px solid var(--fa); color: var(--fa)}
.btn-blue:hover { background: white; border: 1px solid var(--fe); color: var(--fe) }
.btn-green:hover { background: white; border: 1px solid var(--ai); color: var(--ai) }


.txt-orange { color: var(--fa);}
.txt-blue { color: var(--fe);}
.txt-green { color: var(--ai);}


/* ----- NOTICES ----- */
.notice {
  background: #fefce8;
  border-left: 4px solid #facc15;
  padding: 0.6rem 0.8rem;
  border-radius: 5px;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.notice.error {
  background: #fee2e2;
  border-left-color: #ef4444;
}
.notice.success {
  background: #dcfce7;
  border-left-color: #22c55e;
}

/* ----- BOUTONS SUPPRESSION ----- */
.btn-del {
  color: #dc2626;
  font-size: 1.1rem;
  margin-left: 4px;
}
.btn-del:hover { color: #b91c1c; }

.photo-link {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85rem;
  color: var(--bg);
  margin-left: 4px;
}
.photo-link:hover {
  background: #e2e8f0;
  text-decoration: none;
}

/* ----- BOUTON INSCRIPTION ----- */
.cta {
  text-align: center;
  margin-top: 2.5rem;
}
.cta .btn {
  font-size: 1.1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  background: var(--bg);
}
.cta .btn:hover { background: var(--bg-d); }

/* ----- DIVERS ----- */
.hint {
  cursor: help;
  color: #999;
  font-weight: normal;
  margin-left: 4px;
}
.intro {
  font-size: 1rem;
  line-height: 1.5;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 5px 5px 5px 0 rgba(0,0,0,0.1);
}


/* --- Header / Navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); color: #fff;
  transition: all .3s ease;
}
/*.site-header.shrink { padding: .2rem 0; }*/
.site-header.shrink { padding: 0.2rem 0; }
.brand .logo { height: 60px; display: block; transition: all 0.3s ease;}
.brand .logo.shrink { height: 38px; display: block; transition: all 0.3s ease;}


/*.site-header .container { padding-top: .4rem; padding-bottom: .4rem; }*/
.site-header .container { padding-top: 0; padding-bottom: 0; }

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-toggle {
  display: none;
  background: transparent; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
}

.nav-links {
  display: flex; align-items: center; gap: 1rem;
}
.nav-link {
  color: #fff; text-decoration: none; font-weight: 500; opacity: .95;
}
.nav-link:hover { text-decoration: underline; opacity: 1; }
.nav-user { color: #fff; opacity: .9; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute; right: 1rem; top: 58px;
    background: var(--bg); border-radius: 8px;
    padding: .6rem .8rem;
    display: none; flex-direction: column; align-items: flex-start; gap: .5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
	transition: all 0.3s ease;
  }
  .nav-links.shrink {
    top: 38px; transition: all 0.3s ease;
  }
 .nav-links.open { display: flex;  transition: all 0.3s ease;}
 .nav-links .nav-user { padding-top: .3rem; border-top: 1px solid rgba(255,255,255,.2); width: 100%; }
}

.thankyou {
  text-align: center;
  margin-top: 80px;
}
.thankyou h1 {
  font-size: 1.8em;
  color: var(--bg);
  margin-bottom: 1em;
}
.thankyou p {
  font-size: 1.1em;
}

#heatmap {
  width: 100%;
  height: 400px;
  margin: 0.5rem 0 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}