* { box-sizing: border-box;
    margin: 0;
    padding: 0; }
html, body { display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
    font-family: "Arial", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9; }
.page-container { 
    flex: 1;
    display: flex;
    flex-direction: column;
}
.container { 
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /*flex-wrap: wrap;*/
    align-items: center;
    justify-content: space-between; 
}
.container > * { flex-shrink: 0; }

.section { padding: 40px 20px;
    text-align: center; }
.section h2 { font-size: 2rem;
    margin-bottom: 20px;
    color: #222; }
.flex { 
    display: flex; 
}
.flex-wrap { 
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center; 
}
.navbar { 
    display: flex;
    background-color: #333;
    color: white;
    padding: 4px;
    position: relative;
    z-index:1000;
}
.menu-toggle { cursor: pointer;
    font-size: 24px;
    user-select: none; }
.nav-menu { list-style-type: none;
    display: flex;
    gap: 15px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0; }
.nav-menu li { margin: 0; }
.nav-menu a { color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 14px 8px;
    display: block; }
.nav-menu a:hover { background-color: #575757;
    border-radius: 4px; }
.nav-icons { 
    display: flex;
    justify-content: flex-end; /* Push items to the right */
    margin-left: auto; /* Push the icons to the right */
    gap: 10px;
}
.nav-icons div { margin: 0; }

.login-box {
    position: relative;
    display: inline-block;
    margin-right: 15px; 
}
div.login-box a { 
    color: whitesmoke;
    padding-left: 1em; 
}
.logged-in,
.not-logged-in { display: none; }

.login-box a { color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px; }
.login-box a:hover { color: #ddd; }

.cart-icon { position: relative; }
#bullePanier { position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff0000;
    color: #fff;
    border-radius: 50%;
    padding: 3px 5px;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 14px;
    min-height: 14px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); }
.cart-icon a { text-decoration: none;
    font-size: 24px;
    color: #fff; }
.cart-icon a:hover { color: #ddd; }
.btn { display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s; }
.btn-primary { background-color: #007bff;
    color: #fff; }
.btn-primary:hover { background-color: #0056b3; }
.hero { position: relative;
    height: 360px;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px; }
.hero h1 { font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ccc; }
.hero p { font-size: 1.2rem;
    margin-bottom: 20px; }
.video-wrapper { position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; }
.breadcrumb { padding: 10px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ddd; }
.breadcrumb a { color: #333;
    text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-container { max-width: 800px;
    margin: 40px auto;
    padding: 0 20px; }
.chapeau { font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #555;
    text-align: justify; }
.article-body p { margin: 20px 0;
    color: #444;
    text-align: justify; }
figure { margin: 20px 0;
    text-align: center; }
figure img { max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
figcaption { font-size: 0.9rem;
    margin-top: 8px;
    color: #666;
    font-style: italic; }
.feature, .article-card, .testimonial { background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    max-width: 300px; }
.feature img { width: 100%;
    height: auto;
    margin-bottom: 15px; }
.testimonial p { font-style: italic; }
.cta { background: #007bff;
    color: #fff;
    padding: 40px 20px;
    text-align: center; }
.cta h2 { font-size: 1.8rem;
    margin-bottom: 20px; }
.main-display { 
    padding: 12px;
    min-height: 400px; 
    flex:1;
}
.categories, .products { display: none; }
.category, .product { margin: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px; }
.category img, .product img { max-width: 100px;
    height: auto;
    margin: auto; }

div.product div.description { padding-left: 1em; }
div.product div.description h4 { margin:0;
    padding: 0 0 0.5em 0; }
/* loader spinner */
.loading-modal { display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center; }
.loading-content { background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 60%;
    max-width: 600px; }
.loader { border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto; }
@keyframes spin {
}
/* overlay de base (caché par défaut) */
#loadingOverlay{
  position: fixed; inset: 0;
  display: none;                /* toggle via .is-visible */
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); /* atténuation par défaut */
  z-index: 2147483646;          /* au-dessus de tout */
  pointer-events: none;         /* non modal par défaut */
}

/* visible */
#loadingOverlay.is-visible { display: flex !important; }

/* modal = bloque l’UI dessous */
#loadingOverlay.modal { pointer-events: auto; background: rgba(0,0,0,0.4); }

/* variante “light” (pour rendu, pas d’écran noir) */
#loadingOverlay.light { background: transparent; }
#loadingText { position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 0 10px #000000; }

#topContainer { flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0; }
.left-panel { flex: 0 0 300px;
    max-width: 50%;
    background-color: #f2f2f2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    font-size: 18px;
    color: #333;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); }
.right-panel { flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: #f2f2f2; }
#map, #container3D { flex: 1;
    width: 100%;
    height: 100%;
    min-height: 500px; }
footer { background-color: #333;
    color: #ccc;
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid #555; }
footer a { font-size: 0.8rem;
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s; }
footer a:hover { color: #fff; }
.left-panel span#prix { font-size: 1.5em; }
h2 { font-size: 24px;
    margin-bottom: 20px; }
.input-group { width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column; }
.input-group label { margin-bottom: 5px;
    font-size: 16px; }
.input-group input[type="text"],
.input-group textarea,
.input-group input[type="email"],
.input-group input[type="number"],
.input-group select { padding: 10px;
    border-radius: 5px;
    width: 100%;
    font-size: 16px; }
.update-button { background-color: #2ecc71;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer; }
#slider-container,#scale-container { display: flex;
    flex-direction: column;
    align-items: flex-start; }
#size-slider,#scale-slider { width: 100%;
    margin-top: 5px; }
.slider-value { margin-top: 5px; }
.palette { display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px; }
.color-option { padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    color: white; }
.color-option.selected { border: 3px solid #fff; }
.checkbox-group { display: flex;
    align-items: center;
    margin-top: 10px; }
.checkbox-group input { margin-right: 10px; }
h1 { font-size: 28px; }
#testContainer { margin-top: 20px; }
.cta-button { background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer; }
.delete-point-btn { display: none; }
.delete-point-btn.active { background-color: #f44336;

    color: white; }
.edge-label { font-weight: bold;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    padding: 2px 4px;
    border-radius: 4px; }
.edge-label div { transform: translate(-50%, -50%); }
.illustrative-video { height: 360px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto; }
#main-header .hero { position: relative;
    height: 360px;
    overflow: hidden;
    background-color: #000; }
.hero-overlay { position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 20px; }
.hero-overlay h1 { font-size: 2.5rem;
    margin-bottom: 10px; }
.hero-overlay p { font-size: 1.2rem;
    margin-bottom: 20px; }
.hero-overlay .btn-primary { padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s; }
.hero-overlay .btn-primary:hover { background-color: #0056b3; }
section { padding: 40px 20px; }
section h2 { font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #222; }
#about p { font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center; }
#about .btn { display: inline-block;
    padding: 10px 20px;
    background-color: #555;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s; }
#about .btn:hover { background-color: #333; }
.tech-features { display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; }
.feature { background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    max-width: 300px; }
.feature h3 { font-size: 1.2rem;
    margin-bottom: 10px; }
.news-items { display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; }
article { background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 300px; }
article h3 { font-size: 1.2rem;
    margin-bottom: 10px; }
article p { margin-bottom: 10px; }
article .btn { display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s; }
article .btn:hover { background-color: #0056b3; }
.testimonial-items { display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; }
.testimonial { background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    max-width: 300px; }
#call-to-action { text-align: center;
    background: #007bff;
    color: #fff;
    padding: 40px 20px; }
#call-to-action h2 { font-size: 1.8rem;
    margin-bottom: 20px; }
#call-to-action .btn-primary { padding: 10px 20px;
    background-color: #fff;
    color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s; }
#call-to-action .btn-primary:hover { background-color: #0056b3;
    color: #fff; }
.enligne { flex-direction: column; }
#article-header .hero { background: #007bff;
    color: #fff;
    padding: 40px 20px;
    text-align: center; }
#article-header h1 { font-size: 2.5rem;
    margin-bottom: 10px; }
#article-content .container { max-width: 800px;
    margin: 40px auto;
    padding: 0 20px; }
#article-intro .chapeau { font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: justify;
    color: #555; }
#article-body p { font-size: 1rem;
    margin: 20px 0;
    text-align: justify;
    color: #444; }
#article-body figure { margin: 20px 0;
    text-align: center; }
#article-body img { max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
#article-body figcaption { font-size: 0.9rem;
    margin-top: 8px;
    color: #666;
    font-style: italic; }
#article-footer { text-align: center;
    padding: 20px 0;
    background: #f1f1f1; }
#article-footer .btn-primary { display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s; }
#article-footer .btn-primary:hover { background-color: #0056b3; }
.flex-centered { margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
html, body { height: 100%;
    margin: 0; }
h1, h2, h3, h4, h5 { color: #394352; }
.img150 { width: 150px; }
.img50 { width: 50px;
    vertical-align: middle; }
.icon { width: 16px;
    height: 16px;
    margin-right: 5px; }
.quantity-input { width: 60px;
    padding: 5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: right;
    margin: 0 10px; }

.order-option {
    flex: 1 1 400px;
    box-sizing: border-box;
}
    
button,
.submit-button,
.order-button,
.recalculate-button,
.address-item .edit-button,
.order-option button { 
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px; 
    background-color: #007bff;
    color: white; 
}
button {
    background: lightskyblue;
    color: #1d2d49; 
}
button:hover { background-color: #f0f0f0; }
.submit-button,
.order-button { background-color: #28a745;
    color: white; }
.submit-button:hover,
.order-button:hover { background-color: #218838; }
.recalculate-button { background-color: #007bff;
    color: white; }
.recalculate-button:hover { background-color: #0056b3; }
.address-item .edit-button,

.address-item .edit-button:hover,
.order-option button:hover { background-color: #0056b3; }
.modal { display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); }
.modal-content { background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; }
.close { color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold; }
.close:hover,
.close:focus { color: black;
    text-decoration: none;
    cursor: pointer; }
.categories { display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0; }
main div.category { background: radial-gradient(circle at 20% 40%, rgba(79,138,205,1) 0%, rgba(48,79,143,1) 69%, rgba(33,53,112,1) 95%);
    color: white;
    padding: 0;
    margin: 10px;
    width: 200px;
    height: 75px;
    border-right: 1px solid #25264a;
    border-bottom: 1px solid #25264a;
    border-radius: 13px;
    flex: 1 1 calc(33% - 20px);
    filter: drop-shadow(13px 5px 7px #a26050);
    transition: transform 0.3s;
    overflow: hidden; }
main div.category:hover { transform: translateY(-5px); }
main div.category .category-link { text-decoration: none; }
main div.category .category-link:hover h3 { text-decoration: underline; }
main div.category div.category-txt,
main div.category p { padding: 3px;
    text-overflow: ellipsis;
    overflow: hidden; }
main div.category p.small { font-size: 0.7rem; }
main div.category h3 { margin: 0;
    color: #f7fefe;
    font-size: 1rem; }
main div.category img { margin-right: 10px; }
.main-display.encolonnes { 
    display: flex;
    flex-direction: row; 
}
.image-section { flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%; }
.main-image { margin-bottom: 20px; }
.main-image img { width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover; }
.thumbnails { display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; }
.thumbnail img { width: 100px;
    height: auto;
    border: 2px solid #ddd;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out; }
.thumbnail:hover img { transform: scale(1.05); }
.details-section { flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    max-width: 100%; }
.price-section { display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px; }
.price-section strong,
#productPrix { font-size: 1.2rem;
    font-weight: bold; }
#productPrix { color: #0055DE;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.price-section small { margin-left: 15px;
    font-size: 0.9rem;
    color: #777; }
.details-section h1 { font-size: 1.8rem;
    color: #2c3e50; }
.details-section p { font-size: 0.9rem;
    line-height: 1.5;
    color: #555; }
.details-section p.small { font-size: 0.7rem;
    line-height: 0.7;
    color: #888; }
#totalPrice { text-align: right; }
.cart-item-small,
.cart-item { display: grid;
    align-items: center;
    margin-bottom: 15px; }
.cart-item-small { grid-template-columns: 2fr 1fr; }
.cart-item { grid-template-columns: 1fr 2fr 1fr 1fr; }
.cart-item img { max-width: 100%;
    border-radius: 8px; }
.quantity-wrapper { display: flex;
    align-items: center; }
.quantity-wrapper span { margin-left: auto; }
.total { font-weight: bold;
    margin-top: 20px; }
.order-button { margin-top: 20px; }
.order-options-container,
.form-container { background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: auto; }
.form-container { max-width: 600px; }
.order-options-container h1,
.form-container h1 { margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333; }
.form-group input,
.form-group select,
.form-group textarea { 
    /*width: 100%;*/
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px; }
.form-group input[type="checkbox"] { width: auto;
    margin-right: 10px; }
.form-group small,
.error-message { display: block;
    margin-top: 5px;
    color: #888; }
.form-group .error { color: red;
    font-size: 14px; }
.submit-button:focus,
.order-option button:focus { outline: none; }
.address-list { margin-bottom: 30px; }
.address-item { padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center; }
.address-item .address-details { flex: 1; }
.address-item .edit-button { padding: 8px 12px; }
#addressForm { display: none; }
.delivery-option { margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center; }
.delivery-option label { margin: 0;
    font-weight: bold; }
.delivery-radio { margin-right: 10px; }
.total-price { font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    text-align: right; }

.thank-you-container { max-width: 800px;
    margin: 50px auto;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.thank-you-container h1 { font-size: 24px;
    color: #333;
    margin-bottom: 20px; }
.thank-you-container p { font-size: 18px;
    color: #555;
    margin-bottom: 30px; }
.thank-you-container .order-number { font-size: 20px;
    font-weight: bold;
    color: #2a9d8f;
    margin-bottom: 40px; }
.artisan-info { display: flex;
    align-items: center;
    gap: 20px; }
.artisan-info img { width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.artisan-info p { font-size: 16px;
    color: #777; }
.attributes-table { width: 100%;
    border-collapse: collapse;
    margin-top: 10px; }
.attributes-table th,
.attributes-table td { padding: 10px;
    border: 1px solid #ddd;
    text-align: left; }
.attributes-table th { background-color: #f4f4f4;
    font-weight: bold; }
.attributes-table td { font-size: 0.9rem; }
.attributes-table tbody tr:nth-child(odd) { background-color: #f9f9f9; }
.feature,
.article-card,
.testimonial { background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    max-width: 300px; }
.news-items,
.testimonial-items,
.tech-features { display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; }
.article-card h3,
.feature h3,
.testimonial h3 { font-size: 1.2rem;
    margin-bottom: 10px; }
.article-card p,
.feature p,
.testimonial p { margin-bottom: 10px; }
.article-card .btn,
.feature .btn,
.testimonial .btn { display: inline-block;
    padding: 8px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s; }
.article-card .btn:hover,
.feature .btn:hover,
.testimonial .btn:hover { background-color: #0056b3; }
.cta,
#call-to-action { background: #007bff;
    color: #fff;
    padding: 40px 20px;
    text-align: center; }
.cta h2,
#call-to-action h2 { font-size: 1.8rem;
    margin-bottom: 20px; }
.cta .btn-primary,
#call-to-action .btn-primary { padding: 10px 20px;
    background-color: #fff;
    color: #007bff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s; }
.cta .btn-primary:hover,
#call-to-action .btn-primary:hover { background-color: #0056b3;
    color: #fff; }
h3 { color: #394352; }
h4 { color: #394352; }

/* Responsive Design */
@media (max-width: 768px) {
    .flex-wrap { 
        flex-wrap: wrap;
    }    
    main div.category {
        flex: 1 1 calc(50% - 20px);
    }

    .image-section,
    .details-section {
        max-width: 100%;
    }

    .thank-you-container {
        padding: 15px;
    }

    .thank-you-container h1 {
        font-size: 20px;
    }

    .thank-you-container p {
        font-size: 16px;
    }

    .thank-you-container .order-number {
        font-size: 18px;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        /* Ajustez selon la hauteur de votre navbar */
        left: 0;
        width: 100%;
        background-color: #333;
        flex-direction: column;
        display: none;
        /* Masqué par défaut */
    }

    .nav-menu.active {
        display: flex;
        /* Affiché lorsque le menu est activé */
    }

    .nav-menu a {
        padding: 10px 10px;
        /* Ajustez le padding pour économiser de l'espace */
    }

    .container {
        padding: 0 10px;
        /* Réduit le padding sur mobile */
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        /* Ajustez selon la hauteur de votre navbar */
        left: 0;
        width: 100%;
        background-color: #333;
        flex-direction: column;
        display: none;
        /* Masqué par défaut */
        padding: 0;
        gap: 10px;
        /* Réduit l'espace entre les éléments du menu */
    }

    .nav-icons {
        margin-top: 1px;
        width: 100%;
        gap: 8px;   /* Réduit l'espace entre les icônes sur mobile */
    }

    /* Ajustez la taille de police si nécessaire */
    .menu-toggle {
        font-size: 20px;
    }

    .nav-icons a,
    .login-box a {
        font-size: 14px;
        /* Réduit la taille de police */
    }

    /* Flex-shrink pour permettre aux éléments de se rétrécir si nécessaire */
    .menu-toggle,
    .nav-icons {
        flex-shrink: 1;
    }

    /* Page Produit Ajustements */
    main div.category {
        flex: 1 1 calc(50% - 20px);
    }

    /* Articles Ajustements */
    #article-header h1 {
        font-size: 2rem;
    }

    #article-intro .chapeau {
        font-size: 1rem;
    }

    #article-body p {
        font-size: 0.95rem;
    }

    /* Feature & News Ajustements */
    .tech-features,
    .news-items,
    .testimonial-items {
        flex-direction: column;
        gap: 20px;
    }

    .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .article-body p {
        font-size: 0.95rem;
    }

    .container {
        align-items: flex-start;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu-toggle {
        cursor: pointer;
        font-size: 24px;
        display: block;
    }

    #topContainer {
        flex-direction: column;
        height: auto;
    }

    .left-panel {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        padding: 10px;
        box-shadow: none;
    }

    .right-panel {
        flex: 0 0 auto;
        width: 100%;
    }

    .left-panel {
        font-size: 16px;
    }

    .color-option {
        font-size: 12px;
        padding: 8px;
    }

    #topContainer {
        flex-direction: column;
    }

    .left-panel {
        padding: 10px;
    }

    .tech-features,
    .news-items,
    .testimonial-items {
        flex-direction: column;
        gap: 20px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    #article-header h1 {
        font-size: 2rem;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* Hide menu toggle on desktop */
    }

    .nav-menu {
        display: flex; /* Always show menu on desktop */
        margin-right: auto; /* Push the menu items to the left */
        overflow: hidden; /* Prevent overflow */
    }

    .nav-icons {
        margin-left: auto; /* Push the icons to the right */
    }
}

@media (max-width: 480px) {
    main div.category {
        flex: 1 1 100%;
    }
    .nav-menu {
        top: 50px; /* Ajustez si nécessaire */
    }

    .nav-icons a, .login-box a {
        font-size: 12px; /* Réduisez davantage la taille de police */
    }

    .menu-toggle {
        font-size: 18px;
    }
}
.pointer {
    cursor: pointer;
}
.formGroup {
    border:1px solid lightgray;
    border-radius: 0.7em;
    padding: 1em;
}
/* oromaps 2D */
.leaflet-container .edge-handle div { width: 10px; height: 10px; background: white; border: 1px solid #333; border-radius: 2px; }
.leaflet-container .edge-handle:hover { cursor: move; }
/* Rotate handle style */
/* Rotate handle style */
.rotate-handle div {
  width: 16px;
  height: 16px;
  background-color: #fff;         /* fond blanc */
  border: 2px solid #007bff;      /* bordure bleu */
  border-radius: 50%;             /* rond */
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  cursor: grab;
}
.rotate-handle div:active {
  cursor: grabbing;
}
/* cgv */
.spaced-paragraphs p,
.spaced-paragraphs ul,
.spaced-paragraphs ol {
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.6;
}

.spaced-paragraphs h1,
.spaced-paragraphs h2,
.spaced-paragraphs h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.2;
}

.spaced-paragraphs a {
    word-break: break-all;
}

.spaced-paragraphs {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 16px;
    font-size: 1.05em;
}

.spaced-paragraphs ul,
.spaced-paragraphs ol {
    padding-left: 2em;
}
.b { font-weight: 600;}

/* pots & vases */
.pv-row textarea { flex: 1 1 140px; min-height: 60px; resize: vertical; }
.pv-row>input,.pv-row>select{ flex:1 1 140px; min-width:0; }
.pv-chip{ display:inline-block; width:18px; height:18px; border-radius:3px; border:1px solid #999; }

/* hard spit screen */
/* Ensure the app uses the full viewport height on mobile */
:root { --vh: 100dvh; }  /* use dynamic viewport unit to avoid URL bar issues */

@media (max-width: 768px) {
  #appContainer {
    display: grid !important;
    grid-template-rows: 2fr 1fr; /* 2/3 UI, 1/3 3D */
    grid-template-columns: 1fr;
    height: var(--vh);
    min-height: var(--vh);
    overflow: hidden;
  }

  /* First row: your tabs + params (existing structure) */
  .tabs {
    grid-row: 1 / 2;
    overflow: auto;           /* scroll UI, not the whole viewport */
    -webkit-overflow-scrolling: touch;
  }

  /* Second row: 3D panel fixed height */
  #threeDView {
    grid-row: 2 / 3;
    height: 100%;
    min-height: 0;
    overflow: hidden;         /* prevent canvas from growing layout */
  }

  /* Container that holds the canvas must fill its grid cell */
  #container3D {
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
  }

  /* Make the WebGL canvas fit the container exactly */
  #container3D > canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
  }
}

/* ===================== PV UI (gris) ===================== */
:root {
  --pv-bg: #f6f7f8;
  --pv-panel: #f2f3f5;
  --pv-card: #eef0f2;
  --pv-border: #d5d8dd;
  --pv-text: #2f3437;
  --pv-muted: #6b7280;
  --pv-accent: #4b5563;
  --pv-accent-2: #374151;
  --pv-input-bg: #ffffff;
  --pv-input-border: #c8ccd2;
  --pv-focus: #6b7280; /* gris foncé pour focus */
  --pv-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
}
form#pv-form {
    padding: 10px;
    margin : 0;
    border :0 none;
}
.pv-panel {
  max-width:540px;
  color: var(--pv-text);
}

/* Accordéon */
.pv-accordion {
  background: var(--pv-card);
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}

.pv-acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #f5f6f7 0%, #eceff2 100%);
  border: 0;
  cursor: pointer;
  color: var(--pv-accent-2);
  font-weight: 600;
}

.pv-acc-head:hover {
  background: linear-gradient(180deg, #f7f8f9 0%, #eef1f4 100%);
}

.pv-acc-head:focus-visible {
  outline: 2px solid var(--pv-focus);
  outline-offset: 2px;
  border-radius: 8px;
}

.pv-acc-chevron {
  color: var(--pv-muted);
  font-size: 14px;
}

/* Contenu de l’accordéon */
.pv-acc-panel {
  padding: 12px;
  background: var(--pv-card);
  border-top: 1px solid var(--pv-border);
}

/* Lignes de formulaire (label à gauche, champ à droite) */
.pv-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin: 8px 0;
}

.pv-row > label {
  color: var(--pv-accent);
  font-size: 0.95rem;
}

.pv-row input[type="number"],
.pv-row input[type="text"],
.pv-row input[type="file"],
.pv-row select,
.pv-row textarea {
  width: 100%;
  background: var(--pv-input-bg);
  border: 1px solid var(--pv-input-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--pv-text);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.02);
}

.pv-row textarea { resize: vertical; }

.pv-row input:focus,
.pv-row select:focus,
.pv-row textarea:focus {
  border-color: var(--pv-focus);
  box-shadow: 0 0 0 3px rgba(75,85,99,.15); /* halo gris */
  outline: none;
}

.pv-row input[disabled],
.pv-row select[disabled],
.pv-row textarea[disabled] {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Choix matière/couleur */
.pv-material-chooser {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-chip {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--pv-border);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.08);
}

/* Actions */
.pv-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn,
.btn-secondary {
  appearance: none;
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  box-shadow: var(--pv-shadow);
}

.btn {
  color: #fff;
  background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%); /* gris chaud */
  border-color: #4b5563;
}

.btn:hover { filter: brightness(1.03); }
.btn:active { transform: translateY(1px); }

.btn-secondary {
  color: var(--pv-accent-2);
  background: linear-gradient(180deg, #f5f6f7 0%, #eceff2 100%);
}

.btn-secondary:hover { filter: brightness(1.02); }

/* Image preview */
#pv-imgPreview {
  background: #fff;
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  padding: 6px;
}

/* Panneau 3D (option, léger cadre) */
.threeD-panel {
  background: var(--pv-bg);
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  box-shadow: var(--pv-shadow);
  padding: 6px;
}

/* Séparateur fin */
.pv-sep {
  border: 0;
  border-top: 1px solid var(--pv-border);
  margin: 12px 0;
  opacity: .6;
}

/* Responsif */
@media (max-width: 820px) {
  .pv-row {
    grid-template-columns: 1fr;
  }
  .pv-actions {
    justify-content: stretch;
    flex-wrap: wrap;
  }
}

/* par défaut, masquer les champs avancés */
#pv-form .expert-only { display: none; }

/* quand le mode expert est actif */
#pv-form.expert-on .expert-only { display: block; }