/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #607d8b; /* Bleu-gris-vert plus filigrane */
    --secondary-color: #f4a261;
    --accent-color: #e76f51;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    padding-top: 80px; /* Ajuste le padding pour compenser la hauteur du header fixe */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header et Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%; /* Assure que le header prend toute la largeur */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important; /* Supprime le surlignement */
}

.nav-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto; /* Centrer le logo */
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background-color: var(--bg-light); /* Ajoute un fond */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 30px 0 20px; /* Padding par défaut pour le hero */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.hero-logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Specific styles for homepage hero */
.hero-homepage .hero-content {
    padding: 30px 0 20px; /* Réduit le padding pour l'espace entre.hero-homepage .hero-logo {
    margin-bottom: 0.5rem;
}
/* Page Hero for other pages */
.page-hero {
    padding-top: 80px; /* Ajoute un padding pour les pages autres que l'accueil */
}

.page-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-quote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Welcome Section */.welcome-section {
    padding: 40px 0;
}    text-align: center;
}

.welcome-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section {
    padding: 40px 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section.bg-primary {
    background: var(--primary-color);
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.section.bg-primary .section-title {
    color: var(--white);
}

.text-white {
    color: var(--white) !important;
}

/* Grilles */
.enjeux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center; /* Center grid items */
}

.enjeux-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
    text-align: center;
}

.enjeux-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 2rem;
}

.enjeux-conclusion {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 2rem;
}

.defi-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    justify-items: center; /* Center grid items */
}

.defi-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.defi-item p {
    text-align: left;
}

.defi-item p i {
    margin-right: 10px;
}

.objectif {
    text-align: center;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
}

.propositions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center; /* Center grid items */
}

.proposition-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.proposition-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.proposition-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.proposition-item h3 i {
    margin-right: 10px;
}

/* Solutions */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center; /* Center grid items */
}

.solution-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.solution-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.solution-subtitle {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.pack-card {
    border-left: 4px solid var(--accent-color);
}

.pack-card h3 {
    color: var(--accent-color);
}

/* Équipe */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    justify-items: center; /* Center grid items */
}

.team-member {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

/* Atouts */
.atouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center; /* Center grid items */
}

.atout-item {
    text-align: center;
    padding: 2rem;
}

.atout-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Contact */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center; /* Center grid items */
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Formulaires */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Intranet */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    justify-items: center; /* Center grid items */
}

.login-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

.login-form {
    margin: 2rem 0;
}

.login-help {
    margin-top: 2rem;
}

.login-help a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.intranet-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.intranet-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intranet-info ul {
    list-style: none;
}

.intranet-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.intranet-info li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center; /* Center grid items */
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Boutons */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #455a64; /* Darker shade for hover */
    transform: translateY(-2px);
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 0 auto 2rem; /* Centered footer content */
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligner à gauche */
    width: 100%;
}

.footer-logo img {
    width: 150px; /* Ajuste la taille du logo complet dans le footer */
    height: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact {
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: var(--text-light);
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    position: relative;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: var(--text-dark);
}

.modal h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal form {
    margin-top: 1rem;
}

.modal input,
.modal textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.modal input:focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Utilitaires */
.inline-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 2px;
}

.legal-content h3,
.legal-content h4 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.legal-content p {
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .defi-content {
        grid-template-columns: 1fr;
    }

    .login-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-logo {
        max-width: 300px;
    }

    .page-logo {
        max-width: 200px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .propositions-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

.presentation-image {
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.nav-favicon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}




.modal-text-content {
    max-height: 70vh; /* Ajustez cette valeur selon vos besoins */
    overflow-y: auto;
    padding-right: 15px; /* Pour éviter que le texte ne soit collé à la barre de défilement */
    text-align: justify;
}

.modal-text-content br {
    display: block;
    margin-bottom: 1em; /* Ajoute un espace entre les lignes pour une meilleure lisibilité */
}



/* Styles améliorés pour la page contact */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.phone-number {
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-description {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

/* Responsive pour la page contact */
@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        align-self: center;
    }
}


/* Styles pour l'intranet */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.dashboard-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.dashboard-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.dashboard-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.dashboard-item h3 i {
    margin-right: 0.5rem;
}

.dashboard-item p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.updates-list {
    max-width: 800px;
    margin: 0 auto;
}

.update-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.update-date {
    flex-shrink: 0;
    width: 100px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.update-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.update-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive pour l'intranet */
@media (max-width: 768px) {
    .update-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .update-date {
        width: auto;
    }
}



/* Styles pour les modales larges (CGV et données personnelles) */
.modal-large {
    max-width: 800px;
    width: 95%;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
    text-align: left;
}

.modal-body h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Amélioration de la barre de défilement pour les modales */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}



.btn-inline {
    display: inline-block;
    margin-left: 20px;
    font-size: 0.7em;
    padding: 8px 15px;
    vertical-align: middle;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-inline:hover {
    background: #e09c4a;
    transform: translateY(-1px);
    color: var(--white);
}

@media (max-width: 768px) {
    .section-title .btn-inline {
        display: block;
        margin-top: 15px;
        margin-left: 0;
        font-size: 0.9em;
        padding: 10px 20px;
    }
}



.hero-homepage {
    padding: 10px 0 10px; /* Réduit le padding */
}

.hero-homepage .hero-content {
    padding: 10px 0 10px; /* Réduit le padding */
}



/* Style pour le titre "Nos solutions" plus grand */
.page-title-large {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .page-title-large {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .page-title-large {
        font-size: 2rem;
    }
}

