:root {
    --primary-color: #1a4d8c;
    --hover-color: #2a6db0;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #dddddd;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-section {
    flex: 1;
    min-width: 350px;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-section {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

h1, h2 {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
}

.licence {
    width: 280%;
}

input[type="checkbox"] {
    width: auto;
}

input#colonnesCategories {
    width: 30% !important;
}

input#colonnesRessources {
    width: 30% !important;
}
input#carteHauteur {
    width: 30% !important;
}
input#bordureEpaisseur {
    width: 10% !important;
}
input#couleurText {
    width: 30% !important;
}
input#carteFondText {
    width: 30% !important;
}
input#bordureCouleurText {
    width: 30% !important;
}

input#titreTaille {
    width: 30% !important;
}

input#texteTaille {
    width: 30% !important;
}
input#bordureCouleurText {
    width: 10% !important;
}

input#texteCouleurText {
    width: 30% !important;
}

select#theme{
    width: 20% !important;
}

select#lightbox {
    width: 20% !important;
  }
  
select#police{
    width: 50% !important;
}
select#titrePolice{
    width: 50% !important;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background-color: var(--hover-color);
}

.button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.copy-btn, .preview-btn {
    background-color: #4CAF50;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.copy-btn:hover, .preview-btn:hover {
    background-color: #45a049;
}


pre {
    background-color: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    white-space: pre-wrap;
    min-height: 200px;
}

.result-section pre#yaml-output {
    text-align: left !important;
    white-space: pre-wrap;
    padding: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.section-content {
    margin-bottom: 30px;
}

/* Grille pour les petits champs */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* Pour les couleurs et les tailles */
.input-with-color {
    display: flex;
    gap: 10px;
}

.input-with-color input[type="color"] {
    width: 50px;
    height: 38px;
    padding: 0;
}

/*.input-with-color input[type="text"] {
    flex: 1;
}*/

/* Bouton de génération mis en évidence */
.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.generate-btn {
    background-color: var(--primary-color);
    font-size: 18px;
    padding: 12px 25px;
}