/* --- Réinitialisation Basique & Variables CSS --- */
:root {
    --primary-color: #3498DB; /* Bleu principal */
    --secondary-color: #2ECC71; /* Vert */
    --accent-color: #E67E22; /* Orange pour certains CTA ou accents */
    --dark-color: #333;
    --medium-color: #555;
    --light-color: #f4f4f4; /* Fond body */
    --white-color: #fff;
    --footer-bg: #444;
    --footer-text: #ccc;
    --footer-link: #fff;
    --footer-title: #A9CCE3;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --light-blue-bg: #eaf5ff; /* Fond bleu très léger pour sections */
    --light-grey-bg: #f8f9fa; /* Fond gris très léger pour sections */
}

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

body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #2980B9;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--medium-color);
    font-weight: bold;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1em;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Style amélioré pour les boutons de navigation */
.nav-button {
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    min-width: 120px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-button i.fas {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.nav-button:hover i.fas {
    transform: translateY(-2px);
}

/* Pour le bouton Connexion */
a.nav-button.login:hover { /* Cible l'élément <a> avec les classes */
    text-decoration: none !important; /* Force l'annulation du soulignement */
    /* Gardez vos autres styles :hover ici si vous voulez */
    background-color: rgba(41, 128, 185, 0.08);
    color: #2980B9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(41, 128, 185, 0.15);
}

.nav-button.login:hover {
    background-color: rgba(41, 128, 185, 0.08);
    color: #2980B9 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(41, 128, 185, 0.15);

}

.nav-button.login:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(41, 128, 185, 0.1);
}

/* Pour le bouton Inscription */
a.nav-button.register:hover { /* Cible l'élément <a> avec les classes */
    text-decoration: none !important; /* Force l'annulation du soulignement */
    /* Gardez vos autres styles :hover ici */
    background-color: #2980B9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(41, 128, 185, 0.3);
}

.nav-button.register:hover {
    background-color: #2980B9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(41, 128, 185, 0.3);
}

.nav-button.register:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(41, 128, 185, 0.2);
}

/* Animation subtile au survol */
.nav-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: -1;

}

.nav-button:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2);
}

/* --- Section Héros --- */
.hero-section {
    /* Garder l'image de fond si vous en avez une, sinon couleur unie */
    /* background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 1)), url('../images/background-placeholder.jpg') no-repeat center center/cover; */
    background-color: var(--white-color); /* Ou un léger dégradé */
    padding: 5rem 0 6rem 0; /* Ajusté padding */
    text-align: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-section h1 {
    font-size: 2.8em;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--dark-color);
}

.hero-section h1 strong {
    color: var(--primary-color);
}

.hero-section .seo-intro {
    font-size: 1.15em;
    margin-bottom: 2rem;
    color: var(--medium-color);
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 0.9rem 2rem;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.cta-button:hover {
    background-color: #27AE60;
    transform: translateY(-3px);
}

.cta-button.large {
    font-size: 1.2em;
    padding: 1rem 2.5rem;
}

.sub-cta {
    margin-top: 1rem;
    font-size: 0.9em;
    color: var(--medium-color);
}

.sub-cta a {
    font-weight: bold;
    text-decoration: underline;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 450px;
    border-radius: var(--border-radius);
}

/* --- Sections Générales --- */
section {
    padding: 4rem 0;
}

/* Alternance de fond */
.commercial-challenges-section { background-color: var(--light-grey-bg); }
.problem-solution-section { background-color: var(--light-blue-bg); }
.features-section { background-color: var(--white-color); }
.benefits-section { background-color: var(--light-grey-bg); }
.testimonials-section { background-color: var(--white-color); }
.final-cta-section { background-color: var(--primary-color); color: var(--white-color); }

section h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.5rem;
}

/* Ligne décorative sous H2 */
section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Ajustement pour titre sur fond sombre */
.final-cta-section h2 { color: var(--white-color); }
.final-cta-section h2::after { background-color: var(--white-color); }

/* --- Sections Défis (Commercial & Visiteur Médical) --- */
.challenges {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.challenge-item {
    flex: 1;
    min-width: 200px;
}

.challenge-item .icon {
    font-size: 2.5em;
    color: var(--accent-color); /* Orange pour les icônes défis */
    margin-bottom: 0.8rem;
    display: block;
}

.challenge-item p {
    color: var(--medium-color);
    font-size: 1em;
}

.solution-intro,
.commercial-solution-intro {
    text-align: center;
    font-size: 1.1em;
    color: var(--dark-color);
    max-width: 700px;
    margin: 2.5rem auto 0 auto; /* Marge haut ajoutée */
}

/* --- Section Fonctionnalités --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee; /* Légère bordure */
}

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

.feature-item .icon.large {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-item h3 {
    font-size: 1.3em;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.feature-item p {
    font-size: 0.95em;
    color: var(--medium-color);
}

/* --- Section Avantages --- */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.icon-benefit {
    font-size: 2.5em;
    color: var(--secondary-color); /* Vert */
    margin-top: 5px;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.benefit-item h3 {
    font-size: 1.2em;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.benefit-item p {
    color: var(--medium-color);
    font-size: 1em;
}

/* --- Section Témoignages --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: var(--white-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.testimonial p {
    font-style: italic;
    color: var(--medium-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 25px;
}

.testimonial p::before {
    content: '\f10d'; /* Icone guillemet Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 1.2em;
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial cite {
    display: block;
    text-align: right;
    font-weight: bold;
    color: var(--dark-color);
    font-style: normal;
}

/* --- Section CTA Final --- */
.final-cta-section p {
    font-size: 1.1em;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.final-cta-section .cta-button {
    background-color: var(--white-color);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.final-cta-section .cta-button:hover {
    background-color: #f1f1f1;
    color: #2980B9;
}

.no-credit-card {
    font-size: 0.9em !important;
    margin-top: 1rem;
    opacity: 0.8;
}

/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 1rem 0 1rem; /* Pas de padding bas ici, géré par copyright */
    margin-top: 3rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95em;
}

/* Section Grille des Liens & Infos */
.footer-links-section {
    padding-bottom: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: left;
    align-items: start;
}

.footer-section h3,
.footer-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--footer-title);
    font-size: 1.1em;
    font-weight: bold;
}

.footer-section p,
.footer-section li {
    line-height: 1.6;
    margin-bottom: 0.6rem;
    color: var(--footer-text);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section a {
    color: var(--footer-link);
    text-decoration: none;
}

.footer-section a:hover {
    color: #EAECEE;
    text-decoration: underline;
}

.footer-section p i.fas {
    margin-right: 8px;
    color: var(--footer-title);
    width: 15px;
}

/* Copyright */
.copyright {
    background-color: #333;
    padding: 1.5rem 1rem;
    margin: 0 -1rem; /* Annule padding latéral du footer */
    margin-top: 2rem;
    font-size: 0.9em;
    color: #bbb;
    text-align: center;
}

.copyright p { margin: 0; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text { text-align: center; }
    .hero-section .seo-intro { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    html { font-size: 95%; }
    .container { width: 95%; }
    h1, .hero-section h1 { font-size: 2.2em; }
    h2, section h2 { font-size: 1.8em; margin-bottom: 2rem;}
    section { padding: 3rem 0; }
	
	.hero-section { padding: 4rem 0; }

    /* Styles pour le conteneur de l'image */
    .hero-image {
        /* Hérite de text-align: center; du desktop, mais on le met explicitement pour être sûr */
        text-align: center;
        margin-top: 2rem; /* Ajoute un espace au-dessus de l'image sur mobile */
    }
	
	 /* Style pour l'image elle-même */
    .hero-image img {
        max-width: 80%;        /* Limite la taille */
        display: inline-block; /* Assure le bon comportement pour text-align */
    }
    
    .nav-button {
        padding: 0.6rem 1rem;
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    /* Menu Mobile */
.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    /* Ne pas définir max-height: 0 directement sur .main-nav */
}

.main-nav ul {
    flex-direction: column;
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.main-nav ul.active {
    max-height: 500px;
    padding: 0.5rem 0;
}
    .main-nav li { width: 100%; text-align: center; border-bottom: 1px solid var(--light-color); }
    .main-nav li:last-child { border-bottom: none; }
    .main-nav a { display: block; padding: 1rem; width: 100%; }
    .main-nav a::after { display: none; }
    
    .hero-section { padding: 4rem 0; }
    .hero-image img { max-width: 90%; }
    
    .challenges { flex-direction: column; gap: 1.5rem; }
    .feature-item { padding: 1.5rem; }
    .benefit-item { flex-direction: column; align-items: center; text-align: center; }
    .icon-benefit { margin-bottom: 0.5rem; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center;}
    .footer-section ul { display: inline-block; text-align: left;}
    .footer-section h3, .footer-section h4 { text-align: center;}
}

/* Bouton Menu Mobile */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--dark-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-button:hover {
    transform: rotate(90deg);
}

@media (max-width: 576px) {
    .mobile-menu-button {
        display: block;
    }
}