
:root {
    --color-primary: 17, 34, 47; /*rgb(17, 34, 47); #11222F */
    --color-segondary: 38, 111, 155; /*rgb(38, 111, 155); #266F9B #0B6E99*/
    --color-segondary-hover: 14, 147, 204; /*rgb(14, 147, 204); #0E93CC*/
    --color-hover: #fFD434; /*Jaune Citon #FFD434 R255 V212 B52 */
    --color-tableselection: rgb(200, 235, 59);
    --color-tableselectionError : rgb(195, 74, 74);
    --color-background: #F4F4F4; /*Blanc #F4F4F4*/
    --color-background-L1: #fff;
    --color-background-L2: #fffc;
    --color-background-L3: #eee;
    --color-texte-on-background: white;
    --color-border: 0,0,0;
    --color-bin: #d03232;
}

html {
    overflow: hidden; /* Désactive le défilement sur html */
}

html, body{
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Empêche le défilement horizontal */
	background-color : var(--color-background);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    /*text-rendering: optimizelegibility;
    font-weight: 300;*/
}

/* Styles pour le toggle de recherche */

.btn-toggle {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(var(--color-segondary), 0.1);
    border: 1px solid rgba(var(--color-segondary), 0.3);
    border-radius: 4px;
    padding: 5px 8px;
    color: rgb(var(--color-segondary));
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 50px;
    max-width: 80px;
    justify-content: center;
}

.btn-toggle:hover {
    background: rgba(var(--color-segondary), 0.15);
    border-color: rgba(var(--color-segondary), 0.5);
    transform: translateY(-1px);
}

.btn-toggle:active {
    transform: translateY(0);
}

.btn-toggle svg {
    transition: transform 0.2s ease;
    width: 12px;
    height: 12px;
}

.btn-toggle.active {
    background: rgba(var(--color-segondary), 0.2);
    border-color: rgb(var(--color-segondary));
    color: rgb(var(--color-segondary));
}

.btn-toggle.active svg {
    transform: rotate(180deg);
}

.search-mode-indicator {
    margin-top: 4px;
    text-align: left;
}

.search-mode-indicator small {
    color: rgba(var(--color-segondary), 0.8);
    font-style: italic;
    font-size: 11px;
    line-height: 1.2;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden; /* Empêche le défilement vertical */
}

.content {
    flex: 1;
}

header { 
	background-color: rgb(var(--color-primary));
	padding: 10px;	
    display: flex;
    justify-content: space-between;
    align-items: center;
}  

footer{

    background-color: #11222F;
    margin :0px 0px 0px 0px;
    color: #F4F4F4; 
    padding: 5px; 
    text-align: center; 

    width: 100%;
    gap: 5px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

footer img{
    margin-left: 30px;
    margin-right: 30px;
	/*max-width: 20%;*/
	height: auto;
    max-height: 50px;
}


footer .legalLink{
    color: #F4F4F4;
}


.navmenu {
    justify-content: right;
    gap: 20px;
    padding: 5px 30px 0px 30px;
}

.navmenu-content{
    color: #000000; /*rgb(var(--color-primary));*/
    text-decoration: none;
}

.navmenu-content:hover{
    text-decoration: underline;
}

.Logo {
    
	margin-left: 30px;
    margin-right: 30px;
	max-width: 100%;
	height: auto;
    max-height: 100px;
}


.AppLogo {
	/*margin-right: 30px;
    margin-left: 30px;*/
    display: flex;
    justify-content: center;
    align-items: center;
	
    margin : 10px 10px 10px 10px;

    height: auto;
    max-height: 100px;
}

/*
section{
	margin :20px ;
}*/

h1 { color:rgb(var(--color-primary)); 
    font-size: 50px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 1.1px;

}	

header h1{
    color: var(--color-texte-on-background);
    font-size: 20px;
    align-content: center;
    text-align: center;
    width: 50%;
}

form{
    display: inline;
}

form label{
    display: inline;
    margin-top: 0em;
}

label {
    cursor: default;
    display: inline;
    font-weight: normal;
}

#smartcut-checkout-mini {
	width: 100%;
	margin-top: 20px;
	margin-bottom: 20px;
}	

/*#CommandeDetail{
	display: none;
}*/

#CommandeDetail.show{
	display: block;
	/*border:solid 2px rgb(var(--color-primary));
	border-radius: 1cap;*/
}

/*
.CommandeForm{
	padding: 10px 10px 10px 10px;
	border:solid 2px rgb(var(--color-primary));	
	margin-top: 10px;
}
*/
.btn{
	background: rgb(var(--color-segondary));
    color: var(--color-texte-on-background);
	border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.CommandeSubmit{	
	width :100%;
	height: 50px;
	background: rgb(var(--color-segondary));
    color: var(--color-texte-on-background);
	border: none;
    border-radius: 4px;
	margin-top: 10px;
}
.CommandeSubmit:hover{	
	background: rgb(var(--color-segondary-hover));
}

.btn:hover{
	background: rgb(var(--color-segondary-hover));
    outline: 2px solid var(--color-hover);
}

.btn:focus{
	outline: 2px solid var(--color-hover);
}

.selected-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 5px 0;
}

.Container {
    background: var(--color-background-L2);
    backdrop-filter: blur(10px);
    border-radius: 5px;

    /*padding: 15px;*/
    margin : 15px 30px 15px 30px;
    box-shadow: 0 3px 6px rgba(var(--color-border),0.1);
    /*width: 100%;
    max-width: 1000px;*/
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    position: relative;
    /*display: -ms-flexbox;*/
    display: flex;
    /*-ms-flex-direction: column;*/
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--color-background-L1);
    background-clip: border-box;
    border: 1px solid rgba(var(--color-border), .125);
    border-radius: .25rem;
}

.cardboard {
    background: var(--color-background-L1);
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(var(--color-border), 0.1);
    
  /*  padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
	
	align-items: flex-start;
	*/
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
	padding: .5rem 1rem;
	margin-bottom: 0;
	background-color: rgba(var(--color-border), .03);
    border-bottom: 1px solid rgba(var(--color-border), .125);
}
.card-header.h1 {
    justify-content: center;
}

.card-header h3 {
   line-height: 0;
}

.card-header h1{     
    margin: 0px;  
}

.card-body {
    display: flex;  
    padding: 10px;
	gap: 0px;
    /*max-width: 1200px;
	justify-content: space-between;*/
}

.form-section {
    width: 50%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    
}

.HorizontalSplit{
    display: flex;
    flex-direction: row;
}

.VerticalSplit{
    display: flex;
    flex-direction: column;
}

.gap-10 {
    gap:10px;
}

.flexwrap{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.full-width{
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.margin{
    margin: 10px;
}

.padding {
    padding: 10px;
}

.halh-width{
    width: 50%;
    max-width: none;
}

.form-group {
    display: flex;
    align-items: center;
}

.form-group label {
    width: 100px;
    font-weight: bold;
}

.form-group select {
    width: calc(100% - 160px - 120px); /*Adjust width considering the button*/
    padding: 5px;
    margin-right: 10px;
	align-items: left;
}

.form-group input {
    width: calc(100% - 160px - 120px); /*Adjust width considering the button*/
    padding: 5px;
    margin-right: 10px;
	align-items: left;
    box-sizing: border-box;
    background-color: var(--color-background-L3);
    border: none;
    border-radius: 5px;
    box-shadow: 0px 2px 2px rgba(var(--color-hover), 0.05);

    /*    width: 100%;
    box-sizing: border-box;
    background-color: var(--color-background-L3);
    border: none;
    padding: 12px 15px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0px 2px 2px rgba(var(--color-primary), 0.05);*/
}
.form-group input:focus {
    outline: 2px solid var(--color-hover);
}

.form-group button {
    width: 160px; 
    padding: 5px 10px;
}

.image-section{
    width: 20%;
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-section img {
    max-width: 200px;
    width: 75%;
    height: auto;
    margin-left: auto;
}

.materialProperties{
    margin: 20px;
    width: 15%;
    display: flex;
    flex-direction: column;
}

.SelectedMateriel{
	border: solid 1px rgb(var(--color-primary));
    max-width: 250px;
	border-radius: 0.5cap;
	padding: 5px;
	background-color: rgba(var(--color-border), .03);
}

.remove-btn {
    background: var(--color-bin); 
    color:var(--color-texte-on-background);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 8px;
    margin-left: 10px;
}

.remove-btn:hover {
    /* background: #7c1a1a;*/
    outline: 2px solid var(--color-hover);
 }

 .remove-btn:focus {
    outline: 2px solid var(--color-hover);
 }

.remove-btn .fa-trash {
    color: var(--color-texte-on-background); 
    width: 16px; 
    height: 16px; 
}

.rond {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.inputfullwith {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--color-background-L3);
    border: none;
    padding: 12px 15px;     
    margin-top: 10px;      
}

.form-section-inline
{
    display: flex;
    flex-direction: row;  
    margin-top: 10px;   
    align-content: center;
    gap : 10px;
}

.form-section-inline input {    
    box-sizing: border-box;
    background-color: var(--color-background-L3);
    border: none;
    padding: 12px 15px;   
}

.form-section-inline label { 
    align-content: center;
}

.Center {
    /*display: flex;*/
    justify-content: center;
    align-items: center;
}

tr:nth-of-type(even) {
    background-color: rgba(var(--color-primary), .05);
}

table {
    table-layout: fixed;
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    padding: 5px;
}

/*entête du tableau*/
th {

    background-color: rgba(var(--color-primary), .03);
    border-bottom: 1px solid  rgba(var(--color-primary), 0.3); /*#11222f30*/;
    box-shadow: 0 2px 3px rgba(var(--color-primary), 0.25);
    padding: 10px 0px 10px 5px;
}

.column-medium {
    width: 20%;
}

.column-small {
    width: 10%;
    min-width: 80px; /* Ajustez selon vos besoins */
}

.DecalTh{
    padding-left: 50px;
}

td {
    border-bottom: 1px solid rgba(var(--color-segondary), 0.1);
    box-shadow: 0px 2px 2px rgba(var(--color-segondary), 0.1);
    padding: 8px 0px 8px 3px; 
}

.tableheadercenter{
    text-align: center;
}

.tableRowEdtion{
    background-Color: var(--color-tableselection);
}

.tableRowEdtion:nth-of-type(even) {
    background-color: var(--color-tableselection);
}

.tableRowEdtionError{
    background-Color: var(--color-tableselectionError);
}
.tableRowEdtionError:nth-of-type(even) {
    background-color: var(--color-tableselectionError);
}

.RechercheInput{
    width: 100%;
    box-sizing: border-box;
    background-color: var(--color-background-L3);
    border: none;
    padding: 12px 15px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0px 2px 2px rgba(var(--color-primary), 0.05);
}

.RechercheInput:focus{
    outline: 2px solid var(--color-hover);
}

.ImportMappingItems{
    flex-grow: 1;
}

.MappingImport {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
}

.MappingImport label {
    width: 50%;
    max-width: 400px;
}

.MappingImport select {
    width: 50%;
    max-width: 400px;
    padding:5px;
}

#ImportFile div{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 0 0 0
}

#ImportFile label {
    width: 50%;
    max-width: 300px;
}

#ImportFile div select{
    width: 50%;
    max-width: 200px;
    padding:5px;
}

#ImportFile div button{
    width: 50%;
    max-width: 300px;
    padding:5px;
}

.inputcolor{
    background-color: transparent;
    border: none;
   
}

/*Bouton t'attente*/
.wait {
    color:gray;
}
.wait img {
    animation: rotation 10s linear infinite;
    vertical-align: middle;
    margin: 8px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Styles pour la modale d'édition des matériaux */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content .card {
    margin: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgb(var(--color-primary));
    padding: 0;
    line-height: 1;
    transition: transform 0.2s, color 0.2s;
}

.btn-close:hover {
    color: var(--color-bin);
    transform: scale(1.2);
}

/* Classes spécifiques pour la modale d'édition */
.modal-form-group {
   /* margin-bottom: 15px;*/
    display: flex;
    flex-direction: column;
}

.modal-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgb(var(--color-primary));
    font-size: 14px;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background-color: var(--color-background-L3);
    border: 1px solid rgba(var(--color-border), 0.2);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
    outline: 2px solid var(--color-hover);
    border-color: rgb(var(--color-segondary));
}

.modal-form-full {
    grid-column: 1 / -1;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
   /* margin-bottom: 15px;
    margin-top: 15px;*/
    margin : 15px 0 15px 0;
}

.modal-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-form-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}

.modal-card {
    max-width: 800px;
    margin: 0;
}

.modal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-result {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

/* =============================================== */
/* COOKIES BANNER & MODAL STYLES                  */
/* =============================================== */
#cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

#cookie-banner .container {
    max-width: 1200px;
    margin: 0 auto;
}
/*
#cookie-banner .buttons {
    margin-top: 10px;
}

#cookie-banner button {
    margin: 0 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}
*/
#cookie-banner .btn-accept {
    background: #28a745;
}

#cookie-banner .btn-reject {
    background: #dc3545;
}

#cookie-banner .btn-customize {
    background: #6c757d;
}

#cookie-banner button:hover {
    opacity: 0.9;
}

#cookie-banner .links {
    margin-top: 8px;
    font-size: 0.9em;
}

#cookie-banner .links a {
    color: #4ea3ff;
    margin: 0 8px;
    text-decoration: none;
}

#cookie-banner .links a:hover {
    text-decoration: underline;
}

/* Cookie Modal */
#cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
}

#cookie-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    color: #333;
}

#cookie-modal h3 {
    margin-top: 0;
    color: #333;
}

#cookie-modal .cookie-option {
    margin: 15px 0;
}

#cookie-modal label {
    display: block;
    margin: 5px 0;
    cursor: pointer;
}

#cookie-modal input[type="checkbox"] {
    margin-right: 8px;
}

#cookie-modal .description {
    color: #666;
    margin-left: 20px;
    font-size: 0.9em;
}

#cookie-modal .modal-buttons {
    text-align: right;
    margin-top: 20px;
}

#cookie-modal .modal-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    margin-left: 10px;
}

#cookie-modal .btn-cancel {
    background: #6c757d;
}

#cookie-modal .btn-save {
    background: #28a745;
}

#cookie-modal .policy-link {
    text-align: center;
    margin: 20px 0 15px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#cookie-modal .policy-link a {
    color: #4ea3ff;
    text-decoration: none;
    font-size: 0.9em;
}

#cookie-modal .policy-link a:hover {
    text-decoration: underline;
}

/* ===================
   STYLES Legal Docs
   =================== */
   
.legalLink{
    text-decoration: none;
    font-size: small;
}

.legalLink:hover{
    text-decoration: underline;
    color: rgb(var(--color-segondary-hover));
}

/* Container pour Login */
#login.Container {
    max-width: 300px;
}

/* Container pour section CGU */
#cguSection.Container {
    max-width: 900px;
}

.user-info {
    background: var(--color-background-L3);
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #666;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #b8daff;
    color: #0c5460;
}

.cgu-document {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    background: var(--color-background-L1);
}

.cgu-document h3 {
    color: rgb(var(--color-primary));
    margin-top: 0;
}

.cgu-acceptance {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid rgb(var(--color-segondary));
    border-radius: 8px;
    padding: 25px;
    margin: 0px 0;
}

.cgu-checkbox {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

.cgu-checkbox input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 3px;
    transform: scale(1.3);
    cursor: pointer;
}

.cgu-checkbox label {
    line-height: 1.4;
    cursor: pointer;
    font-size: 1.05em;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn-danger {
    background-color: var(--color-bin);
    color: white;
}
/*
.btn-danger:hover {
    background-color: var(--color-bin);
}*/

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*laisser en fin de fichier pour overide des éléments*/
.hide{
    display: none;
}