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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header elements positioned absolutely */
.logo {
    position: absolute;
    top: 25px;
    left: 30px;
    z-index: 10;
}
.logo img {
    max-width: 200px;
    height: auto;
}

.header-link {
    position: absolute;
    top: 25px;
    right: 20px;
    color: #999;
    text-decoration: underline;
    font-size: 13px;
}

.header-link:hover {
    color: #666;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}

.content-wrapper {
    display: grid;
    width: 100%;
    flex: 1;
    grid-template-columns: 2fr 1fr;
    grid-template-areas:
        "login aside";
}

.login-section {
    grid-area: login;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px 0;
    position: relative;
    background-color: white;
    min-height: 100vh;
}

.login-section-content {
    width: 100%;
    max-width: 500px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.avis-section {
    grid-area: aside;
}

.login-container {
    background: white;
    /*border-radius: 8px;*/
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);*/
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

/* Bloc Slider */
.avis-section {
    /*background: linear-gradient(180deg, #1a3a4a 0%, #0d2530 100%);*/
    background: #0c364e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

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


/* 20/02*/

section.logo_regroupeur {
    /*display: flex;*/
    display: grid;
    align-items: center;
    justify-content: center;
    /*border-bottom: 1px solid #DFDDD8;*/
    padding: 15px 0;
    grid-template-columns: 1fr 1fr;
}
section.logo_regroupeur.no-img-regroupeur  {
    display: flex;
    padding: 15px 0;
}
section.logo_regroupeur.no-img-logo  {
    display: flex;
    padding: 25px 0;
}

div.img_regroupeur-container, div.img_logo-container {
    margin: 0 20px;
}

div.img_regroupeur {
    display: inline-block;
    /*position: absolute;*/
    width: 130px;
    height: 130px;
    overflow: hidden;
    /*border-radius: 50%;*/
}

div.img_regroupeur img {
    width: auto;
    height: 100%;
    /*margin-left: -50px;*/
}


/* 20/02*/

section.logo_regroupeur + hr {
    background-color: #fff;
    border-color: #fff;
    margin: 10px 0;
}

section.nom_regroupeur .group_name span, section.nom_regroupeur .group_name p {
    display: flex;
    justify-content: center;
    font-size: 17px;
}

section.message_regroupeur {
    margin-top: 20px;
    font-weight: 200;
}

.slider-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*
.slide-images, .slide-texts {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-images {
    height: 210px;
    margin-bottom: 20px;
}

.slide-texts {
    min-height: 60px;
    margin-bottom: 25px;
}

.slide-image, .slide-text {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.slide-image.active, .slide-text.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

 */

.slide-images {
    position: relative;
    width: 100%;
    height: 210px;
    margin-bottom: 20px;
}

.slide-texts {
    position: relative;
    width: 100%;
    min-height: 60px;
    margin-bottom: 25px;
}

.slide-image, .slide-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

.slide-image.active, .slide-text.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-image {
    width: 180px;
    height: 180px;
}

.slide-text {
    width: 100%;
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.slide-image {
    width: 180px;
    height: 180px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide-text {
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.avis-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.avis-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.avis-dot.active {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background: white;
}

.avis-nav {
    display: flex;
    gap: 30px;
}

.avis-nav button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 10px;
}

.avis-nav button:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-rows: none;
        grid-template-areas: none;
    }

    .login-section {
        order: 1;
        min-height: auto;
        padding: 20px;
    }

    .avis-section {
        width: 100%;
        padding: 30px 20px 0;
        order: 2;
        min-height: 50vh;
    }

    /* Masquer footer desktop, afficher footer mobile */
    .footer-desktop {
        display: none !important;
    }

    .footer-mobile {
        display: flex !important;
    }

    /* Logo centr� sur mobile */
    .logo {
        position: static;
        text-align: center;
        padding: 20px 0;
    }

    .logo img {
        max-width: 150px;
    }

    /* Masquer le lien header sur mobile */
    .header-link {
        display: none;
    }

    /* Ajustements du container de connexion */
    .login-container {
        padding: 30px 0;
    }

    /* Ajustements des onglets */
    .tab {
        padding: 10px 5px !important;
        font-size: 12.5px !important;
    }

    .tab-icon {
        width: 15px;
        height: 15px;
    }

    /* Footer responsive */
    .footer-mobile {
        gap: 15px;
        padding: 15px 20px;
    }
    .no-connection {
        font-size: 10px !important;
    }
    .btn {
        font-size: 12px !important;
        padding: 14px 25px !important;
    }
}

.login-header {
    margin-bottom: 25px;
}

.login-header h1 {
    color: #B69F46;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1;
}

.login-header h1 span {
    color: #003751;
    font-size: 24px;

}
/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

.tabs form {
    display: inline;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    margin-bottom: -2px;
    transition: all 0.3s;
    text-decoration: none;
    background: none;
    font-family: inherit;
}

.tab:hover {
    color: #333;
}

.tab.active {
    color: #1a3a4a;
    border-bottom-color: #0C364E;
}

.tab-icon {
    width: 15px;
    height: 15px;
    opacity: 0.7;
}

.tab.active .tab-icon {
    opacity: 1;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a3a4a;
    font-size: 14px;
    font-weight: bold;
}

.form-group label .required {
    color: #b8860b;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #f5f5f5;
}

.form-group input:focus {
    outline: none;
    border-color: #111;
    background: white;
}

.form-group input::placeholder {
    color: #999;
}

.btn {
    padding: 14px 40px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #50AC76;
    color: white;
}

.btn-primary:hover {
    background: #234a31;
}

.btn-full {
    width: 100%;
}

.btn-link {
    background: none;
    color: #666;
    text-decoration: underline;
    padding: 12px 0;
}

.btn-link:hover {
    color: #333;
}

.no-connection {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    white-space: nowrap;
}

.no-connection:hover {
    color: #333;
}

/* Texte d'aide */
.help-text {
    margin-top: 25px;
    color: #1a3a4a;
    font-size: 14px;
    line-height: 1.6;
}

.help-text p {
    margin: 0;
}

.help-text a {
    color: #1a3a4a;
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

.help-link {
    cursor: pointer;
    font-weight: 500;
}

#contactInfo {
    margin-top: 10px;
    padding-top: 10px;
}

.contact-box {
    margin-top: 30px;
    font-family: Arial, sans-serif;
    color: #0C364E;
}

details summary {
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

.contact-info {
    margin-top: 10px;
    font-weight: 400;
    font-size: 14px;
}

.contact-info  a {
    color: #0C364E;
    text-decoration: underline;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fff3f3;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #b8860b;
    border: 1px solid #fde68a;
}

.alert-info {
    color: #c45c5c;
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 15px;
}

/* Email display for password step */
.email-display {
    background: #f5f5f5;
    padding: 14px 18px;
    border-radius: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.email-display span {
    color: #333;
    font-weight: 500;
}

.email-display a,
.btn-modify {
    color: #b8860b;
    text-decoration: none;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.email-display a:hover,
.btn-modify:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    color: #666;
    width: 100%;
}

.footer a {
    color: #666;
    text-decoration: underline;
}

.footer .required-note {
    color: #b8860b;
}

/* Footer Desktop - visible seulement en desktop */
.footer-desktop {
    display: flex;
}

/* Footer Mobile - masqu� en desktop */
.footer-mobile {
    padding: 30px 0 15px 0;
    display: none;
    background: #0c364e;
    color: white;
    margin-top: auto;
    /*padding-top: 20px;*/
    /*border-top: 1px solid rgba(255, 255, 255, 0.2);*/
    flex-direction: row;
    font-size: 11px;
}

.footer-mobile a {
    color: white;
    text-decoration: none;
}

.footer-mobile a:last-child {
    text-decoration: underline;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 25px;
}

.form-actions-inline {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Tab content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
