*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
}
.content {
    top: 50px;
    position: absolute;
    height: calc(100vh - 50px);
    width: 100%;
}

.navbar {
    width: 100vw;
    height: 50px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 30%,var(--gray-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left : 8px;
    padding-right: 25px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    margin: 0;
    box-sizing: border-box;
    box-shadow: 0 0 5px #888;
}

.logo-container {
    width: 50%;
    height: 98%;
    background-image: url('tvs_logo.png');
    background-size: contain;
    background-position: left 2px; 
    background-repeat: no-repeat; 
    margin-left: 0px;
}



.user-icon {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    color : white
}

.small-icon .material-symbols-outlined {
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 25px; 
}
.material-symbols-outlined.contact{
    color: white;
}

.big-icon .material-symbols-outlined{
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 25px;
}

.user-icon .material-symbols-outlined:hover {
    transform: scale(1.3);
}

/* pop up */
.dropdown-popup {
    display: block;
    opacity: 0; 
    visibility: hidden;
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--light-gray);
    width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 99;
    animation: slideDown 0.3s;
    margin:-10px;
}

.dropdown-popup.show {
    opacity: 1;
    visibility: visible;
}

.dropdown-popup h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--very-dark-gray);
}

.dropdown-popup p {
    margin: 0;
    font-size: 14px;
    color: var(--gray);
}
#notif-popup{
    position: absolute;
    right: 35px;
    top: 70px;
}

@keyframes slideDown {
    from { 
        transform: translateY(-10px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* account pop-up */
.big-icon {
    position: relative;
    display: inline-block;
}

/* Bouton d'ouverture */
.btn-open-popup {
    padding: 12px 24px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-open-popup:hover {
    background-color: #1976D2;
}

.popup-dropdown {
    display: block; 
    opacity: 0; 
    visibility: hidden; 
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 99;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-dropdown.show {
    opacity: 1;
    visibility: visible;
}

/* Carte de la popup */
.popup-card{
    background-color: white;
    border-radius: 20px;
    padding: 40px 30px;
    width: 300px;
    max-width: calc(100vw - 40px); 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    margin-top:-10px;
    border:1px solid var(--light-gray);
}

/* Cercle avec initiale */
.profile-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    margin: 10px auto 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 4px 5px rgba(76, 175, 80, 0.3); */
}

.profile-initial {
    color: white;
    font-size: 45px;
    font-weight: 700;
    font-family: Arial, sans-serif;
}

/* email */
.user-email{
     display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px; 
    border: 1px solid var(--light-gray);
    border-radius: 15px;
    margin: 0 15px;
}

/* Texte status */
.status-text {
    color: #999;
    font-size: 14px;
    margin: 30px 0 25px;
    font-weight: 600;
}

/* Conteneur des boutons */
.popup-buttons {
    display: flex;
    flex-direction: row;
    padding: 0 15px;
    justify-content: space-between;
    margin-top: 20px;
}

/* Boutons d'action */
.btn-popup {
    flex: 1;
    padding: 5px 20px;
    border: 1px solid var(--blue);
    background-color: white;
    color: var(--blue);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 120px;
    min-height:29px;
    text-decoration: none;
}

.btn-popup:hover {
    background-color: var(--blue);
    color: white;
}

.btn-share .material-symbols-outlined {
    font-size: 24px;
}

.headbar-a {
    text-decoration:none;
    font-size: var(--large);
}

.headbar-login {
    color:white;
    border: 3px solid white;
    border-radius:5px;
    padding: 5px;
    margin-right: 20px;
}

.headbar-login:hover, .headbar-login:visited {
    background-color: white;
    color: black;
    text-decoration:none;
}

.headbar-subscribe {
    color:white;
    border-radius:5px;
    padding: 5px;
}

.button_loader{background-color:#6b8cd4;color:#9fb0d4;background-image:url(/media/button_spinner.gif);background-size:50px 50px;background-repeat:no-repeat;background-position:center;}

.error_toast, .success_toast{
    position:fixed;
    bottom:70px;
    left:50%;
    transform:translateX(-50%);
    z-index:30;

    margin:auto;
    padding:10px;
    width:1000px;
	
	border-radius:8px;
	
    color:#fff; 
    text-align:center;
    font-size: var(--medium); 
    font-weight:600;
}
.error_toast{
	background-color:#dd4444;
	border:1px solid #c44;
}
.success_toast{
  background-color:#6ab04c;
  border:1px solid #6ab04cd5;
  animation: fadeOut ease 6s;
  -webkit-animation: fadeOut ease 6s;
  -moz-animation: fadeOut ease 6s;
  -o-animation: fadeOut ease 6s;
  -ms-animation: fadeOut ease 6s;
}
.toast_text {
	width:95%;
	display:inline-block;
}
.toast_text_collapsed{
	overflow:hidden;
	max-height: 48px;
}
.toast_text a {color:unset;}

.error_toast_close{float:right;text-decoration:none;height:20px;display: flex;}
.error_toast_close a:hover{color:#fff;text-decoration:none;}
.error_toast_close a:visited{color:#fff;text-decoration:none;}
.error_toast_close a{color:#fff;text-decoration:none;display: flex;align-items:center}

/* Animation d'ouverture */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}



/* Responsive */
@media (max-width: 480px) {
    .popup-card{
        padding: 30px 20px;
        width: 320px;
    }
    .profile-circle {
        width: 100px;
        height: 100px;
    }
    .profile-initial {
        font-size: 50px;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn-action {
        max-width: 100%;
    }
}


   .complete-popup {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); 
    justify-content: center;
    align-items: center;
    z-index: 99;
    
}

    .complete-popup.show {
        display: flex;}

    .complete-popup h2 {
    font-size: 22px; 
    color: var(--dark-gray);
}

.complete-popup p {
    font-size: 14px; 
    color: var(--gray);

}

/* account page */

.account-page-sizer{
    max-width:1300px;
    padding-left:20px;
}

.account-container {
    /* max-width: calc(100vh - 200px); */
    margin: 50px 20px;
}
.account-cards-wrapper {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.account-card {
    flex: 1;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}
.account-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-bottom: 1px solid var(--light-gray);
}
#account-icon-personal, #account-icon-services{
    color: var(--dark-gray);
    font-size: 30px;
} 
.account-card-header h2 {
    font-size: var(--large);
    color: var(--dark-gray);
    font-weight: 400;
    margin: 0;
}
.account-card-body {
    padding: 20px 40px;
}
.account-field-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--very-light-gray);
}
.account-field-row:last-child {
    border-bottom: none;
}
.account-field-label {
    flex: 0 0 140px;
    font-weight: 600;
    font-size: var(--medium);
    color: var(--dark-gray);
    margin: 0;
}
.account-field-input {
    flex: 1;
    min-width: 0;
    border: 1px solid transparent;
    background-color: transparent;
    padding: 6px 10px;
    font-family: inherit;
    font-size: var(--medium);
    color: var(--dark-gray);
    text-align: right;
    border-radius: var(--small-border-radius);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.account-field-input[readonly] {
    cursor: default;
}
.account-field-input::placeholder {
    color: var(--gray);
    font-style: italic;
}
.account-field-row.editing .account-field-input {
    border-color: var(--tvconnect-blue);
    background-color: var(--white);
    text-align: left;
}
.account-field-edit-btn {
    flex-shrink: 0;
    color: var(--gray);
    font-size: var(--large);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.account-field-edit-btn:hover {
    color: var(--tvconnect-blue);
    background-color: var(--very-light-gray);
}
.account-field-row.editing .account-field-edit-btn {
    color: var(--tvconnect-blue);
}
.title-column.account{
    padding-top: 20px;
}
.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.account-service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}
.account-service-item.inactive, .service-text.inactive h3, .material-symbols-outlined.service-icon.inactive {
    color: var(--gray);
    cursor: default;
}
.account-service-item:not(.inactive):hover{
    background-color: var(--very-light-gray);
}
.account-service-item .add-btn-account {
    margin-left: auto;
    align-self: center;
}
.service-icon { font-size: 25px; }
.service-icon.blue { color: var(--tvconnect-blue); }
.service-icon.orange { color: var(--tvconnect-yellow); }
.service-icon.pink { color: var(--tvconnect-pink); }

.service-text h3 { margin: 0; font-size: var(--medium); color: var(--dark-gray); }
.service-text p { margin: 5px 0 0; font-size: var(--small); color: var(--gray); max-width:250px; }

.account-buttons {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
}
#save-btn-account {
    display: block;
    margin: 30px 30px 30px auto;
}
.contact-main-content{
    height: calc(100vh-60px);
    margin-left: 60px;
    margin-top: 20px;
}



#map-overlay {
    font-family: 'Inter', sans-serif;
    padding: 40px 0;
}
.contact-form-overlay {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--light-gray);
    width: 60vh;
    padding: 30px;
    margin-left: 50px;
}
.fancy-title h3 {
    font-weight: 700;
    font-size: var(--large);
    color: var(--dark-gray);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.title-border h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--tvconnect-blue);
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: var(--medium);
    color: var(--dark-gray);
    margin-bottom: 4px;
}
.form-group label small {
    color: #e53e3e;
    font-size: 1rem;
}
.form-group input, .form-group textarea {
    color: var(--dark-gray);
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.form-group-hint {
    font-size: var(--very-small);
    color: var(--gray);
    margin-bottom: 2px;
    margin-top:-5px;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: var(--medium);
    color: var(--dark-gray);
    background-color: var(--background-color);
    border: 1px solid var(--light-gray);
    border-radius: var(--small-border-radius);
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    font-weight: 400;
}
.form-control:focus {
    outline: none;
    border-color: var(--tvconnect-blue);
    background-color: #fff;
}
.form-control[readonly] {
    background-color: var(--very-light-gray);
    color: var(--gray);
    cursor: not-allowed;
    pointer-events: none;
    /* border-style: dashed; */
    box-shadow: none;
}
.form-control[readonly]:focus {
    border-color: var(--light-gray);
    background-color: var(--very-light-gray);
}
.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 1.25rem;
}
.form-row-inline .form-group {
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .form-row-inline {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-row-inline .form-group {
        margin-bottom: 1.25rem;
    }
    .form-row-inline .form-group:last-child {
        margin-bottom: 0;
    }
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
.form-group-submit {
    text-align: right;
    margin-bottom: 0;
}
.d-none {
    display: none !important;
}
.contact-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(600px, 92vw);
    max-height: 90vh;
    padding: 0;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: var(--dark-gray);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}
.contact-dialog[open] {
    display: flex;
    flex-direction: column;
}
.contact-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.contact-dialog #template-contactform {
    padding: 24px;
    margin: 0;
    overflow-y: auto;
}
#template-contactform-company, #template-contactform-email{
    font-weight: 400;
}
.contact-header{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-gray);
}
.contact-title{
    font-size: var(--large);
    font-weight: 600;
    color: var(--very-dark-gray);
}
.close-contact-btn{
    color: var(--dark-gray);
    font-size: var(--medium);
    cursor: pointer;
    margin-left: auto;
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.15s ease;
}
.close-contact-btn:hover{
    background-color: var(--light-gray);
}