/* Variables et reset */
:root {
    --primary: #8B2942;
    --primary-rgb: 139, 41, 66; /* Valeur RGB de la couleur primaire */
    --text: #333;
    --gray: #666;
    --light-gray: #f5f5f5;
    --white: #fff;
}

html {
    scroll-padding-top: 150px; /* Ajoute un espace au-dessus des éléments ciblés par les ancres */
    scroll-behavior: smooth; /* Assure un défilement fluide */
}

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    padding-top: 82px; /* Hauteur du header */
}

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

/* Navigation */
.navbar {
    background-color: var(--primary);
    padding: 1rem 0;
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Navigation links - Desktop */
.nav-wrapper {
    margin-left: auto;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Menu hamburger */
.menu-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}

.menu-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Mobile navigation */
@media screen and (max-width: 768px) {
    .menu-hamburger {
        display: flex;
    }

    .nav-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-wrapper.active {
        display: block;
    }

    /* Styles pour les liens du menu mobile */
    .nav-wrapper .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0;
        background-color: var(--primary);
        gap: 0;
    }

    .nav-wrapper .nav-links li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-wrapper .nav-links li a {
        display: block;
        padding: 10px 20px;
        color: var(--white);
        text-decoration: none;
        text-align: center;
    }

    .nav-wrapper .nav-links li:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Animation du menu hamburger */
    .menu-hamburger.active span:first-child {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-hamburger.active span:last-child {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Ajustement des marges hero en mobile */
    .hero {
        margin-top: 0 !important;
    }

    /* Pour les autres pages qui pourraient avoir des classes hero différentes */
    .process-hero,
    .histoire-hero,
    .services-hero {
        margin-top: 0 !important;
    }

    main {
        padding-top: 0 !important;
    }

    .logo-img {
        content: url('../images/logo/logo-audioval-mobile.png');
        height: 50px;
    }

    /* Ajustement des étapes en mode mobile */
    .process-second-step {
        position: relative;
        padding-bottom: 2rem;
    }

    /* Ajoute le triangle après chaque étape */
    .process-second-step::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-top: 25px solid var(--primary);
        z-index: 1;
    }

    /* Supprime explicitement le triangle de la dernière étape */
    .process-second-step:has(+ .advantages)::after,
    .process-second-step:last-child::after {
        display: none !important;
    }

    /* Réduit l'espace entre les sections */
    .process-second-step .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .process .steps-grid {
        display: grid;
        grid-template-columns: 1fr !important; /* Force une seule colonne */
        gap: 2rem;
    }

    .process .step {
        position: relative;
        margin-bottom: 4rem; /* Augmente l'espace pour le triangle */
    }

    .process .step:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -2rem; /* Position du triangle */
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 20px solid var(--primary); /* Triangle rouge */
    }

    .process .step-image {
        width: 100%;
    }

    .process .step-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Ajustement de la section contact en mode mobile */
    .contact-info, 
    .contact-form-wrapper {
        flex: none !important;
        width: 100% !important;
    }

    .contact-home-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-home-left,
    .contact-info {
        width: 100%;
    }

    .contact-home-right {
        text-align: center;
    }

    .contact-info .address,
    .contact-info .phone,
    .contact-info .email {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    /* Ajustement des partenaires en mode mobile */
    .partners-banner .partners-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        justify-items: center !important;
    }

    .partners-banner .partner-item {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .partners-banner .partner-item img {
        max-width: 120px !important;
        height: 50px !important;
        object-fit: contain !important;
    }

    /* Ajustement de la section engagement en mobile */
    .engagement-section > div {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .engagement-section > div:last-child {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        margin-top: 2rem;
    }

    .engagement-section {
        padding: 40px 20px !important;
    }

    /* Triangle entre les étapes */
    .process-steps,
    .process-first-step {
        position: relative;
        padding-bottom: 3rem;
    }

    .process-steps:not(:last-of-type)::after,
    .process-first-step:not(:last-of-type)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-top: 25px solid var(--primary);
        z-index: 1;
    }

    /* Supprime le padding du dernier élément */
    .process-steps:last-of-type,
    .process-first-step:last-of-type {
        padding-bottom: 0;
    }

    /* Réduit l'espace entre les sections */
    .process-steps .container,
    .process-first-step .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Ajout de marges latérales pour les textes des étapes */
    .process-first-step-content,
    .process-second-step-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .process-first-step-content h2,
    .process-second-step-content h2 {
        margin-top: 1rem;
    }

    /* Cache le slider en mode mobile */
    .services-boxes {
        overflow: visible !important;
    }

    .services-boxes-wrapper {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-left: 0 !important;
        transform: none !important;
    }

    /* Cache les éléments dupliqués du slider */
    .services-boxes-wrapper .box:nth-child(n+8) {
        display: none !important;
    }

    .nav-arrow {
        display: none !important;
    }

    .box {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Cache la section des services en mode mobile */
    .services-overview {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                      url('../images/devanture-audioval.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    position: relative;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    color: var(--white);
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    max-width: 600px;
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    flex: 0 0 400px;
    min-height: 300px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card.primary {
    background-color: var(--primary);
    color: #FFFFFF;
}

/* Contact Form */
.contact {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
    margin: 2rem 0;
    align-items: stretch;
}

.contact-info,
.contact-form-wrapper {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 2rem;
    margin: 0;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-form-wrapper h3 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.contact-form-wrapper form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Captcha */
.captcha-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.captcha-code {
    background: var(--light-gray);
    padding: 0.5rem 1rem;
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 0.25rem;
    user-select: none;
    height: 2.5rem;
    display: flex;
    align-items: center;
}

.captcha-container input {
    padding: 0.5rem 1rem;
    height: 2.5rem;
}

.captcha-group {
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: #232323;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
    align-items: start;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    line-height: 1.6;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact .icon {
    color: #8B2942;
    width: 24px;
    height: 24px;
    opacity: 0.9;
    stroke-width: 2;
}

.footer-map {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 0;
    text-align: center;
}

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

.footer-nav a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav a:hover {
    opacity: 1;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero {
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* Services Page */
.services-page {
    padding: 4rem 0;
}

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

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-item:nth-child(even) {
    direction: rtl;
}

.service-item:nth-child(even) .service-content {
    direction: ltr;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '✓';
    color: var(--primary);
    position: absolute;
    left: 0;
}

.btn {
    border: none;
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #702135;
}

@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 1fr;
    }
    
    .service-item:nth-child(even) {
        direction: ltr;
    }
}

/* Process Page */
.process-hero {
    background-image: url('../images/backgrounds/process-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    margin-top: 0;
    color: var(--white);
    text-align: left;
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.process-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.process-hero .page-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-align: left;
}

.process-hero .hero-subtitle {
    color: var(--white);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

.step-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.step-grid::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    height: 4rem;
    width: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: height 0.3s ease;
}

.step-grid:last-child::after {
    display: none;
}

.step-grid.reverse {
    direction: rtl;
}

.step-grid.reverse .step-content {
    direction: ltr;
}

.step-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.step-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

.hearing-aids-types {
    margin-top: 6rem;
    text-align: center;
}

.hearing-aids-types h2 {
    color: var(--primary);
    margin-bottom: 3rem;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.type-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.type-image {
    height: 200px;
    overflow: hidden;
}

.type-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-card h3 {
    color: var(--primary);
    margin: 1.5rem 0 1rem;
}

.type-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--gray);
}

.type-card.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .step-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .step-grid.reverse {
        direction: ltr;
    }

    .step-grid::after {
        display: none;
    }

    .step-content {
        text-align: center;
    }
}

/* 404 Page */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-content p {
    margin-bottom: 2rem;
    color: var(--gray);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column;
        margin-left: 50px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: column;
    }

    .timeline-image,
    .timeline-content {
        width: 100%;
    }

    .timeline-content {
        margin-top: 1rem;
    }
}

/* Appointment Page */
.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.appointment-info {
    background: var(--primary);
    color: var(--white);
    padding: 2rem;
}

.appointment-info h2 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-list i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.info-list h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.appointment-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Menu Mobile */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    padding: 2rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
}

.mobile-nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 0.5rem 0;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.mobile-nav-links a:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .appointment-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Mobile avec animation */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1001; /* Augmenté pour être au-dessus du header */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    transform: translateX(-100%); /* Commence hors écran */
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0); /* Revient à l'écran */
}

.mobile-nav-links li {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu.active .mobile-nav-links li {
    animation: slideIn 0.3s ease forwards;
}

/* Délai pour chaque élément du menu */
.mobile-menu.active .mobile-nav-links li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) { animation-delay: 0.4s; }

/* Animations pour les sections */
.hero-content {
    animation: slideUp 1s ease;
}

.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Histoire Page */
.histoire-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), 
                      url('../images/devanture-audioval-2.jpg');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: var(--white);
    text-align: center;
}

.hero-subtitle {
    max-width: 800px;
    margin: 1.5rem auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

.histoire-content {
    padding: 4rem 0;
}

.histoire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.rounded-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.histoire-text h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.engagement-section {
    background: var(--light-gray);
    padding: 4rem;
    border-radius: 8px;
    text-align: center;
    margin: 4rem 0;
}

.engagement-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.partenaires {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.partner-logo {

    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.expertise-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 4rem 0;
}

.histoire-timeline {
    list-style: none;
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.histoire-timeline li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.histoire-timeline li::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
}

.histoire-timeline li::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 8px;
    bottom: -24px;
    width: 2px;
    background: var(--primary);
}

.histoire-timeline li:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .histoire-grid,
    .expertise-section {
        grid-template-columns: 1fr;
    }

    .engagement-actions {
        flex-direction: column;
    }

    .rounded-image {
        height: 300px;
    }
}

/* Styles de débogage */
.slide {
    border: 2px dashed #ff0000;
    background: #f0f0f0;
    position: relative;
}

.slide::after {
    content: 'SLIDE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 12px;
}

.partner-logo {


    min-width: 50px;
    min-height: 50px;
    position: relative;
}

.partner-logo::after {

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 12px;
}

/* Icônes */
.icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-list .icon {
    width: 20px;
    height: 20px;
}

/* Animation des étapes */
.step-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-grid:hover::after {
    height: 5rem;
}

/* Animation des images */
.step-image {
    position: relative;
    overflow: hidden;
}

.step-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.step-image:hover::before {
    opacity: 0.2;
}

.step-image img {
    transition: transform 0.5s ease;
}

.step-image:hover img {
    transform: scale(1.05);
}

/* Nouvelles animations keyframes */
@keyframes slideUpFade {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Réinitialisation complète des styles pour la section services */
.services-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('images/hero/hero-services.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0;
    margin-top: 0;
}

.services-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.services-hero .container {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.services-hero .hero-content {
    max-width: 800px;
    color: var(--white);
    text-align: left;
    margin: 0;
}

.services-hero .hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--white);
    text-align: left;
}

.services-hero .hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--white);
    font-weight: 300;
    text-align: left;
}

.services-overview {
    padding: 4rem 0;
}

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

.services-slider {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 30px;
    padding: 0 60px;
}

article.service-card {
    width: 400px;
    min-height: 300px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    display: block;
}

article.service-card.primary {
    background: var(--primary);
    color: #FFFFFF;
}

.service-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

article.service-card h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

article.service-card.primary h3 {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

article.service-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    margin-bottom: 30px;
}

article.service-card.primary p {
    color: rgba(255, 255, 255, 0.9);
}

.btn-link {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

article.service-card.primary .btn-link {
    color: #FFFFFF;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    z-index: 10;
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}

.slider-arrow img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Section Engagements */
.engagement-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.engagement-section h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.engagement-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.engagement-list li {
    position: relative;
    padding-left: 2rem;
    color: var(--gray);
    line-height: 1.4;
}

.engagement-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-box {
        padding: 1.5rem;
    }

    .engagement-section {
        padding: 2rem;
    }

    .engagement-list {
        grid-template-columns: 1fr;
    }
}

/* Animations pour les services */
.service-box {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-box:nth-child(2) { animation-delay: 0.2s; }
.service-box:nth-child(3) { animation-delay: 0.4s; }
.service-box:nth-child(4) { animation-delay: 0.6s; }
.service-box:nth-child(5) { animation-delay: 0.8s; }
.service-box:nth-child(6) { animation-delay: 1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Section */
.welcome {
    padding: 4rem 0;
    text-align: left;
    background-color: var(--white);
}

.welcome h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.welcome h3 {
    color: var(--gray);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.welcome p {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    text-align: justify;
}

/* Process Section */
.process {
    padding: 4rem 0;
    background-color: var(--white);
}

.process h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.step:nth-child(odd) {
    background-color: var(--light-gray);
}

.step:nth-child(even) {
    background-color: var(--primary);
    color: var(--white);
}

.step:nth-child(even) .step-number,
.step:nth-child(even) h3 {
    color: var(--white);
}

.step:nth-child(even) .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.step:nth-child(even) .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.step:nth-child(even) p {
    color: rgba(255, 255, 255, 0.9);
}

.step-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.step-content {
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.step-number {
    color: var(--primary);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.step-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-outline {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
    border-radius: 8px;
}

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

.text-center .btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 2rem;
    margin-top: 2rem;
    border-radius: 8px;
}

/* Contact Home Section */
.contact-home {
    padding: 4rem 0;
    background: var(--primary);
    color: var(--white);
}

.contact-home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.contact-home-left {
    text-align: left;
}

.contact-home-right {
    text-align: center;
}

.contact-home h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.contact-home p {
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-info {
    margin: 0;
}

.contact-info .address,
.contact-info .phone,
.contact-info .email {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info .icon {
    width: 24px;
    height: 24px;
    stroke: white;
}

.contact-info .icon-wrapper {
    background: none;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
}

.contact-info p {
    margin: 0;
}

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

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .contact-home-grid {
        grid-template-columns: 1fr;
    }

    .contact-home-right {
        margin-top: 2rem;
    }
}

/* Features Banner */
.features-banner {
    background-color: var(--primary);
    padding: 3rem 0;
    color: var(--white);
}

.features-banner .features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    align-items: center;
}

.features-banner .feature {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.features-banner .feature img {
    width: 40px;
    height: 40px;
}

.features-banner .feature span {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.2;
}

@media (max-width: 1200px) {
    .features-banner .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-banner .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Services Home Section */
.services-home {
    padding: 4rem 0;
    background-color: var(--white);
}

.services-home h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-box {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-box h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-box p {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Partners Banner */
.partners-banner {
    background-color: #8B2942;
    padding: 2rem 0;
    margin: 2rem 0;
    width: 100%;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.partner-item {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-item img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 2rem;
    }
    
    .partner-item img {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        gap: 1.5rem;
    }
    
    .partner-item img {
        height: 25px;
    }
}

/* Solidarity Section */
.solidarity {
    padding: 4rem 0;
    background-color: var(--white);
}

.solidarity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solidarity-content h2 {
    color: var(--text);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.solidarity-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.solidarity-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.solidarity-actions .btn {
    background-color: var(--primary);
    white-space: nowrap;
}

.solidarity-image {
    width: 2000px;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.solidarity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .solidarity-grid {
        grid-template-columns: 1fr;
    }
    
    .solidarity-actions {
        flex-direction: column;
    }
    
    .solidarity-image {
        width: 100%;
        max-width: 100%;
    }
}

.copyright {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--primary);
}

main {
    padding-top: 80px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
}

/* Bouton retour en haut */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(139, 41, 66, 0.75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: rgba(139, 41, 66, 0.9);
    transform: translateY(-3px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
    stroke: none;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

.section-valeurs {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.valeurs-list li {
    margin-bottom: 30px;
}

.valeurs-list h3 {
    color: #8B0000;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.valeurs-list p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .process-hero {
        margin-top: 70px;
        padding: 40px 0;
    }
}

.process-first-step {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.process-first-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 35%;
    height: 100%;
    background-color: var(--primary);
}

.process-first-step .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.process-first-step-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.process-first-step-image img {
    width: 100%;
    height: auto;
    display: block;
}

.process-first-step-content h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.process-first-step-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

@media (max-width: 768px) {
    .process-first-step .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-first-step::before,
    .process-second-step::before {
        display: none;
    }

    .process-first-step,
    .process-second-step {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }

    .process-first-step .container,
    .process-second-step .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.process-second-step {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.process-second-step::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 35%;
    height: 100%;
    background-color: var(--primary);
}

.process-second-step .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.process-second-step-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.process-second-step-image img {
    width: 100%;
    height: auto;
    display: block;
}

.process-second-step-content h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.process-second-step-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
}

@media (max-width: 768px) {
    .process-second-step .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.advantages {
    padding: 6rem 0;
    background-color: var(--white);
}

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

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.advantage-card {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-card h3 {
    color: var(--text);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.advantage-card p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }

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

.hearing-aids {
    padding: 6rem 0;
    background-color: var(--white);
}

.hearing-aids .section-title {
    text-align: center;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.hearing-aids-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hearing-aid-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hearing-aid-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border: 2px solid var(--primary);
    border-radius: 50%;
    overflow: hidden;
    padding: 1rem;
}

.hearing-aid-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hearing-aid-card h3 {
    color: var(--text);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hearing-aid-card p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
    background-color: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Style pour les deux derniers produits */
.hearing-aid-card:nth-last-child(-n+2) {
    grid-row: 2;
}

.hearing-aid-card:nth-last-child(2) {
    grid-column: 1 / 3;
    justify-self: end;
    margin-right: 1.5rem;
}

.hearing-aid-card:last-child {
    grid-column: 2 / 4;
    justify-self: start;
    margin-left: 1.5rem;
}

/* Assure que le paragraphe des deux derniers produits a la même largeur */
.hearing-aid-card:nth-last-child(-n+2) p {
    width: calc(100vw / 3 - 4rem);
    max-width: calc((1200px / 3) - 4rem);
}

@media (max-width: 992px) {
    .hearing-aids-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hearing-aid-card:nth-last-child(-n+2) {
        grid-row: auto;
        grid-column: auto;
        justify-self: center;
        margin: 0;
    }

    .hearing-aid-card:nth-last-child(-n+2) p {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hearing-aids-grid {
        grid-template-columns: 1fr;
    }
}

.hearing-aids-top {
    width: 100%;
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.hearing-aids-top .hearing-aid-card {
    width: 33.33%;
}

.hearing-aids-bottom {
    width: 66.66%;
    margin: 3rem auto 0;
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.hearing-aids-bottom .hearing-aid-card {
    width: 50%;
}

@media (max-width: 992px) {
    .hearing-aids-top,
    .hearing-aids-bottom {
        width: 100%;
        flex-direction: column;
    }

    .hearing-aids-top .hearing-aid-card,
    .hearing-aids-bottom .hearing-aid-card {
        width: 100%;
    }
}

.bilan-section, .protection-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 6rem 0;
}

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

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

.bilan-content, .protection-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bilan-text h2, .protection-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.protection-text h2 {
    color: var(--white);
}

.bilan-text p, .protection-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.bilan-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.features-left, .features-right, .protection-list {
    list-style: none;
}

.features-left li, .features-right li, .protection-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.features-left li::before, .features-right li::before, .protection-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.protection-list li::before {
    color: var(--white);
}

.bilan-image img, .protection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .bilan-content, .protection-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .bilan-image, .protection-image {
        order: -1;
    }
}

.protection-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 2rem;
}

.protection-list li {
    margin-bottom: 0.2rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .protection-list {
        grid-template-columns: 1fr;
    }
}

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.service-card {
    flex: 0 0 33.3333%;
    box-sizing: border-box;
    padding: 20px;
    background-color: #f5f5f5;
    margin: 10px;
    border-radius: 8px;
    text-align: center;
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1em;
    margin-bottom: 20px;
}

.read-more {
    color: #b00020;
    text-decoration: none;
    font-weight: bold;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #b00020;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-arrow img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Styles pour le menu mobile */
.menu-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
}

.menu-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Style pour le menu mobile */
@media screen and (max-width: 768px) {
    .menu-hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 80px; /* Ajustez selon la hauteur de votre header */
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        padding: 10px 20px;
        display: block;
    }
}

/* Réduction des marges hero en desktop */
@media screen and (min-width: 769px) {
    .hero,
    .process-hero,
    .histoire-hero,
    .services-hero {
        margin-top: -80px;
    }
}

/* Section Solidarity - Mise à jour des styles existants */
.solidarity {
    padding: 60px 0 !important;
    width: 100% !important;
    overflow-x: hidden !important; /* Empêche le défilement horizontal */
}

.solidarity-grid {
    display: flex !important;
    align-items: center !important;
    gap: 40px !important;
    max-width: 100% !important; /* Limite la largeur maximale */
}

/* Media Queries */
@media (max-width: 768px) {
    .solidarity {
        padding: 40px 0 !important;
    }

    .solidarity-grid {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 0 15px !important; /* Ajoute un padding sur les côtés */
    }

    .solidarity-content {
        order: 1 !important;
        text-align: center !important;
        width: 100% !important; /* Force la largeur à 100% */
    }

    .solidarity-image {
        order: 0 !important;
        max-width: 100% !important;
        width: 100% !important; /* Force la largeur à 100% */
        height: auto !important; /* Hauteur automatique */
        aspect-ratio: 16/9 !important; /* Maintient un ratio d'aspect 16:9 */
    }

    .solidarity-slider {
        height: 100% !important;
    }

    .solidarity-slide {
        height: 100% !important;
    }

    .solidarity-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important; /* Centre l'image */
    }

    .solidarity-actions {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important; /* Force la largeur à 100% */
    }

    .solidarity-content p {
        text-align: justify !important;
        padding: 0 !important; /* Supprime le padding des paragraphes */
        width: 100% !important; /* Force la largeur à 100% */
    }

    .solidarity-actions .btn {
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
        box-sizing: border-box !important; /* Inclut padding et border dans la largeur */
    }
}

@media (max-width: 480px) {
    .solidarity-content h2 {
        font-size: 1.8rem !important;
    }

    .solidarity {
        padding: 30px 0 !important;
    }
}

/* Styles pour les partenaires */
.partners-banner {
    background-color: var(--white);
    padding: 40px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.partner-item img {
    height: 60px;
    width: auto;
    opacity: 1; /* Changé de 0.7 à 1 pour supprimer la transparence */
    transition: opacity 0.3s ease;
}

.partner-item img:hover {
    opacity: 1;
}

/* Styles pour la section engagement */
.engagement-section {
    background: var(--primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.engagement-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.engagement-content > div:first-child {
    flex: 1;
    min-width: 280px;
}

.engagement-content h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 30px;
    text-align: left;
}

.engagement-content p {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: left;
}

.engagement-content > div:last-child {
    flex: 0 1 35%;
    min-width: 280px;
}

.engagement-content img {
    width: 100%;
    height: auto;
}

.engagement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.engagement-actions a {
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

.engagement-actions a:first-child {
    background: var(--white);
    color: var(--primary);
}

.engagement-actions a:first-child:hover {
    background: var(--primary);
    color: var(--white);
}

.engagement-actions a:last-child {
    border: 2px solid var(--white);
    color: var(--white);
}

.engagement-actions a:last-child:hover {
    background: var(--white);
    color: var(--primary);
}

/* Media Queries */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .partner-item img {
        height: 40px;
    }

    .engagement-content {
        flex-direction: column;
    }

    .engagement-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .engagement-content p {
        text-align: justify;
        padding: 0 15px;
    }

    .engagement-actions {
        flex-direction: column;
        align-items: center;
    }

    .engagement-actions a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-item img {
        height: 35px;
    }

    .engagement-section {
        padding: 40px 0;
    }
}

.text-center {
    text-align: center;
    display: flex;
    justify-content: center;
    margin: 2rem auto;
}

.text-center .btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.75rem 2rem;
    margin-top: 2rem;
    border-radius: 8px;
}

/* Styles pour la feature animée */
.feature-sante {
    position: relative;
    border: none; /* Supprimer la bordure de l'élément lui-même */
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 10;
}

/* Ajouter une pseudo-élément pour créer la bordure */
.feature-sante::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid white;
    border-radius: 10px;
    pointer-events: none; /* Pour que les clics passent à travers */
    transition: all 0.3s ease;
    z-index: 1;
}

/* Indicateur pulsant */
.feature-sante::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    z-index: 11; /* Au-dessus de la div parent */
}

.feature-sante:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Déplacer la bordure avec l'élément lors du survol */
.feature-sante:hover::after {
    transform: translateY(5px); /* Compenser le translateY(-5px) de l'élément parent */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.feature-sante img, .feature-sante span {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    pointer-events: none; /* Désactiver les événements sur les éléments enfants pour que la div parent reçoive les clics */
}

.feature-sante:hover img, 
.feature-sante:hover span {
    transform: scale(1.1);
}

/* Animation de pulsation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
    }
}

.feature-sante img, .feature-sante span {
    animation: pulse 2s infinite;
}

/* Styles spécifiques pour mobile */
@media (max-width: 768px) {
    .feature-sante {
        pointer-events: none !important;
    }

    .feature-sante img, .feature-sante span {
        pointer-events: auto !important;
    }
}

/* Styles pour la popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.popup-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.popup-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.popup-content h3 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 1.4rem;
}

.popup-text p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.popup-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    border-radius: 5px;
}

.popup-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.popup-content li {
    margin-bottom: 10px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        width: 95%;
    }
    
    .popup-content h2 {
        font-size: 1.5rem;
    }
    
    .popup-content h3 {
        font-size: 1.2rem;
    }
}

/* Styles pour les sous-titres des sections hero */
@media (max-width: 768px) {
    .hero-content p, 
    .histoire-hero .hero-content p,
    .hero.contact-hero .hero-content p {
        max-width: 100% !important; /* En mode mobile, le texte prend toute la largeur */
    }
}

/* Styles spécifiques pour les très petits écrans mobiles */
@media (max-width: 480px) {
    .partner-item {
        padding: 0 0.8rem;
    }
    
    .partner-hansaton {
        padding: 0 1.8rem !important; /* Plus d'espace pour le logo Hansaton sur très petits écrans */
        z-index: 10 !important; /* Assurer que le logo est au-dessus des autres */
    }
    
    .partner-item img {
        max-width: 80px !important; /* Réduire davantage la taille des autres logos */
        height: 30px !important; /* Réduire davantage la hauteur des autres logos */
    }
    
    .partner-hansaton img {
        max-width: 300px !important; /* Augmentation encore plus importante */
        height: 120px !important; /* Augmentation encore plus importante */
        transform: scale(1.45) !important; /* Agrandir encore plus le logo */
        z-index: 10 !important; /* Assurer que le logo est au-dessus des autres */
        position: relative !important; /* Permettre le z-index */
    }
    
    .partners-track {

    }
    
    .partners-slider {

    }
}

/* Styles supplémentaires pour forcer l'application des modifications en mode mobile */
@media (max-width: 768px) {
    /* Forcer la taille du logo Hansaton en mode mobile */
    .partners-track .partner-hansaton img {
        max-width: 320px !important;
        height: 130px !important;
        transform: scale(1.5) !important;
        z-index: 10 !important;
        position: relative !important;
    }
    
    /* Forcer la taille des autres logos en mode mobile */
    .partners-track .partner-item:not(.partner-hansaton) img {
        max-width: 100px !important;
        height: 40px !important;
    }
}

/* Styles supplémentaires pour forcer l'application des modifications sur très petits écrans */
@media (max-width: 480px) {
    /* Forcer la taille du logo Hansaton sur très petits écrans */
    .partners-track .partner-hansaton img {
        max-width: 300px !important;
        height: 120px !important;
        transform: scale(1.45) !important;
        z-index: 10 !important;
        position: relative !important;
    }
    
    /* Forcer la taille des autres logos sur très petits écrans */
    .partners-track .partner-item:not(.partner-hansaton) img {
        max-width: 80px !important;
        height: 30px !important;
    }
}

/* Ancres décalées pour éviter que le contenu soit caché par le menu sticky */
.anchor-offset {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Styles simples pour la bannière des partenaires */
.partners-banner {
    background-color: #8B2942;
    padding: 2rem 0;
    margin: 2rem 0;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partner-item {
    padding: 1rem;
}

.partner-item img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-item img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 2rem;
    }
    
    .partner-item img {
        height: 40px;
    }
}

/* Styles pour la bannière des partenaires */
.partners-banner {
    background-color: #8B2942;
    padding: 2rem 0;
    margin: 2rem 0;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-item {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    max-width: 150px;
    width: auto;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-item img:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .partners-grid {
        gap: 2rem;
    }
    
    .partner-item img {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .partner-item img {
        max-width: 100px;
    }
}