/* Style général */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 1rem;
    color: #333;
	TEXT-ALIGN: center;	
}

/* Conteneur principal */
.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Titres */
h1, h2, h3 {
    color: #222;
    margin-bottom: 1rem;
}

/* Table responsive */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 10px 14px;
    border: 1px solid #ccc;
    text-align: left;
}

th {
    background-color: #e9ecef;
    font-weight: bold;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Champs de formulaire */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin: 8px 0 16px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}


#detail-pd.input[type="text"], 
#detail-pd.input[type="email"], 
#detail-pd.input[type="tel"], 
#detail-pd.input[type="number"], 
#detail-pd.textarea, 
#detail-pd.select {
    display: block;
}


input.prix-unitaire {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><text x='0' y='10' font-size='12'>€</text></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 2rem;
}





/* Bouton principal */
.btn-ajouter {
    display: block;
    background-color: #ff8d00;
    color: white;
    padding: 12px;
    font-size: 1rem;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    margin: 1rem auto;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.btn-ajouter:hover {
    background-color: #0056b3;
    cursor: pointer;
}


button.bouton {
    padding: 8px;
    border: 0;
    margin: 4px;
}

button.bouton.bouton-annule {
    background-color: red;
    color: white;
    /* border: 0; */
    position: absolute;
    top: 2px;
    right: 2px;
    border-radius: 50%;
    width: 30px;
    height: 30PX;
}

button.bouton.bouton-maj {
    background-color: green;
    color: white;
}
button.bouton.bouton-print {
    background-color: #e2e282;
}
button.bouton.bouton-email {
    background-color: #00c7ff;
}
button.bouton.bouton-supprimer {
    background-color: red;
}

img#logo {
    width: 200px;
}

.form-inline {
    display: flex;
    justify-content: space-between;
    gap: 5%;
    margin: 1rem 0;
}

.form-inline input[type="text"],
.form-inline input[type="number"],
.form-inline input[type="email"],
.form-inline input[type="passsword"],
.form-inline select {
    flex: 1;
    max-width: 45%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.form-inline input[type="submit"],
.form-inline button {
    flex: 1;
    max-width: 45%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-inline input[type="submit"]:hover,
.form-inline button:hover {
    background-color: #218838;
}


input {
    font-weight: bolder;
}

form#dataForm {
    text-align: left;
}

label:has(input[type="radio"]:checked) {
    font-weight: bold;
}

.btn-install {
  background-color: #dc3545;
  color: white;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 1rem auto;
  display: block;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.btn-install:hover {
  background-color: #b52b39;
}

/* Alignement mobile */
@media (max-width: 600px) {
    table {
        font-size: 0.85rem;
    }

    .container {
        padding: 1rem;
    }
}
