



/* Application des couleurs */

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

body,html{
    position: relative;
    margin: 0;
    padding: 0;
}


.m_show{
    display: none;
}
.m_hide{
    display: block;
}




/* #region title */
h1,h2,h3,h4,button,.button,input{
    font-family: Times New Roman, Tahoma, Geneva, Verdana, sans-serif;
}

h1{
    transition : 1s all ease;
}

h2,
h3,
h4{
    padding: 1.4rem 0;
    padding-top: 0.2rem;
    padding-bottom: 0.6rem;
    letter-spacing: 0.05rem;
    margin-bottom: 1.2rem;
    color: var(--title-color, #222);
    border-bottom: 1px solid var(--accent-color, #999);
}

h4{
    font-weight: 500;
    font-size: 1rem;
    padding-top: 0.2rem;
    color: var(--accent-color, #222);
}


bu{
    font-weight:bold;
    font-size: 1.4rem;
}


section > h1,
main > h1{
    text-align: center;
    margin:20px auto;
    max-width:var(--section-width);
    line-height: 4rem;
}

section > h1 {
    margin: -1.5rem -3rem;
    margin-bottom: 20px;
}


/* #endregion */





/* #region | input, textarea, select  */
textarea, 
select,
.input,
input,
select,
.lcs-wrap
{
    border: 1px solid #d1d1d1;
    box-shadow: 1px 1px 1px -1px #666;
    border-radius: 6px;
    padding: 5px;
    padding-left:10px;
    margin: 0.3rem 0;
    background: #FFF;
    font-size: 1rem;
    height: 2.4rem;
    box-sizing: border-box;
    transition:border-color .15s ease;

}

lc-select:focus>.lcs-main,
input:focus{ outline:none; border-color:var(--accent-color,#671920); }
*:disabled{ background:#f4f4f4!important; color:#555!important; filter:grayscale(0.5);  cursor:not-allowed; }
                    


input[type="color"]{
    padding: 4px;
    padding-right: 35px;
    width: 70px;
    position: relative;
    cursor:pointer;
    
}
input[type="color"]::after{
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    color:#aaa;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s;
    top: 50%;
    margin-top: -6px;
    position: absolute;
    right: 12px;
}
input[type="color"]:hover::after{
    color: #666;
}
input[type="color"]:focus::after{
    transform: rotate(-135deg);
}

input[type="radio"],
input[type="checkbox"],
input[type="range"] {
    border: none;
    box-shadow: none;
}

select{
  padding: 0 0.4rem;
}

textarea:focus,
input:focus,
select:focus {
    box-shadow:0 0px 1px 1px rgba(0, 0, 0, 0.3);
    outline: 1px solid #aaa;

    border-color: var(--border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input>input:not([type="checkbox"]):not([type="radio"]):not([type="range"]){
    outline: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: none;
}
.input>img{
    height: 20px;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--accent-color); 
}

/* #endregion */



/*#region | button */
button,
.button{
    all: unset; /* remet tout à zéro */
    min-width: 100px;
    font-size: 1rem;
    font-weight: bold;
    line-height: 22px;
    letter-spacing: 0.08rem;
 
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    box-shadow: inset -1px -1px 2px var(--accent-color);
    transition: background-color 0.2s ease, box-shadow 0.1s ease;

    text-align: center;
    cursor: pointer;
    position: relative;
    display: block;
}

button:active,
.button:active{
    box-shadow : inset 1px 1px 2px #422
}

button:disabled,
.button:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}


button,
.button,
button a,
.button a {
    text-decoration: none;
    color: var(--text-color,#111);
}

button.small,
.button.small{
    font-size: 0.8rem;
    letter-spacing: 0.02rem;
    line-height: 15px;
}





.button.primary,
button.primary {
  background-color: var(--button-color,#BBB);
}


.button.primary:hover,
button.primary:hover {
  background-color: var(--button-hover,#ABABAB);
}



.big{
    padding:15px 25px;
    font-weight: 500;
    font-size: 1.2rem;
}

.intense {
    background-color: #880b11;
    color:#FFF;
}






.button.secondary,
button.secondary {
  border: 1px solid var(--button-color,#BBB);
}

.button.secondary:hover,
button.secondary:hover {
  border: 1px solid var(--hover-color,#ABABAB);
}
/*#endregion */



/* #region utils comment flex-row card... */

.comment{
    font-size:0.9rem;
    color: #888;
    margin-bottom: 1rem;
    font-style: italic;
}


.card {
    background: var(--button-hover);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .1);
    padding: 24px;
}


.flex-r,
.flex-row-center,
.flex-row-end,
.flex-row{
    display: flex;
    flex-direction: row;
}
.flex-row-center,
.flex-row-end,
.flex-row{
    gap: 1.5rem;
    margin-bottom: 0.9rem;
}
.flex-row-center{
    align-items: center;
    gap: 30px;
    justify-content: center;
}
.flex-row-end{
    justify-content: end;
}
.flex-row>*{ flex:1;}

.flex-c,
.flex-col-center,
.flex-col{
    display:flex;
    flex-direction: column;
}

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

.flex-full{
    flex-basis: 100%;
}

/*Flex break*/
flex-br{ 
    flex-basis: 100%;
    width: 0;
}
flex-br.lh{
    width: 100%;
    height: 2px;
    background: #d5d5d5;
    margin: 10px -5px;
    padding-right: 10px;
    box-sizing: content-box;
    box-shadow: inset 0px 1px 0px #444;
    border-radius: 2px;
    flex:auto;
}



.grid{ display:grid; gap:24px; grid-template-columns:1fr; }
@media(min-width:860px){ .grid{ grid-template-columns:1fr 1fr; } }




.small-text{
    font-size: 0.8rem;
    color: #666666;
}


hr{
    margin: 15px auto;
    background: linear-gradient(90deg, transparent, #671920 5%, #b1000f 95%, transparent);
    border: none;
    height: 2px;
    max-width:800px;
    width: 80%;
    filter: blur(0.5px);
    opacity: 0.5;
}

.hide{
    display: none;
}

.blur{
    filter: blur(3px);
}

.noAction{
    user-select: none;
    pointer-events: none;
}

.ptr{
    cursor: pointer;
}


/* #endregion */

/* #region animation fadeIn , reveal-childs */
.reveal-childs > * {
  opacity: 0;
  transform: translateX(-24px) scale(.96);
  transform-origin: center;
  will-change: transform, opacity;
  animation: slideFadeZoom .7s cubic-bezier(.22,.61,.36,1) forwards;
}

.reveal-childs>*:nth-child(1) { animation-delay: 0s;   }
.reveal-childs>*:nth-child(2) { animation-delay: .12s; }
.reveal-childs>*:nth-child(3) { animation-delay: .24s; }
.reveal-childs>*:nth-child(4) { animation-delay: .36s;   }
.reveal-childs>*:nth-child(5) { animation-delay: .48s; }
.reveal-childs>*:nth-child(6) { animation-delay: .60s; }

.reveal {
  opacity: 0;
  transform: translateX(-24px) scale(.96);
  transform-origin: center;
  will-change: transform, opacity;
  animation: slideFadeZoom .7s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes slideFadeZoom {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}



.fadeIn{
    /* Animation appliquée au chargement */
    animation: fadeInMove 1.2s ease-out 0.8s forwards;
    opacity: 0; /* état initial avant animation */    
}

@keyframes fadeInMove {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* #endregion */



/* #region form section transition animation 1.2s : [selected] fadeIn, not([selected]) => fadeOut */

@keyframes sectionInFromRight {
    0% {
        opacity: 0;
        transform: translate3d(32%, 0, 0) scale(.98);
    }
    58% {
        opacity: 1;
        transform: translate3d(3%, 0, 0) scale(1.005);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes sectionInFromLeft {
    0% {
        opacity: 0;
        transform: translate3d(-32%, 0, 0) scale(.98);
    }
    58% {
        opacity: 1;
        transform: translate3d(-3%, 0, 0) scale(1.005);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes sectionOutToLeft {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    42% {
        opacity: 1;
        transform: translate3d(-4%, 0, 0) scale(0.995);
    }
    100% {
        opacity: 0;
        transform: translate3d(-32%, 0, 0) scale(.98);
    }
}

@keyframes sectionOutToRight {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    42% {
        opacity: 1;
        transform: translate3d(4%, 0, 0) scale(0.995);
    }
    100% {
        opacity: 0;
        transform: translate3d(32%, 0, 0) scale(.98);
    }
}

form[section_transition] {
    position: relative;
}

form[section_transition] > .section-transition-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: height 0.7s ease;
}

form[section_transition] > .section-transition-wrapper > section {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

form[section_transition] > .section-transition-wrapper > section[selected] {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

form[section_transition] > .section-transition-wrapper > section.section-transition-entering {
    opacity: 0;
    visibility: visible;
    pointer-events: auto;
    z-index: 3;
}

form[section_transition].section-transition-next > .section-transition-wrapper > section.section-transition-entering {
    animation: sectionInFromRight 0.9s cubic-bezier(.22, .61, .36, 1) both;
}

form[section_transition].section-transition-prev > .section-transition-wrapper > section.section-transition-entering {
    animation: sectionInFromLeft 0.9s cubic-bezier(.22, .61, .36, 1) both;
}

form[section_transition] > .section-transition-wrapper > section.section-transition-leaving {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    z-index: 2;
}

form[section_transition].section-transition-next > .section-transition-wrapper > section.section-transition-leaving {
    animation: sectionOutToLeft 0.9s cubic-bezier(.22, .61, .36, 1) both;
}

form[section_transition].section-transition-prev > .section-transition-wrapper > section.section-transition-leaving {
    animation: sectionOutToRight 0.9s cubic-bezier(.22, .61, .36, 1) both;
}



/* #region Main et Footer */
main {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    display: block;
    position: relative;
    min-height: calc(100vh - 200px);
    display: flow-root;
    padding-bottom:4rem;

    background: linear-gradient(20deg, #A6A5A523, #ffe3e313, #A6A5A523), radial-gradient(50% 3px, #70555511, #fe555522, #FFFFFF25 40%, transparent) repeat;
    background-position: -50% -50%;
    background-size: 50% 4px;
    animation: bgShift 6s linear infinite;
}




@keyframes bgShift {
  0% {     
    background: linear-gradient(20deg, #A6A5A523, #ffe3e313, #A6A5A523), radial-gradient(50vw 3px, #70555511, #fe555522, #FFFFFF25 40%, transparent) repeat;
    background-size: 50vw 4px;
    background-position: 0vw 0;
    }
  50% {     
    background: linear-gradient(20deg, #A6A5A523, #ffe3e313, #A6A5A523), radial-gradient(120vw 3px, #70555511, #fe555522, #FFFFFF25 40%, transparent) repeat;
    background-size: 100vw 6px;
    background-position: -50vw 5px;
    }
  100% {    
    background: linear-gradient(20deg, #A6A5A523, #ffe3e313, #A6A5A523), radial-gradient(50vw 3px, #70555511, #fe555522, #FFFFFF25 40%, transparent) repeat;
    background-size: 50vw 4px; 
    background-position: 0vw 0;
    }
}



/* #endregion */

/* #region section */

main > section{
    background-color: var(--bg-form);/*rgba(255, 255, 255, 0.95)*/
    padding: 0.5rem 3rem;
    padding-bottom: 1.5rem;
    border-radius: 1rem;
    box-shadow:var(--shadow-form);
    color: var(--text-color)/*#000*/;
    max-width: var(--section-width);
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    position: relative;
    margin: 15px auto;
    overflow: hidden;
}


section.full{
        width: 100vw !important;
        max-width: 100%;
        padding:0;
        background-size: cover;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        position: relative;
    }

section.full>.bg{
    position: absolute;
    top:0;left:0;right:0;bottom:0;
    width: 100vw;
}


/* #endregion */


/* #region form section (tab) */
form > section:not([selected]){
    display: none;
}

form[section_transition] > section:not([selected]) {
    display: block;
}
/* #endregion */

/* #region section form */

section form{

}
section form label{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 1.1rem;
}
section form label.smb{ /*Small margin bottom*/
    margin-bottom:0.1rem;
}
section form label > span{
    display: inline-block;
    width: 200px;
    padding-top:5px;
    flex: 0 0 200px;
}
section form label>*:not(span),
section form label>.ctn_input,
section form label>*:not(span) input,
section form label>*:not(span) select,
section form label>*:not(span) textarea
{
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

section form .postcode{
    max-width: 120px;
    margin-right: 1rem;
}
section form .city{
    margin-right: 1rem;
}

section form .country{
    max-width: 120px;
}







section form.loading  #ctn_submit,
section form  #ctn_pending{
    display:none;
}
section form  #ctn_errors>div{
    overflow: hidden;    
    max-height: 0px;
    border: 0px solid red;
    padding: 0px 50px;
    opacity: 0;
    transition: 1s all ease;
}
section form  #ctn_submit,
section form.loading  #ctn_pending{
    display:block;
}
section form #ctn_errors{
    margin: -50px;
    margin-bottom: 20px;
    margin-top: -20px;
}

section form  #ctn_errors>div.show{
    color: red;
    padding: 10px 50px;
    border: 1px solid red;
    border-top: 2px solid var(--accent-color);
    background-color: rgba(255, 0, 0, 0.1);
    max-height: 80px;
    opacity: 1;
}


section form input.error,
section form select.error,
section form textarea.error{
    border-color: red !important;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2) !important;
}


/* #endregion */

/* #region password toggle afficher cacher */
    .ctn_input_password{
        position: relative;
    }
    .ctn_input_password > input{
        padding-right: 95px !important;
        width: 100%;
    }
    .ctn_input_password.visible     > .toggle>*:first-child,
    .ctn_input_password             > .toggle>*:last-child{
        display: none;
    }
    .ctn_input_password             > .toggle>*:first-child,
    .ctn_input_password.visible     > .toggle>*:last-child{
        display: inline;
        position: absolute;
        right: 15px;
        top: 14px;        
    }

/* #endregion */

/* #region select autre => affiche un champ input */
    .ctn_select_other{
        position: relative;
    }
    .ctn_select_other > select{
        width: 100%;
    }
    .ctn_select_other > input{
        position: absolute;
        top: 0;
        right: 20px;
        border-top-right-radius: 0px!important;
        border-bottom-right-radius: 0px!important;
        box-shadow: none !important;
        left: 0px;
        width: auto;
    }
    .ctn_select_other > select[value="other"] + input{
        display: block;
    }
/* #endregion */

/* #region Camembert styles améliorés */
    .camembert{
        width:70px; height:70px; border-radius:50%;
        position:relative; display:flex; justify-content:center; align-items:center;
        font-size:14px; font-weight:bold; color:#0f172a;
        background:conic-gradient(var(--color) 0% var(--pct), #e2e8f0 var(--pct) 100%);
        box-shadow:inset 0 0 10px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.08);
        overflow:hidden;
        margin-right:30px;
    }
    .camembert span{ color:var(--text-color); position:relative; z-index:1; }
    .camembert::after{
        content:""; position:absolute; inset:8px; border-radius:50%; background:var(--button-hover); z-index:0;
        box-shadow:inset 0 0 6px rgba(0,0,0,.05);
    }
    /* Animation apparition */
    @keyframes grow {
        from { --pct:0%; }
    }
    .camembert{
        animation: grow 2s ease-out forwards;
    }

/* #endregion */

/* #region Scrollbars */
.hideScroll{
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
    -webkit-overflow-scrolling: touch;

    /* cache la scrollbar */
    scrollbar-width: none;          /* Firefox */
}
.hideScroll::-webkit-scrollbar{       /* Chrome/Safari/Edge */
    width: 0;
    height: 0;
}

body *::-webkit-scrollbar{ height: 8px; width:8px }
body *::-webkit-scrollbar-track{ 
    background: rgba(250,250,250,0.4); 
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.7);
    border-radius: 10px;
}
body *::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,.2);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}
body *::-webkit-scrollbar-thumb:hover{
    background: rgba(0,0,0,.4); 
}
/*#endregion*/

/* #region Title Pills */
section > .title_pills{
    background: linear-gradient(175deg, #833030 20%, #430c0c 80%);
    color: white;
    padding: 0.4rem 1.7rem;
    padding-bottom: 0.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    margin-top: -1rem;
    margin-left: 2rem;
    position: absolute;
}
section > .title_pills .icon{
    font-size: 0.8rem;
    margin-right: 0.5rem;
}
/* #endregion Title Pills */

/* #region sep_bar */
section.ctn_pro_account .sep_bar{
    height: 2px;
    background: linear-gradient(125deg, #f8f8f8 0%, #ffffff 80%);
    display: block;
    margin: 1rem 0;
}
/* #endregion sep_bar */

/* #region Tags */
.ctn_tags{
    position: absolute;
    bottom:10px;
    left: 10px;
    right:10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: end;
    align-items: end;
}
.ctn_tags > *{
    margin: 0.5rem 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    border:1px solid #ccc;
}
.ctn_tags > .grey{
    background-color: #f0f0f0;
    border-color: #999;
    color: #444;
}
.ctn_tags > .red{
    background-color: #f8d7da;
    border-color: #f44336;
    color: #7a1c21;
}
.ctn_tags > .green{
    background-color: #c8f7c5;
    border-color: #4caf50;
    color: #256029;
}
/* #endregion Tags */

/* #region Fieldsets */
legend{
    font-size: 0.8rem;
    margin:0; padding: 0;
    margin-left:0.5rem;
    padding-left:0.5rem;
    padding-right: 1rem;
    letter-spacing: 0.5px;
}
fieldset{
    margin-right: 1rem;
    padding: 0.2rem 0.6rem;
    letter-spacing: 1px;

    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    border:1px solid #ccc;
    position:relative
}
/* #endregion Fieldsets */

/* #region No Photo */
.nophoto{
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nophoto::after{
    content: "";
    background:url("/images/icon/no_photo.svg");
    background-size: contain;
    width: 50px;
    height: 50px;
    opacity: 0.6;
    position: absolute;
    margin:auto;
    display: block;
}
/* #endregion No Photo */

/* #region i18n */
.i18n_select,
.i18n_select:hover,
.i18n_select:focus{
    display: block;
    padding: 0.3rem 0.5rem;
    height: auto;
    font-size: 0.85rem;
}

/* #endregion i18n */