/* Theme tokens - generated 2026-09-07T17:09:39+00:00 */
:root {
  --category-header-bg: #bd2585;
  --content-title-color: #bd2585;
  --product-brochure-color: #ffffff;
  --site-bg: #ffffff;
  --page-bg: #ffffff;
  --header-banner-border: #ffffff;
  --nav-item-bg-primary: #bd2585;
  --nav-item-bg-secondary: #bd2585;
  --nav-item-text: #ffffff;
  --order-block-bg: #002340;
  --sidebar-block-header-bg: #bd2585;
  --sidebar-block-border: #bd2585;
  --sidebar-block-body-bg: #ffffff;
  --sidebar-block-text-strong: #bd2585;
  --font-primary: Arial, Helvetica, sans-serif;
  --font-secondary: Verdana, Geneva, Tahoma, sans-serif;
}

/* 00_tokens.css
 * Réservé aux extensions éventuelles de tokens CSS côté fichiers.
 * Les tokens principaux (:root --primary-color, etc.) sont générés par PHP.
 */


@charset "UTF-8";

/* 01_base.css
 * Styles génériques: boutons, champs de formulaire, typographie, couleurs globales.
 * Contenu extrait de l'ancien 01_front.css (section globale).
 */

button,
input[type='submit'],
input[type='button'],
.btn {
  background-color: #f0f0f0;
  color: #776e64;
  border: 1px solid #767676;
  border-radius: 0 !important;
  padding: 1px 6px;
  font-size: 12px;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
  white-space: nowrap;
}

button:hover,
input[type='submit']:hover,
input[type='button']:hover,
.btn:hover {
  background: #fcfcfc;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
select,
textarea {
  color: #776e64;
  border: 1px solid #767676;
  border-radius: 0 !important;
  padding: 3px 8px;
  font-size: 11px;
  font-family: var(--font-primary);
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  margin: 20px 0px 0px 0px;
  padding: 0;
  background-color: var(--site-bg);
  color: #333;
}


/* 02_layout.css
 * Layout global: header, navigation, main container, sidebar, footer, grilles principales.
 * Pour l'instant, ce fichier reste léger: le layout détaillé legacy demeure dans 01_front.css.
 * Il est prêt à accueillir une migration plus fine.
 */

.header {
  background: var(--page-bg);
}

.header__container {
  max-width: 956px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.header__logo img {
  height: 50px;
}

.header__title h1 {
  font-size: 24px;
  color: #003366;
}

/* Wrapper bannière : reproduit le legacy
   `<div style="border:1px solid #ffffff; width:956px; overflow:hidden;">`.
   La bordure est pilotée par --header-banner-border (défaut #ffffff). */
.header__banner {
  max-width: 956px;
  margin: 0 auto;
  border: 1px solid var(--header-banner-border);
  overflow: hidden;
  box-sizing: border-box;
}

.header__banner img {
  width: 100%;
  max-width: 956px;
  margin: 0 auto;
  display: block;
}

.header__nav {
  max-width: 956px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 0px 0;
}

.header__nav ul {
  list-style: none;
  display: flex;
  gap: 0px;
  margin: 0;
  padding: 0;
}

.header__nav li {
  display: inline;
}

.header__nav a {
  font-size: 11px;
  font-weight: bold;
  color: var(--nav-item-text);
  text-decoration: none;
  line-height: 12px;
}

.header__nav a.bgcolor_primary {
  background-color: var(--nav-item-bg-primary);
}

.header__nav a.bgcolor_secondary {
  background-color: var(--nav-item-bg-secondary);
}

.header__nav a.menusize {
  padding: 2px 10px 3px 10px;
  border-radius: 0px 0px 10px 0px;
}

.main__container {
  display: flex;
  gap: 20px;
  max-width: 956px;
  margin: 5px auto;
}

.Mpage {
  width: 77%;
}

.sidebar {
  width: 170px;
  flex-shrink: 0;
  position: relative;
  top: -20px;
}

.sidebar h2 {
  color: #ff9900;
  margin-bottom: 10px;
  font-size: 16px;
}

.sidebar form input,
.sidebar form select,
.sidebar form button {
  width: 100%;
  margin-bottom: 0px;
  border: 1px solid #767676;
}

.sidebar form button {
  background-color: #f0f0f0;
  width: 105px;
  height: 21px;
  float: right;
  margin-right: 8px;
  color: #776e64;
}

/* Déconnexion (sidebar) : HTML valide + pas d’héritage du bouton login (float / taille) */
.sidebar .auth .user__info {
  margin-left: 5px;
}

.sidebar .auth .auth-logout-form {
  display: inline;
}

.sidebar .auth .auth-logout-button {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font-size: 10px;
  font-family: var(--font-secondary);
  text-decoration: underline;
  cursor: pointer;
}

.sidebar button {
  cursor: pointer;
}

.sidebar button:hover {
  background: #fcfcfc;
}

.sidebar label {
  color: #002340;
  font-size: 11px;
  font-weight: bold;
  font-family: var(--font-primary);
  padding: 0px 0px 2px;
  margin-left: 5px;
}

.sidebar input[type='text'],
.sidebar input[type='email'],
.sidebar input[type='password'] {
  color: #776e64;
  width: 152px !important;
  max-width: 152px !important;
  height: 18px;
  font-size: 11px;
  margin: 0px 8px 0px 8px;
  box-sizing: border-box;
}

.search button {
  width: 152px !important;
}

.sidebar p {
  font-size: 12px;
  font-weight: normal;
  color: #776e64;
  margin-left: 5px;
}

.sidebar__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sidebar__logo img {
  max-width: 100%;
  height: auto;
}

.content {
  flex: 1;
  margin-left: 40px;
}

.section-account,
.section-basket-page,
.section-contact,
.section-welcome,
.section-home,
.section-checkout,
.section-confirmation,
.section-mentions {
  width: 100%;
  background: var(--page-bg);
  padding: 15px 0px 0px 0px;
  border-radius: 5px;
}

.section-account .block-account,
.section-basket-page .block-basket-page,
.section-contact .block-contact,
.section-welcome .block-welcome,
.section-home .block-welcome,
.section-home .block-home,
.section-checkout .block-checkout,
.section-confirmation .block-confirmation,
.section-mentions .block-mentions {
  margin-bottom: 35px;
}

.section-account .block-account h2,
.section-basket-page .block-basket-page h2,
.section-contact .block-contact h2,
.section-welcome .block-welcome h2,
.section-home .block-welcome h2,
.section-home .block-home h2,
.section-home .block-catalog-section h2,
.section-checkout .block-checkout h2,
.section-confirmation .block-confirmation h2,
.section-mentions .block-mentions h2 {
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #eff9fe;
  background-color: var(--category-header-bg);
  padding: 6px 10px;
  display: inline;
  border-radius: 10px 10px 0px 0px;
}

.section-home .block-welcome p,
.section-home .block-home p,
.section-welcome .block-welcome p {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: bold;
  color: #776e64;
  padding: 0px;
  margin: 0px 0px 8px 0px;
}

.section-contact .block__line,
.section-account .block__line,
.section-basket-page .block__line,
.section-home .block__line,
.section-home .block-home .block__line,
.section-home .block-catalog-section .block__line,
.section-welcome .block__line,
.section-checkout .block__line,
.section-confirmation .block__line,
.section-home .category__line,
.section-mentions .block__line {
  border: none;
  border-top: 5px solid var(--category-header-bg);
  margin-bottom: 12px;
  margin-top: 0px;
}

.section-mentions .legal-content {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: normal;
  color: #776e64;
  padding-right: 8px;
  line-height: normal;
}

.section-mentions .legal-content p {
  margin: 0 0 12px 0;
  padding: 0;
}

.section-mentions .legal-content h3 {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: bold;
  color: #776e64;
  margin: 20px 0 8px 0;
  padding: 0;
}

.section-mentions .legal-content a {
  color: #0066cc;
  text-decoration: underline;
}

.footer {
  text-align: center;
  color: #776e64;
  font-size: 10px;
  margin-top: 30px;
}

.footer a {
  color: #776e64;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* 03_components.css
 * Composants réutilisables: cartes compte, boutons spécialisés, messages flash, confirmation, etc.
 * Ce fichier regroupe progressivement les composants extraits du legacy.
 */

.account-cards-container {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
}

.Mtitre-barre {
  width: 100%;
}

.Mtitre {
  background-color: #002144;
  color: white;
  padding: 5px 15px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-weight: bold;
  width: fit-content;
  font-family: var(--font-primary);
  font-size: 14px;
}

.Mligne {
  height: 5px;
  background-color: #002144;
}

.page_content {
  font-size: 12px;
  color: #776e64;
}

.page_content h2 {
  font-size: 12px;
  font-weight: bold;
  color: #776e64;
}

.acblock {
  border: 1px solid var(--sidebar-block-border);
  float: left;
  border-bottom-right-radius: 10px;
}

.create {
  width: 25%;
}

.already {
  width: 25%;
}

.forgot {
  width: 34%;
}

.account-card-create,
.account-card-login,
.account-card-forgot {
  height: auto;
  align-self: flex-start;
}

.account-card-create,
.account-card-login {
  width: 170px;
  min-width: 170px;
}

.account-card-forgot {
  width: 278px;
  min-width: 278px;
}

.account-title-orange {
  background: var(--sidebar-block-header-bg);
  color: #fff;
  font-size: 13px;
  padding: 3px;
}

.account-title {
  color: white;
  padding: 3px;
  background-color: var(--sidebar-block-header-bg);
  font-size: 12px;
}

.account-subtitle {
  font-size: 12px;
  color: #776e64;
  margin-bottom: 10px;
}

.account-subtitle:not(:first-child) {
  margin-bottom: 10px;
}

.account-content-padding {
  padding: 12px 10px 16px 10px;
}

.account-content-inner {
  padding: 10px;
}

.account-content-inner .acTexte {
  color: #776e64;
  font-size: 12px;
  padding-bottom: 10px;
}

.account-content-inner .acTexteInput {
  color: #002340;
}

.account-content-inner .form_text_field {
  width: 97%;
  background-color: #fff;
  border: 1px solid #ddd;
}

.form-field-group {
  margin-bottom: 0px;
}

.form-field-group:last-of-type {
  margin-bottom: 0px;
}

.form-field-group-email {
  margin-bottom: 12px;
}

.form-label-bold {
  font-size: 11px;
  font-weight: bold;
}

.form-input-standard {
  width: 152px;
  height: 18px;
  font-size: 12px;
  box-sizing: border-box;
}

.btn-contact {
  width: 68px;
  height: 21px;
  font-size: 12px;
  padding: 1px 6px;
  margin-left: 228px;
}

.btn-submit {
  width: 150px;
  padding: 3px 10px;
  font-size: 14px;
}

.btn-basket-action {
  width: 80px;
  padding: 1px 4px;
  font-size: 9px;
}

.btn-modal-footer {
  width: 100px;
  padding: 1px 6px;
  font-size: 9px;
}

.auth {
  border: 1px solid var(--sidebar-block-border);
  margin-bottom: 10px;
  border-bottom-right-radius: 10px;
}

.auth h2 {
  color: #fff;
  background-color: var(--sidebar-block-header-bg);
  padding: 3px;
  margin-top: 0px;
  font-size: 12px;
  font-weight: 100;
  font-family: var(--font-secondary);
}

.user__info {
  color: #776e64;
  font-size: 12px;
  font-family: var(--font-primary);
}

.favoris_content {
  margin-top: 60px;
}

.choixpanier {
  margin-top: 20px;
  padding-left: 10px;
}

/* Boutons utilisés dans le “compte” legacy (login/register/forgot) */
.btn-register-link {
  width: 76px;
  padding: 1px 6px;
  font-size: 12px;
  height: 21px;
}

.btn-login {
  width: 102px;
  height: 21px;
  font-size: 12px;
  margin-left: 0;
  float: right;
  margin-bottom: 10px;
}

.btn-password {
  width: auto;
  min-width: 0;
  padding: 6px 14px;
  font-size: 12px;
  margin-top: 0px;
  box-sizing: border-box;
  text-align: center;
}

.confirmation-item {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.confirmation-item.is_revealing {
  opacity: 0;
  transform: translateY(20px);
}

.confirmation-item.is_revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Orphan / legacy classes alignées */
.MButton {
  display: inline-block;
  background-color: #f0f0f0;
  color: #776e64;
  border: 1px solid #767676;
  padding: 1px 6px;
  font-size: 12px;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
  white-space: nowrap;
}

.MButton:hover {
  background: #fcfcfc;
}

.cart-item-sku {
  font-size: 12px;
  color: #776e64;
  font-family: var(--font-primary);
  margin-top: 2px;
}

.form-login-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.form_field {
  border: 1px solid #ddd;
  padding: 3px 6px;
  font-size: 12px;
  box-sizing: border-box;
}

.form_field_valid {
  border-color: #28a745;
}

.input-password-email {
  width: 260px;
  height: 21px;
  font-size: 12px;
  padding: 1px 6px;
  box-sizing: border-box;
}
/* Footer structure (classes présentes dans les templates) */
.footer__container {
  max-width: 956px;
  margin: 0 auto;
}

.footer__content {
  text-align: center;
}

/* Empty states home/cart */
.no-products,
.no-categories {
  font-size: 12px;
  color: #776e64;
  font-family: var(--font-primary);
  margin: 10px 0;
}

/* Account links/buttons (templates) */
.account-button {
  display: inline-block;
  text-decoration: none;
  background-color: #f0f0f0;
  color: #776e64;
  border: 1px solid #767676;
  padding: 1px 6px;
  font-size: 12px;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
  white-space: nowrap;
}

.account-button:hover {
  background: #fcfcfc;
  text-decoration: none;
  color: #776e64;
}

/* Cart actions (templates/front/cart/index.tpl) */
.cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-end;
}

.small_thick {
  color: var(--sidebar-block-text-strong);
  font-size: 11px;
  font-weight: bold;
  font-family: var(--font-primary);
  padding: 0px 0px 2px;
}

.small_link {
  font-size: 10px;
  text-decoration: none;
  color: #776e64;
  font-weight: normal;
  font-family: var(--font-secondary);
}

.small_link:hover {
  text-decoration: underline;
}

/* —— Modale messages front (FBSFrontDialog), style proche des cartes compte / orange marque —— */
.fbs-front-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 33, 68, 0.5);
  box-sizing: border-box;
}

.fbs-front-dialog-overlay.u_hidden {
  display: none !important;
}

.fbs-front-dialog {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid #fba31c;
  overflow: hidden;
  font-family: var(--font-primary);
}

.fbs-front-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #002144;
  color: #fff;
}

.fbs-front-dialog--success .fbs-front-dialog__header {
  background: #1a6b3c;
}

.fbs-front-dialog--error .fbs-front-dialog__header {
  background: #8b1a1a;
}

.fbs-front-dialog__title {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.fbs-front-dialog__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.9;
}

.fbs-front-dialog__close:hover {
  opacity: 1;
}

.fbs-front-dialog__body {
  padding: 16px 18px;
  font-size: 13px;
  color: #776e64;
  line-height: 1.45;
  white-space: pre-wrap;
}

.fbs-front-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 14px 14px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.fbs-front-dialog__btn {
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #767676;
  font-family: var(--font-primary);
}

.fbs-front-dialog__btn--primary {
  background: #fba31c;
  border-color: #e89410;
  color: #002144;
  font-weight: bold;
}

.fbs-front-dialog__btn--primary:hover {
  background: #ffc04d;
}

.fbs-front-dialog__btn--secondary {
  background: #f0f0f0;
  color: #776e64;
}

.fbs-front-dialog__btn--secondary:hover {
  background: #e8e8e8;
}


/* 04_forms.css
 * Styles de formulaires: registres, changement de mot de passe, reset, contact.
 * Inclut les aides visuelles (password_help) et l'intégration avec password-validation.js.
 */

.password-help {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

.form_description {
  color: #776e64;
  max-width: 600px;
  font-size: 12px;
  padding-bottom: 10px;
  margin-top: 40px;
}

.form_description::after {
  content: "";
  display: table;
  clear: both;
}

.form_description.form_description label {
  display: block;
  margin-bottom: 5px;
  font-weight: normal;
}

.form_description input[type='text'],
.form_description input[type='email'],
.form_description input[type='password'],
.form_description input[type='tel'],
.form_description textarea,
.form_description select {
  width: 100%;
  border: 1px solid #aaa;
  border-radius: 0 !important;
  box-sizing: border-box;
  background-color: #fff;
  border: 1px solid #ddd;
}

.form_description textarea {
  resize: vertical;
  height: 120px;
}

.MformLeft,
.form_left {
  float: left;
  width: 180px;
}

.MformRight,
.form_right {
  float: left;
  width: 50%;
}

.block-account--register .MformLeft,
.block-account--register .form_left {
  width: 320px;
}

.block-account--register .MformRight,
.block-account--register .form_right {
  width: 40%;
}

/* Validation de formulaires génériques (bootstrap-like) */
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  font-size: 13px;
  color: #dc3545;
  margin-top: 5px;
}

/* Inscription : erreurs visibles, compte créé (texte noir demandé) */
.register-alert {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.register-alert--error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

.register-alert--success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

.flash-account-created {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #000;
  background: #f0f0f0;
  border: 1px solid #ccc;
}

/* Règles mot de passe inscription (rouge / vert à la saisie) */
.password-rules {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #555;
}

.password-rules--optional:not(.password-rules--active) {
  display: none;
}

.password-rules__title {
  font-weight: bold;
  color: #000;
  margin-bottom: 6px;
}

.password-rules__list {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc;
}

.password-rules__item {
  color: #666;
}

.password-rules--active .password-rules__item.password-rules__item--pending {
  color: #c00;
}

.password-rules--active .password-rules__item.password-rules__item--ok {
  color: #1a7f37;
}


/* 05_pages.css
 * Styles de pages spécifiques (confirmation, accueil, profil, checkout, etc.).
 * Contient progressivement les styles “pages” migrés du legacy.
 */

/* =========================
   Checkout (profils livraison)
   Migré depuis 02_profiles.css
   ========================= */
.checkout-form {
  margin-top: 50px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.checkout-section {
  background: #fff;
  padding: 0;
  margin-bottom: 0;
}

.checkout-section h3 {
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #eff9fe;
  background-color: #002340;
  padding: 6px 10px;
  display: inline;
  border-radius: 10px 10px 0px 0px;
  margin-bottom: 0;
}

.checkout-help {
  font-size: 12px;
  color: #776e64;
  font-weight: normal;
  line-height: 1.5;
  font-style: normal;
  margin: 15px 0 0 0;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.form-group--textarea {
  align-items: flex-start;
}

.form-group label {
  width: 210px;
  min-width: 180px;
  font-size: 12px;
  color: #776e64;
  margin-right: 18px;
  text-align: left;
  font-weight: bold;
  font-family: var(--font-primary);
}

.form-group input,
.form-group textarea {
  flex: 1;
  padding: 1px 2px;
  font-size: 12px;
  border: 1px solid #222;
  border-radius: 0;
  background: #fff;
  color: #776e64;
  font-family: var(--font-primary);
}

.form-group textarea {
  padding: 4px 6px;
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #002340;
  box-shadow: 0 0 0 1px rgba(0, 50, 64, 0.2);
}

.form-row {
  display: flex;
  gap: 18px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 18px;
}

.checkout-actions {
  width: 150px;
  height: 25px;
  font-size: 12px;
  padding: 1px 6px;
  margin-left: 228px;
  margin-top: 20px;
}

.checkout-actions button {
  width: 100%;
  height: 100%;
  font-size: 12px;
  background: #eee;
  color: #222;
  border: 1px solid #888;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-primary);
}

.checkout-actions button:hover {
  background: #ccc;
}

.checkout-actions button:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .checkout-form {
    max-width: 100%;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-group label {
    width: 100%;
    min-width: 0;
    margin-bottom: 4px;
    margin-right: 0;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .checkout-actions {
    margin-left: 0;
    width: 100%;
  }
}

/* Profil 1 (points de livraison) */
.checkout-legacy__form {
  max-width: 600px;
  margin: 0 auto;
}

.checkout-legacy__row {
  margin-bottom: 20px;
}

.checkout-legacy__row label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.checkout-legacy__row input,
.checkout-legacy__row textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.checkout-legacy__row--textarea textarea {
  resize: vertical;
  min-height: 100px;
}

.checkout-legacy__selected-point {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.position-relative {
  position: relative;
}

#searchResults {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
}

/* Harmonisation checkout legacy (ex-doublon) */
.checkout-legacy__row input[type='text'],
.checkout-legacy__row textarea {
  color: #776e64;
  font-size: 12px;
}

.checkout-legacy__row label {
  color: #776e64;
  font-size: 12px;
}

.delivery-point-option {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.delivery-point-option:hover {
  background-color: #f8f9fa;
}

.delivery-point-option:last-child {
  border-bottom: none;
}

/* Checkout legacy / états vides / variantes page */
.checkout {
  width: 100%;
  background: #fff;
  padding: 15px 0px 0px 0px;
  border-radius: 5px;
}

.checkout .card {
  width: 66.67%;
  max-width: 66.67%;
  margin: 0 auto;
}

.checkout .position-relative {
  position: relative;
}

#searchResults {
  font-size: 11px;
  border: 2px solid #007bff;
  border-radius: 4px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#searchResults .delivery-point-option {
  padding: 8px 12px;
}

.checkout .block-welcome {
  margin-bottom: 35px;
}

.checkout .block-welcome h2 {
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #eff9fe;
  background-color: var(--category-header-bg);
  padding: 6px 10px;
  display: inline;
  border-radius: 10px 10px 0px 0px;
}

.checkout .block-welcome p {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: bold;
  color: #776e64;
  padding: 0px;
  margin: 0px 0px 8px 0px;
}

.checkout .block__line {
  border: none;
  border-top: 5px solid var(--category-header-bg);
  margin-bottom: 20px;
  margin-top: 0px;
}

.checkout label,
.checkout .form-label {
  color: #002340;
  font-size: 11px;
  font-weight: bold;
  font-family: var(--font-primary);
  padding: 0px 0px 2px;
  margin-left: 5px;
}

.checkout input[type='text'],
.checkout input[type='email'],
.checkout input[type='password'],
.checkout input[type='tel'],
.checkout textarea {
  color: #776e64;
  width: 100%;
  height: 18px;
  font-size: 11px;
  margin: 0px 8px 0px 8px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  background: #fff;
}

.checkout textarea {
  height: auto;
  min-height: 60px;
  resize: vertical;
}

.checkout select {
  color: #776e64;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 12px;
  width: 100%;
  margin: 0px 8px 0px 8px;
  box-sizing: border-box;
}

.checkout button {
  background-color: #f0f0f0;
  color: #776e64;
  cursor: pointer;
  border: 1px solid #ddd;
  padding: 5px 10px;
  font-size: 11px;
}

.checkout button:hover {
  background: #fcfcfc;
}

.checkout .btn-primary {
  background-color: #fba31c;
  color: #fff;
  border: 1px solid #fba31c;
}

.checkout .btn-primary:hover {
  background-color: #e5941a;
}

.checkout .checkout-btn {
  background-color: #f0f0f0;
  color: #776e64;
  cursor: pointer;
  border: 1px solid #ddd;
  padding: 5px 10px;
  font-size: 11px;
  text-decoration: none;
  display: inline-block;
  border-radius: 3px;
}

.checkout .checkout-btn:hover {
  background: #fcfcfc;
  text-decoration: none;
  color: #776e64;
}

.checkout .checkout-btn-primary {
  background-color: #fba31c;
  color: #fff;
  border: 1px solid #fba31c;
}

.checkout .checkout-btn-primary:hover {
  background-color: #e5941a;
  color: #fff;
}

.account {
  margin-top: 50px;
}

.account .block-welcome {
  margin-bottom: 35px;
}

.account .block-welcome h2 {
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #eff9fe;
  background-color: var(--category-header-bg);
  padding: 6px 10px;
  display: inline;
  border-radius: 10px 10px 0px 0px;
}

.account .block-welcome p {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: bold;
  color: #776e64;
  padding: 0px;
  margin: 0px 0px 8px 0px;
}

.account .block__line {
  border: none;
  border-top: 5px solid var(--category-header-bg);
  margin-bottom: 20px;
  margin-top: 0px;
}

.account-content {
  width: 100%;
  background: #fff;
  padding: 0;
  border-radius: 5px;
}

.section-home .panier,
.section-home .contact,
.section-home .profil,
.section-home .register,
.section-home .forgot-password,
.section-home .reset-password,
.section-home .change-password,
.section-home .checkout,
.section-home .confirmation {
  margin-bottom: 30px;
}

.section-home .panier h2,
.section-home .contact h2,
.section-home .profil h2,
.section-home .register h2,
.section-home .forgot-password h2,
.section-home .reset-password h2,
.section-home .change-password h2,
.section-home .checkout h2,
.section-home .confirmation h2 {
  font-size: 18px;
  font-weight: bold;
  color: #002340;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-home .panier p,
.section-home .contact p,
.section-home .profil p,
.section-home .register p,
.section-home .forgot-password p,
.section-home .reset-password p,
.section-home .change-password p,
.section-home .checkout p,
.section-home .confirmation p {
  font-size: 14px;
  color: #776e64;
  margin-bottom: 20px;
  line-height: 1.4;
}

.section-home .panier .cart-container,
.section-home .contact .contact-legacy,
.section-home .profil .account,
.section-home .register .page_content,
.section-home .forgot-password .page_content,
.section-home .reset-password .page_content,
.section-home .change-password .page_content,
.section-home .checkout .card,
.section-home .confirmation .card {
  margin-top: 20px;
}

.btn-checkout {
  text-align: center;
  margin-top: 30px;
}

.btn-checkout button {
  background-color: #28a745;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-checkout button:hover {
  background-color: #218838;
}

.btn-checkout button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* =========================
   Basket (page panier front)
   Migré depuis 01_front.css
   ========================= */
.basket-help,
.confirmation-help {
  margin: 15px 0 0 0;
  font-size: 12px;
  color: #776e64;
  font-weight: normal;
  line-height: 1.5;
  font-style: normal;
}

.basket-content {
  margin-bottom: 30px;
}

.basket-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 30px;
}

.basket-item {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  background: transparent;
}

.basket-item:last-child {
  border-bottom: none;
}

.basket-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.basket-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.basket-item-quantity {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.basket-item-pcb {
  font-size: 11px;
  color: #776e64;
  font-weight: normal;
  font-family: var(--font-primary);
  white-space: nowrap;
}

.basket-item-quantity .quantity-select {
  width: auto;
  max-width: none;
  height: 18px;
  padding: 0px 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: white;
  font-size: 11px;
  color: #776e64;
  font-family: var(--font-primary);
  cursor: pointer;
  line-height: 1;
  box-sizing: border-box;
}

.basket-item-quantity .quantity-select:focus {
  outline: none;
  border-color: #002340;
  box-shadow: 0 0 0 1px rgba(0, 50, 64, 0.2);
}

.basket-item-details {
  flex: 1;
}

.basket-item-name {
  font-weight: normal;
  color: #333;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-family: var(--font-primary);
}

.basket-item-actions {
  display: flex;
  align-items: center;
}

.basket-item-actions .remove-item-btn {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.basket-item-actions .remove-item-btn:hover {
  background: #5a6268;
}

.basket-footer {
  padding-top: 20px;
  margin-top: 20px;
}

.basket-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.basket-actions .btn-basket-action {
  margin-top: 5px;
}

.basket-actions .button__generic {
  color: #776e64;
  font-size: 12px;
  background-color: #f0f0f0;
  font-family: var(--font-primary);
  padding: 1px 6px;
  border: 1px solid #767676;
}

.basket-actions .button__generic:hover {
  background: #ccc;
}

.basket-empty {
  text-align: left;
  padding: 0px 0px 0px 10px;
}

.basket-empty p {
  font-size: 12px;
  color: #776e64;
  margin-bottom: 20px;
  font-family: var(--font-primary);
}

@media (max-width: 768px) {
  .basket-item-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .basket-item-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }
  .basket-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* =========================
   Confirmation (page)
   Migré depuis 01_front.css
   ========================= */
.confirmation-content {
  margin-top: 50px;
  max-width: 600px;
}

.confirmation-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 30px;
}

.confirmation-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dee2e6;
}

.confirmation-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.confirmation-item h3 {
  font-size: 14px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #002340;
  margin-bottom: 8px;
}

.confirmation-item p {
  font-size: 12px;
  color: #776e64;
  font-family: var(--font-primary);
  margin: 0;
  line-height: 1.4;
}

.order-number {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #007bff !important;
  font-family: 'Courier New', monospace !important;
}

.delivery-info {
  font-size: 13px !important;
  color: #776e64 !important;
  line-height: 1.5 !important;
}

.delivery-address {
  display: block;
  text-align: center;
  font-weight: 700 !important;
}

.additional-info {
  font-style: italic;
  background: #fff;
  padding: 10px;
  border-radius: 3px;
  border-left: 3px solid #007bff;
}

.order-date {
  font-weight: bold;
  color: #28a745 !important;
}

.confirmation-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.confirmation-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 12px;
  font-family: var(--font-primary);
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid #888;
  background: #eee;
  color: #222;
  transition: background 0.2s;
}

.confirmation-btn:hover {
  background: #ccc;
  color: #222;
  text-decoration: none;
}

.confirmation-btn-primary {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.confirmation-btn-primary:hover {
  background: #0056b3;
  color: white;
}

.confirmation-error {
  margin-top: 50px;
}

.confirmation-error .text-center {
  padding: 40px 20px;
}

.confirmation-error h3 {
  font-size: 18px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #6c757d;
}

.confirmation-error .lead {
  font-size: 14px;
  color: #6c757d;
  font-family: var(--font-primary);
}

/* =========================
   Contact (legacy)
   Migré depuis 01_front.css
   ========================= */
.contact-legacy__help {
  font-size: 12px !important;
  color: #776e64 !important;
}

.contact-legacy__form {
  margin-top: 50px;
  max-width: 500px;
}

.contact-legacy__row {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.contact-legacy__row label {
  width: 210px;
  min-width: 180px;
  font-size: 12px !important;
  color: #776e64 !important;
  margin-right: 18px;
  text-align: left;
}

.contact-legacy__row input[type='text'],
.contact-legacy__row input[type='email'],
.contact-legacy__row textarea {
  flex: 1;
  padding: 4px 6px;
  border: 1px solid #222;
  border-radius: 0;
  background: #fff;
  color: #776e64 !important;
  font-size: 12px !important;
  font-family: var(--font-primary);
}

.contact-legacy__row textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 700px) {
  .contact-legacy__form {
    max-width: 100%;
  }
  .contact-legacy__row {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-legacy__row label {
    width: 100%;
    min-width: 0;
    margin-bottom: 4px;
    margin-right: 0;
  }
}

/* Messages flash */
.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 12px 15px;
  margin: 15px 0;
  font-size: 12px;
  font-family: var(--font-primary);
  line-height: 1.4;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  padding: 12px 15px;
  margin: 15px 0;
  font-size: 12px;
  font-family: var(--font-primary);
  line-height: 1.4;
}

.info-message {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  border-radius: 4px;
  padding: 12px 15px;
  margin: 15px 0;
  font-size: 12px;
  font-family: var(--font-primary);
  line-height: 1.4;
}

.warning-message {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 12px 15px;
  margin: 15px 0;
  font-size: 12px;
  font-family: var(--font-primary);
  line-height: 1.4;
}

.lead {
  font-size: 14px;
}

.content-desc-bold {
  font-size: 12px;
  font-weight: bold;
  color: #776e64;
  padding: 0px;
  margin: 0px;
}

.content-desc {
  font-size: 12px;
  font-weight: normal;
  color: #776e64;
  padding: 0px;
  margin: 0px;
}

/* Modale point de livraison (checkout profil 1) : shell panier B2B + champs / boutons checkout */
.checkout-delivery-modal.b2b-modal {
  z-index: 10000;
}

.b2b-modal-content--checkout-delivery {
  max-width: 600px;
  width: 92%;
}

.checkout-delivery-modal__body {
  max-height: 55vh;
  overflow-y: auto;
}

.checkout-delivery-modal__footer.b2b-modal-footer {
  flex-wrap: wrap;
}

.checkout-delivery-modal__primary {
  background-color: #28a745;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: var(--font-primary);
}

.checkout-delivery-modal__primary:hover {
  background-color: #218838;
}

.checkout-delivery-modal__primary:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.checkout-delivery-modal__errors {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #dc3545;
  background: #f8d7da;
  color: #721c24;
  font-size: 12px;
  font-family: var(--font-primary);
}

.checkout-delivery-actions-inline {
  margin-top: -8px;
}

.checkout-delivery-selected-actions {
  margin-top: 12px;
}

.checkout-delivery-modal__row-split {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkout-delivery-modal__field {
  flex: 1 1 200px;
  min-width: 140px;
}

.checkout-delivery-modal__field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #776e64;
  font-size: 12px;
}

.checkout-delivery-modal__field input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  color: #776e64;
}

@media (max-width: 600px) {
  .b2b-modal-content--checkout-delivery {
    width: 95%;
    max-height: 90vh;
  }

  .checkout-delivery-modal__body {
    max-height: 65vh;
  }
}

/* =========================
   Historique des commandes (page compte)
   ========================= */
.block-account--history {
  clear: both;
  margin-top: 10px;
}

.order-history {
  font-family: var(--font-primary);
  font-size: 12px;
  color: #000;
  margin-top: 4px;
}

.order-history__head,
.order-history__grid {
  display: grid;
  column-gap: 10px;
  align-items: start;
}

.order-history__head {
  grid-template-columns: 7.2em 7.2em minmax(0, 1fr) 6.2em 7em;
  font-weight: bold;
  color: #000;
  margin: 4px 0 18px;
}

.order-history__grid {
  grid-template-columns: 7.2em 7.2em minmax(0, 1fr);
}

.order-history__order {
  margin-bottom: 28px;
}

.order-history__ref,
.order-history__date {
  line-height: 1.45;
}

.order-history__lines {
  min-width: 0;
}

.order-history__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.2em 7em;
  column-gap: 10px;
  align-items: start;
  line-height: 1.45;
  margin-bottom: 1px;
}

.order-history__title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-history__qty,
.order-history__status {
  white-space: nowrap;
}

.order-history__actions {
  text-align: right;
  margin-top: 8px;
}

.order-history__actions .account-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .order-history__head {
    display: none;
  }

  .order-history__grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 4px;
  }

  .order-history__lines {
    grid-column: 1 / -1;
  }

  .order-history__line {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 8px;
  }
}

/* 06_utilities.css
 * Classes utilitaires transverses (espacement, masquage, texte…).
 */

.u_hidden {
  display: none !important;
}

.is_hidden {
  display: none !important;
}

/* Absorption classes Bootstrap-like de mise en page/typo */
.d-flex {
  display: flex;
}

.justify-content-center {
  justify-content: center;
}

.gap-3 {
  gap: 1rem;
}

.text-muted {
  color: #6c757d;
}

.text-danger {
  color: #dc3545;
}

.text-warning {
  color: #ffc107;
}

.text-center {
  text-align: center;
}

.small {
  font-size: 0.875em;
}

.fw-bold {
  font-weight: bold;
}

.fs-1 {
  font-size: 2.5rem;
}

.p-3 {
  padding: 1rem;
}

.py-4 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.card-body {
  padding: 1rem;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Icônes "bi" neutres (autonomes) */
.bi {
  display: inline-block;
  font-style: normal;
  line-height: 1;
  min-width: 1em;
  text-align: center;
  vertical-align: middle;
}

.bi::before {
  display: inline-block;
}

.bi-cart::before {
  content: '🛒';
}

.bi-cart-x::before {
  content: '🛒×';
}

.bi-house::before {
  content: '⌂';
}

.bi-list-ul::before {
  content: '☰';
}

.bi-hourglass-split::before {
  content: '⌛';
}

.bi-exclamation-triangle::before {
  content: '⚠';
}

.u_mt_5 {
  margin-top: 5px;
}

.u_mb_10 {
  margin-bottom: 10px;
}

.bottom20 {
  margin-bottom: 10px;
}

.fontSize11 {
  font-size: 11px;
}

.alignLeft {
  text-align: left;
}

.alignRight {
  text-align: right;
}

.fBold {
  font-weight: bold;
}

.Mclear {
  clear: both;
}

.alert_sidebar {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: none;
}

.alert.alert-danger.alert_sidebar {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert.alert-success.alert_sidebar {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* Password validation (JS): styles pilotés par classes, sans cssText */
.password_strength_container {
  margin-top: 8px;
  font-size: 12px;
  display: block;
  width: 100%;
}

.password_strength_bar {
  width: 100%;
  height: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.password_strength_fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  background-color: #6c757d;
}

.password_strength_text {
  color: #6c757d;
  font-size: 11px;
  margin-bottom: 3px;
}

.password_criteria_list {
  margin: 0;
  padding-left: 20px;
  font-size: 11px;
  color: #6c757d;
  list-style: none;
}

.password_criteria_item {
  margin-bottom: 2px;
}

.criteria-icon {
  color: #6c757d;
}

.criteria_icon_ok {
  color: #28a745;
}

.criteria_icon_no {
  color: #6c757d;
}

.password_strength_faible .password_strength_fill {
  background-color: #dc3545;
}

.password_strength_moyen .password_strength_fill {
  background-color: #ffc107;
}

.password_strength_bon .password_strength_fill {
  background-color: #17a2b8;
}

.password_strength_fort .password_strength_fill {
  background-color: #28a745;
}

.password_strength_faible .password_strength_text {
  color: #dc3545;
}

.password_strength_moyen .password_strength_text {
  color: #ffc107;
}

.password_strength_bon .password_strength_text {
  color: #17a2b8;
}

.password_strength_fort .password_strength_text {
  color: #28a745;
}


@charset "UTF-8";

/* Blocs de base, wrappers compte et styles structurels migrés vers 01_base.css, 02_layout.css, 03_components.css et 06_utilities.css. */
/* Order */

.logout__link {
  font-size: 10px;
  font-family: var(--font-secondary);
}

.logout__link a {
  color: #776e64;
  text-decoration: none;
}

.logout__link a:hover {
  text-decoration: underline;
}

.search {
  border: 1px solid var(--sidebar-block-border);
  margin-bottom: 10px;
  border-bottom-right-radius: 10px;
}
.search h2 {
  color: #fff;
  background-color: var(--sidebar-block-header-bg);
  padding: 3px;
  margin-top: 0px;
  font-size: 12px;
  font-weight: 100;
  font-family: var(--font-secondary);
}

.filters {
  border: 1px solid var(--sidebar-block-border);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom-right-radius: 10px;
}
.filters h2 {
  color: #fff;
  background-color: var(--sidebar-block-header-bg);
  padding: 3px;
  margin-top: 0px;
  font-size: 12px;
  font-weight: 100;
  font-family: var(--font-secondary);
}
.filters label {
  margin-left: 5px;
}
.filters select {
  margin-left: 5px;
  width: 152px;
  color: #776e64;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 12px;
}

.products__category {
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #eff9fe;
  background-color: #002340;
  padding: 6px 10px;
  display: inline;
  border-radius: 10px 10px 0px 0px;
}
.products__grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  /* 2 produits par ligne */
  gap: 20px;
  /* Espacement entre les produits */
  margin-bottom: 30px;
  grid-auto-flow: row;
  /* Force le placement en ligne pour tous les éléments enfants */
  width: 100%;
  box-sizing: border-box;
}
.section-home .product {
  display: flex;
  gap: 15px;
  padding: 10px;
  border-radius: 5px;
  align-items: flex-start;
}
.section-home .product__image {
  width: auto;
  height: auto;
  max-width: 100%;
  border: 1px solid #00aece;
  flex-shrink: 0;
  object-fit: contain;
}
.section-home .product__details {
  width: 300px;
  flex-shrink: 0;
}
.section-home .product__details .product__title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 0px;
  margin-top: 0px;
  color: #002340;
  font-family: var(--font-primary);
}
.section-home .product__details .product__publisher {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 0px;
  margin-top: 0px;
  color: #002340;
  font-family: var(--font-primary);
}
.section-home .product__details .product__notlogin {
  font-size: 12px;
  margin-bottom: 0px;
  margin-top: 50px;
  color: #808080;
  font-family: var(--font-primary);
}
.section-home .product__details .product__link {
  font-size: 14px;
  color: #fba31c;
  text-decoration: none;
}
.section-home .product__details .product__link:hover {
  text-decoration: underline;
}

.section-home .product__details .product__order,
.section-home .product__details .product__stock {
  margin-top: 40px;
  font-size: 11px;
  font-family: var(--font-primary);
  color: #776e64;
}

.section-home .product__details .product__quantity {
  width: 40px;
  height: 16px;
  font-size: 11px;
  color: #776e64;
  font-family: var(--font-primary);
  text-align: left !important;
  padding: 0 4px;
  text-align-last: left;
  box-sizing: border-box;
}
/* Pagination */
.pagination {
  display: flex;
  justify-content: flex-end;
  margin: 10px auto;
  max-width: 956px;
  color: #000;
  font-size: 11px;
}
.pagination ul {
  list-style: none;
  display: flex;
  gap: 1px;
  margin: 0;
  padding: 0;
}
.pagination li {
  display: inline;
}
.pagination a {
  text-decoration: none;
  color: #000;
  font-size: 11px;
}

/* Footer et liens secondaires migrés vers 02_layout.css et 03_components.css. */

/* FORCER 2 colonnes sur desktop - avant le responsive */
@media (min-width: 769px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    display: grid !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .main__container {
    flex-direction: column;
    gap: 10px;
  }
  .products__grid {
    grid-template-columns: 1fr !important;
    /* 1 produit par ligne sur mobile */
    margin-bottom: 30px;
  }
  .header__nav {
    justify-content: center;
  }
}

/* Checkout, account et variantes section-home migrés vers 05_pages.css. */

/*# sourceMappingURL=styles.css.map */

/* ========================================
   ========================================
   ========================================
   STYLES POUR LE PANIER B2B PERSONNALISÉ
   ========================================
   ========================================
   ======================================== */

/* Modal B2B */
.b2b-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: inherit;
}

.b2b-modal-content {
  background: white;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: b2b-modal-fade-in 0.3s ease-out;
}

@keyframes b2b-modal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Header de la modal */
.section-basket-modal,
.b2b-modal-header {
  padding: 15px 20px 20px;
  border-bottom: 0px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #fff;
}
.section-basket-modal .block-basket-modal,
.b2b-modal-header .block-welcome {
  flex: 1 1 100%;
  margin-bottom: 0;
}
.section-basket-modal .block-basket-modal h2,
.b2b-modal-header .block-welcome h2 {
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #eff9fe;
  background-color: var(--category-header-bg);
  padding: 6px 10px;
  display: inline;
  border-radius: 10px 10px 0px 0px;
  margin: 0;
}
.section-basket-modal .block__line,
.b2b-modal-header .block__line {
  border-top: 5px solid var(--category-header-bg);
  margin-top: 0px;
  margin-bottom: 10px;
}

.b2b-cart-help {
  margin: 10px 0 0 0;
  font-size: 11px;
  color: #776e64;
  font-weight: normal;
  line-height: 1.4;
  font-style: italic;
}

.b2b-modal-close {
  font-size: 24px;
  font-weight: bold;
  color: #776e64;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
  transition: color 0.2s;
  margin-left: 15px;
}

.b2b-modal-close:hover {
  color: #002340;
}

/* Corps de la modal */
.b2b-modal-body {
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
}

/* Items du panier */
.b2b-cart-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #002340;
  font-weight: normal;
}

.b2b-cart-item:last-child {
  border-bottom: none;
}

/* Cartes d'articles du panier (modal moderne) */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px;
  background: #fafafa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.cart-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cart-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.cart-item-quantity {
  min-width: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-item-pcb {
  font-size: 11px;
  color: #776e64;
  font-weight: normal;
  font-family: var(--font-primary);
  white-space: nowrap;
}

.quantity-select {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: white;
  font-size: 11px;
  color: #776e64;
  font-family: var(--font-primary);
  cursor: pointer;
  height: 24px;
  line-height: 1;
}

.quantity-select:focus {
  outline: none;
  border-color: #002340;
  box-shadow: 0 0 0 1px rgba(0, 50, 64, 0.2);
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: normal;
  color: #333;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-family: var(--font-primary);
}

.cart-item-actions {
  display: flex;
  align-items: center;
}

.remove-item-btn {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.2s ease;
}

.remove-item-btn:hover {
  background: #545b62;
}

/* Panier vide */
.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.cart-empty p {
  margin: 10px 0;
  font-size: 12px;
  font-family: var(--font-primary);
}

/* Panier vide */
.b2b-empty-cart {
  text-align: center;
  color: #776e64;
  font-style: italic;
  padding: 20px 0;
  font-size: 12px;
  font-family: var(--font-primary);
}

/* Footer de la modal */
.b2b-modal-footer {
  padding: 15px 20px;
  border-top: 0px solid #ddd;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  background: #fff;
}

/* Boutons - Utilisation des styles existants */
.b2b-modal-footer .btn-modal-footer {
  margin-top: 5px;
}

.b2b-modal-footer .button__generic {
  color: #776e64;
  font-size: 14px;
  background-color: #f0f0f0;
  font-family: var(--font-primary);
  padding: 1px 6px;
  border: 1px solid #767676;
}

.b2b-modal-footer .button__generic:disabled,
.basket-actions .button__generic:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-bag-reminder {
  margin: 0;
  padding: 8px 20px 16px;
  text-align: center;
  color: #c00;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-primary);
  line-height: 1.35;
}

.section-basket-page .cart-bag-reminder {
  padding: 12px 0 0;
}

/* Suppression - hover géré par button générique */

/* Bouton panier global */
.b2b-cart-button {
  display: inline-block;
  padding: 2px 10px 3px 10px;
  background-color: #fba31c;
  color: #fff;
  text-decoration: none;
  border-radius: 0px 0px 10px 0px;
  font-size: 11px;
  font-weight: bold;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.b2b-cart-button:hover {
  background-color: #e59400;
  color: white;
  text-decoration: none;
}

/* Header du panier */
.b2b-cart-header {
  text-align: right;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

/* Page Panier B2B */
.b2b-basket-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.b2b-basket-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #ddd;
}

.b2b-basket-header .block-welcome {
  margin-bottom: 15px;
}

.b2b-basket-header .block-welcome h2 {
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #eff9fe;
  background-color: var(--category-header-bg);
  padding: 6px 10px;
  display: inline;
  border-radius: 10px 10px 0px 0px;
  margin: 0;
}

.b2b-basket-header .block__line {
  border: none;
  border-top: 5px solid var(--category-header-bg);
  margin-bottom: 20px;
  margin-top: 0px;
}

.b2b-basket-header p {
  color: #776e64;
  font-size: 12px;
  margin: 10px 0 0 0;
}

.b2b-basket-items {
  margin-bottom: 30px;
}

.b2b-basket-item {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.b2b-item-info {
  flex: 1;
}

.b2b-item-name {
  margin: 0 0 5px 0;
  font-size: 12px;
  font-weight: normal;
  color: #002340;
  font-family: var(--font-primary);
}

.b2b-item-manufacturer {
  margin: 0 0 5px 0;
  color: #776e64;
  font-size: 12px;
  font-weight: normal;
  font-family: var(--font-primary);
}

.b2b-item-pcb {
  margin: 0;
  color: #fba31c;
  font-size: 12px;
  font-weight: normal;
  font-family: var(--font-primary);
}

.b2b-item-quantity {
  text-align: center;
  margin: 0 20px;
  min-width: 80px;
}

.b2b-quantity-value {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #002340;
  font-family: var(--font-primary);
}

.b2b-quantity-label {
  display: block;
  font-size: 9px;
  color: #776e64;
  text-transform: uppercase;
  font-family: var(--font-primary);
}

.b2b-item-total {
  text-align: center;
  min-width: 100px;
}

.b2b-total-value {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #fba31c;
  font-family: var(--font-primary);
}

.b2b-total-label {
  display: block;
  font-size: 9px;
  color: #776e64;
  font-family: var(--font-primary);
}

.b2b-basket-summary {
  background: #fff;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 30px;
  border: 1px solid #ddd;
}

.b2b-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.b2b-summary-item:last-child {
  border-bottom: none;
}

.b2b-summary-label {
  font-weight: bold;
  color: #002340;
  font-size: 12px;
  font-family: var(--font-primary);
}

.b2b-summary-value {
  font-weight: bold;
  color: #fba31c;
  font-size: 12px;
  font-family: var(--font-primary);
}

.b2b-basket-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.b2b-basket-actions .btn-small {
  margin-top: 5px;
  text-decoration: none;
  display: inline-block;
}

.b2b-empty-basket {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.b2b-empty-basket p {
  margin-bottom: 20px;
  color: #776e64;
  font-size: 12px;
  font-family: var(--font-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .b2b-modal-content {
    width: 95%;
    margin: 10px;
  }

  .b2b-modal-header,
  .b2b-modal-body,
  .b2b-modal-footer {
    padding: 15px 20px;
  }

  .b2b-modal-footer {
    flex-direction: column;
  }

  .b2b-modal-footer .btn-modal-footer {
    width: 100%;
    margin-bottom: 5px;
  }

  .b2b-basket-item {
    flex-direction: column;
    text-align: center;
  }

  .b2b-item-quantity,
  .b2b-item-total {
    margin: 10px 0;
  }

  .b2b-basket-actions {
    flex-direction: column;
  }

  /* Responsive pour les cartes d'articles */
  .cart-item-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cart-item-info {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cart-item-quantity {
    min-width: 100px;
  }

  .cart-item-actions {
    align-self: flex-end;
  }

  .b2b-cart-help {
    font-size: 10px;
    margin: 8px 0 0 0;
  }
}

/* Scrollbar personnalisée pour la modal */
.b2b-modal-body::-webkit-scrollbar {
  width: 6px;
}

.b2b-modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.b2b-modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.b2b-modal-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* ========================================
   ========================================
   ========================================
   STYLES POUR LA PAGE BASKET
   ========================================
   ========================================
   ======================================== */

/* ========================================
   ========================================
   ========================================
   STYLES POUR LA PAGE CONTACT
   ========================================
   ========================================
   ======================================== */

/* Styles pour la page contact */

.contact-page {
  padding: 60px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.contact-form-container {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-form-container:hover {
  transform: translateY(-5px);
}

.contact-info {
  margin-bottom: 40px;
}

.contact-item {
  padding: 25px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  text-align: center;
}

.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.contact-item i {
  color: #007bff;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.contact-item:hover i {
  transform: scale(1.1);
}

.contact-item h5 {
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-item p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.contact-form {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  background: white;
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.captcha-image {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 8px;
  background: #f8f9fa;
  max-width: 120px;
  height: auto;
}

.btn {
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #0056b3, #004085);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
  transform: translateY(-1px);
}

.alert {
  border-radius: 10px;
  border: none;
  padding: 15px 20px;
  margin-bottom: 25px;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(45deg, #d4edda, #c3e6cb);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background: linear-gradient(45deg, #f8d7da, #f5c6cb);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.form-text {
  font-size: 12px;
  color: #6c757d;
  margin-top: 5px;
}

.invalid-feedback {
  font-size: 13px;
  color: #dc3545;
  margin-top: 5px;
}

/* Animation de chargement */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-page {
    padding: 30px 0;
  }

  .contact-form-container {
    padding: 20px;
    margin: 0 15px;
  }

  .contact-form {
    padding: 20px;
  }

  .captcha-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-item {
    margin-bottom: 20px;
  }
}

/* Accessibilité */
.form-control:focus {
  outline: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Animation d'apparition */
.contact-form-container {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style pour les champs requis */
.form-label::after {
  content: ' *';
  color: #dc3545;
}

/* Amélioration du compteur de caractères */
#charCount {
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Style pour le honeypot */
.form-group[style*='display: none'] {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ========================================
   ========================================
   ========================================
   STYLES POUR LA PAGE CONTACT - LAYOUT STANDARD
   ========================================
   ========================================
   ======================================== */

/* Styles pour la Page Contact - Layout standard */
.contact-page {
  width: 100%;
  background: #fff;
  padding: 15px 0px 0px 0px;
  border-radius: 5px;
}

.contact-page .block-welcome {
  margin-bottom: 35px;
}

.contact-page .block-welcome h2 {
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: bold;
  color: #eff9fe;
  background-color: var(--category-header-bg);
  padding: 6px 10px;
  display: inline;
  border-radius: 10px 10px 0px 0px;
}

.contact-page .block-welcome p {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: bold;
  color: #776e64;
  padding: 0px;
  margin: 0px 0px 8px 0px;
}

.contact-page .block__line {
  border: none;
  border-top: 5px solid var(--category-header-bg);
  margin-bottom: 20px;
  margin-top: 0px;
}

.contact-content {
  padding: 0 15px;
}

.contact-content .form-group {
  margin-bottom: 20px;
}

.contact-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.contact-content input[type='text'],
.contact-content input[type='email'],
.contact-content textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-primary);
  box-sizing: border-box;
}

.contact-content input[type='text']:focus,
.contact-content input[type='email']:focus,
.contact-content textarea:focus {
  outline: none;
  border-color: #002340;
  box-shadow: 0 0 0 1px rgba(0, 50, 64, 0.2);
}

.contact-content textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-content button[type='submit'] {
  color: #776e64;
  font-size: 14px;
  background-color: #f0f0f0;
  font-family: var(--font-primary);
  padding: 10px 20px;
  border: 1px solid #767676;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.contact-content button[type='submit']:hover {
  background: #ccc;
}

/* === Contact Legacy (style formulaire image) === */
.contact-legacy {
  max-width: 700px;
  margin: 0px auto 0 auto;
  font-family: var(--font-primary);
  background: #fff;
  padding: 0;
}
.contact-legacy__header {
  margin-bottom: 0;
}
.contact-legacy__title {
  background: #002340;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 6px 18px 6px 10px;
  border-radius: 6px 0 0 0;
  display: inline-block;
}
.contact-legacy__line {
  border-top: 4px solid var(--category-header-bg);
  margin: 0 0 18px 0;
}
/*.contact-legacy__row--button {
  justify-content: flex-start;
}*/
/*.contact-legacy__row--button button {
  font-size: 15px;
  background: #eee;
  color: #222;
  border: 1px solid #888;
  border-radius: 2px;
  padding: 4px 18px;
  cursor: pointer;
  margin-left: 228px;
  transition: background 0.2s;
}
.contact-legacy__row--button button:hover {
  background: #ccc;
}*/
.contact-legacy__copyright {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 40px;
}
.contact-legacy__copyright a {
  color: #888;
  text-decoration: underline;
}
.checkoutForm {
  text-align: center;
}

/* Styles pour le formulaire de checkout */
.checkout-legacy__form {
  margin-top: 50px;
  max-width: 500px;
}

.checkout-legacy__row {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.checkout-legacy__row--textarea {
  align-items: flex-start;
}

.checkout-legacy__row label {
  width: 210px;
  min-width: 180px;
  font-size: 15px;
  color: #222;
  margin-right: 18px;
  text-align: left;
}

.checkout-legacy__row input[type='text'] {
  flex: 1;
  padding: 1px 2px;
  font-size: 15px;
  border: 1px solid #222;
  border-radius: 0;
  background: #fff;
  color: #222;
  width: 100%;
}

.checkout-legacy__row textarea {
  flex: 1;
  padding: 4px 6px;
  font-size: 15px;
  border: 1px solid #222;
  border-radius: 0;
  background: #fff;
  color: #222;
  min-height: 120px;
  resize: vertical;
}

.checkout-legacy__selected-point {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid #28a745;
  border-radius: 0;
  background: #f8f9fa;
  color: #222;
}

.btn-checkout {
  width: 150px;
  height: 25px;
  font-size: 12px;
  padding: 1px 6px;
  margin-left: 228px;
}

.btn-checkout button {
  width: 100%;
  height: 100%;
  font-size: 12px;
  background: #eee;
  color: #222;
  border: 1px solid #888;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-checkout button:hover {
  background: #ccc;
}

.btn-checkout button:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Style pour le conteneur de recherche */
.checkout-legacy__row .position-relative {
  flex: 1;
  width: 100%;
  position: relative; /* Important pour le positionnement absolu de #searchResults */
}

/* ========================================
   STYLES POUR LA PAGE CONFIRMATION
   ========================================
   ========================================
   ======================================== */

/* ========================================
   Styles pour les kits avec options
   ======================================== */

/* Sections qui s'étendent sur toute la largeur de la grille */
.products__grid .kit-title-full,
.products__grid .kit-subtitle-full {
  grid-column: 1 / -1;
  margin-bottom: 15px;
  display: block;
  width: 100%;
}

/* S'assurer que les produits du kit sont bien des éléments de grille */
.products__grid .product.kit-base-product,
.products__grid .product.kit-option-product {
  grid-column: span 1 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.kit-section__title {
  font-size: 14px;
  font-weight: bold;
  color: #002340;
  font-family: var(--font-primary);
  margin: 20px 0 5px 0;
  padding-bottom: 5px;
  /*border-bottom: 2px solid #002340;*/
}

.kit-section__supplier {
  font-size: 12px;
  color: #776e64;
  font-family: var(--font-primary);
  margin: 5px 0 0 0;
}

.kit-section__subtitle {
  font-size: 12px;
  font-weight: bold;
  color: #002340;
  font-family: var(--font-primary);
  margin: 15px 0 5px 0;
  padding: 5px 10px;
  background-color: #f0f0f0;
  border-left: 4px solid #002340;
}

/* Produits de base du kit */
.section-home .kit-base-product {
  opacity: 0.9;
}

.section-home .kit-base-product .product__stock {
  font-size: 11px;
  color: #776e64;
  font-style: italic;
  margin-top: 40px;
}

.section-home .product__subtitle,
.section-home .kit-base-product__subtitle {
  font-size: 12px;
  line-height: 1.35;
  color: #5a4a6e;
  font-weight: normal;
  margin: 4px 0 0 0;
  font-family: var(--font-primary);
}

/* Message de connexion requise */
.kit__notlogin {
  font-size: 12px;
  margin-bottom: 0px;
  margin-top: 20px;
  color: #808080;
  font-family: var(--font-primary);
  text-align: center;
  padding: 10px;
}

.kit__option-required {
  color: #e74c3c;
  font-weight: normal;
}

/* Options booléennes */
.kit__option-checkbox {
  margin-right: 8px;
  transform: scale(1.2);
}

/* ==========================================================================
   HOMEPAGE — rendu fidèle legacy (cf. references/legacy_*_src.html,
   produit_kit_de_base.png, produit_kit_options.png)

   Reproduit visuellement la maquette historique (bandeau dark-blue à coins
   arrondis + trait, blocs brochures 2 colonnes) avec un balisage HTML5
   moderne (div/section/article/span) au lieu des <table>/<tr>/<td> legacy.

   Les couleurs historiques (#bd2585) ont été remplacées par le primary courant
   (#002340), désormais piloté par les tokens :root {} (--content-title-color,
   --sidebar-block-text-strong, etc.) générés par FrontThemeCssBuilder.
   Les fontes utilisent var(--font-primary) / var(--font-secondary).

   Portée : ces règles ne s'appliquent qu'à l'intérieur de .main_content,
   afin de ne pas impacter d'autres écrans qui réutiliseraient un même
   nom de classe.
   ========================================================================== */

.main_content {
  padding-left: 0px;
  font-family: var(--font-primary);
  color: #776e64;
  background-color: var(--page-bg);
}

.main_content h1 {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: bold;
  color: #002340;
  margin: 0 0 4px 0;
}

.main_content__intro {
  margin: 6px 0 14px 0;
}

/* --- Bandeau de section catalogue : reprend STRICTEMENT le pattern commun
       du site (<h2> onglet dark-navy à coins arrondis haut + <hr class="block__line">).
       Le style du h2 et du trait est hérité de 02_layout.css, on ne fournit
       ici que l'espacement vertical du bloc dans le catalogue. --- */
.main_content .block-catalog-section {
  margin: 0 0 14px 0;
}

/* --- Sous-titre de section (small_thick) :
       « L'équipement classique comprend : », « 1-Nombre de... », etc.
       Gras forcé : Arial magenta à 12–13px paraît trop fin avec font-weight seul,
       d'où le léger text-stroke pour épaissir le glyphe (équivalent visuel du <b> legacy). --- */
.main_content .small_thick,
.main_content .small_thick b,
.main_content .kit-section__description,
.main_content .kit-section__description b,
.main_content .kit-section__heading,
.main_content .kit-section__heading b {
  color: var(--sidebar-block-text-strong) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px;
  font-weight: 700 !important;
  line-height: 1.4;
  -webkit-text-stroke: 0.4px currentColor;
  paint-order: stroke fill;
}

.main_content .kit-section__description,
.main_content .kit-section__notice,
.main_content .kit-section__heading {
  padding-left: 0px;
  margin: 20px 0 20px 0;
}

.main_content .kit-section__notice-text {
  color: grey;
  font-weight: bold;
}

/* --- Paire de brochures : grille 2 colonnes (équivalent du table width=100%
       avec deux <td width="50%"> du legacy). Les produits restent 272px max,
       leur cellule occupe 50 % du conteneur. --- */
.main_content .brochure_pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  row-gap: 20px;
  margin: 0 0 14px 0;
}

.main_content .brochure_pair__cell {
  min-width: 0;
  display: flex;
}

/* --- Bloc brochure (unité atomique produit, 272px de large en legacy) ---
       Structure : cadre image fixe (120×113) + data. Les cellules d'une
       même ligne de grille s'étirent : titres et images s'alignent. --- */
.main_content .brochure_block {
  display: flex;
  align-items: flex-start;
  width: 272px;
  max-width: 100%;
  margin: 0;
}

.main_content .brochure_image {
  flex: 0 0 120px;
  width: 120px;
  height: 113px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main_content .brochure_image img {
  border: 0;
  max-width: 113px;
  max-height: 113px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.main_content .brochure_data {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 8px;
  font-family: var(--font-primary);
  font-size: 12px;
  line-height: 1.35;
  color: #776e64;
}

.main_content .brochure_data__title {
  margin: 0;
  padding: 0;
  font: inherit;
}

.main_content .brochure_data .title {
  color: var(--content-title-color);
  font-weight: bold;
  font-size: 12px;
  font-family: var(--font-primary);
}

.main_content .brochure_data .publisher {
  color: var(--content-title-color);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: bold;
  min-height: 14px;
  margin: 1px 0 0 0;
}

.main_content .brochure_data .brochure_subtitle {
  display: block;
  color: #776e64;
  font-size: 11px;
  font-family: var(--font-primary);
  margin-top: 1px;
}

.main_content .brochure_data .order {
  color: #776e64;
  font-size: 11px;
  font-family: var(--font-primary);
  margin-top: 6px;
}

.main_content .brochure_data .order__login-hint {
  display: inline-block;
  margin-top: 6px;
  color: #a0a0a0;
  font-size: 11px;
}

.main_content .brochure_data .order__unavailable {
  margin-bottom: 2px;
}

.main_content .brochure_data .order__line {
  margin-top: 2px;
  white-space: nowrap;
}

.main_content .brochure_data .order__label {
  margin-right: 4px;
}

.main_content .brochure_data .order__pack {
  margin-left: 2px;
  white-space: nowrap;
}

/* Sélecteurs de commande (quantité, oui/non) */
.main_content .brochure_data .order select,
.main_content .brochure_data .order .form_text_field,
.main_content .brochure_data .order .form_field,
.main_content .brochure_data .order .form_field_valid,
.main_content .brochure_data .order .form_field_two_choices {
  font-size: 11px;
  font-family: var(--font-primary);
  color: #776e64;
  background: #ffffff;
  border: 1px solid #cccccc;
  padding: 0 2px;
  height: 18px;
  vertical-align: middle;
  box-sizing: border-box;
}

.main_content .brochure_data .order .order__select--quantity {
  width: 40px;
}

.main_content .brochure_data .order .order__select--boolean {
  width: 60px;
}

.main_content .brochure_data .order select:focus {
  outline: none;
  border-color: #002340;
  box-shadow: 0 0 0 1px rgba(0, 35, 64, 0.2);
}

.main_content .no-categories {
  font-size: 12px;
  color: #776e64;
  font-style: italic;
  padding: 20px 0;
}

/* Styles pour les profils de livraison - Adaptation au style existant */

/* Styles communs pour tous les profils - Harmonisation avec le style existant */
/* (Migré dans 05_pages.css) */

