* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    background: #fff;
    position: relative;
}

/* Fond blanc fixe derrière et autour du header */
html::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: #fff;
    z-index: 1;
    pointer-events: none;
}

/* Masquer le fond blanc sur mobile pour ne pas gêner le hero */
@media (max-width: 768px) {
    html::before {
        display: none !important;
    }
}

/* Blocage de la rotation sur iOS webmobile - Force le portrait */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) and (orientation: landscape) {
        html {
            width: 100vh !important;
            height: 100vw !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            overflow: hidden !important;
            transform: rotate(90deg) !important;
            transform-origin: center center !important;
        }
        
        body {
            width: 100vh !important;
            height: 100vw !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            overflow: hidden !important;
            transform: rotate(90deg) !important;
            transform-origin: center center !important;
        }
        
        /* Wrapper pour forcer le portrait */
        #portrait-lock-wrapper {
            width: 100vh !important;
            height: 100vw !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            transform: rotate(90deg) !important;
            transform-origin: center center !important;
            overflow: hidden !important;
            z-index: 999999 !important;
        }
        
        #portrait-lock-inner {
            width: 100vw !important;
            height: 100vh !important;
            transform: rotate(-90deg) !important;
            transform-origin: center center !important;
            position: absolute !important;
            top: 50% !important;
            left: 50% !important;
            margin-left: -50vw !important;
            margin-top: -50vh !important;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch !important;
        }
    }
}

body {
    color: #333;
    border: 20px solid #fff;
    background: #fff;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Image hero en haut du body */
.hero-image-container {
    width: calc(100% - 40px);
    max-width: calc(100vw - 40px);
    margin: 10px 20px 0 20px;
    overflow: visible;
    display: block;
    padding: 0;
    position: relative;
    border-radius: 12px;
    z-index: 0;
}

.hero-image-container picture {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border-radius: 12px;
}

/* Styles spécifiques pour mobile */
@media (max-width: 768px) {
    .hero-image-container {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        position: relative;
        z-index: 0;
        border-radius: 0 !important;
        overflow: hidden;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-image-container picture {
        display: block;
        width: 100% !important;
        border-radius: 0 !important;
        overflow: hidden;
    }
    
    .hero-image {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
        object-position: center center !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* S'assurer que l'image est visible sous le header mobile */
    body {
        padding-top: 56px !important; /* Compenser la hauteur du header fixe */
        border: 0 !important;
    }
    
    /* Le hero doit commencer juste après le header */
    .hero-image-container {
        margin-top: 0 !important;
    }
}

/* Titre sous l'image hero */
.hero-title-section {
    width: 100%;
    max-width: 100vw;
    padding: 30px 6vw 0 6vw;
    background: #fff;
    position: relative;
    z-index: 0;
    overflow: visible;
}

.hero-title-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: auto;
    min-height: auto;
    max-height: none;
    position: static !important; /* Position statique, complètement figée */
    transform: none !important; /* Pas de transformation qui pourrait déplacer la card */
    will-change: auto !important; /* Pas d'optimisation de transformation */
    backface-visibility: visible !important; /* Pas de transformation 3D */
    isolation: isolate !important; /* Créer un nouveau contexte d'empilement */
    overflow: hidden !important; /* Empêcher le scroll dans la card elle-même */
    overscroll-behavior: contain !important; /* Contenir le scroll dans la card, ne pas bloquer le scroll de la page */
    -webkit-overflow-scrolling: auto !important; /* Désactiver le scroll momentum sur iOS */
    touch-action: pan-y !important; /* Permettre le scroll vertical de la page */
}

/* Desktop : débloquer le scroll de la page quand le curseur est sur la card A app n1 */
@media (min-width: 1025px) {
    .hero-title-section,
    .hero-title-card {
        overscroll-behavior: auto !important;
        pointer-events: auto !important;
    }
}

.hero-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    flex-direction: row;
}

.hero-title-card .hero-phone-section {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    z-index: 0;
    margin-right: 0px;
    overflow: visible;
    width: auto;
    min-width: 0;
    margin-top: 0;
}

.hero-title-card .hero-phone-image {
    max-width: 1008px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 0;
    margin-top: 0;
    transform: translateX(-150px) translateY(-50px);
}

.hero-title-card .download-container {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-top: 0;
    transform: translateY(-50px) translateX(50px);
    order: 0;
}

.hero-main-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    line-height: 1.4;
    margin: 0;
    text-align: left;
    max-width: 100%;
}

/* Section Hero avec téléphone qui chevauche */
.hero-content-section {
    width: 100%;
    max-width: 100vw;
    padding: 0 6vw 0 6vw;
    background: transparent;
    position: relative;
    margin-top: calc(-15% - 80px);
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
    gap: 80px;
}

.hero-text-bubbles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.text-bubble {
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 100%;
}

.bubble-blue {
    background: #0066cc;
    color: #fff;
}

.bubble-yellow {
    background: #ffd700;
    color: #0066cc;
}

.bubble-teal {
    background: #2EFFD3;
    color: #fff;
}

.hero-phone-section {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    z-index: 0;
    margin-right: 0px;
    overflow: visible;
    width: auto;
    min-width: 0;
    margin-top: 240px;
}

.hero-phone-image {
    max-width: 1008px;
    width: 1106%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 0;
    margin-top: 0;
    transform: translateX(0);
}

/* Media queries pour différentes résolutions desktop - augmentation du chevauchement */
@media (min-width: 1920px) {
    .hero-content-section {
        margin-top: calc(-15% - 100px);
    }
    .hero-phone-section {
        margin-right: 0px;
    }
    .hero-phone-image {
        max-width: 1008px;
        width: 1106%;
        margin-top: 0;
        transform: translateX(0);
    }
}

@media (min-width: 1600px) and (max-width: 1919px) {
    .hero-content-section {
        margin-top: calc(-15% - 90px);
    }
    .hero-phone-section {
        margin-right: 0px;
    }
    .hero-phone-image {
        max-width: 910px;
        width: 804%;
        margin-top: 0;
        transform: translateX(0);
    }
}

@media (min-width: 1440px) and (max-width: 1599px) {
    .hero-content-section {
        margin-top: calc(-15% - 85px);
    }
    .hero-phone-section {
        margin-right: 0px;
    }
    .hero-phone-image {
        max-width: 840px;
        width: 756%;
        margin-top: 0;
        transform: translateX(0);
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .hero-content-section {
        margin-top: calc(-15% - 80px);
    }
    .hero-phone-section {
        margin-right: 0px;
    }
    .hero-phone-image {
        max-width: 770px;
        width: 711%;
        margin-top: 0;
        transform: translateX(0);
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .hero-content-section {
        margin-top: calc(-15% - 75px);
    }
    .hero-phone-section {
        margin-right: 0px;
    }
    .hero-phone-image {
        max-width: 700px;
        width: 664%;
        margin-top: 0;
        transform: translateX(0);
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .hero-content-section {
        margin-top: calc(-15% - 70px);
    }
    .hero-phone-section {
        margin-right: 0px;
    }
    .hero-phone-image {
        max-width: 630px;
        width: 616%;
        margin-top: 0;
        transform: translateX(0);
    }
}

/* Responsive pour mobile */
/* Media queries pour tablettes iOS et Android (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-title-section {
        padding: 30px 4vw 30px 4vw !important;
        margin-bottom: 0 !important;
    }
    
    .hero-title-card {
        padding: 30px 24px 0px 24px !important;
        gap: 20px !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-width: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .hero-card-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0px !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-width: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin-bottom: -100px !important;
        padding-bottom: 0 !important;
    }
    
    /* Masquer les QR codes sur tablettes */
    .hero-title-card .download-container .qr-code {
        display: none !important;
    }
    
    .hero-title-card .download-container {
        order: 2 !important;
        transform: translateY(-140px) !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 24px !important;
        flex-wrap: nowrap !important;
        width: fit-content !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }
    
    .hero-title-card .download-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        flex-shrink: 1 !important;
    }
    
    /* Taille des icônes sur tablettes */
    .hero-title-card .download-button-image {
        width: 180px !important;
        max-width: 180px !important;
        height: auto !important;
    }
    
    .hero-title-card .hero-phone-section {
        order: 1 !important;
        width: fit-content !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        transform: none !important;
        overflow: visible !important;
    }
    
    .hero-title-card .hero-phone-image {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        transform: scale(1.2) translateX(60px) !important;
        margin: 0 !important;
    }
    
    .hero-main-title {
        font-size: 22px;
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title-section {
        padding: 20px 4vw 20px 4vw !important; /* Réduire le padding-bottom pour réduire l'espace */
        margin-bottom: 0 !important; /* Supprimer la marge en bas */
    }
    
    .hero-title-card {
        padding: 20px 16px 0px 16px !important; /* Pas de padding en bas */
        gap: 20px !important; /* Pas de gap entre les éléments */
        width: fit-content !important;
        max-width: 100% !important;
        min-width: auto !important;
        margin: 0 auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        position: static !important; /* Position statique, complètement figée */
        transform: none !important; /* Pas de transformation qui pourrait déplacer la card */
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        touch-action: pan-y !important; /* Permettre le scroll vertical de la page */
        user-select: none !important; /* Empêcher la sélection qui pourrait déplacer */
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        pointer-events: auto !important; /* Permettre les interactions avec le contenu */
        will-change: auto !important; /* Pas d'optimisation de transformation */
        backface-visibility: visible !important; /* Pas de transformation 3D */
        overflow: hidden !important; /* Empêcher le scroll dans la card elle-même */
        overscroll-behavior: contain !important; /* Contenir le scroll dans la card, ne pas bloquer le scroll de la page */
        -webkit-overflow-scrolling: auto !important; /* Désactiver le scroll momentum sur iOS */
        isolation: isolate !important; /* Créer un nouveau contexte d'empilement */
    }
    
    /* Figer tous les éléments enfants de la card */
    .hero-title-card * {
        position: relative !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
        overflow: visible !important; /* Permettre l'affichage du contenu */
        overscroll-behavior: contain !important; /* Ne pas bloquer le scroll de la page */
        -webkit-overflow-scrolling: auto !important; /* Désactiver le scroll momentum sur iOS */
        touch-action: inherit !important; /* Hériter du touch-action de la card (pan-y) */
    }
    
    /* Exception pour les éléments qui ont besoin de transform (image iPhone et icônes) */
    .hero-title-card .hero-phone-image {
        transform: scale(1.3) translateX(70px) !important; /* Garder la transformation nécessaire */
    }
    
    .hero-title-card .download-container {
        transform: translateY(-160px) !important; /* Garder la transformation nécessaire */
    }
    
    .hero-main-title {
        font-size: 18px;
        text-align: left;
        max-width: 100%;
    }
    
    .hero-card-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0px !important; /* Pas de gap entre les blocs */
        width: fit-content !important;
        max-width: 100% !important;
        min-width: auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin-bottom: -100px !important; /* Compenser le translateY(-160px) des icônes pour raccourcir le bas */
        padding-bottom: 0 !important;
    }
    
    /* Masquer les QR codes sur mobile */
    .hero-title-card .download-container .qr-code {
        display: none !important;
    }
    
    .hero-title-card .download-container {
        order: 2 !important; /* Icônes après l'image */
        transform: translateY(-160px) !important; /* Remonter de 100px supplémentaires (-60px - 100px = -160px) */
        justify-content: flex-start !important;
        align-items: flex-start !important; /* Aligner à gauche */
        gap: 20px !important; /* Espacement entre les icônes */
        flex-wrap: nowrap !important;
        width: fit-content !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important; /* Icônes l'une sous l'autre */
        padding: 0 !important;
        margin-bottom: 0 !important; /* Pas de marge en bas, l'espace vient du padding de la card */
        box-sizing: border-box !important;
    }
    
    .hero-title-card .download-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; /* Aligner les icônes à gauche */
        flex-shrink: 1 !important; /* Permet de rétrécir si nécessaire */
    }
    
    /* Taille des icônes sur mobile */
    .hero-title-card .download-button-image {
        width: 168px !important; /* Agrandi de 20% (140px * 1.2 = 168px) */
        max-width: 168px !important;
        height: auto !important;
    }
    
    .hero-title-card .hero-phone-section {
        order: 1 !important; /* Image au-dessus des icônes */
        width: fit-content !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important; /* Aligner à gauche */
        align-items: center !important;
        margin: 0 !important;
        margin-bottom: 0 !important; /* Pas de marge en bas, l'espace vient du padding de la card */
        transform: none !important; /* Pas de décalage vertical */
        overflow: visible !important;
    }
    
    .hero-title-card .hero-phone-image {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        transform: scale(1.3) translateX(70px) !important; /* 30% plus grand + 70px vers la droite */
        margin: 0 !important;
        object-fit: contain !important;
    }
    
    .hero-content-section {
        margin-top: -8%;
        padding: 0;
        justify-content: center;
    }
    
    .hero-text-bubbles {
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .text-bubble {
        padding: 12px 24px;
        font-size: 18px;
        border-radius: 12px;
    }
    
    .hero-phone-section {
        width: auto;
        margin-right: 0px;
    }
    
    .hero-phone-image {
        max-width: 350px;
        width: 100%;
        margin-top: 20px;
    }
}

/* Section QR Codes et téléchargement */
.download-section {
    width: 100%;
    max-width: 100vw;
    padding: 60px 6vw;
    padding-top: calc(60px - 150px);
    background: #fff;
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.download-container {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 340px;
    transform: translateX(200px);
    order: -1;
}

.download-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.3s;
    min-width: 200px;
}

.download-button:hover {
    opacity: 0.8;
}

.download-button-image {
    width: 200px;
    height: auto;
    max-width: 200px;
    object-fit: contain;
    cursor: pointer !important;
    transition: opacity 0.3s;
    pointer-events: auto !important;
}

.download-button-image:hover {
    opacity: 0.8;
}

.app-store-icon,
.google-play-icon {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.store-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-size: 12px;
    line-height: 1.2;
}

.download-store {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .download-section {
        padding: 40px 6vw;
        padding-top: calc(40px - 150px);
    }
    
    .download-container {
        gap: 40px;
        flex-direction: column;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
    
    .download-button {
        min-width: 180px;
    }
}

/* Section "Porquê a Papacasa?" */
.why-papacasa-section {
    width: 100%;
    max-width: 100vw;
    padding: 40px 20px;
    background: #fff;
    position: relative;
    z-index: 0;
    margin-top: 20px;
}

.why-papacasa-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 30px;
    background: #fff;
}

.why-papacasa-title {
    font-size: 26px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
    margin: 0 0 0 0;
    text-align: left;
    line-height: 1.2;
    letter-spacing: -0.02em;
    scroll-margin-top: 120px; /* Compensation pour le header sticky afin que le titre soit visible lors du scroll */
}

.why-papacasa-content {
    display: grid;
    grid-template-columns: 450px 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
    align-items: start;
}

.why-papacasa-image-wrapper {
    grid-column: 1;
    grid-row: 2;
    width: 450px;
    height: auto;
    margin-top: 0;
}

.why-papacasa-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.why-papacasa-text-wrapper {
    grid-column: 2;
    grid-row: 1 / 3;
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.why-papacasa-text {
    font-size: 18px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.3;
    color: #000;
    margin: 0 0 15px 0;
    text-align: left;
    font-weight: 400;
}

.why-papacasa-text p {
    margin: 0 0 6px 0;
    padding: 0;
}

.why-papacasa-text p:last-of-type {
    margin-bottom: 0;
}

.why-papacasa-button {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    align-self: flex-start;
    margin-top: auto;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.25);
    letter-spacing: 0.01em;
}

.why-papacasa-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}

.why-papacasa-button:active {
    transform: translateY(0);
}

/* Section "Como funciona?" */
.how-it-works-section {
    width: 100%;
    max-width: 100vw;
    padding: 40px 6vw;
    background: #fff;
    position: relative;
    z-index: 0;
    display: block;
}

.how-it-works-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.how-it-works-card {
    background: #fff;
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-title {
    font-size: 26px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
    margin: 20px 0 60px 0;
    text-align: left;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.how-it-works-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 67px;
    font-weight: 700;
    color: #007aff;
    line-height: 1;
    margin-bottom: -30px;
    margin-left: -100px;
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.step-icon-wrapper {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 20px;
    padding: 0;
}

/* Premier picto (étape 1) - 20% plus grand */
.how-it-works-steps .how-it-works-step:first-child .step-icon-wrapper {
    width: 216px;
    height: 216px;
    margin-bottom: -6px; /* Compense la différence de hauteur pour aligner les textes */
}

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

.step-title {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
    margin: 0 0 15px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    min-height: 2.6em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.step-description {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.how-it-works-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.how-it-works-button {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.25);
    letter-spacing: 0.01em;
}

.how-it-works-button:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.35);
}

.how-it-works-button:active {
    transform: translateY(0);
}

/* Responsive pour tablette */
@media (max-width: 1024px) {
    .why-papacasa-section {
        padding: 40px 4vw;
    }
    
    .why-papacasa-title {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .why-papacasa-content {
        grid-template-columns: 350px 1fr;
        gap: 0;
    }
    
    .why-papacasa-image-wrapper {
        width: 350px;
    }
    
    .why-papacasa-text-wrapper {
        padding-left: 40px;
    }
    
    .why-papacasa-text {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .why-papacasa-text p {
        margin: 0 0 6px 0;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .why-papacasa-section {
        padding: 20px 6vw 40px 6vw !important; /* Réduire le padding-bottom pour réduire la longueur */
        margin-top: 0 !important; /* Pas de margin-top supplémentaire */
    }
    
    .why-papacasa-container {
        max-width: 100%;
        padding: 20px !important; /* Réduire le padding interne sur mobile */
    }
    
    .why-papacasa-title {
        font-size: 18px;
        margin-bottom: 0 !important; /* Supprimer la ligne vide sous le titre */
        text-align: left;
    }
    
    .why-papacasa-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px !important; /* Réduire l'espacement entre les éléments */
    }
    
    .why-papacasa-image-wrapper {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .why-papacasa-text-wrapper {
        grid-column: 1;
        grid-row: 3;
        padding-left: 0;
    }
    
    .why-papacasa-text {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 15px !important; /* Réduire la marge */
    }
    
    .why-papacasa-text p {
        margin: 0 0 4px 0 !important; /* Réduire l'espacement entre les paragraphes */
    }
    
    .why-papacasa-button {
        align-self: center;
        width: 100%;
        max-width: 280px;
        margin-top: 0;
    }
    
    /* Section "Como funciona?" - Mobile */
    .how-it-works-section {
        padding: 20px 4vw 40px 4vw !important; /* Réduire le padding-top pour réduire l'espace */
    }
    
    .how-it-works-card {
        padding: 30px 20px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    }
    
    .how-it-works-title {
        font-size: 18px !important;
        margin-bottom: 30px;
        margin-top: 0;
    }
    
    .how-it-works-steps {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 30px !important;
    }
    
    .how-it-works-step {
        padding: 20px 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .step-number {
        font-size: 50px !important;
        margin-left: -60px !important;
        margin-bottom: -20px !important;
        position: relative !important;
        z-index: 3 !important;
    }
    
    .step-icon-wrapper {
        width: 144px !important;
        height: 144px !important;
        margin-bottom: 20px !important;
        background: transparent !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Premier picto (étape 1) - 20% plus grand sur mobile */
    .how-it-works-steps .how-it-works-step:first-child .step-icon-wrapper {
        width: 173px !important;
        height: 173px !important;
    }
    
    .step-icon {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    .step-title {
        font-size: 18px !important;
        margin-bottom: 12px !important;
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    /* Aligner les titres 2 et 3 avec le premier sur mobile */
    .how-it-works-steps .how-it-works-step:nth-child(2) .step-title,
    .how-it-works-steps .how-it-works-step:nth-child(3) .step-title {
        margin-top: 0 !important;
    }
    
    .step-description {
        font-size: 14px !important;
        line-height: 1.5 !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .how-it-works-button {
        width: 100%;
        max-width: 280px;
    }
}

/* Responsive pour tablette - Section "Como funciona?" */
@media (min-width: 769px) and (max-width: 1024px) {
    .how-it-works-section {
        padding: 60px 4vw;
    }
    
    .how-it-works-title {
        font-size: 28px;
        margin-bottom: 50px;
    }
    
    .how-it-works-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .step-icon-wrapper {
        width: 150px;
        height: 150px;
        margin-bottom: 25px;
        background: transparent;
        padding: 0;
    }
    
    /* Premier picto (étape 1) - 20% plus grand sur tablette */
    .how-it-works-steps .how-it-works-step:first-child .step-icon-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .step-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .step-description {
        font-size: 15px;
    }
    
    /* Aligner les titres 2 et 3 avec le premier sur tablette */
    .how-it-works-steps .how-it-works-step:nth-child(2) .step-title,
    .how-it-works-steps .how-it-works-step:nth-child(3) .step-title {
        margin-top: 0.4em;
    }
}

/* Section "Testemunhos" */
.testimonials-section {
    width: 100%;
    max-width: 100vw;
    padding: 40px 6vw;
    background: #fff;
    position: relative;
    z-index: 0;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.testimonials-title {
    font-size: 26px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
    margin: 0 0 60px 0;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.testimonial-info {
    margin-bottom: 20px;
}

.testimonial-name {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.testimonial-location {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.testimonial-text {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    margin: 0;
    line-height: 1.6;
    font-style: italic;
}

.testimonials-summary {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 20px;
}

.summary-text {
    font-size: 20px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

/* Responsive pour tablette - Section "Testemunhos" */
@media (max-width: 1024px) {
    .testimonials-section {
        padding: 40px 4vw;
    }
    
    .testimonials-title {
        font-size: 28px;
        margin-bottom: 50px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .testimonial-name {
        font-size: 18px;
    }
    
    .testimonial-location {
        font-size: 15px;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .summary-text {
        font-size: 18px;
    }
}

/* Responsive pour mobile - Section "Testemunhos" */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 20px 6vw 60px 6vw !important; /* Réduire le padding-top pour réduire l'espace */
    }
    
    .testimonials-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .testimonial-name {
        font-size: 18px;
    }
    
    .testimonial-location {
        font-size: 15px;
    }
    
    .testimonial-text {
        font-size: 15px;
    }
    
    .testimonials-summary {
        padding: 30px 20px;
    }
    
    .summary-text {
        font-size: 16px;
    }
}

/* Section "Poupa 10 000 € em média" */
.savings-section {
    width: 100%;
    max-width: 100vw;
    padding: 40px 6vw;
    background: #fff;
    position: relative;
    z-index: 0;
}

.savings-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.savings-card {
    background: #fff;
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 1200px;
    margin: 0 auto;
}

.savings-title {
    font-size: 27px; /* Réduit de 25% (36px * 0.75 = 27px) */
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000; /* Passé en noir */
    margin: 0 0 10px 0; /* Réduit de 50% (20px → 10px) */
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.savings-intro {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
    margin: 0 auto 40px auto;
    text-align: center;
    line-height: 1.6;
    max-width: 900px;
}

.savings-comparison {
    margin: 50px 20 0px 0;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

.comparison-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comparison-label {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0066cc;
    margin: 0 0 10px 0; /* Réduit de 50% (20px → 10px) */
}

/* Premier label (Custo com agência + IVA) en noir et gras */
.comparison-column:first-child .comparison-label {
    color: #000;
    font-weight: 700;
}

/* Deuxième label (Preço de venda) en noir et gras */
.comparison-column:nth-child(2) .comparison-label {
    color: #000;
    font-weight: 700;
}

/* Troisième label (Custo com Papacasa) en noir et gras */
.comparison-column:nth-child(3) .comparison-label {
    color: #000;
    font-weight: 700;
}

.comparison-value {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 10px 0 0 0; /* Réduit de 50% (20px → 10px) */
    line-height: 1.2;
}

.comparison-value.agency-cost {
    color: #dc3545;
}

.comparison-value.sale-price {
    color: #28a745;
}

.comparison-value.papacasa-cost {
    color: #007aff;
}

.chart-bar-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 12px;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-bar-container .chart-bar-wrapper {
    width: 80%;
    margin: 0 auto;
}

.chart-bar-wrapper {
    position: relative;
    width: 100%;
    height: 12px;
    overflow: visible;
}

.chart-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: #0066cc;
    border-radius: 6px;
    z-index: 1;
}

.chart-slider {
    position: absolute;
    top: 0;
    left: -10px;
    width: calc(100% + 20px);
    height: 12px;
    margin: 0;
    padding: 0;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 50;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.chart-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    border: none;
    margin-top: -4px;
}

.chart-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    border: none;
}

.chart-slider::-webkit-slider-runnable-track {
    background: transparent;
    height: 12px;
    cursor: pointer;
}

.chart-slider::-moz-range-track {
    background: transparent;
    height: 12px;
    border: none;
    cursor: pointer;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: none !important;
    border: none;
    border-left: 20px solid #ffd700;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: none;
    z-index: 30;
    pointer-events: none;
    transition: left 0.1s ease;
    filter: none;
    box-shadow: none;
    outline: none;
}

.savings-conclusion {
    margin-top: 40px;
    text-align: center;
}

.savings-conclusion p {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #000;
    margin: 0;
    line-height: 1.7;
}

.savings-comparison {
    margin-bottom: 0;
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 0;
}

.comparison-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

.comparison-label {
    font-size: 16px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0066cc;
    margin: 0 0 10px 0; /* Réduit de 50% (20px → 10px) */
}

.comparison-value {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 10px 0 0 0; /* Réduit de 50% (20px → 10px) */
    line-height: 1.2;
}

.comparison-value.agency-cost {
    color: #dc3545;
}

.comparison-value.sale-price {
    color: #28a745;
}

.comparison-value.papacasa-cost {
    color: #007aff;
}


.chart-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 5;
    pointer-events: none;
}

.chart-bar-wrapper {
    position: relative;
    width: 100%;
    height: 6px;
    margin: 0 auto;
}

.chart-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #0066cc;
    border-radius: 3px;
    z-index: 1;
}

.chart-slider {
    position: absolute;
    top: 50%;
    left: -10px;
    width: calc(100% + 20px);
    height: 6px;
    margin: 0;
    padding: 0;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 50;
    cursor: pointer;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    transform: translateY(-50%);
    box-sizing: border-box;
}

.chart-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    border: none;
    margin-top: -7px;
}

.chart-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    border: none;
}

.chart-slider::-webkit-slider-runnable-track {
    background: transparent;
    height: 6px;
    cursor: pointer;
}

.chart-slider::-moz-range-track {
    background: transparent;
    height: 6px;
    border: none;
    cursor: pointer;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: none !important;
    border: none;
    border-left: 17.5px solid #ffd700;
    border-top: 12.5px solid transparent;
    border-bottom: 12.5px solid transparent;
    border-right: none;
    z-index: 30;
    pointer-events: none;
    transition: left 0.1s ease;
    filter: none;
    box-shadow: none;
    outline: none;
}


.savings-conclusion {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 20px;
    text-align: center;
    margin-top: 10px;
}

.savings-conclusion p {
    font-size: 18px;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    margin: 0;
    line-height: 1.7;
}

/* Responsive pour tablette - Section "Poupa 10 000 € em média" */
@media (max-width: 1024px) {
    .savings-section {
        padding: 40px 4vw;
    }
    
    .savings-title {
        font-size: 21px; /* Réduit de 25% (28px * 0.75 = 21px) */
        margin-bottom: 25px;
        color: #000; /* Passé en noir */
    }
    
    .savings-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .comparison-grid {
        gap: 25px;
    }
    
    .comparison-value {
        font-size: 28px;
    }
    
    .chart-bar-container {
        padding: 15px 0;
    }
    
    .savings-conclusion {
        padding: 30px;
        margin-top: 10px;
    }
    
    .savings-conclusion p {
        font-size: 16px;
    }
}

/* Responsive pour mobile - Section "Poupa 10 000 € em média" */
@media (max-width: 768px) {
    .savings-section {
        padding: 20px 6vw 30px 6vw !important; /* Réduire le padding-top pour réduire l'espace */
    }
    
    .savings-title {
        font-size: 18px; /* Réduit de 25% (24px * 0.75 = 18px) */
        margin-bottom: 20px;
        color: #000; /* Passé en noir */
    }
    
    .savings-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 0;
    }
    
    .comparison-value {
        font-size: 24px;
    }
    
    .comparison-label {
        font-size: 14px;
    }
    
    /* Labels en noir et gras sur mobile */
    .comparison-column:first-child .comparison-label {
        color: #000 !important;
        font-weight: 700 !important;
    }
    
    .comparison-column:nth-child(2) .comparison-label {
        color: #000 !important;
        font-weight: 700 !important;
    }
    
    .comparison-column:nth-child(3) .comparison-label {
        color: #000 !important;
        font-weight: 700 !important;
    }
    
    /* Couleurs des valeurs sur mobile */
    .comparison-value.sale-price {
        color: #28a745 !important;
    }
    
    .comparison-value.papacasa-cost {
        color: #007aff !important;
    }
    
    .savings-comparison {
        overflow: visible !important;
        margin-bottom: 0 !important; /* Supprimer l'espace vide en bas sur mobile */
    }
    
    .chart-bar-container {
        padding: 15px 0;
        overflow: visible !important;
        position: relative !important;
        height: auto !important;
        min-height: 80px !important;
    }
    
    .chart-bar-wrapper {
        overflow: visible !important;
        position: relative !important;
        width: 100% !important;
        height: 6px !important;
        margin: 20px 0 5px 0 !important; /* Réduire beaucoup l'espace en bas */
    }
    
    .chart-bar {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 6px !important;
        margin: 0 !important;
    }
    
    .chart-slider {
        position: absolute !important;
        top: 0 !important;
        left: -10px !important;
        width: calc(100% + 20px) !important;
        height: 6px !important;
        margin: 0 !important;
        transform: none !important;
        z-index: 50 !important;
        pointer-events: auto !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    .chart-slider::-webkit-slider-thumb {
        -webkit-appearance: none !important;
        appearance: none !important;
        width: 20px !important;
        height: 20px !important;
        background: transparent !important;
        cursor: pointer !important;
        border: none !important;
        margin-top: -7px !important;
    }
    
    .chart-slider::-moz-range-thumb {
        width: 20px !important;
        height: 20px !important;
        background: transparent !important;
        cursor: pointer !important;
        border: none !important;
    }
    
    .chart-slider::-webkit-slider-runnable-track {
        background: transparent !important;
        height: 6px !important;
        cursor: pointer !important;
    }
    
    .chart-slider::-moz-range-track {
        background: transparent !important;
        height: 6px !important;
        border: none !important;
        cursor: pointer !important;
    }
    
    .slider-arrow {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 100 !important;
        position: absolute !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 0 !important;
        height: 0 !important;
        background: none !important;
        background-color: transparent !important;
        background-image: none !important;
        border: none !important;
        border-left: 17.5px solid #ffd700 !important;
        border-top: 12.5px solid transparent !important;
        border-bottom: 12.5px solid transparent !important;
        border-right: none !important;
        pointer-events: none !important;
        filter: none !important;
        box-shadow: none !important;
        outline: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
    }
    
    .slider-arrow::before,
    .slider-arrow::after {
        display: none !important;
        content: none !important;
        background: none !important;
        background-color: transparent !important;
        background-image: none !important;
    }
    
    .chart-slider::-webkit-slider-thumb {
        -webkit-appearance: none !important;
        appearance: none !important;
        width: 20px !important;
        height: 20px !important;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        cursor: pointer !important;
        border: none !important;
        margin-top: -7px !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
    }
    
    .chart-bar-wrapper {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
    }
    
    .chart-bar-container {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
    }
    
    /* Règles spécifiques pour iOS Safari */
    @supports (-webkit-touch-callout: none) {
        .slider-arrow {
            background: none !important;
            background-color: transparent !important;
            background-image: none !important;
            -webkit-background-size: 0 !important;
            background-size: 0 !important;
            -webkit-mask: none !important;
            mask: none !important;
        }
        
        .chart-slider::-webkit-slider-thumb {
            background: transparent !important;
            background-color: transparent !important;
            background-image: none !important;
            -webkit-background-size: 0 !important;
            background-size: 0 !important;
            -webkit-box-shadow: none !important;
            box-shadow: none !important;
            border: none !important;
            -webkit-appearance: none !important;
            appearance: none !important;
        }
        
        .chart-slider::-webkit-slider-runnable-track {
            background: transparent !important;
            background-color: transparent !important;
            background-image: none !important;
        }
    }
    
    .chart-point::before {
        width: 16px;
        height: 16px;
    }
    
    .point-value {
        font-size: 14px;
    }
    
    .point-label {
        font-size: 12px;
    }
    
    .savings-conclusion {
        padding: 25px 20px;
    }
    
    .savings-conclusion p {
        font-size: 15px;
    }
}

header.desktop-header-bar {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background: #2EFFD3 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.01);
    z-index: 99999 !important;
    padding: 0.8rem 6vw 0.8rem 6vw;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    border-radius: 12px;
    box-sizing: border-box;
}

body {
    padding-top: 92px;
    border: 20px solid #fff;
    background: #fff;
    box-sizing: border-box;
}

/* Sur mobile, pas de padding-top pour le body */
@media (max-width: 768px) {
    html {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: none !important;
        overscroll-behavior-x: none !important;
        overscroll-behavior-y: auto !important;
        position: relative !important;
    }
    
    body {
        padding-top: 0;
        border: 20px solid #fff;
        background: #fff;
        box-sizing: border-box;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100vw !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: none !important;
        overscroll-behavior-x: none !important;
        overscroll-behavior-y: auto !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
    }
    
    /* Empêcher le scroll horizontal sur tous les éléments */
    * {
        overscroll-behavior-x: none !important;
        max-width: 100vw !important;
    }
    
    /* Permettre le scroll vertical uniquement sur les conteneurs nécessaires */
    body > * {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Empêcher le bounce/scroll élastique sur iOS */
    @supports (-webkit-touch-callout: none) {
        html, body {
            overscroll-behavior-y: contain !important;
            -webkit-overflow-scrolling: touch !important;
        }
    }
}


.desktop-logo-left {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    order: -1 !important;
}

.desktop-nav-center {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.2vw;
    height: 54px;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    background: none;
    width: auto;
    left: unset;
    top: unset;
    transform: none;
    z-index: 1;
    min-width: 0;
}
@media (max-width: 900px) {
    .desktop-nav-center {
        gap: 0.2vw;
    }
}

.desktop-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.desktop-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    background: none;
    width: auto;
    flex: 1 1 0;
    left: unset;
    top: unset;
    transform: none;
    z-index: 1;
    min-width: 0;
}
.desktop-logo-left {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
    /* L'alignement se fait par le padding du header */
}
@media (max-width: 900px) {
    .desktop-nav-center {
        justify-content: flex-start;
        width: auto;
    }
    .desktop-logo-left {
        margin-left: 0;
    }
}
.desktop-header-bar {
    position: sticky;
    top: 20px;
    margin: 0 20px;
    background: #2EFFD3 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 99999 !important;
    padding: 0.85rem 2vw 0.85rem 2vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-radius: 12px;
    box-sizing: border-box;
}
.desktop-header-actions {
    margin-left: auto !important;
    right: 0;
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.8em;
    z-index: 3;
    justify-content: flex-end;
}


.desktop-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-left: auto;
    z-index: 3;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .desktop-nav-center {
        gap: 0.6vw;
    }
    .desktop-header-bar {
        padding: 0.425rem 1vw;
    }
    .desktop-header-actions {
        gap: 0.5em;
    }
}
@media (max-width: 700px) {
    .desktop-header-bar {
        padding: 0.5rem 0.5vw;
        min-height: 48px;
    }
    .desktop-nav-center {
        gap: 0.2vw;
        font-size: 0.98em;
    }
    .desktop-header-actions {
        gap: 0.3em;
    }
}

.desktop-nav-center > a:not(.desktop-logo-left) {
    margin-top: -10px;
}

.desktop-nav-center > a {
    color: #111 !important;
    text-decoration: none !important;
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;

}

.desktop-nav-center > a:hover,
.desktop-nav-center > a:focus,
.desktop-nav-center > a:active {
    color: #17507bff !important;
    text-decoration: none !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    filter: none !important;
    font-weight: 700 !important;
    transition: none !important;
}
}

/* Hero search bar desktop : style loupe et bouton comme sur mobile */
.show-desktop .hero-search-bar button {
  background: transparent !important;
  border-radius: 3px !important;
}
.show-desktop .hero-search-bar button svg {
  color: #999 !important;
}
.show-desktop .hero-search-bar button svg circle,
.show-desktop .hero-search-bar button svg line {
  stroke: #999 !important;
}

    opacity: 1 !important;
    font-weight: 600 !important;
}
/* Désactive tout effet de survol hérité sur le logo */
.desktop-logo-center > a,
.desktop-logo-center > a:hover,
.desktop-logo-center > a:focus,
.desktop-logo-center > a:active {
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
    color: inherit !important;
    border: none !important;
    outline: none !important;
    transition: none !important;
    text-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
}
.desktop-header-actions {
    display: flex;
    align-items: center;
    gap: 1.1vw;
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
}
.account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8vw;
    margin-top: -10px;
    margin-bottom: 0;
    vertical-align: middle;
}
.language-dropdown {
    display: flex;
    align-items: center;
    margin-top: -10px;
    margin-bottom: 0;
    vertical-align: middle;
}
.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2.2vw;
    position: relative;
}
.desktop-logo-center {
    display: flex;
    align-items: center;
    margin: 0 2vw;
    flex-shrink: 0;
    height: 48px; /* même hauteur que le logo */
}
.desktop-logo-center:hover, .desktop-logo-center .logo-img:hover {
    background: none !important;
    box-shadow: none !important;
    filter: none !important;
    cursor: pointer;
}
.desktop-header-actions {
    display: flex;
    align-items: center;
    gap: 1.1vw;
    margin-left: 2vw;
}
.account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8vw;
    margin-top: -10px;
    margin-bottom: 0;
    vertical-align: middle;
}
.account-icon {
    width: 18.67px;
    height: 18.67px;
    object-fit: contain;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.language-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.dropdown-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0 0.2vw;
    border-radius: 50px;
    transition: background 0.15s;
}
.dropdown-caret {
    font-size: 1.1em;
    margin-left: 0.2em;
    color: #888;
}
/* Style de base pour tous les dropdowns */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 0.35em 0.4em;
    min-width: unset;
    z-index: 1001;
    flex-direction: column;
    gap: 0.13em;
    align-items: center;
    width: auto;
    white-space: nowrap;
}

/* Style spécifique pour le menu des langues */
.language-dropdown {
    position: relative;
    z-index: 10000; /* Juste en dessous de la barre de recherche */
}

.language-dropdown .dropdown-menu {
    z-index: 10002; /* Au-dessus de tout le reste */
}
.language-dropdown.open .dropdown-menu {
    display: flex;
}
.flag-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0.13em 0.04em;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
    transition: box-shadow 0.13s;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.flag-btn.active,
.flag-btn:focus,
.flag-btn:hover {
    background: #e8f1ff;
    box-shadow: 0 0 0 2px #0066cc44;
    border-radius: 50%;
    outline: none;
}
.flag-btn.active .flag-icon,
.flag-btn:focus .flag-icon,
.flag-btn:hover .flag-icon {
    border-color: #0066cc;
}
.flag-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    display: block;
    transition: border 0.13s;
}

.flag-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0.2em 0;
    cursor: pointer;
    border-radius: 50%;
    outline: none;
    transition: box-shadow 0.15s;
    box-shadow: none;
    display: flex;
    align-items: center;
}
.flag-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    display: block;
}

.flag-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0.1vw;
    cursor: pointer;
    outline: none;
    border-radius: 50%;
    transition: box-shadow 0.15s;
    box-shadow: none;
}
.flag-btn:focus, .flag-btn:hover {
    box-shadow: 0 0 0 2px #0066cc44;
}
.flag-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e0e0e0;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.07);
    background: #fff;
    display: block;
}
@media (max-width: 900px) {
  .desktop-header-bar {
    display: none !important;
  }
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  margin-left: 10px;
  z-index: 2001;
}
.burger-menu span {
  display: block;
  width: 18.67px;
  height: 4px;
  margin: 4px 0;
  background: #17507b;
  border-radius: 2px;
  transition: all 0.3s;
}
/* Burger reste avec ses trois traits même quand ouvert */

@media (max-width: 900px) {
  .mobile-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 1.6rem 0.5rem 1.6rem;
    background: #fff;
  }
  .mobile-header-row .mobile-logo img {
    height: 32px;
    width: auto;
    display: block;
  }
  .mobile-header-row .burger-menu {
    display: flex;
    margin-left: 0;
    margin-right: 0;
    position: static;
    width: 38px;
    height: 38px;
    z-index: 2001;
  }

  .mobile-only-logo {
    display: block !important;
  }

  .desktop-header {
    display: none !important;
  }
  .close-mobile-menu {
    display: block;
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #222;
    z-index: 10;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 44px;
    height: 44px;
    text-align: center;
  }

  .burger-menu {
    display: flex;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 3000;
    padding-top: 70px;
    padding-bottom: 2rem;
    transform: translateX(-100vw);
    transition: transform 0.35s cubic-bezier(.77,0,.18,1);
    box-shadow: 0 6px 32px rgba(0,0,0,0.13);
  }
  .mobile-menu.open {
    display: flex;
    transform: translateX(0);
  }
  .mobile-menu nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .mobile-menu nav a {
    font-size: 0.95rem;
    padding: 0.7rem 1.05rem; /* Style compact */
    width: 100%;
    max-width: 200px;
    text-align: center;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    background: transparent;
    color: #1a2b49;
    text-decoration: none;
    margin: 0;
    font-weight: 500;
    transition: color 0.2s;
  }
  
  .mobile-menu nav a:last-child {
    border-bottom: none;
  }
  
  .mobile-menu nav a:hover,
  .mobile-menu nav a:active {
    background: transparent;
    color: #17507b;
  }
  
  .mobile-menu nav a.mobile-download-btn {
    background: transparent;
    color: #1a2b49 !important;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 0.7rem 1.05rem;
    margin: 0;
    max-width: 200px;
    font-weight: 600;
    transition: color 0.2s;
  }
  
  .mobile-menu nav a.mobile-download-btn:hover,
  .mobile-menu nav a.mobile-download-btn:active {
    background: transparent;
    color: #17507b !important;
  }
  
  .mobile-menu nav a.mobile-account-link {
    margin-top: 0;
    font-weight: 500;
  }
  .mobile-menu .language-selector {
    margin: 2rem 0 0 0;
    width: 80%;
    text-align: center;
  }
}

@media (min-width: 901px) {
  .show-desktop .hero-search-bar {
    background: #fff !important;
  }
  .show-desktop .hero-search-bar input {
    color: #000 !important;
    background: #fff !important;
    caret-color: #000 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .show-desktop .hero-search-bar input::placeholder {
    color: #888 !important;
    opacity: 1;
  }

  .mobile-header-row {
    display: none !important;
  }

  .mobile-only-logo {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }
}


.logo-img {
    height: 36px;
    width: auto;
    max-width: 195px;
    vertical-align: middle;
    display: inline-block;
    margin-top: 2px; /* alignement vertical avec le bloc vidéo hero */
}
nav {
    display: flex;
    align-items: center;
    font-size: 85%;
    gap: 0.4rem;
}
nav a {
    color: #1a2b49;
    font-weight: 500;
    font-size: 1.07rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 0.2rem 0.3rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
nav a:hover {
    color: #fff;
    background: #0066cc;
}

.header-test-btn {
    background: #007aff;
    color: #fff !important;
    border: 1px solid #007aff;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 0.38em 1.2em;
    margin-left: 1.2vw;
    margin-right: 0.3vw;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    display: inline-block;
    line-height: 1.1;
    outline: none;
    text-align: center;
    transition: none;
    margin-top: -10px;
    margin-bottom: 0;
    vertical-align: middle;
    text-decoration: none !important;
}
.header-test-btn:visited,
.header-test-btn:active,
.header-test-btn:focus,
.header-test-btn:hover {
    text-decoration: none !important;
}
.header-test-btn:hover, .header-test-btn:focus {
    background: #0056cc;
    color: #fff !important;
    border-color: #0056cc;
    box-shadow: 0 2px 8px rgba(0,122,255,0.2);
}
.language-selector select {
    padding: 0.45rem 0.7rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #f8fafc;
    color: #1a2b49;
    font-size: 1rem;
}

footer {
    background: linear-gradient(120deg, #f5f7fa 70%, #e3eafc 100%);
    padding: 2.5rem 4vw 1.5rem 4vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 4rem;
    box-shadow: 0 2px 24px 0 rgba(0, 102, 204, 0.07);
    position: relative;
}
footer div {
    min-width: 180px;
    margin-bottom: 1.2rem;
    flex: 1 1 180px;
}
footer h3 {
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
    color: #0066cc;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
footer a {
    display: block;
    color: #1a2b49;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}
footer a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: #0066cc;
    transition: width 0.2s;
    position: absolute;
    left: 0;
    bottom: -2px;
}
footer a:hover {
    color: #0066cc;
}
footer a:hover::after {
    width: 100%;
}
footer a:hover {
    color: #0066cc;
}
footer .language-selector select {
    padding: 0.45rem 0.7rem;
    border: 1px solid #c6d5ee;
    border-radius: 5px;
    background: #f8fafc;
    color: #1a2b49;
    font-size: 1rem;
    box-shadow: 0 1px 4px 0 rgba(0,102,204,0.06);
    transition: border 0.2s;
}
footer .language-selector select:focus {
    border: 1.5px solid #0066cc;
    outline: none;
}
footer p {
    width: 100%;
    text-align: center;
    margin-top: 2.3rem;
    color: #0066cc;
    font-size: 1.04rem;
    letter-spacing: 0.04em;
    font-weight: 600;
    opacity: 0.85;
    font-size: 1rem;
}

@media (max-width: 700px) {
  footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 2rem 4vw 1rem 4vw;
  }
  footer div {
    min-width: unset;
    margin-bottom: 0.6rem;
  }
  footer h3 {
    margin-bottom: 0.3rem;
  }
  footer p {
    margin-top: 1.5rem;
    font-size: 0.96rem;
  }
}
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem 4vw;
    }
    nav {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 0.5rem;
    }
    .logo-img {
        margin-bottom: 0.6rem;
    }

@media (max-width: 900px) {
  .mobile-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 1.6rem 0.5rem 1.6rem;
    background: #fff;
  }
  .mobile-header-row .mobile-logo img {
    height: 32px;
    width: auto;
    display: block;
  }
  .mobile-header-row .burger-menu {
    display: flex;
    margin-left: 0;
    margin-right: 0;
    position: static;
    width: 38px;
    height: 38px;
    z-index: 2001;
  }

  .mobile-only-logo {
    display: block !important;
  }

  .desktop-header {
    display: none !important;
  }
  .close-mobile-menu {
    display: block;
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #222;
    z-index: 10;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 44px;
    height: 44px;
    text-align: center;
  }

    footer {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.2rem 3vw 0.7rem 3vw;
    }
    footer div {
        min-width: 0;
    }
}

.hero {
    position: relative;
    height: 52vh;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0;
}

.hero-bg-img {
  position: static;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  display: block;
  z-index: 0;
}
@media (max-width: 900px) {
  .hero-bg-img {
    border-radius: 16px;
    max-height: 260px;
    object-fit: cover;
  }
}

.video-carousel, 
    width: 100vw;
    height: 26vh;
    object-fit: cover;
}

/* Desktop et tablette : card vidéo avec radius 25px */
@media (min-width: 900px) {
    border: 5px solid #111;
    }
}

/* Tablette uniquement : doubler la hauteur */
@media (min-width: 601px) and (max-width: 900px) {
    .video-carousel, 
        height: 52vh !important;
    }
}

@media (max-width: 600px) {
    .video-carousel, 
        height: 14vh !important;
    }
    .search-bar {
        max-width: 98vw;
        padding: 0.5rem;
    }
    .search-bar input {
        font-size: 0.97rem;
        padding: 0.4rem 0.5rem;
    }
}

.search-bar {
    position: absolute;
    left: 50%;
    bottom: 2.5vh;
    transform: translateX(-50%);
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    max-width: 800px;
    width: 90vw;
    margin: 0 auto;
    min-width: 0;
    z-index: 2;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0.5rem 0.7rem;
    font-size: 1.08rem;
    outline: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #f8fafc;
    border-radius: 6px;
}

.search-bar input::placeholder {
    font-size: 1.05rem;
    color: #888;
    opacity: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.search-bar button {
    background: #0066CC;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.quick-links, .latest-listings, .advice, .account { 
    margin-top: 2.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid,
.responsive-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0.6rem 0 1.5rem 0;
}

@media (max-width: 900px) {
  .mobile-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 1.6rem 0.5rem 1.6rem;
    background: #fff;
  }
  .mobile-header-row .mobile-logo img {
    height: 32px;
    width: auto;
    display: block;
  }
  .mobile-header-row .burger-menu {
    display: flex;
    margin-left: 0;
    margin-right: 0;
    position: static;
    width: 38px;
    height: 38px;
    z-index: 2001;
  }

  .mobile-only-logo {
    display: block !important;
  }

  .desktop-header {
    display: none !important;
  }
  .close-mobile-menu {
    display: block;
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #222;
    z-index: 10;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 44px;
    height: 44px;
    text-align: center;
  }

  .responsive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    max-width: 98vw;
  }
}

@media (max-width: 600px) {
  .responsive-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100vw;
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }
  .responsive-card {
    width: 95vw;
    max-width: 350px;
  }
}


@media (max-width: 900px) {
  .mobile-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 1.6rem 0.5rem 1.6rem;
    background: #fff;
  }
  .mobile-header-row .mobile-logo img {
    height: 32px;
    width: auto;
    display: block;
  }
  .mobile-header-row .burger-menu {
    display: flex;
    margin-left: 0;
    margin-right: 0;
    position: static;
    width: 38px;
    height: 38px;
    z-index: 2001;
  }

  .mobile-only-logo {
    display: block !important;
  }

  .desktop-header {
    display: none !important;
  }
  .close-mobile-menu {
    display: block;
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #222;
    z-index: 10;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 44px;
    height: 44px;
    text-align: center;
  }

  .responsive-section {
    padding: 1.2rem 2vw 0.7rem 2vw;
  }
  .responsive-title {
    font-size: 1.15rem;
    text-align: left;
    padding-left: 0.2em;
  }
  .responsive-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
  .responsive-card {
    font-size: 0.98rem;
    padding: 0.7rem 0.5rem;
  }
}

@media (max-width: 600px) {
  .responsive-section {
    padding: 0.7rem 1vw 0.4rem 1vw;
  }
  .responsive-title {
    font-size: 1.02rem;
    text-align: left;
    padding-left: 0.1em;
  }
  .responsive-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .responsive-card {
    font-size: 0.94rem;
    padding: 0.5rem 0.3rem;
  }
  .hero {
    height: 32vh;
  }
  .search-bar {
    width: 96vw;
    max-width: 98vw;
    bottom: 1.2vh;
  }
}


.card, .responsive-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 1.3rem 1.2rem 1.7rem 1.2rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    transition: box-shadow 0.18s, transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 340px;
    max-width: 340px;
    width: 100%;
}

.home-main-picto {
    max-width: 300px;
    transition: width 0.2s, max-width 0.2s;

    display: block;
    margin: 0 auto 1.2rem auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
    width: 100%;
    max-width: 200px;
    min-width: 40px;
    height: auto;
}


.card-picto-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 220px;
    width: 100%;
}

.card-picto-btn {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.card:hover, .responsive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0,102,204,0.13);
}

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

footer {
    background: #f8f8f8;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

footer h3 {
    margin-bottom: 1rem;
}

input {
  color: #1a2b49 !important;
}
input::placeholder {
  color: #7a869a !important;
  opacity: 1 !important;
}

  color: #7a869a;
  opacity: 1;
}

.hero-sauv 
    width: 100vw !important;
    max-width: 100vw !important;
    height: 480px !important;
    border-radius: 0;
    object-fit: cover;
    box-shadow: 0 6px 32px rgba(0,0,0,0.13);
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
@media (max-width: 700px) {
  .hero-sauv 
    height: 280px !important;
    border-radius: 0;
  }
} 
@media (max-width: 700px) {
  .hero-sauv 
    height: 280px !important;
    border-radius: 0;
  }
}

.search-bar-sauv {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: none;
}

.search-bar-sauv form {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(26,43,73,0.13);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 440px;
  gap: 0.5rem;
}

.search-bar-sauv input[type="text"] {
  flex: 1 1 0%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.15rem;
  padding: 0.95rem 1.2rem;
  border-radius: 32px;
  color: #1a2b49;
}

.search-bar-sauv input[type="text"]::placeholder {
  color: #7a869a;
  opacity: 1;
  font-size: 1.1rem;
}

.search-bar-sauv input[type="text"]:focus {
  background: #f5f8fa;
}

.search-bar-sauv button[type="submit"] {
  background: #0066cc;
  border: none;
  border-radius: 0 32px 32px 0;
  color: #fff;
  font-size: 1.4rem;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,102,204,0.08);
}

.search-bar-sauv button[type="submit"]:hover, .search-bar-sauv button[type="submit"]:focus {
  background: #0052a3;
}

@media (max-width: 700px) {
  .search-bar-sauv {
    max-width: 98vw;
    font-size: 0.97em;
  }
  .search-bar-sauv form {
    padding: 0.3rem 0.3rem;
    max-width: 97vw;
  }
  .search-bar-sauv input[type="text"] {
    font-size: 1em;
    padding: 0.7rem 0.7rem;
  }
  .search-bar-sauv button[type="submit"] {
    font-size: 1.1rem;
    padding: 0.7rem 1rem;
  }
}
/* Ajoutez ici vos styles personnalisés */

@media (max-width: 900px) {
  .hero-bg-img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: 180px !important;
    object-fit: contain !important;
    border-radius: 18px 18px 0 0 !important;
    margin-bottom: 0 !important;
    z-index: 1 !important;
    box-shadow: none !important;
  }
  .hero-mobile-center {
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 16px rgba(26,43,73,0.07) !important;
    padding: 1.2rem 0.7rem 0.7rem 0.7rem !important;
    margin-top: -16px !important;
    margin-bottom: 18px !important;
    align-items: flex-start !important;
    width: 94vw !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
  .hero-mobile-title {
    margin-bottom: 0.8em !important;
    text-align: left !important;
    width: 100% !important;
  }
}


.show-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 350px;
}

.hero-mobile-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  width: 100%;
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding: 0;
}


/* Gestion du safe-area pour iPhone X et + */
@media (max-width: 900px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom, 0);
    width: 100vw;
    min-width: 100vw;
    height: 62px;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    box-shadow: 0 -2px 16px #0001;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding-bottom: 0;
    overflow: hidden;
    transition: background 0.2s;
    touch-action: none;
    will-change: transform;
    -webkit-backdrop-filter: none;
    background-attachment: fixed;
  }
  .mobile-bottom-nav .nav-btn {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #17507b;
    text-decoration: none;
    font-size: 0.85em;
    padding-top: 4px;
    padding-bottom: 2px;
    transition: color 0.15s;
    height: 100%;
  }
  
  .mobile-bottom-nav .nav-btn .nav-icon {
    font-size: 1.7em;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-bottom-nav .nav-btn .nav-label {
    font-size: 0.78em;
    margin-top: 2px;
    letter-spacing: 0.01em;
  }
  .mobile-bottom-nav .nav-btn.active,
.mobile-bottom-nav .nav-btn:active,
.mobile-bottom-nav .nav-btn:focus,
.mobile-bottom-nav .nav-btn:hover {
  color: #17507b !important;
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  transition: none !important;
}

  body {
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-header-row {
    padding-top: env(safe-area-inset-top, 0);
  }
}

  background: #fff;
  border-radius: 32px;
  box-shadow: 0 2px 16px rgba(26,43,73,0.07);
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  margin: 0 auto 1.5rem auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

  display: none !important;
}


  background: #006aff;
  color: #fff;
  border: none;
  border-radius: 0 32px 32px 0;
}

input[type='text']::-webkit-search-decoration,
input[type='text']::-webkit-search-cancel-button,
input[type='text']::-webkit-search-results-button,
input[type='text']::-webkit-search-results-decoration {
  display: none !important;
}

input[type='search']::-webkit-search-decoration,
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-results-button,
input[type='search']::-webkit-search-results-decoration {
  display: none !important;
}

input[type='text'], input[type='search'] {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: none !important;
}

.login-modal-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(26,43,73,0.12);
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 340px;
  max-width: 360px;
  width: 100%;
  position: relative;
  animation: fadeIn 0.3s;
}
.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #222;
  cursor: pointer;
}

.login-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #1a2b49;
  font-weight: 700;
}

.login-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.tab-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: #666;
  padding: 0.7rem 1.2rem 0.7rem 1.2rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active {
  color: #0066cc;
  border-bottom: 2px solid #0066cc;
  font-weight: 600;
}
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.login-modal label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  color: #1a2b49;
  font-size: 0.97rem;
}

.login-modal input[type="email"],
.login-modal input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  outline: none;
  background: #f8f8fa;
  transition: border 0.2s;
}

.login-modal input[type="email"]:focus,
.login-modal input[type="password"]:focus {
  border: 1.5px solid #0066cc;
}

.primary-btn {
  width: 100%;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.2rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
  transition: background 0.2s;
}

.primary-btn:hover {
  background: #0052a3;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.97rem;
  color: #0066cc;
  text-decoration: none;
  margin-bottom: 1.1rem;
}

.divider {
  text-align: center;
  margin: 1.5rem 0 1.2rem 0;
  position: relative;
}

.divider span {
  background: #fff;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  color: #888;
  font-size: 0.95rem;
}

.divider:before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid #e0e0e0;
  z-index: 0;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.social-btn {
  width: 100%;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  padding: 0.8rem 0;
  font-weight: 600;
  cursor: pointer;
  background: #f5f7fa;
  color: #222;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-content: center;
  transition: background 0.2s;
}

.social-btn.fb-btn {
  background: #1877f2;
  color: #fff;
}

.picto-action-btn {
  background: #0066cc;
  border: none;
  border-radius: 18px;
  color: #fff;
  font-size: 1.1rem;
  padding: 0.7rem 1.4rem;
  min-width: 120px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,102,204,0.12);
  margin-top: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.picto-action-btn:hover, .picto-action-btn:focus {
  background: #0052a3;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,102,204,0.16);
  text-decoration: none;
}


.picto-action-btn:hover, .picto-action-btn:focus {
  background: #0052a3;
  color: #fff;
  text-decoration: none;
}

.social-btn.apple-btn {
  background: #000;
  color: #fff;
}

.social-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.password-rules {
  font-size: 0.93rem;
  color: #888;
  margin-bottom: 0.7rem;
  margin-top: 0.2rem;
  padding-left: 1.1rem;
}

.password-rules li {
  margin-bottom: 0.1rem;
}

@media (max-width: 480px) {
  .login-modal {
    min-width: 0;
    width: 97vw;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
}

#city-suggestions {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  z-index: 3000;
  display: block;
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-top: none;
  box-shadow: 0 6px 24px 0 rgba(26,43,73,0.09);
}

#city-suggestions.show,
#city-suggestions[style*="display: block"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 3000 !important;
}

#city-suggestions:not(:empty) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 3000 !important;
}

#city-suggestions li, .suggestion-item {
  padding: 1rem 1.2rem;
  cursor: pointer;
  color: #1a2b49;
  font-size: 1.07rem;
  border-bottom: 1px solid #f3f5fa;
  display: flex;
  align-items: center;
  gap: 0.8em;
  transition: background 0.16s;
  background: #fff;
}
#city-suggestions li:last-child, .suggestion-item:last-child {
  border-bottom: none;
}
#city-suggestions li:hover, #city-suggestions li.active, .suggestion-item:hover, .suggestion-item.active {
  background: #f0f6ff;
  color: #0066cc;
}

#city-suggestions .no-suggestion {
  color: #a0a0a0;
  cursor: default;
  background: #fafbfc;
}

.city-search-group {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 0 auto 0.5rem auto;
  display: flex;
}

@media (max-width: 700px) {
  .city-search-group {
    max-width: 98vw;
  }
}

#city-search-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 6px 0 0 6px;
  padding: 1.1rem 1.3rem;
  font-size: 1.15rem;
  min-height: 56px;
  outline: none;
  background: #f8f8fa;
  transition: border 0.2s;
}

#city-search-input::placeholder {
  color: #8ea0b8;
  font-size: 1.07em;
  opacity: 1;
}

.loupe-btn {
  height: 56px;
  min-width: 56px;
  font-size: 1.4rem;
  padding: 0;
  justify-content: center;
  align-items: center;
  display: flex;
}
}

/* Masquer le captcha sur mobile */
@media (max-width: 700px) {
  .recaptcha-notice {
    display: none !important;
  }
}

/* Repositionner le badge reCAPTCHA dans le footer */
.grecaptcha-badge {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  transform: scale(0.75) !important;
  opacity: 0.6 !important;
  z-index: 1000 !important;
  transition: opacity 0.3s ease !important;
}

.grecaptcha-badge:hover {
  opacity: 0.9 !important;
}

/* Sur mobile, le rendre encore plus discret */
@media (max-width: 700px) {
  .grecaptcha-badge {
    transform: scale(0.55) !important;
    opacity: 0.4 !important;
    bottom: 10px !important;
    right: 10px !important;
  }
  
  .grecaptcha-badge:hover {
    opacity: 0.7 !important;
  }
}

/* Styles pour le nouveau layout du header mobile - VERSION MAQUETTE */
@media (max-width: 768px) {
  /* Le header mobile est maintenant géré par mobile-header.css */
  .mobile-header-row {
    background: #2EFFD3 !important;
    border-bottom: 1px solid #2EFFD3 !important;
  }
  
  /* Masquer le badge reCAPTCHA flottant sur mobile */
  .grecaptcha-badge {
    display: none !important;
  }
}
