* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; color: #333; }
nav { background: #1e3a8a; color: white; padding: 1rem 2rem; display: flex; justify-content: space-between; }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { color: white; text-decoration: none; }
header { text-align: center; padding: 4rem 2rem; background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: white; }
.btn { background: #f59e0b; color: white; padding: 1rem 2rem; text-decoration: none; border-radius: 5px; display: inline-block; }
.produits { max-width: 1200px; margin: 2rem auto; padding: 0 2rem; }
.produit { background: white; border-radius: 10px; padding: 2rem; margin: 1rem 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.prix { font-size: 1.5rem; color: #f59e0b; font-weight: bold; }
form { max-width: 600px; margin: 2rem auto; }
input, textarea, button { width: 100%; padding: 1rem; margin: 0.5rem 0; border: 1px solid #ddd; border-radius: 5px; }

/* Alignement propre des boutons radio + texte */
.form-radio-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0.25rem 0;
}

.form-radio-line input[type="radio"] {
    width: auto;        /* ne pas prendre 100% */
    margin: 0;
}

.form-radio-line label {
    width: auto;        /* laisse le texte prendre juste la place nécessaire */
}
/* Mise en page des pages de texte (CGV, mentions légales, Aide, À-propos) */
.contenu-principal,
.page-texte {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
    line-height: 1.6;
}

.page-texte h1 {
    margin-bottom: 1.5rem;
}

.page-texte h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
/* Mise en page des pages admin */
/* Contenu admin (ne touche pas au nav global) */
.admin-wrapper {
    max-width: none;
    margin: 20px auto;      /* centre le bloc + espace haut/bas */
    padding: 0 10px;        /* ~1 cm de marge gauche/droite */
}

/* Titre admin centré */
.admin-wrapper h1 {
    text-align: center;
    margin: 20px 0;
}


/* Menu admin horizontal centré */
.admin-menu {
    list-style: none;
    padding: 0;
    margin: 20px auto;      /* centre le bloc */
    text-align: center;
    white-space: normal;    /* autorise le retour à la ligne propre */
    max-width: 900px;       /* évite que les boutons soient trop étalés */
}

.admin-menu li {
    display: inline-block;
    margin: 5px 8px;        /* un peu d’espace autour de chaque bouton */
}

.admin-menu a {
    display: inline-block;
    white-space: nowrap;    /* pas de coupure à l’intérieur d’un bouton */
}

.admin-menu a:hover {
    background-color: #1e3a8a;
    color: #fff;
}

/* Formulaire admin */
.form-admin {
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.form-admin label {
    display: block;
    margin-bottom: 10px;
}

.form-admin input[type="text"],
.form-admin input[type="email"],
.form-admin input[type="password"],
.form-admin textarea {
    width: 100%;
    padding: 0.6rem;
    margin-top: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-admin .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-admin .checkbox input[type="checkbox"] {
    width: auto;
}

.form-admin .help {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 10px 0;
}

/* Message de confirmation/erreur */
.message {
    text-align: center;
    margin: 10px 0 20px 0;
    color: #1e3a8a;
    font-weight: bold;
    
}/* Page commande */
.commande {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.commande h1 {
    margin-bottom: 1.5rem;
}
.commande h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
/* Page demande de produit */
.contenu {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
    line-height: 1.6;
}

.contenu h1 {
    margin-bottom: 1.5rem;
}

.contenu h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}




.client-type-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 16px;
  margin-bottom: 18px;
  background: #fff;
}

.client-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

/* Même style que "Vos coordonnées" mais en plus petit */
.client-type-label {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Particulier / Entreprise au même niveau (vert/rose) */
.client-type-options {
  display: flex;
  align-items: center;
  gap: 150px; /* augmente/descends cette valeur pour ajuster l'espacement */
}

.client-type-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 800; /* même graisse que le label */
}

.client-type-option span {
  font-size: 1.2rem;
}

.client-type-option input[type="radio"] {
  transform: scale(1.05);
}
/* Tableau commandes : colonne type client */
.commandes table th.col-type {
    width: 60px;
    text-align: center;
}
.commandes table td.col-type {
    text-align: center;
}

.detail-table {
    border-collapse: collapse;
    margin-bottom: 1em;
}
.detail-table th,
.detail-table td {
    border: 1px solid #ccc;
    padding: 4px 8px;
    vertical-align: top;
}
.detail-table th {
    background: #f5f5f5;
    width: 220px;
    text-align: left;
}
