*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    margin: 2rem;
    background: #f5f5f5;
    color: #222;
    line-height: 1.5;
    background-image: url('../img/pull_all.jpg'); /* Chemin vers ton image */
    background-size: cover;       /* L'image couvre tout l'écran */
    background-position: center;  /* Centrée */
    background-repeat: no-repeat; /* Pas de répétition */
}

/* --- Logo et texte d’intro --- */
header {
    text-align: center;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
}

.logo {
    max-width: 180px;
    height: auto;
}

.intro {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem;
    background: #fff;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.intro p {
    margin: 0.4rem 0;
}

.intro .signature {
    margin-top: 1rem;
    font-weight: 600;
}

/* --- Formulaire --- */
form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.checkbox-label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    align-items: start;
    margin-top: 1rem;
}

.checkbox-text {
    font-weight: 500;
}

.checkbox-label .tarif {
    display: block;
    font-weight: 400;
    color: #555;
    margin-top: 0.2rem;
}

button {
    margin-top: 4px;
    padding: 0.8rem 1.2rem;
    border: none;
    background: #0077ff;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #005ed1;
}


.table-tailles {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.table-tailles th,
.table-tailles td {
    border: 1px solid #ddd;
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.table-tailles th {
    background: #f3f6fa;
    font-weight: 600;
}

.table-tailles td[rowspan] {
    font-weight: 600;
    background: #fafafa;
    vertical-align: middle;
}

.table-tailles input[type="number"] {
    width: 80px;
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: right;
}

.table-tailles tr.coloris-ecru td { 
    background: #fffded;
}
.table-tailles tr.coloris-marine td { 
    background: #000730;
    color: white;
}
.table-tailles tr.coloris-marron td { 
    background: #443200;
    color: white;
}
.table-tailles tr.coloris-bleuardoise td { background: #99aec7; }
.table-tailles tr.coloris-anthracite td {
    background: #494949;
    color: white;
}

.cell-coloris {
    text-align: center;
    vertical-align: middle;
    background: #fafafa;
    font-weight: 600;
}

.coloris-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.coloris-wrapper img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.error-message {
    background: #ffe5e5;
    color: #a00;
    border: 1px solid #f88;
    padding: 0.8rem 1rem;
    margin: 1rem auto;
    max-width: 600px;
    border-radius: 6px;
    text-align: center;
}


@media (max-width: 600px) {
    .table-tailles th, .table-tailles td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    .table-tailles input[type="number"] {
        width: 60px;
    }
}
