@charset "utf-8";

/* CSS Document */
/* Variables pour le thème jour/nuit */
:root {
  --bg-color: #ffffff; 
  /* Fond clair et pur pour maximiser le contraste */
  --text-color: #0a2540; 
  /* Bleu marine très sombre pour le texte */
  --header-color: #0056d2; 
  /* Bleu franc et vif pour les titres */
  --link-color: #0040a8; 
  /* Bleu soutenu pour les liens */
  --link-hover-color: #002e73; 
  /* Bleu nuit pour le survol */
  --accordion-bg: #f8f9fa; 
  /* Fond accordéon gris très clair */
  --accordion-header-bg: #0056d2; 
  /* Bleu vif pour l’en-tête */
  --accordion-content-bg: #e9ecef; 
  /* Gris clair pour le contenu */
  --border-color: #adb5bd; 
  /* Gris moyen contrasté */
  --form-bg: #ffffff; 
  /* Fond formulaire blanc */
  --form-text: #212529; 
  /* Texte formulaire très sombre */
  --btn-bg: #0056d2; 
  /* Bouton bleu vif */
  --btn-text: #ffffff; 
  /* Texte bouton blanc */
}

/* Thème sombre */
[data-theme="dark"] {
  --bg-color: #0a192f; 
  /* Fond sombre bleu-noir */
  --text-color: #f1f5ff; 
  /* Texte très clair bleuté */
  --header-color: #4da3ff; 
  /* Bleu clair contrasté pour les titres */
  --link-color: #82cfff; 
  /* Bleu ciel pour les liens */
  --link-hover-color: #3399ff; 
  /* Bleu vif au survol */
  --accordion-bg: #1a2333; 
  /* Fond accordéon sombre mais lisible */
  --accordion-header-bg: #0056d2; 
  /* Bleu franc pour l’en-tête */
  --accordion-content-bg: #142030; 
  /* Fond contenu sombre */
  --border-color: #3c4a64; 
  /* Bordure gris-bleu */
  --form-bg: #162236; 
  /* Fond formulaire sombre */
  --form-text: #e9eefb; 
  /* Texte formulaire clair */
  --btn-bg: #3399ff; 
  /* Bouton bleu lumineux */
  --btn-text: #ffffff; 
  /* Texte bouton blanc */
}


html, body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  height: auto; /* Permet l'expansion */
  overflow-x: hidden; /* Empêche le débordement horizontal */
}
header {
  font-size: 2em;
  font-weight: bold;
  color: var(--text-color);
  opacity: 0.6;
  z-index: 1000;
}

footer {
  position: fixed;
  bottom: 5px;
  right: 10px;
  font-size: 0.8em;
  color: var(--btn-text);
  opacity: 0.6;
  z-index: 1000;
}

a {
  color: var(--link-color);
  font-weight: bold;
  text-decoration-color: var(--border-color);
}

a:hover {
  color: var(--link-hover-color);
}

h1 {
  color: var(--header-color);
}

h4 {
  margin-block-start: 1.33em;
  margin-block-end: 1.33em;
  margin-bottom: 1.00em;
  margin-top: 1em;
}

* {
  box-sizing: border-box;
}
#SaisieCodePIN {
  position: relative;
  margin: 20px;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--form-bg);
  color: var(--form-text);
  
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* CHANGER bottom: 0; par */
  bottom: auto;
  /* AJOUTER */
  height: 100%;
  background-image: url("../images/IMG_1590.JPG");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  -webkit-filter: blur(2px);
  z-index: 1;
}

.bg-text {
  position: relative; /* Changé de absolute à relative */
  width: 100%;
  min-height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--text-color);
  font-weight: bold;
  border: 3px solid var(--border-color);
  z-index: 2;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.containerindex {
  display: none;
  position: relative;
  width: 100%;
  min-height: 100vh;
}


.edi-btn,
.del-btn,
.go-btn {
  border-radius: 5px;
  padding: 0.1em;
  background-color: var(--btn-bg);
  border-style: double;
  color: var(--btn-text);
  font: 1em bold, sans-serif;
  transition: background-color 0.3s;
}

.edi-btn:hover,
.del-btn:hover,
.go-btn:hover {
  background-color: var(--link-hover-color);
}

#pinForm {
  max-width: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: var(--form-bg);
  color: var(--form-text);
}

#pinForm label {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: -10px;
  color: var(--form-text);
}

#pinForm button {
  background-color: var(--btn-bg);
  border-radius: 5px;
  padding: 0.7em;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: -10px;
  color: var(--btn-text);
}

#pinForm input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
  background-color: var(--form-bg);
  color: var(--form-text);
}

/* Style pour les accordéons - Optimisé pour mobile */
.accordion {
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--accordion-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 0.70;
  width: 100%;
}

.accordion-header {
  margin: 0;
  padding: 14px 18px;
  background-color: var(--accordion-header-bg);
  color: var(--btn-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  width: 100%;
  text-align: left;
  transition: background-color 0.3s;
  font-size: 1.1rem;
  touch-action: manipulation;
}


.accordion-header:hover {
  background-color: var(--link-hover-color);
}

.accordion-icon {
  font-size: 1.4em;
  transition: transform 0.3s;
  margin-left: 10px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: var(--accordion-content-bg);
  padding: 0;
  color: var(--text-color);
}

.accordion-content div {
  padding: 10px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-content div:last-child {
  border-bottom: none;
}

.accordion-content a {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.accordion-content a:hover {
  text-decoration: underline;
  background-color: #e9e9e9;
}

/* Quand l'accordéon est actif */
.accordion.active .accordion-content {
  max-height: none;
  padding: 0;
  overflow: visible;
}

/* Effet de pression pour les écrans tactiles */
.accordion-header:active {
  transform: scale(0.98);
  opacity: 0.5;
}

/* Bouton de thème */
.theme-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}
/* Adaptation pour les petits écrans */
@media (max-width: 600px) {
  .accordion-header {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .accordion-content div {
    padding: 8px 12px;
  }

  .accordion {
    margin-bottom: 6px;
  }
}

