:root {
  --navy: #2b3b5e;
  --accent: #ca084c;
  --gris: #4b474b;
  --or: #f2bf49;
  --corail: #fca577;
  --vert: #a1da8e;
  --turquoise: #58d6c9;
  --creme: #f9f3ed;
  --bg: #f9f3ed;
  --border: #e6ddd2;
  --erreur: #c0392b;
  --radius: 14px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');


* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--gris);
}

h1, h2, .navbar-brand, .stats-valeur, .card-value {
  font-family: "Inter", -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: -.2px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 24px; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, var(--navy), #3f2b5e, var(--navy));
  color: #fff;
  padding: 14px 26px;
}
.navbar-brand { color: #fff; font-weight: bold; text-decoration: none; }
.navbar nav a {
  color: #fff; margin-right: 6px; text-decoration: none;
  padding: 7px 14px; border-radius: 8px; opacity: .8;
  transition: opacity .2s ease, background .2s ease;
}
.navbar nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.navbar nav a.nav-actif { opacity: 1; font-weight: 700; background: rgba(255,255,255,.18); }
.navbar nav a.nav-actif:hover { background: rgba(255,255,255,.22); }
.navbar-user { display: flex; align-items: center; gap: 12px; }
.navbar-user button {
  background: transparent; border: 1px solid #fff; color: #fff;
  padding: 4px 10px; border-radius: 4px; cursor: pointer;
}
 
.page-auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-box {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 32px; width: 360px;
}
 
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; margin-top: 10px; }
.form input, .form textarea {
  padding: 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px;
}
.form button {
  margin-top: 16px; padding: 10px; background: var(--accent); color: #fff;
  border: none; border-radius: 4px; cursor: pointer; font-size: 14px;
}
.form small { color: #666; }
.erreur { color: var(--erreur); font-weight: 600; }
 
.form-contact fieldset { border: 1px solid var(--border); border-radius: 4px; padding: 12px; margin-top: 10px; }
.form-contact legend { font-weight: 600; padding: 0 6px; }
.form-contact .form-group { margin-bottom: 6px; }
 
.succes { color: #1e7e34; font-weight: 600; }
 
.bouton {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 9px 18px; border-radius: 22px; text-decoration: none; font-size: 14px; font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 2px 6px rgba(202,8,76,.0);
  cursor: pointer;
}
.bouton:hover {
  background: #a30642;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(202,8,76,.28);
}
.bouton:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(202,8,76,.2); }
 
.table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; box-shadow: 0 4px 14px rgba(43,59,94,.07); border-radius: var(--radius); overflow: hidden; }
.table th, .table td {
  text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.th-tri { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.th-tri:hover { color: var(--turquoise) !important; }
.th-tri-actif { color: var(--turquoise); }
.table th { background: var(--navy); color: #fff; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .4px; }
.table th:first-child, .table td:first-child { white-space: nowrap; }
.table th:last-child, .table td:last-child { white-space: nowrap; }
.table button {
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px;
  background: #fff; cursor: pointer; font-size: 13px;
}
 
.filtres { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.filtres input, .filtres select { padding: 6px; border: 1px solid var(--border); border-radius: 4px; }
.filtres-export { margin-left: auto; display: flex; gap: 8px; }
 
.filtres-cams { flex-wrap: wrap; }
.case-filtre { display: flex; align-items: center; gap: 4px; font-size: 14px; cursor: pointer; }
.case-filtre input { cursor: pointer; }
 
.badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; display: inline-block; }
.badge-en_attente { background: #fbeecb; color: #8a6510; }
.badge-valide { background: #e3f3dc; color: #3f7a2e; }
.badge-refuse { background: #fbe0e8; color: #a30642; }
.badge-en_cours { background: #dde1eb; color: var(--navy); }
.badge-en_pause { background: #fbeecb; color: #8a6510; }
.badge-cloture { background: #ececec; color: var(--gris); }
.badge-convention-signee { background: #e3f3dc; color: #3f7a2e; }
.badge-convention-non_signee { background: #fbe0e8; color: #a30642; }
 .badge-cpp-abandonne { background: #ececec; color: var(--gris); text-decoration: line-through; }
.badge-cpp-pas_besoin { background: #ececec; color: var(--gris); }
.badge-cpp-en_attente_depot { background: #fbeecb; color: #8a6510; }
.badge-cpp-depose { background: #d9f5f1; color: #147c6f; }
.badge-cpp-valide { background: #e3f3dc; color: #3f7a2e; }
.badge-cpp-refuse { background: #fbe0e8; color: #a30642; }
.badge-cpp-vide { background: #f2f2f2; color: #999; font-style: italic; }
 
.filtres-separateur { width: 1px; align-self: stretch; background: var(--border); margin: 0 4px; }
 
.filtres-sujets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.filtres-ligne-haut { display: flex; align-items: center; gap: 8px; }
.filtres-ligne-haut input[type="text"] { flex: 1; max-width: 320px; padding: 6px; border: 1px solid var(--border); border-radius: 4px; }
.filtres-groupe { border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px 12px; margin: 0; }
.filtres-groupe legend { font-weight: 600; font-size: 13px; padding: 0 6px; color: #555; }
.filtres-cases { display: flex; flex-wrap: wrap; gap: 8px 24px; }
 
.sujets-entete { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.sujets-entete-actions { display: flex; align-items: center; gap: 10px; flex: 1; }
.sujets-entete-actions input[type="text"] { flex: 1; padding: 6px; border: 1px solid var(--border); border-radius: 4px; }
.sujets-entete-actions .filtres-export { margin-left: 0; }
.filtres-sujets-ligne { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; overflow-x: auto; }
.filtres-recherche-bloc { display: flex; gap: 8px; align-self: center; }
.filtres-recherche-bloc input[type="text"] { padding: 6px; border: 1px solid var(--border); border-radius: 4px; min-width: 220px; }
.filtres-cases-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 16px; }
.filtres-cases-colonne { display: flex; flex-direction: column; gap: 6px; }
 
.pagination { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.page-lien {
  display: inline-block; min-width: 32px; text-align: center; padding: 6px 10px;
  border: 1px solid var(--border); border-radius: 20px; text-decoration: none;
  color: var(--accent); background: #fff; font-size: 14px;
}
.page-lien:hover { background: #f4f6f8; }
.page-lien.page-active { background: var(--accent); color: #fff; border-color: var(--coral); font-weight: 700; }
 
.badge-cam-planifie { background: #d9f5f1; color: #147c6f; }
.badge-cam-option { background: #fbeecb; color: #8a6510; }
.badge-cam-realise { background: #e3f3dc; color: #3f7a2e; }
.badge-cam-annule { background: #fbe0e8; color: #a30642; }

.actions-cam { display: flex; flex-wrap: wrap; gap: 6px; }
.ligne-participant { display: flex; gap: 8px; margin-bottom: 6px; align-items: center; }
.ligne-participant input { flex: 1; }
.form-rdv .bouton-retirer-participant {
  display: flex; align-items: center; justify-content: center;
  margin-top: 0; padding: 0;
  border: 1px solid var(--border); background: #fff; border-radius: 6px;
  width: 28px; height: 28px; min-width: 28px; flex-shrink: 0;
  cursor: pointer; font-size: 16px; line-height: 1; color: var(--gris);
}
.form-rdv .bouton-retirer-participant:hover { background: #fbe0e8; color: #a30642; border-color: #a30642; }
.fiche { background: #fff; border: none; box-shadow: 0 4px 14px rgba(43,59,94,.07); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.fiche-dl { display: grid; grid-template-columns: 260px 1fr; gap: 6px 12px; margin: 0; }
.fiche-dl dt { font-weight: 600; color: #555; }
.fiche-dl dd { margin: 0; }
 
.actions { margin-top: 16px; }
.bouton-danger { background: var(--erreur); }
.bouton-vert { background: #1e7e34; }
.bouton-disabled { background: #ccc; color: #666; cursor: not-allowed; pointer-events: none; }
.form-refus { display: inline-flex; flex-direction: column; gap: 6px; margin-left: 12px; vertical-align: top; max-width: 320px; }
.form-refus textarea { min-height: 50px; }
 
.journal { list-style: none; padding: 0; margin: 0; }
.journal li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
 
.choix-type { display: flex; gap: 10px; margin-bottom: 16px; }
.bouton-secondaire {
  background: #fff; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 22px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.bouton-secondaire:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(202,8,76,.22);
}
.form-rdv fieldset { border: 1px solid var(--border); border-radius: 4px; padding: 12px; margin-top: 10px; }
.form-rdv fieldset select { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.form-rdv legend { font-weight: 600; padding: 0 6px; }
 
.badge-ticket-envoye { background: #ececec; color: var(--gris); }
.badge-ticket-ouvert { background: #fbeecb; color: #8a6510; }
.badge-ticket-en_cours { background: #d9f5f1; color: #147c6f; }
.badge-ticket-fait { background: #e3f3dc; color: #3f7a2e; }
.badge-ticket-annule { background: #fbe0e8; color: #a30642; }
.form-statut-ticket { display: flex; gap: 6px; }
.form-statut-ticket select { padding: 4px; border: 1px solid var(--border); border-radius: 4px; }
.form-statut-sujet { flex-direction: column; align-items: flex-start; }
.form-statut-sujet select#select-statut { align-self: flex-start; }
.form-statut-sujet button[type="submit"] { align-self: flex-start; width: auto; }
 .form-statut-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form-statut-inline select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px;
}
.form-statut-inline button[type="submit"] {
  background: var(--accent); color: #fff; border: none; padding: 9px 18px;
  border-radius: 18px; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-statut-inline button[type="submit"]:hover {
  background: #a30642; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(202,8,76,.25);
}
.bloc-statut-conditionnel {
  flex-basis: 100%; background: var(--bg); border-radius: 10px;
  padding: 14px; margin-top: 10px;
}
.calendrier-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.calendrier-titre { font-weight: 600; font-size: 18px; min-width: 160px; text-align: center; }
 
.calendrier { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.calendrier th { background: #eef1f5; padding: 6px; font-size: 13px; text-align: left; }
.calendrier-jour {
  vertical-align: top; border: 1px solid var(--border); padding: 4px;
  height: 110px; width: 14.28%; overflow: hidden;
}
.calendrier-jour-hors-mois { background: #f7f7f7; color: #aaa; }
.calendrier-jour-aujourdhui { background: #eaf2fb; }
.calendrier-numero { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
 
.calendrier-rdv {
  display: block; font-size: 11px; padding: 2px 4px; margin-bottom: 2px;
  border-radius: 3px; text-decoration: none; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.calendrier-rdv-planifie { background: var(--accent); }
.calendrier-rdv-realise { background: #4f9a3f; }
.calendrier-rdv-libre { background: #fff; color: #147c6f; border: 1px dashed #58d6c9; }
 .calendrier-rdv-option { background: #9a9a9a; }

.calendrier-legende { margin-top: 12px; display: flex; gap: 10px; }
.calendrier-legende .calendrier-rdv { display: inline-block; padding: 3px 10px; }
 
.stats-cartes { display: flex; gap: 16px; margin-bottom: 24px; }
.stats-carte {
  background: #fff; border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(43,59,94,.08); padding: 20px; flex: 1; text-align: center;
  position: relative; transition: transform .25s ease, box-shadow .25s ease;
  --couleur-contour: var(--accent);
  display: flex; flex-direction: column;
}
.stats-cartes .stats-carte:nth-child(2n) { --couleur-contour: var(--navy); }
.stats-carte .carte-lien, .stats-carte .stats-detail { margin-top: auto; padding-top: 10px; }

.stats-carte::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  border: 4px solid var(--couleur-contour);
  clip-path: inset(0 calc(100% - 4px) 0 0);
  transition: clip-path .5s ease;
  pointer-events: none;
}
.stats-carte:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(43,59,94,.16);
}
.stats-carte:hover::after {
  clip-path: inset(0 0 0 0);
}
@keyframes contour-sweep {
  from { background: conic-gradient(from var(--angle-contour), var(--accent) 0deg, var(--accent) 0deg, transparent 0deg); }
  to   { background: conic-gradient(from var(--angle-contour), var(--accent) 360deg, var(--accent) 360deg, transparent 360deg); }
}
.stats-valeur { font-size: 32px; font-weight: 800; color: var(--navy); }
.stats-libelle { font-size: 14px; color: #555; margin-top: 4px; }
.stats-detail { font-size: 12px; color: #999; margin-top: 6px; }
 
.stats-histogramme {
  display: flex; align-items: flex-end; gap: 12px; height: 220px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 20px 16px 8px;
}
.stats-barre-colonne { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; justify-content: flex-end; }
.stats-barre-valeur { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.stats-barre { width: 60%; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; }
.stats-barre-libelle { font-size: 11px; color: #666; margin-top: 6px; text-align: center; max-width: 80px; }
 
.notifications-cloche { position: relative; text-decoration: none; font-size: 18px; margin-right: 4px; background: transparent; border: none; cursor: pointer; padding: 4px; color: #fff; }
.notifications-badge {
  position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 10px; line-height: 1.4;
}
 
.notifications-wrapper { position: relative; }
.notifications-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 340px;
  background: #fff; color: #163430; border: none; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(43,59,94,0.18); z-index: 100; padding: 8px; max-height: 400px; overflow-y: auto;
}
.notifications-dropdown.ouvert { display: block; }
.notifications-tout-lu { text-align: right; margin-bottom: 6px; }
.notifications-tout-lu button {
  background: none; border: none; color: var(--accent); font-size: 12px; cursor: pointer; padding: 4px;
}
.notifications-vide { padding: 12px; color: #999; font-size: 13px; margin: 0; }
 
.notifications-liste { list-style: none; padding: 0; margin: 0; }
.notification-item { border-radius: 6px; margin-bottom: 4px; }
.notification-item a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; text-decoration: none; color: inherit; border-radius: 6px;
}
.notification-item a:hover { background: #f4f6f8; }
.notification-non-lue { background: #f2f7fd; }
.notification-non-lue .notification-message { font-weight: 600; }
.notification-message { font-size: 13px; }
.notification-date { font-size: 11px; color: #999; }
 
.exports-boutons { display: flex; gap: 10px; flex-wrap: wrap; }
 
.compte-rendu-texte { white-space: pre-wrap; line-height: 1.5; }
.compte-rendu-valider { margin-top: 12px; }
.compte-rendu-boutons { display: flex; gap: 10px; margin-top: 10px; }
 /* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  body { overflow-x: hidden; }
  .container { padding: 16px; }

  .navbar { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  .navbar nav { display: flex; flex-wrap: wrap; gap: 4px; order: 3; width: 100%; }
  .navbar nav a { margin-right: 0; padding: 6px 10px; font-size: 13px; }
  .navbar-user { gap: 8px; }
  .navbar-user span { display: none; }

  .stats-cartes { flex-wrap: wrap; }
  .stats-carte { min-width: 140px; flex: 1 1 calc(50% - 16px); }

  .sujets-entete { flex-wrap: wrap; }
  .sujets-entete-actions { flex-wrap: wrap; width: 100%; }
  .sujets-entete-actions input[type="text"] { width: 100%; flex: none; }
  .filtres-export { margin-left: 0; width: 100%; }

  .filtres-sujets-ligne { flex-direction: column; overflow-x: visible; }
  .filtres-groupe { width: 100%; }
  .filtres-cases-grid { grid-template-columns: repeat(2, auto); }

  .fiche-dl { grid-template-columns: 1fr; }
  .fiche-dl dt { margin-top: 8px; }

  .calendrier-nav { flex-wrap: wrap; justify-content: center; }
  .table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .calendrier { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; table-layout: auto; }
  .calendrier-jour { height: 80px; width: 90px; }

  .choix-type, .filtres, .compte-rendu-boutons, .exports-boutons, .cards {
    flex-wrap: wrap;
  }

  .auth-box { width: 90vw; max-width: 360px; }

  .notifications-dropdown { width: min(340px, 92vw); right: -8px; }
}

@media (max-width: 520px) {
  .stats-carte { flex: 1 1 100%; }
  .filtres-cases-grid { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .navbar-brand { font-size: 14px; }
}

.carte-lien {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; font-size: 12px; font-weight: 700;
  color: var(--accent); text-decoration: none;
  transition: gap .2s ease, color .2s ease;
  align-self: self-end;
}
.carte-lien::after { content: "→"; transition: transform .2s ease; }
.carte-lien:hover { gap: 8px; color: var(--navy); }

.liens-rapides { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 24px; }
.lien-rapide {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  background: #fff; border: 1.5px solid var(--border);
  color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(43,59,94,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.lien-rapide::before { content: "→"; color: var(--accent); font-weight: 700; transition: transform .18s ease; }
.lien-rapide:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(43,59,94,.14);
  border-color: var(--accent);
  color: var(--accent);
}
.lien-rapide:hover::before { transform: translateX(3px); }

table a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

table a:not(.bouton):not(.bouton-secondaire):hover {
  color: var(--navy);
  text-decoration: none;
}
.valorisation-liste { font-size: 11px; color: var(--gris); margin-top: 4px; line-height: 1.4; }
.participants-liste { font-size: 11px; font-style: italic; color: var(--gris); margin-top: 3px; line-height: 1.3; }
/* ============ FORMULAIRE PUBLIC ============ */
.entete-publique {
  background: linear-gradient(120deg, var(--navy), #3f2b5e, var(--navy));
  padding: 10px 24px;
}
.entete-publique-interieur {
  max-width: 900px; margin: 0 auto;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.2px;
}
.container-publique { max-width: 900px; padding: 32px 24px 60px; }
.pied-publique { background: var(--navy); margin-top: 40px; padding: 28px 0; }
.pied-publique-interieur {
  max-width: 900px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.pied-publique-logo { height: 70px; width: auto; flex-shrink: 0; }
.pied-publique-coordonnees { flex: 1; min-width: 220px; font-size: 13px; color: #d8dce8; line-height: 1.6; }
.pied-publique-coordonnees p { margin: 0; }
.pied-publique-coordonnees a { color: #fff; text-decoration: none; }
.pied-publique-coordonnees a:hover { text-decoration: underline; }
.pied-publique-lien {
  background: none; border: 1px solid #5a6a8a; color: #fff; padding: 8px 16px;
  border-radius: 18px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.pied-publique-lien:hover { background: rgba(255,255,255,.08); }

.modale-fond {
  position: fixed; inset: 0; background: rgba(43,59,94,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100;
}
.modale-boite {
  background: #fff; border-radius: var(--radius); max-width: 640px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 32px; position: relative;
}
.modale-boite h2 { color: var(--navy); margin-top: 0; }
.modale-boite p { font-size: 13.5px; color: var(--gris); line-height: 1.6; }
.modale-fermer {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  font-size: 24px; line-height: 1; color: var(--gris); cursor: pointer; padding: 4px 8px;
}
.modale-fermer:hover { color: var(--accent); }

@media (max-width: 600px) {
  .pied-publique-interieur { flex-direction: column; text-align: center; }
}
.absence-alerte { font-size: 11px; font-weight: 700; color: #a30642; margin-top: 3px; line-height: 1.3; }
.formulaire-entete { margin-bottom: 24px; }
.formulaire-entete h1 { margin-bottom: 8px; }
.formulaire-sous-titre { color: var(--gris); font-size: 14px; }
.etoile-requis { color: var(--accent); font-weight: 700; }

.fiche-formulaire { margin-bottom: 20px; }
.fiche-formulaire h2 {
  font-size: 16px; color: var(--navy); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--creme);
}

.form-contact .form-group { margin-bottom: 14px; }
.form-contact label { display: block; font-weight: 600; font-size: 13px; color: var(--navy); margin-bottom: 4px; }
.form-contact input[type="text"],
.form-contact input[type="email"],
.form-contact input[type="number"],
.form-contact input[type="date"],
.form-contact textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; transition: border-color .18s ease, box-shadow .18s ease;
}
.form-contact input:focus, .form-contact textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(202,8,76,.12);
}
.form-contact textarea { min-height: 110px; resize: vertical; }
.form-contact fieldset { border: none; padding: 0; margin: 0 0 14px; }
.form-contact legend { font-weight: 600; font-size: 13px; color: var(--navy); margin-bottom: 8px; padding: 0; }
.form-contact .required > label::after,
.form-contact .required > legend::after {
  content: " *";
  color: var(--accent);
  font-weight: 700;
}
.form-aide { font-size: 12px; color: var(--gris); margin: 6px 0 0; font-style: italic; }
.form-ligne { display: flex; gap: 16px; }
.form-ligne .form-group { flex: 1; min-width: 0; }

.choix-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-chips .case-filtre {
  border: 1.5px solid var(--border); border-radius: 20px; padding: 7px 14px;
  cursor: pointer; transition: border-color .18s ease, background .18s ease;
}
.choix-chips .case-filtre:has(input:checked) { border-color: var(--accent); background: #fbe0e8; }

.formulaire-envoi { margin-top: 24px; text-align: center; }
.bouton-envoi { padding: 12px 32px; font-size: 15px; }

.confirmation-carte {
  background: #fff; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(43,59,94,.1);
  padding: 40px; text-align: center; max-width: 480px; margin: 60px auto;
}
.confirmation-icone {
  width: 56px; height: 56px; border-radius: 50%; background: #e3f3dc; color: #3f7a2e;
  font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.confirmation-numero { color: var(--accent); }

@media (max-width: 700px) {
  .form-ligne { flex-direction: column; gap: 0; }
}

.choix-chips .case-filtre { white-space: normal; }
.bouton-bleu, .form button.bouton-bleu, table button.bouton-bleu{
  background-color: var(--navy);
}
table button.bouton-rose{
  background-color: var(--accent);
}

.validation-boutons { display: flex; gap: 10px; align-items: center; }
.motif-refus-zone { margin-top: 14px; }
.motif-refus-zone label { display: block; font-weight: 600; margin-bottom: 6px; }
.motif-refus-zone textarea { width: 100%; min-height: 90px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }
.fiche .bouton{
  border:0
}
.fiche .bouton-secondaire{
      font-size: 12px;
    font-weight: 300;
    padding: 4px 9px;
    border-radius: 5px;
    border: 1.5px solid var(--accent);
}

.champ-piege {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.stats-graphiques-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 8px; }
.stats-bloc-graphique { background: #fff; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(43,59,94,.07); padding: 20px; }
.stats-bloc-graphique h2 { margin-top: 0; }
.stats-graphique-zone { position: relative; height: 240px; }
.stats-graphique-large { height: 260px; margin-bottom: 24px; }
.stats-legende { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; font-size: 12px; color: var(--gris); }
.legende-item { display: flex; align-items: center; gap: 5px; }
.legende-puce { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex-shrink: 0; }

@media (max-width: 900px) {
  .stats-graphiques-duo { grid-template-columns: 1fr; }
}

#bouton-mentions-legales{
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
#bouton-mentions-legales:hover{
text-decoration: underline;
}

.text-justify{
  text-align: justify;
}

.actions-option{
  margin-top: 5px;
  display: flex;
}

.select-phase-cams, .select-phase-cams option{
background: var(--creme);
border-radius: 15px;
border:none;
border-bottom:2px solid var(--navy);
padding:5px 0px;

}

#lien_visio{
  width:100%
}