/* --------------------------------------------------
   style.css – Sidebar calquée sur mon visuel
   -------------------------------------------------- */

/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Après — exactement comme dans mon agenda */
body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
}

/* ------------ SIDEBAR ------------ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 160px;             /* ta sidebar plus étroite */
  height: 100vh;
  background: #ffffff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.05);
  padding: 20px 0;
  overflow-y: auto;
}

/* Logo */
.sidebar img.logo {
  display: block;
  margin: 0 auto 20px;
  width: 60px;              /* un peu plus gros que 50 */
  height: 60px;
}

/* Titre “Navigation” (optionnel) */
.sidebar .nav-title {
  font-size: 12px;
  text-transform: uppercase;
  color: #aaa;
  padding: 0 16px 10px;
}

/* Menu vertical avec gap régulier */
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;                 /* espace uniforme */
  padding: 0 7px;
}

/* Liens */
.sidebar nav a {
  display: block;
  font-size: 14px;          /* texte plus petit */
  color: #5f5f6c;           /* gris foncé */
  padding: 6px 12px;        /* spacing gauche/droite */
  border-radius: 4px;
  transition: all .2s;
}

/* Hover */
.sidebar nav a:hover {
  background: #f0f0f0;      /* gris très pâle */
  color: #00c9d8;           /* turquoise */
  text-decoration: none;
}

/* État actif */
.sidebar nav a.active {
  background: #e0fbfa;      /* bleu clair */
  color: #00c9d8;           /* turquoise */
}

/* ------------ CONTENU PRINCIPAL ------------ */
.content {
  margin-left: 160px;       /* décalage égal à la largeur de la sidebar */
  padding: 30px;
}
.content .page-container {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 20px;
}

/* ------------ MOBILE ------------ */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    overflow-x: auto;
    box-shadow: none;
    padding: 10px 0;
  }
  .sidebar img.logo {
    width: 40px;
    height: 40px;
    margin: 0 15px 0 15px;
  }
  .sidebar nav {
    flex-direction: row;
    gap: 6px;
    padding: 0 10px;
  }
  .sidebar nav a {
    font-size: 10px;
    padding: 6px 10px;
  }
  .content {
    margin: 0;
    margin-top: calc(60px + 20px);
    padding: 20px;
  }
}

/* --------------------------------------------------
   1) Agenda Admin – jours en-tête blancs et gras
   -------------------------------------------------- */
/* FullCalendar v5+ */
.fc .fc-col-header-cell-cushion {
  color: #ffffff !important;         /* texte blanc */
  font-weight: bold !important;      /* caractère gras */
}

/* --------------------------------------------------
   2) Titres de page (h1, h2) en bleu #00c9d8
   -------------------------------------------------- */
.content .page-container h1,
.content .page-container h2 {
  color: #00c9d8;
}

/* --------------------------------------------------
   3) Tables pastel : radius, petits paddings, hover doux
   -------------------------------------------------- */
.content .page-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 6px;        /* coins arrondis */
  overflow: hidden;
  font-size: 12px;           /* typo réduite */
  background: #ffffff;       /* fond blanc */
}

.content .page-container th {
  background-color: #00c9d8; /* turquoise marque */
  color: #ffffff;            /* texte blanc */
  font-weight: normal;
  padding: 6px 10px;
  text-align: left;
}

.content .page-container tr:not(:last-child) td {
  border-bottom: 1px solid #aaa;  /* gris pâle */
}

.content .page-container td {
  padding: 6px 10px;
  color: #333;                    /* seul foncé autorisé */
  background: #ffffff;
}

.content .page-container tr:hover td {
  background: rgba(0,201,216,0.1); /* hover pastel */
  transition: background-color .2s ease;
}

.content .page-container th:first-child {
  border-top-left-radius: 6px;
}
.content .page-container th:last-child {
  border-top-right-radius: 6px;
}
.content .page-container tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}
.content .page-container tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}

.content .page-container a {
  color: #00c9d8;
  text-decoration: none;
  font-size: 12px;
}
.content .page-container a:hover {
  opacity: 0.8;
}
/* --------------------------------------------------
   Tables pastel : radius, petits paddings, hover doux
   -------------------------------------------------- */
.content .page-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 6px;        /* coins arrondis */
  overflow: hidden;
  font-size: 12px;           /* très petite typo */
  background: #ffffff;        /* fond blanc */
}

.content .page-container th {
  background-color: #00c9d8;  /* turquoise marque */
  color: #ffffff;             /* texte blanc */
  font-weight: normal;
  padding: 6px 10px;          /* petit padding */
  text-align: left;
}

/* Séparateurs horizontaux en gris pâle #aaa */
.content .page-container tr:not(:last-child) td {
  border-bottom: 1px solid #aaa;
}

.content .page-container td {
  padding: 6px 10px;
  color: #333;                /* seul « foncé » autorisé */
  background: #ffffff;
}

/* Hover : léger voile de turquoise */
.content .page-container tr:hover td {
  background: rgba(0,201,216,0.1);
  transition: background-color .2s ease;
}

/* Coins arrondis sur les extrémités */
.content .page-container th:first-child {
  border-top-left-radius: 6px;
}
.content .page-container th:last-child {
  border-top-right-radius: 6px;
}
.content .page-container tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}
.content .page-container tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}

/* Liens dans les cellules */
.content .page-container a {
  color: #00c9d8;
  text-decoration: none;
  font-size: 12px;
}
.content .page-container a:hover {
  opacity: 0.8;
}

/* ==== Styles spécifiques à la page de consentement ==== */

/* 1) Ajoutez cette classe autour de votre renderConsent() :  
   <div class="page-container consent-page">…</div> */

.consent-page .page-container {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 2rem auto;
  max-width: 800px;
}

/* Titre principal */
.consent-page .page-container h1 {
  color: #00c9d8;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* Paragraphes & liens */
.consent-page .page-container p {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.consent-page .page-container p a {
  color: #00c9d8;
  text-decoration: none;
}
.consent-page .page-container p a:hover {
  text-decoration: underline;
}

/* Formulaire centré */
.consent-page .page-container form {
  width: 100%;
  margin: 0 auto;
}

/* Groupe de champs */
.consent-page .page-container form label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-size: 0.875rem;
  font-weight: bold;
  color: #333;
}

/* Tous les inputs sauf checkbox */
.consent-page .page-container form input[type="text"],
.consent-page .page-container form input[type="email"],
.consent-page .page-container form input[type="tel"],
.consent-page .page-container form input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Checkbox inline */
.consent-page .page-container form input[type="checkbox"] {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Container pour le GIF de chargement */
.consent-page .page-container form .loading-container {
  text-align: center;
  margin: 1.5rem 0;
}

/* Bouton de soumission */
.consent-page .page-container form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: 1rem;
  background: #00c9d8;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.consent-page .page-container form button[type="submit"]:hover {
  opacity: 0.85;
}

/* Si vous voulez un peu d’espace en bas */
.consent-page .page-container {
  margin-bottom: 3rem;
}
