/* --- Réinitialisation et variables --- */
:root {
    --primary-blue: #0052cc;
    --dark-blue: #002a5c;
    --light-blue: #007bff;
    --text-primary: #172b4d;
    --text-secondary: #5e6c84;
    --bg-light: #f8faff;
    --white: #ffffff;
    --border-light: #dfe1e6;
    --success-green: #006644;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- En-tête (Header) & Navigation --- */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Material Icons Outlined';
    font-size: 1.25rem;
    font-style: normal;
}

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

/* Effet de survol sur les liens de navigation */
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease, transform 0.3s ease-out; 
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
    transform: translateY(-4px); 
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.2s ease, transform 0.3s ease-out; 
    cursor: pointer;
}

/* Effet de survol général pour les boutons */
.btn:hover {
    transform: translateY(-3px); 
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); 
}

.btn-contact {
    color: var(--text-secondary);
}

.btn-contact:hover {
    color: var(--text-primary);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    box-shadow: 0 5px 10px rgba(0, 82, 204, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}


/* --- Section Héros (Hero Section) --- */
.hero {
    display: flex;
    align-items: center;
    padding: 6rem 0;
    gap: 3rem;
    background-color: var(--bg-light);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--light-blue);
    display: block;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Effet de survol sur l'image Héro */
.hero-image {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 50px -20px rgba(0, 42, 92, 0.15);
    border: 1px solid var(--white);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* AJOUTÉ */
}

.hero-image:hover {
    transform: translateY(-8px); /* NOUVEAU: Remonte l'image pour l'effet pop-up */
    box-shadow: 0 30px 60px -15px rgba(0, 42, 92, 0.25); /* NOUVEAU: Ombre plus intense */
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.patient-card {
    position: absolute;
    bottom: -1rem;
    right: 1rem;
    background: var(--white);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px -10px rgba(0, 42, 92, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.patient-card .icon {
    color: var(--success-green);
    font-size: 1.5rem;
    font-family: 'Material Icons Outlined';
    font-style: normal;
}

.patient-card-text strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
}

.patient-card-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Styles généraux de section --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* --- Section Caractéristiques Techniques --- */
.features-section {
    padding: 6rem 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 42, 92, 0.03);
    transition: all 0.2s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 42, 92, 0.08);
}

.card-icon {
    font-family: 'Material Icons Outlined';
    font-style: normal;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.25rem;
    display: block;
}

.card-icon.icon-code {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
.card-icon.icon-accessibility { color: #007bff; }
.card-icon.icon-responsive { color: #28a745; }
.card-icon.icon-secure { color: var(--primary-blue); }

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin-bottom: 0.25rem;
}

.feature-card h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Section Fonctionnalités Principales --- */
.main-feature {
    padding: 6rem 0;
    background-color: var(--white);
}

.feature-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-content {
    flex: 1;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}
.feature-tag .material-icons-outlined { font-size: 1.25rem; }

.feature-content h3 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.feature-content > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.feature-checklist {
    list-style: none;
    padding-left: 0;
}

.feature-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-checklist .material-icons-outlined {
    color: var(--success-green);
}

.feature-image-wrapper {
    flex: 1.2;
}

/* Effet de survol sur les images de fonctionnalité */
.feature-image {
    background-color: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px -20px rgba(0, 42, 92, 0.15);
    border: 1px solid var(--white);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* AJOUTÉ */
}

.feature-image:hover {
    transform: translateY(-5px); /* NOUVEAU: Remonte l'image */
    box-shadow: 0 25px 55px -15px rgba(0, 42, 92, 0.2); /* NOUVEAU: Ombre plus forte */
}

.feature-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

/* --- Règle pour inverser la section fonctionnalité --- */
.feature-layout.feature-layout-reversed {
    flex-direction: row-reverse;
}


/* --- Section Audiences Cibles --- */
.audience-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.audience-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.audience-icon {
    font-family: 'Material Icons Outlined';
    font-style: normal;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.audience-card:nth-child(1) .audience-icon { background-color: #e6f0ff; color: #0052cc; }
.audience-card:nth-child(2) .audience-icon { background-color: #e3fcef; color: #006644; }
.audience-card:nth-child(3) .audience-icon { background-color: #f3f4f6; color: #42526e; }
.audience-card:nth-child(4) .audience-icon { background-color: #e6e6e6; color: #091e42; }


.audience-card h4 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.audience-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1; 
}

.audience-card hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 1.5rem 0;
}

.audience-card h5 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.user-path {
    list-style-type: decimal;
    list-style-position: inside;
    padding-left: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-path li {
    margin-bottom: 0.5rem;
}

/* --- Barre de fonctionnalités (Footer) --- */
.features-bar {
    background-color: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0;
}

.features-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.feature-item .icon {
    color: var(--success-green);
    font-family: 'Material Icons Outlined';
    font-style: normal;
    font-size: 1.25rem;
}

/* ========================================================= */
/* --- MEDIA QUERIES (Rendre le site Responsive) --- */
/* ========================================================= */

/* --- TABLETTE ET ÉCRANS MOYENS (max-width: 992px) --- */
@media (max-width: 992px) {
    
    .container {
        padding: 0 1.5rem; 
    }
    
    /* Navigation */
    .nav-links {
        gap: 1.5rem;
    }
    .nav-actions {
        gap: 0.5rem;
    }
    .btn-contact {
        display: none; /* Cacher pour gagner de la place */
    }
    
    /* Section Héros */
    .hero {
        flex-direction: column; 
        padding: 4rem 0;
        text-align: center;
    }
    .hero-image-wrapper {
        order: -1; 
        margin-bottom: 2rem;
    }
    .hero-image {
        padding: 1rem;
    }
    .hero-content p {
        max-width: none; 
    }
    .hero-actions {
        justify-content: center; 
    }
    .patient-card {
        right: 50%;
        transform: translateX(50%); 
    }

    /* Grilles (Caractéristiques et Audiences) */
    .features-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem;
    }
    .audience-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.5rem;
    }

    /* Fonctionnalités Principales */
    .main-feature {
        padding: 4rem 0;
    }
    .feature-layout,
    .feature-layout.feature-layout-reversed {
        flex-direction: column; 
        gap: 3rem;
        text-align: center;
    }
    .feature-content {
        order: 1; 
    }
    .feature-tag {
        justify-content: center; 
    }
    .feature-checklist {
        text-align: left; 
        display: inline-block; 
    }

    /* Footer */
    .features-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --- TÉLÉPHONES (max-width: 576px) --- */
@media (max-width: 576px) {

    /* Navigation */
    .main-nav {
        flex-wrap: wrap; 
        justify-content: center;
    }
    .logo {
        margin-bottom: 1rem;
    }
    .nav-links {
        order: 1; 
        width: 100%;
        justify-content: space-around; 
        gap: 0;
    }
    .nav-actions {
        order: 2; 
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }
    .btn-primary {
        padding: 0.75rem 1rem; 
    }
    
    /* Typographie */
    .hero-content h1 {
        font-size: 2.5rem; 
    }
    .hero-content p, 
    .section-header p {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }

    /* Grilles */
    .features-grid {
        grid-template-columns: 1fr; 
    }
    .audience-grid {
        grid-template-columns: 1fr; 
    }

    /* Section Hero */
    .hero-actions {
        flex-direction: column; 
    }
}

/* --- HAMBURGER --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Material Icons Outlined';
    font-size: 2rem;
    color: var(--dark-blue);
}

/* --- MENU MOBILE --- */
.mobile-menu {
    display: none;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu ul {
    list-style: none;
    padding: 0.75rem 2rem;
}

.mobile-menu li {
    margin: 0.75rem 0;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-weight: 500;
}

.mobile-menu a.active,
.mobile-menu a:hover {
    color: var(--primary-blue);
}

/* --- ACTIVATION DU MENU (JS) --- */
.mobile-menu.open {
    display: block;
}

/* --- AFFICHAGE DU HAMBURGER SUR MOBILE --- */
@media (max-width: 576px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* --- CORRECTION HEADER MOBILE (max-width: 576px) --- */
@media (max-width: 576px) {

    /* On réorganise le nav */
    .main-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0 1rem;
    }

    /* Le logo reste à gauche */
    .logo {
        margin: 0;
        flex: 1;
    }

    /* Bouton hamburger à droite */
    .nav-toggle {
        order: 2;
    }

    /* On masque les liens desktop + actions */
    .nav-links,
    .nav-actions {
        display: none !important;
    }

    /* Pour éviter que les éléments débordent */
    .nav-actions a,
    .nav-links a {
        font-size: 0.85rem;
    }

    /* Correction de l’épaisseur du header */
    .main-header {
        padding: 0.5rem 0;
    }
}
