/*****************************************************************************************************/
/********************************************** HEADER ***********************************************/
/*****************************************************************************************************/

.header-SV {
    background-color: var(--bg-white);
}

.logo {
    max-height: 100px;
}

.color-white {
    color: var(--bg-white);
}

/*****************************************************************************************************/
/************************************** INTRO - CONNECTION FORM **************************************/
/*****************************************************************************************************/

.login-container-unified {
    padding: 2rem 1rem;
    background: var(--gradient-primary);
    border-radius: 1.25rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.intro-section {
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.text-accent {
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.lead {
    color: #e6eaf5;  
    font-weight: 300;
    padding: 0 20px;
}

.scroll-down-icon {
    font-size: 2rem;
    color: var(--accent-red);
    cursor: pointer;
}

.login-section {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.login-form {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.125);
    padding: 20px 10px;
    max-width: 400px;
    box-shadow: 0 8px 32px 0 rgba(10, 91, 172, 0.15);
    position: relative;
    overflow: hidden;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--primary-blue), var(--accent-red));
    opacity: 0.1;
    z-index: -1;
}

.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: transparent;
    color: rgba(255,255,255,0.6);
}

.input-wrapper input:focus,
.input-wrapper input:not(:placeholder-shown) {
    border-color: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.input-wrapper label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label {
    top: -20px;
    left: 0;
    font-size: 12px;
    color: var(--bg-white);
}

.input-wrapper input[type="email"] {
    font-size: 14px;
    background-color: rgba(255,255,255,0.2) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.input-wrapper input[type="email"]:-webkit-autofill,
.input-wrapper input[type="email"]:-webkit-autofill:hover,
.input-wrapper input[type="email"]:-webkit-autofill:focus,
.input-wrapper input[type="email"]:-webkit-autofill:active {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0 30px rgba(255,255,255,0.2) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-wrapper input[type="email"]:-moz-autofill,
.input-wrapper input[type="email"]:-moz-autofill:hover,
.input-wrapper input[type="email"]:-moz-autofill:focus,
.input-wrapper input[type="email"]:-moz-autofill:active {
    -moz-text-fill-color: white !important;
    box-shadow: 0 0 0 30px rgba(255,255,255,0.2) inset !important;
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-red));
    transition: width 0.3s ease;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
}

.forgot-password {
    width: auto;
    float: right;
    font-size: 0.8em;
    color: var(--bg-white);
    text-decoration: underline;
    margin-bottom: 15px;
}

.login-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(10, 91, 172, 0.3);
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.4);
}

.no-account-section {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

.contact-button {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.contact-button:hover {
    background: white;
    color: var(--primary-blue);
}

.error-message {
    background-color: white;
    color: red;
    text-align: center;
  }

/*****************************************************************************************************/
/***************************************** EXPERTISE SECTION *****************************************/
/*****************************************************************************************************/

.expertise {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 20px;
    background-color: var(--bg-light-gray);
}

.feature {
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: scale(1.05);
}

.feature i {
    color: var(--primary-blue);
    font-size: 50px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.feature:hover i {
    color: var(--accent-red);
}

/*****************************************************************************************************/
/***************************************** LOGISTICS SECTION *****************************************/
/*****************************************************************************************************/

.logistics {  
    display: flex;
    align-items: center;
    background-color: rgba(197, 206, 233, 0.2);
    border-radius: 20px;  
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

:root {
    --accent-red: rgba(238, 28, 37, 1);
}

.info-content {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 10px 10px 20px rgba(10, 91, 172, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 91, 172, 0.1);
}

.info-content:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 25px rgba(10, 91, 172, 0.15);
}

.info-intro {
    font-size: 1.1em;
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

.logistics-list {
    list-style-type: none;
    padding: 0;
}

.logistics-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 5px 5px 10px rgba(10, 91, 172, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 91, 172, 0.05);
}

.logistics-item:hover {
    transform: translateX(5px);
    box-shadow: 7px 7px 15px rgba(10, 91, 172, 0.15);
}

.icon-wrapper {
    background-color: var(--accent-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2em;
}

.logistics-item span {
    flex: 1;
    font-size: 0.95em;
    color: var(--primary-blue);
}

.info-boxes-container {
    --bs-gutter-x: 1rem;
    outline: none;
}

.info-box > div {
    background-color: #f8f9fa;
    border-left: 5px solid;
    word-wrap: break-word;
}

.info-nord > div { border-left-color: #3570BE; color: #3570BE; }
.info-idf > div { border-left-color: #FF914D; color: #FF914D;}
.info-centre > div { border-left-color: #D92929; color: #D92929;}
.info-aquitaine > div { border-left-color: #3C568C; color: #3C568C;}

.info-logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.info-logo {
    width: 100px;
    height: auto;
}

.info-address, .info-contact {
    margin-bottom: 0.5rem;
}

.info-box .info-mail {
    text-decoration: underline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
    font-family: inherit;
    display: inline-block;
}

.info-box .info-mail:hover {
    color: black;
    cursor: pointer;
}

hr.flex-grow {
    margin: 1rem 0;
}

@media (max-width: 870px) {
    .info-box {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .info-box .info-mail {
        font-size: 11px;
    }
}

.tooltip {
    position: fixed;
    background-color: white;
    border-radius: 12px;
    border: 4px solid transparent;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 320px;
    padding: 10px;
    font-family: 'Roboto', sans-serif;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    display: none;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: var(--border-top-color);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    opacity: 0.8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tooltip.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.tooltip-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    max-width: 90px;
    max-height: 90px;
}

.tooltip-logo-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tooltip-details {
    width: 100%;
    text-align: left;
}

.tooltip-address {
    font-size: 14px;
    color: var(--tooltip-color, #333);
    margin-bottom: 10px;
    font-weight: 500;
    text-align: left;
}

.tooltip-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    width: 100%;
}

.tooltip-phone, 
.tooltip-email {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--tooltip-color, #666);
}

.tooltip-phone i, 
.tooltip-email i {
    margin-right: 8px;
    color: var(--tooltip-color, #666);
}

/* Media Queries pour différentes tailles d'écran */

/* Mobile (jusqu'à 576px) */
@media screen and (max-width: 576px) {

    .logo {
        max-height: 50px; /* Réduire la hauteur maximale du logo */
        max-width: 100%; /* Assurer que le logo reste responsive */
    }

    .login-container-unified {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .login-section {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .login-wrapper {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .lead {
        padding: 0 10px;
        font-size: 0.9rem;
    }

    .intro-section {
        border-right: none;
        margin-bottom: 1rem;
    }

    .input-wrapper input {
        font-size: 0.9rem;
    }
}

/* Tablettes (577px à 992px) */
@media screen and (min-width: 577px) and (max-width: 992px) {
    .login-container-unified {
        padding: 2rem 1rem;
    }

    .lead {
        padding: 0 20px;
    }

    .intro-section {
        border-right: 1px solid rgba(255,255,255,0.1);
    }
}

/* Desktop (plus de 992px) */
@media screen and (min-width: 993px) {
    .login-container-unified {
        padding: 4rem 2rem;
    }
}


/*****************************************************************************************************/
/********************************************* CTA SECTION *******************************************/
/*****************************************************************************************************/

.cta {
    background: linear-gradient(135deg, var(--accent-red), var(--primary-blue));
    color: white;
    border-radius: 20px;
    margin-bottom: 50px;
}