/**
 * FGRSoft - Access Compta - Feuille de style CSS
 * Avec FondFGRSoftRapport.png comme image de fond
 */

/* Réinitialisation des styles par défaut */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS pour les couleurs et polices */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #fff;
    --font-main: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Style de base pour le body avec FondFGRSoftRapport.png comme fond */
body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
	background-color: #f0f8ff; /* Couleur bleu très clair */
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Conteneur principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   En-tête avec logo à gauche et menu à droite
   ============================================ */
.header {
    background-color: var(--dark-color); /* Fond sombre pour l'en-tête */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between; /* Espace entre le logo et le menu */
    align-items: center; /* Centre verticalement le logo et le menu */
}

.logo-link {
    display: inline-block;
}

.logo-img {
    height: 50px; /* Ajuste la hauteur selon tes besoins */
    width: auto; /* Garde les proportions */
    margin-right: 1rem; /* Espace entre le logo et le menu */
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-left: 1.5rem; /* Espace entre les éléments du menu */
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.main-nav a:hover {
    color: var(--accent-color); /* Couleur au survol */
}

/* ============================================
   Contenu principal (Main)
   ============================================ */
.main-content {
    padding: 2rem 0;
}

.section {
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.85); /* Fond semi-transparent pour les sections */
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-family: var(--font-secondary);
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Image de présentation */
.presentation-image {
    text-align: center;
    margin: 2rem 0;
}

.presentation-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
/* Image de fond pour la section Accueil */
.section-accueil {
    background-image: url('billets.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--text-light); /* Texte clair pour mieux contraster avec l'image */
    padding: 4rem 0; /* Ajoute un peu d'espace pour une meilleure visibilité */
    position: relative;
}

/* Overlay semi-transparent pour améliorer la lisibilité du texte */
.section-accueil::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Fond noir semi-transparent */
    z-index: 0;
}

/* Assure que le contenu de la section est au-dessus de l'overlay */
.section-accueil .container {
    position: relative;
    z-index: 1;
}

/* Style pour le texte de la section Accueil */
.section-accueil .section-title,
.section-accueil .intro-text {
    color: var(--text-light); /* Texte blanc pour contraster avec l'overlay */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Ombre pour améliorer la lisibilité */
}

/* ============================================
   Bouton Télécharger sur fond sombre dans la section Accueil
   ============================================ */
.download-container {
    background-color: transparent; /* Fond sombre */
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    width: 100%; /* Prend toute la largeur du conteneur parent */
}

.download-container .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.download-container .btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* ============================================
   Section Fonctionnalités
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.feature-item {
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-title {
    font-size: 1rem;
    color: var(--dark-color);
    margin: 0;
    font-weight: 500;
}
/* ============================================
   Tableau pour la FAQ
   ============================================ */
.table-container {
    overflow-x: auto; /* Permet le défilement horizontal sur mobile */
    margin: 1rem 0;
}

.faq-table {
    width: 100%;
    border-collapse: collapse; /* Supprime les espaces entre les cellules */
    font-size: 0.95rem;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden; /* Arrondit les coins du tableau */
}

.faq-table th,
.faq-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd; /* Ligne horizontale entre les cellules */
}

.faq-table th {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
}

.faq-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05); /* Fond léger pour les lignes paires */
}

.faq-table tr:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Effet de survol */
}

.faq-table strong {
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* ============================================
   Galerie d'images (Captures d'écran) avec effets de survol
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: var(--light-color);
    transition: var(--transition);
    cursor: pointer; /* Indique que l'élément est cliquable */
}

.gallery-item:hover {
    transform: translateY(-5px); /* Effet de soulèvement */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Ombre plus marquée au survol */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease; /* Animation fluide pour l'agrandissement */
}

.gallery-item:hover img {
    transform: scale(1.05); /* Légèrement agrandit l'image au survol */
}

.gallery-caption {
    padding: 0.8rem;
    text-align: center;
    background-color: var(--dark-color);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   Section Questions Fréquentes (FAQ)
   ============================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--light-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--dark-color);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #2980b9;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-toggle:hover {
    transform: scale(1.2);
}

.faq-answer {
    padding: 1rem;
    display: none;
    background-color: var(--light-color);
    color: var(--text-color);
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Style pour les questions ouvertes */
.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* ============================================
   Section Historique
   ============================================ */
#historique {
    padding: 3rem 0;
    background-color: var(--light-color);
}

.historique-content {
    max-width: 1000px;
    margin: 0 auto;
}

.historique-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem; /* Espace entre l'image et le texte */
}

.historique-image {
    flex: 0 0 150px; /* Largeur fixe pour l'image */
    height: auto;
}

.historique-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.historique-text {
    flex: 1; /* Prend l'espace restant */
    text-align: left;
}

.historique-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .historique-item {
        flex-direction: column;
        text-align: center;
    }

    .historique-image {
        flex: 0 0 auto;
        margin-bottom: 1.5rem;
    }

    .historique-text {
        text-align: left;
    }
}

/* ============================================
   Liste des téléchargements
   ============================================ */
.download-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.download-item {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.download-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.download-item p {
    margin-bottom: 1.5rem;
}

/* ============================================
   Formulaire de contact
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Boutons
   ============================================ */
.btn {
    display: inline-block;
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* ============================================
   Section Avertissement et Confidentialité (version simplifiée)
   ============================================ */
.legal-text {
    text-align: left;
    color: var(--text-color);
    line-height: 1.8;
}

.legal-text h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.legal-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ============================================
   Bouton PayPal dans le pied de page
   ============================================ */
.paypal-donation {
    margin: 1.5rem auto;
    text-align: center;
}

.donation-text {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    font-size: 1rem;
}

.paypal-donation form {
    display: inline-block;
}

.paypal-donation input[type="image"] {
    border: none;
    box-shadow: none;
    background: transparent;
}

/* ============================================
   Pied de page avec icônes
   ============================================ */
.footer {
    background-color: rgba(44, 62, 80, 0.8);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-text {
    margin: 0;
    font-size: 0.95rem;
}

.footer-update {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    color: #bdc3c7;
    font-size: 0.85rem;
}

.footer-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-icon-link {
    display: inline-block;
    transition: var(--transition);
}

.footer-icon-link:hover {
    transform: scale(1.2);
}

.footer-icon {
    width: 30px;
    height: 30px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-icon:hover {
    opacity: 1;
}

/* Message de confirmation/erreur */
.form-message {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* ============================================
   Design Responsive
   ============================================ */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column; /* Passe en colonne sur mobile */
        align-items: flex-start; /* Aligne à gauche */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

	
	.logo-img {
        margin-bottom: 1rem; /* Espace sous le logo */
        margin-right: 0; /* Supprime la marge à droite */
    
	}
    .section-title {
        font-size: 1.5rem;
    }

    .software-grid,
    .download-list,
    .links-grid {
        grid-template-columns: 1fr;
    }

    body {
        background-size: contain; /* Ajuste l'image de fond pour les petits écrans */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .btn {
        padding: 0.6rem 1rem;
    }
}

/* ============================================
   Animations (optionnel)
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.6s ease forwards;
}

