/* Restart English — Module Enregistreur Audio (standard)
   - Responsive
   - Sans dépendance
   - Harmonisé "turquoise"
   - Namespacé .re-... pour éviter de casser tes styles globaux
*/

.re-audio-recorder{
  width: 100%;
  box-sizing: border-box;
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid rgba(77, 208, 225, 0.75);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 4px 10px rgba(77,208,225,0.18);
  margin-left: 0;
  margin-right: 0;
}

.re-rec-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.re-rec-status{
  font-weight: 700;
  color: #006064;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 172, 193, 0.10);
  border: 1px solid rgba(0, 172, 193, 0.25);
}

.re-rec-timer{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #006064;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(77, 208, 225, 0.14);
  border: 1px solid rgba(77, 208, 225, 0.35);
}

.re-rec-controls{
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

@media (max-width: 640px){
  .re-rec-controls{ grid-template-columns: 1fr; }
}

/* Boutons du module (on s'appuie sur ton style global, mais on force l'harmonie) */
.re-rec-btn{
  width: 100%;
  padding: 12px 16px;
  font-size: 1.05em;
  border-radius: 12px;
  background-color: #00acc1;
}
.re-rec-btn:hover{ background-color: #008ea0; transform: scale(1.03); }

.re-rec-btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Action secondaire */
.re-rec-secondary{
  background-color: #4dd0e1;
  color: #004d55;
}
.re-rec-secondary:hover{
  background-color: #35c3d6;
}

.re-rec-danger{
  background-color: #ffb3b3;
  color: #5a0000;
}
.re-rec-danger:hover{
  background-color: #ff9a9a;
}

.re-rec-playback{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.re-rec-playback audio{
  width: min(520px, 100%);
  margin: 0;
}

.re-rec-download{
  font-weight: 700;
  color: #006064;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 96, 100, 0.25);
  background: rgba(255,255,255,0.6);
}
.re-rec-download:hover{ text-decoration: underline; }

.re-rec-help{
  margin-top: 12px;
  font-size: 0.98em;
  color: #006064;
  opacity: 0.9;
}
