/* Custom CSS pour l'image de l'avocat uniquement */

/* Styles de base pour l'image de l'avocat - IDENTIQUES SUR TOUS LES ÉCRANS */
.hero-image {
    transform: scale(0.97) translateY(10px);
    transition: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    outline: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

/* Effet de survol identique */
.hero-image:hover {
    transform: scale(0.97) translateY(10px);
    opacity: 1;
    visibility: visible;
    filter: none;
    box-shadow: none;
    background: transparent;
}

/* Container de l'image - IDENTIQUE SUR TOUS LES ÉCRANS */
.hero-image-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100vh;
    width: 100%;
    transform: translateX(20px);
    position: relative;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    outline: none;
    opacity: 1;
    visibility: visible;
}

/* Container au survol */
.hero-image-container:hover {
    opacity: 1;
    visibility: visible;
    background: transparent;
    box-shadow: none;
    border: none;
}

/* ===== RESPONSIVE DESIGN - OPTIMISÉ POUR TÉLÉPHONE ===== */

/* Petits écrans (≤425px) - Image visible et proportionnée */
@media (max-width: 425px) {
    .hero-image {
        transform: scale(0.8) translateY(20px);
        max-width: 90%;
        max-height: 80vh;
        object-fit: contain;
        object-position: center bottom;
        width: auto;
        height: auto;
    }
    
    .hero-image:hover {
        transform: scale(0.8) translateY(20px);
    }
    
    .hero-image-container {
        transform: translateX(10px);
        height: 80vh;
        width: 90%;
        justify-content: center;
        align-items: center;
    }
}

/* ≤425px - Image bien visible (plus petit seuil) */
@media (max-width: 425px) {
    .hero-image {
        transform: scale(0.7) translateY(30px);
        max-width: 85%;
        max-height: 70vh;
        object-fit: contain;
        object-position: center bottom;
        width: auto;
        height: auto;
    }
    
    .hero-image:hover {
        transform: scale(0.7) translateY(30px);
    }
    
    .hero-image-container {
        transform: translateX(5px);
        height: 70vh;
        width: 85%;
        justify-content: center;
        align-items: center;
    }
}

/* ≤425px - variante très petite */
@media (max-width: 425px) {
    .hero-image {
        transform: scale(0.6) translateY(40px);
        max-width: 80%;
        max-height: 60vh;
        object-fit: contain;
        object-position: center bottom;
        width: auto;
        height: auto;
    }
    
    .hero-image:hover {
        transform: scale(0.6) translateY(40px);
    }
    
    .hero-image-container {
        transform: translateX(2px);
        height: 60vh;
        width: 80%;
        align-items: center;
        justify-content: center;
    }
}

/* ≤425px - micro-écrans (regroupé) */
@media (max-width: 425px) {
    .hero-image {
        transform: scale(0.5) translateY(50px);
        max-width: 75%;
        max-height: 50vh;
        object-fit: contain;
        object-position: center bottom;
        width: auto;
        height: auto;
    }
    
    .hero-image:hover {
        transform: scale(0.5) translateY(50px);
    }
    
    .hero-image-container {
        transform: translateX(0px);
        height: 50vh;
        width: 75%;
        align-items: center;
        justify-content: center;
    }
}

/* ≤425px et paysage */
@media (max-width: 425px) and (orientation: landscape) {
    .hero-image {
        transform: scale(0.75) translateY(15px);
        max-height: 85vh;
        object-fit: contain;
        object-position: center bottom;
        width: auto;
        height: auto;
    }
    
    .hero-image:hover {
        transform: scale(0.75) translateY(15px);
    }
    
    .hero-image-container {
        height: 85vh;
        transform: translateX(10px);
        width: 85%;
        align-items: center;
        justify-content: center;
    }
}

/* ===== OPTIMISATIONS POUR AUTRES ÉLÉMENTS ===== */

/* Grilles responsive ≤425px */
@media (max-width: 425px) {
    .grid.grid-cols-1.sm\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .py-12.sm\\:py-16.lg\\:py-20 {
        padding: 2rem 0;
    }
    
    .text-2xl.sm\\:text-3xl.lg\\:text-4xl {
        font-size: 1.875rem;
    }
    
    .text-3xl.sm\\:text-4xl.lg\\:text-6xl {
        font-size: 2.5rem;
    }
}

@media (max-width: 425px) {
    .grid.grid-cols-1.sm\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .py-12.sm\\:py-16.lg\\:py-20 {
        padding: 1.5rem 0;
    }
    
    .text-2xl.sm\\:text-3xl.lg\\:text-4xl {
        font-size: 1.5rem;
    }
    
    .text-3xl.sm\\:text-4xl.lg\\:text-6xl {
        font-size: 2rem;
    }
    
    .px-6.sm\\:px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-3 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .w-10.h-10.sm\\:w-12.sm\\:h-12 {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .space-x-4 {
        gap: 0.75rem;
    }
}

@media (max-width: 425px) {
    .text-2xl.sm\\:text-3xl.lg\\:text-4xl {
        font-size: 1.25rem;
    }
    
    .text-3xl.sm\\:text-4xl.lg\\:text-6xl {
        font-size: 1.75rem;
    }
    
    .py-12.sm\\:py-16.lg\\:py-20 {
        padding: 1rem 0;
    }
    
    .gap-8 {
        gap: 0.75rem;
    }
}

/* Images de services ≤425px */
@media (max-width: 425px) {
    .service-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .h-48.sm\\:h-64 {
        height: 12rem;
    }
}

@media (max-width: 425px) {
    .h-48.sm\\:h-64 {
        height: 10rem;
    }
}

/* Cartes de contact ≤425px */
@media (max-width: 425px) {
    .contact-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 425px) {
    .contact-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-icon {
        font-size: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* FAQ ≤425px */
@media (max-width: 425px) {
    .grid.grid-cols-1.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .space-y-6 > div {
        margin-bottom: 1rem;
    }
}

/* Footer ≤425px */
@media (max-width: 425px) {
    .grid.grid-cols-1.sm\\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .text-center.sm\\:text-left {
        text-align: center;
    }
    
    .justify-center.sm\\:justify-start {
        justify-content: center;
    }
}

/* ===== FIGER LE RENDU BUREAU ENTRE 641px ET 1023px (tablette uniquement) ===== */
@media (min-width: 641px) and (max-width: 1023px) {
    /* Titres: utiliser la taille bureau (lg) */
    .text-3xl.sm\:text-4xl.lg\:text-6xl {
        font-size: 3.75rem; /* ~text-6xl */
        line-height: 1;
    }

    .text-2xl.sm\:text-3xl.lg\:text-4xl {
        font-size: 2.25rem; /* ~text-4xl */
        line-height: 2.5rem;
    }

    /* Grilles: reproduire le layout desktop */
    .grid.grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid.grid-cols-1.lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid.grid-cols-1.sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Espacements type bureau */
    .py-12.sm\:py-16.lg\:py-20 {
        padding-top: 5rem; /* py-20 */
        padding-bottom: 5rem;
    }
}

/* Desktop layout retained between 1024px et 425px (tablet overrides removed) */

/* Small-tablet overrides removed to keep desktop layout */

/* Phablet overrides removed to keep desktop layout */
