/* ============================================================
   File: styles.css
   Description: Global CSS for all html
   Author: VincentD
   Created: November 26, 2025
   Last Updated: December 09, 2025
   Version: 1.0
   ============================================================ */

:root {
  /* Main palette */
  --font-family: Arial, sans-serif;
  --background-color: #f3f3f3;
  --text-color: #333;
  --accent-color: #888;
  --border-color: #ccc;
  --highlight-bg: #eee;
  --button-bg: #fff;
  --button-hover-bg: #f0f0f0;

  /* Dimensions */
  --logo-size: 96px;
  --textarea-height: 600px;
  --radius: 6px;
  --padding: 10px;
  
  /* Language column colors */
  --fr-bg: #f9f9f9;   /* subtle gray for French */
  --us-bg: #f9f9f9;   /* subtle gray for US English */
}

/* Global styles */
body {
  font-family: var(--font-family);
  margin: 20px;
  background: var(--background-color);
  color: var(--text-color);
}

header {
  padding: var(--padding);
}

.header-container {
  display: flex;
  align-items: center;   /* vertically center logo + title */
  justify-content: space-between; /* logo left, title centered */
  position: relative;
}

.header-container .logo {
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain; /* keep proportions */
}

.header-container h1 {
  font-size: 2em;
  margin: 0;
  position: absolute;     /* independent centering */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  font-size: small;
  font-weight: bold;
}

footer img {
  display: block;        /* allows margin auto to work */
  margin: 0 auto;        /* centers horizontally */
  height: 50px;          /* fixed height */
  width: auto;           /* keep proportions */
}

fieldset {
  border-radius: 1em;
}

/* Apply only to labels with this class */
.form-label {
  display: inline-block;  /* allows setting a width */
  width: 20em;            /* uniform text width */
  text-align: left;       /* start from the left */
  margin-right: 1em;      /* space before the input */
  font-family: monospace;
}



/* Buttons section */
.buttons { 
  margin-bottom: 10px; 
  width: 96%; 
  margin-left: auto; 
  margin-right: auto;
}

button {
  margin-right: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-color);
  cursor: pointer;
  background: var(--button-bg);
}

button:hover {
  background: var(--button-hover-bg);
}

label {
  margin-right: 15px;
}

/* Filename display */
#filename {
  width: 96%;
  margin: 0 auto 10px auto;
  font-family: monospace;
  font-size: 1.5em;
  color: var(--text-color);
  background: var(--highlight-bg);
  padding: 6px 10px;
  border-radius: 4px;
}

/* Textarea viewer */
textarea {
  display: block;
  width: 96%;
  margin: 0 auto;
  height: var(--textarea-height);
  font-family: monospace;
  font-size: 1.2em;
  padding: 10px 30px 10px 10px;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  resize: none;
  white-space: pre;
  overflow-x: auto;
  overflow-y: auto;
}

/* Extra options */
.options-extra {
  margin-top: 8px;
}

.options-extra input {
  width: 80px;
  text-align: right;
}

/* Text size controls */
.text-size-controls {
  text-align: center;
  margin-bottom: 8px;
}

/* -------------------------------------------------- */
/* collapsible zone */
/* -------------------------------------------------- */
.collapsible {
  cursor: pointer;
  position: relative;
  padding-left: 1.5em;
}

.collapsible::before {
  content: "+";
  position: absolute;
  left: 0;
}

.collapsible.is-open::before {
  content: "−";
}

/* Masqué par défaut */
.collapsible + .collapsible-content {
  display: none;
}

/* Affiché quand ouvert */
.collapsible.is-open + .collapsible-content {
  display: block;
}











/* ==================== EOF ===================== */