/* --- Variables et Reset --- */
:root {
    --primary-color: #373478;
    --secondary-color: #FBB03B;
    --text-dark: #373478;
    --text-light: #8A879B;
    --bg-light: #F4F3FF;
    --font-family: 'Goodly', sans-serif;
    --container-width: 1300px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.main-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

/* Navigation */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

/* Lien actif dans le menu */
.nav-menu ul li a.active {
    color: #FFC72C;
    font-weight: 400;
    position: relative;
}

.nav-menu ul li a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FFC72C;
}

/* Bloc téléphone */
.header-contact {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-icon {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--secondary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 14px;
}

.phone-number {
    font-weight: 700;
    font-size: 15px;
}

/* --- Boutons --- */
.btn-cta,
.btn-primary,
.btn-accent,
.btn-white,
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-cta {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
}

.btn-accent {
    background: var(--secondary-color);
    color: var(--text-dark);
    font-weight: bold;
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Animation au survol pour tous les boutons */
.btn-zoom:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(55, 52, 120, 0.2);
}

/* --- Badges --- */
.badge-outline {
    display: inline-block;
    padding: 6px 18px;
    background-color: transparent;
    border: 1.5px solid var(--secondary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* --- Typographie & Sections --- */
.intro-text-main h1 {
    font-weight: 400;
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--text-dark);
    font-family: 'Goodly', sans-serif;
}

.intro-text-sub p {
    font-weight: 300;
    font-family: 'Goodly', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    padding-bottom: 5%;
}

.highlight {
    color: var(--secondary-color);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 120px;
    padding: 80px 0;
    align-items: start;
}

/* --- Hero --- */
.hero {
    position: relative;
    text-align: center;
    background-color: #fff;
}

.hero img {
    height: auto;
    display: block;
}


/* --- Section Solutions --- */
.solutions {
    padding: 100px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

.solutions-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 40px;
}

.solutions-content h2 {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.solutions-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.solutions-list li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.solutions-list li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    font-size: 14px;
}

.solutions-list strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.solutions-list span {
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.95rem;
}

/* --- Section Partenaires --- */
.partners {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff;
}

.partners h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.partners-intro {
    color: var(--text-light);
    font-weight: 300;
    font-size: 1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.partners-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.partner-logo img {
    height: 45px;
    width: auto;
    opacity: 1;
    transition: var(--transition);
}

.partner-logo img:hover {
    transform: scale(1.05);
}

/* --- Section Support --- */
.support {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.support h2 {
    font-family: 'Goodly', sans-serif;
    font-weight: 400;
    color: #ffffff;
}

.support p {
    font-family: 'Goodly', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

.support-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* --- Footer --- */
.main-footer {
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footers h4 {
    font-family: 'Goodly', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #000;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    line-height: 1.6;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    font-weight: 300;
    font-family: 'Goodly', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
}

.footer-contact-link {
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1.5px solid var(--secondary-color);
    padding-bottom: 2px;
    transition: var(--transition);
}

.footer-contact-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--primary-color);
}

/* --- Bannière commune --- */
.page-banner {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fc 0%, #F1F0FA 100%);
    text-align: center;
}

/* --- Page À Propos : Vision --- */
.vision-section {
    padding: 40px 0;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.vision-text .lead {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.vision-text h2 {
    margin-bottom: 5%;
}

.vision-quote blockquote {
    font-family: var(--font-family);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--secondary-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 30px;
    line-height: 1.3;
}

/* --- Section Engagements --- */
.commitments-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.commitment-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.commitment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(55, 52, 120, 0.1);
}

.commitment-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: block;
}

.commitment-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.status-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s;
}

.status-item:hover {
    transform: translateY(-10px);
}

.status-item i {
    font-size: 2.5rem;
    color: #FFC72C;
    margin-bottom: 20px;
}

.status-item h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* --- Page Solutions --- */
.software-transition {
    padding: 40px 0;
}

.transition-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.dual-software-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.software-card.legacy {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eef0f7;
    text-align: center;
}

.future-union {
    background: #373478;
    color: white;
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(55, 52, 120, 0.2);
}

.union-badge {
    background: #FFC72C;
    color: #373478;
    padding: 5px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.future-logo {
    height: 65px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

/* --- Support Section --- */
.unified-support {
    padding: 40px 0;
}

.support-box {
    background: #F1F0FA;
    padding: 60px 40px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.support-text h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.support-text p {
    max-width: 800px;
    margin: 0 auto 10px;
}

.support-btns-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

/* --- Page Équipe --- */
.team-list-section {
    padding: 80px 0;
}

.dept-group {
    margin-bottom: 60px;
}

.dept-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
}
/*
.member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}



.member-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.member-role {
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
*/

/* --- Correction pour les lignes avec SLSP --- */

/* Pour desktop : SLSP centré */
.member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.member-name {
    width: 30%; /* Largeur fixe à gauche */
    font-weight: 500;
}

.member-slsp {
    flex: 1; /* Prend tout l'espace disponible au centre */
    text-align: center; /* Centré */
    padding: 0 15px;
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.9rem;
}

.member-role {
    width: 30%; /* Largeur fixe à droite */
    text-align: right; /* Aligné à droite */
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.member-row:hover {
    padding-left: 10px;
    background-color: #fcfcfd;
}

/* Pour mobile : tout s'empile à gauche */
@media (max-width: 600px) {
    .member-row {
        flex-direction: column; /* Empile verticalement */
        align-items: flex-start; /* Tout aligné à gauche */
        gap: 5px; /* Espace entre les éléments */
    }
    
    .member-name,
    .member-slsp,
    .member-role {
        width: 100%; /* Prend toute la largeur */
        text-align: left; /* Tout aligné à gauche */
        padding: 0;
    }
    
    /* Optionnel : réduire la taille du texte sur mobile */
    .member-slsp {
        font-size: 0.85rem;
        color: #666;
        line-height: 1.3;
    }
}


/* --- Page Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    padding: 60px 0;
}

.info-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 30px;
}

.info-box h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-box p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-box i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.map-section {
    padding-bottom: 100px;
}

.map-container {
    border: 1px solid #eee;
    padding: 10px;
    background: white;
    border-radius: 40px;
}

/* --- Slider Contact --- */
.slider-container {
    width: 100%;
    height: 350px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    width: 500%;
    height: 100%;
    animation: slideLoop 16s infinite;
}

.slide {
    width: 20%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slideLoop {
    0%, 20% {
        transform: translateX(0);
    }
    25%, 45% {
        transform: translateX(-20%);
    }
    50%, 70% {
        transform: translateX(-40%);
    }
    75%, 95% {
        transform: translateX(-60%);
    }
    100% {
        transform: translateX(-80%);
    }
}

.slider-container:hover .slider-track {
    animation-play-state: paused;
}

.contact-cta {
    padding: 40px 0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .solutions-grid,
    .intro-grid,
    .vision-grid,
    .contact-grid,
    .dual-software-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .commitments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-btns-row {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .partners-row {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .commitments-grid {
        grid-template-columns: 1fr;
    }
    
    .support-box {
        padding: 40px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .member-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .header-flex {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .intro-text-main h1 {
        font-size: 2rem;
    }
    
    .solutions-content h2,
    .support-text h2 {
        font-size: 1.8rem;
    }
    
    .support-btns {
        flex-direction: column;
        align-items: center;
    }
}


/* Cache la checkbox */
.menu-toggle {
    display: none;
}

/* Style du bouton burger (label) */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Contact dans le menu mobile */
.mobile-contact {
    display: none;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

/* --- Version Mobile --- */
@media (max-width: 768px) {
    /* Affiche le bouton burger */
    .burger-btn {
        display: flex;
    }
    
    /* Cache le contact du header sur mobile */
    .header-contact {
        display: none;
    }
    
    /* Affiche le contact dans le menu mobile */
    .mobile-contact {
        display: flex;
    }
    
    /* Style du menu en mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 80px 25px 30px;
        overflow-y: auto;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu ul li:last-child {
        border-bottom: none;
    }
    
    .nav-menu ul li a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    /* Animation burger quand menu ouvert */
    .menu-toggle:checked + .burger-btn .burger-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .menu-toggle:checked + .burger-btn .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .burger-btn .burger-line:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
    
    /* Affiche le menu quand checkbox cochée */
    .menu-toggle:checked ~ .nav-menu {
        right: 0;
    }
    
    /* Overlay semi-transparent */
    .menu-toggle:checked ~ .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Lien actif dans le menu mobile */
    .nav-menu ul li a.active {
        color: var(--secondary-color);
        font-weight: 600;
    }
    
    .nav-menu ul li a.active::after {
        display: none;
    }
}

/* Version mobile */
@media (max-width: 480px) {
    .nav-menu {
        width: 100%;
    }
}

@media (max-width: 768px) {
    main .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}