/* ==========================================
   🎨 EYESIGHT-DEV - FEUILLE DE STYLE GLOBALE
   ========================================== */

/* ==========================================
   1. VARIABLES & RESET
   ========================================== */
:root {
    --header-height: 6rem;
    --header-height-expanded: 14rem;
    --transition-speed: 0.3s;
    --gradient-border: linear-gradient(40deg, rgba(255, 196, 109, 1) 0%, rgba(255, 198, 251, 1) 25%, rgba(190, 219, 228, 1) 50%, rgba(208, 234, 187, 1) 75%, rgba(179, 179, 255, 1) 100%);
}

* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    line-height: 1.8;
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", sans-serif;
}


h1 {
    font-size: 30px !important;
}

h3 {
    font-size: 16px;
}

h4 {
    font-size: 16px;
    font-weight: bolder;
}

a {
    text-decoration: none;
}

.linkCursor, a {
    cursor: pointer;
}

/* ==========================================
   6. GRILLES & LAYOUTS
   ========================================== */
.content {
    flex-grow: 1;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.main-content {
    padding-top: 2rem;
}

.vignettes-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 601px) {
    .vignettes-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vignettes-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 601px) {
    .vignettes-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .vignettes-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vignettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    text-align: left;
    padding: 0 16px;
}

/* ==========================================
   7. BOUTONS
   ========================================== */
.btn-action {
    background: linear-gradient(40deg, rgba(255,175,59,1) 0%, rgba(255,120,246,1) 25%, rgb(50, 207, 255) 50%, rgb(78, 216, 24) 75%, rgba(89,89,255,1) 100%);
    color: white !important;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
}

.btn-action:hover {
    opacity: 0.9;
}

.btn-action2 {
    background: linear-gradient(white, white) padding-box, linear-gradient(40deg, rgba(255,196,109,1) 0%, rgba(255,198,251,1) 25%, rgba(190,219,228,1) 50%, rgba(208,234,187,1) 75%, rgba(179,179,255,1) 100%) border-box;
    border: 1px solid transparent;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
}

.btn-action2:hover {
    background: linear-gradient(white, white) padding-box, linear-gradient(40deg, rgba(255,196,109,1) 0%, rgba(255,198,251,1) 25%, rgba(190,219,228,1) 50%, rgba(208,234,187,1) 75%, rgba(179,179,255,1) 100%);
    color: grey;
}

.btn-action-main {
    background: linear-gradient(white, white) padding-box, linear-gradient(40deg, rgba(255,196,109,1) 0%, rgba(255,198,251,1) 25%, rgba(190,219,228,1) 50%, rgba(208,234,187,1) 75%, rgba(179,179,255,1) 100%) border-box;
    border: 2px solid transparent;
    padding: 14px 26px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    opacity: 0.8;
    color: #141414;
}

.btn-action-main:hover {
    background: linear-gradient(white, white) padding-box, linear-gradient(40deg, rgba(255,196,109,1) 0%, rgba(255,198,251,1) 25%, rgba(190,219,228,1) 50%, rgba(208,234,187,1) 75%, rgba(179,179,255,1) 100%);
    opacity: 1;
}

/* ==========================================
   9. SECTIONS SPÉCIFIQUES
   ========================================== */

/* Sections avec fond teinté */
.section-tinted {
    background: linear-gradient(135deg, rgba(255, 154, 86, 0.03), rgba(255, 107, 157, 0.03), rgba(91, 157, 255, 0.03));
    padding: 60px 0;
    margin: 40px 0;
}
/* Section avec fond gris teinté (dégradé de gris transparents) */
.section-tinted-grey {
    background: linear-gradient(135deg, rgba(240, 240, 240, 0.3) 0%, rgba(230, 230, 230, 0.2) 50%, rgba(240, 240, 240, 0.3) 100%);
        /* background: linear-gradient(135deg, rgba(245, 245, 245, 0.3) 0%, rgba(235, 235, 235, 0.5) 100%); */
    padding: 60px 0;
    margin: 40px 0;
}

/* Titres de section */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 12px;
}

.section-title .accent {
    background: linear-gradient(90deg, #ff9a56, #ff6b9d, #5b9dff, #5bffb5, #b55bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Portfolio */
.project-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.project-image {
    border-radius: 8px;
    margin: 1rem 0;
    max-height: 300px;
    object-fit: cover;
    object-position: top;
}

.project-flyer {
    border-radius: 8px;
    margin: 1rem 0;
    max-height: 300px;
    object-fit: contain;
}

/* Carrousel */
.carousel-container {
    position: relative;
    margin: 2rem 0;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    padding: 12px 24px;
    margin-right: 12px;
    background: #f8f9fa;
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-item.active {
    background: linear-gradient(40deg, 
        rgba(255,175,59,0.2) 0%, 
        rgba(255,120,246,0.2) 25%, 
        rgba(94,217,255,0.2) 50%, 
        rgba(172,255,104,0.2) 75%, 
        rgba(89,89,255,0.2) 100%);
    font-weight: 600;
    color: black;
}

.carousel-item:hover:not(.active) {
    background: #e9ecef;
}

/* Prestations - Onglets */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 900px;
    margin: 2rem auto;
}

.tab-btn {
    flex: 1 1 200px;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: #f8f9fa;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    transition: all 0.2s;
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
}

.tab-btn.active {
    background: linear-gradient(40deg, 
        rgba(255,175,59,0.2) 0%, 
        rgba(255,120,246,0.2) 25%, 
        rgba(94,217,255,0.2) 50%, 
        rgba(172,255,104,0.2) 75%, 
        rgba(89,89,255,0.2) 100%);
    color: #2c3e50;
}

.tab-section {
    display: none;
}

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

.price-box {
    background: linear-gradient(to bottom right, #e3f2fd, #ffffff);
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.6rem;
    border-top: 1px solid #dde9f5;
    box-shadow: 0 -2px 4px rgba(52,152,219,0.05);
}

/* Mentions légales */
.box {
    background: linear-gradient(140deg, rgba(240,247,255,0.4) 0%, rgba(250,245,255,0.4) 50%, rgba(240,255,242,0.3) 100%);
    border-left: 4px solid;
    border-image: linear-gradient(40deg, rgba(255,175,59,1), rgba(89,89,255,1)) 1;
    padding: 22px 24px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    font-size: 0.95rem;
}

.box strong {
    color: #2a2a5a;
}

ul, ol {
    padding-left: 1.8rem;
}

li {
    margin-bottom: 0.6rem;
}

/* ==========================================
   10. UTILITAIRES - GRADIENTS & BACKGROUNDS
   ========================================== */
.grad1 {
    background: -webkit-linear-gradient(40deg, rgba(255,196,109,1) 0%, rgba(255,198,251,1) 25%, rgba(190,219,228,1) 50%, rgba(208,234,187,1) 75%, rgba(179,179,255,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grad2 {
    background: -webkit-linear-gradient(40deg, rgba(255,175,59,1) 0%, rgba(255,120,246,1) 25%, rgb(50, 207, 255) 50%, rgb(78, 216, 24) 75%, rgba(89,89,255,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-grad0 { 
    background: -webkit-linear-gradient(40deg, rgba(255,196,109,0.2) 0%, rgba(255,198,251,0.2) 25%, rgba(190,219,228,0.2) 50%, rgba(208,234,187,0.2) 75%, rgba(179,179,255,0.2) 100%);
}

.bg-grad1 { 
    background: -webkit-linear-gradient(40deg, rgba(255,196,109,1) 0%, rgba(255,198,251,1) 25%, rgba(190,219,228,1) 50%, rgba(208,234,187,1) 75%, rgba(179,179,255,1) 100%);
}

.bg-grad2 { 
    background: -webkit-linear-gradient(40deg, rgba(255,175,59,1) 0%, rgba(255,120,246,1) 25%, rgba(94,217,255,1) 50%, rgba(172,255,104,1) 75%, rgba(89,89,255,1) 100%);
}

.border-grad0 {
    background: linear-gradient(white, white) padding-box, linear-gradient(40deg, rgba(255,196,109,0.2) 0%, rgba(255,198,251,0.2) 25%, rgba(190,219,228,0.2) 50%, rgba(208,234,187,0.2) 75%, rgba(179,179,255,0.2) 100%) border-box;
    border: 1px solid transparent;
    border-radius: 8px;
}

.border-grad1 {
    background: linear-gradient(white, white) padding-box, linear-gradient(40deg, rgba(255,196,109,1) 0%, rgba(255,198,251,1) 25%, rgba(190,219,228,1) 50%, rgba(208,234,187,1) 75%, rgba(179,179,255,1) 100%) border-box;
    border: 1px solid transparent;
    border-radius: 8px;
}

.border-grad2 {
    background: linear-gradient(white, white) padding-box, linear-gradient(40deg, rgba(255,175,59,1) 0%, rgba(255,120,246,1) 25%, rgba(94,217,255,1) 50%, rgba(172,255,104,1) 75%, rgba(89,89,255,1) 100%) border-box;
    border: 1px solid transparent;
    border-radius: 8px;
}

.border-grad2-light-grey {
    background: linear-gradient(#f1f1f1, #f1f1f1) padding-box, linear-gradient(40deg, rgb(255, 175, 59) 0%, rgb(255, 120, 246) 25%, rgb(94, 217, 255) 50%, rgb(172, 255, 104) 75%, rgb(89, 89, 255) 100%) border-box;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid transparent;
    border-radius: 8px;
}

.border-bottom-grad1 {
    border: 1px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(40deg, rgba(255,196,109,1) 0%, rgba(255,198,251,1) 25%, rgba(190,219,228,1) 50%, rgba(208,234,187,1) 75%, rgba(179,179,255,1) 100%);
    border-left: 0;
    border-right: 0;
    border-top: 0;
}

.hover-grad2:hover > span {
    background-color: white;
    background: -webkit-linear-gradient(40deg, rgba(255,175,59,1) 0%, rgba(255,120,246,1) 25%, rgba(94,217,255,1) 50%, rgba(172,255,104,1) 75%, rgba(89,89,255,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
   11. RESPONSIVE
   ========================================== */
@media (min-width: 1024px) {
    .mobile-only {
        display: none !important;
    }

    .eyesight-header.scrolled {
        min-height: var(--header-height);
    }

    .eyesight-header:not(.scrolled) {
        min-height: var(--header-height-expanded);
    }

    .eyesight-header:not(.scrolled) .header-inner {
        height: var(--header-height-expanded);
    }
}

@media (max-width: 1023px) {
    .desktop-only {
        display: none !important;
    }

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

    .header-inner {
        height: var(--header-height);
        padding: 1rem;
    }

    .header-spacer {
        height: var(--header-height);
    }

    body {
        padding-top: var(--header-height);
    }
}

@media (max-width: 768px) {
    .project-image-col {
        text-align: center;
    }

    .project-image {
        max-width: 300px;
        margin: 0 auto 1rem;
    }

    .project-flyer {
        max-width: 300px;
        margin: 0 auto 1rem;
    }

    .w3-twothird, .w3-col.l4, .w3-col.m6, .w3-col.s12 {
        width: 100% !important;
        padding: 0 16px !important;
    }
}

/* ==========================================
   12. ACCESSIBILITÉ
   ========================================== */
:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   13. W3.CSS OVERRIDES
   ========================================== */
.w3-bar .w3-button {
    padding: 16px;
}

.w3-button {
    white-space: wrap;
}

.w3-text-pale-red {
    color: #ffdddd;
}

.w3-sienna {
    background-color: #a0522d;
    color: white;
}

.w3-text-sienna {
    color: #a0522d;
}

/* ==========================================
   14. ANCIENS STYLES (À VÉRIFIER)
   ========================================== */
.mitem {
    text-decoration: none;
    cursor: pointer;
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

.mitem:hover {
    border: 1px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(40deg, rgba(255, 196, 109, 1) 0%, rgba(255, 198, 251, 1) 25%, rgba(190, 219, 228, 1) 50%, rgba(208, 234, 187, 1) 75%, rgba(179, 179, 255, 1) 100%);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    transition: 0.1s;
    left: 0;
    background: -webkit-linear-gradient(40deg, rgba(255, 175, 59, 1) 0%, rgba(255, 120, 246, 1) 25%, rgba(94, 217, 255, 1) 50%, rgba(172, 255, 104, 1) 75%, rgba(89, 89, 255, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.argument {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.argument:hover {
    opacity: 1;
    transform: scale(1.1);
}

.argument h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.argument p {
    font-size: 14px;
    display: none;
    text-align: center;
    max-width: 300px;
}

.argument.active p {
    display: block;
}

.icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.icon > i {
    background: -webkit-linear-gradient(40deg, rgba(255, 196, 109, 1) 0%, rgba(255, 198, 251, 1) 25%, rgba(190, 219, 228, 1) 50%, rgba(208, 234, 187, 1) 75%, rgba(179, 179, 255, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cardPres {
    height: 535px;
}

.cardPresSMall {
    height: 465px;
}

.voirServiceCompl {
    cursor: pointer;
}

.sideNav > li {
    padding: 0;
}


/* ==========================================
   15. FOOTER
   ========================================== */
.site-footer {
    background: linear-gradient(135deg, rgba(255, 196, 109, 0.08) 0%, rgba(255, 198, 251, 0.08) 25%, rgba(190, 219, 228, 0.08) 50%, rgba(208, 234, 187, 0.08) 75%, rgba(179, 179, 255, 0.08) 100%);
    padding: 64px 16px 32px;
    margin-top: 128px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Bouton retour en haut */
.footer-top {
    margin-bottom: 48px;
}

.btn-back-to-top {
    position: relative;
    background: white;
    color: #555;
    border: none; /* Pas de bordure réelle */
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden; /* Pour le pseudo-élément */
}

/* Bordure dégradée en pseudo-élément */
.btn-back-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 1px; /* Épaisseur de la bordure */
    background: var(--gradient-border);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-back-to-top:hover {
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-back-to-top i {
    font-size: 0.9em;
}

/* Logo et slogan */
.footer-brand {
    margin-bottom: 32px;
}

.footer-logo {
    width: 120px;
    max-width: 30%;
    height: auto;
    margin-bottom: 16px;
}

.footer-slogan {
    font-size: 1.3em;
    color: #333;
    margin: 0;
    font-weight: 300;
}

/* Liens sociaux */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-social a {
    color: #666;
    font-size: 1.3em;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #333;
    transform: translateY(-2px);
}

/* Liens légaux */
.footer-legal {
    margin-bottom: 24px;
}

.footer-legal a {
    color: #999;
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #666;
}

/* Copyright */
.footer-copyright {
    color: #999;
    font-size: 0.85em;
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .footer-logo {
        width: 100px;
    }
    
    .footer-slogan {
        font-size: 1.1em;
    }
    
    .footer-social {
        gap: 20px;
    }
    
    .footer-social a {
        font-size: 1.2em;
    }
}

/* ==========================================
   16. PAGE RÉALISATIONS - MOSAÏQUE & MODAL
   ========================================== */

/* Grille mosaïque */
.projects-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

@media (min-width: 900px) {
    .projects-mosaic {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 601px) and (max-width: 899px) {
    .projects-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-mosaic {
        grid-template-columns: 1fr;
    }
}

/* Carte de projet */
.mosaic-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    /* aspect-ratio: 4/3; */
    /* aspect-ratio: 16/9;  */
    aspect-ratio: 16/8; 
}

.mosaic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.mosaic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    object-position: top center; /* Au lieu de center (défaut) */
}

.mosaic-card:hover img {
    transform: scale(1.05);
}

/* Overlay au hover */
.mosaic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mosaic-card:hover .mosaic-overlay {
    opacity: 1;
}

.mosaic-overlay h3 {
    color: white;
    font-size: 1.1em;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.mosaic-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

/* Badge catégorie */
/* .mosaic-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
} */
/* Badge catégorie - Style par défaut (projets récents) */
.mosaic-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(40deg, rgba(94, 217, 255, 0.9) 0%, rgba(89, 89, 255, 0.9) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Badge "Marquant" */
.mosaic-badge.star {
    background: linear-gradient(40deg, rgba(255,120,246,1) 0%, rgba(255,175,59,1) 100%);
    color: white;
}

/* Badge "Format en main" - Sobre et discret (flyers) */
.mosaic-badge.flyer {
    background: rgba(255, 255, 255, 0.95);
    color: #888;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

/* ==========================================
   MODAL DES PROJETS - VERSION AMÉLIORÉE
   ========================================== */

/* Overlay de fond */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(20, 20, 35, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
}

/* Contenu de la modal */
.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    margin: 40px auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bouton fermer */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    color: #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: linear-gradient(40deg, rgba(255,175,59,1) 0%, rgba(255,120,246,1) 100%);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* ==========================================
   HEADER DE LA MODAL
   ========================================== */
.modal-header {
    background: linear-gradient(135deg, rgba(255, 196, 109, 0.08) 0%, rgba(179, 179, 255, 0.08) 100%);
    padding: 48px 48px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-category {
    display: inline-block;
    background: linear-gradient(40deg, rgba(94, 217, 255, 0.9) 0%, rgba(89, 89, 255, 0.9) 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(89, 89, 255, 0.2);
}

.modal-header-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 8px;
}

.modal-header-text {
    flex: 1;
}

.modal-header-text h2 {
    font-size: 2em;
    margin: 0 0 16px 0;
    color: #222;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.modal-header-text p {
    font-style: italic;
    color: #555;
    margin: 0;
    line-height: 1.6;
    font-size: 1.1em;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, #ff9a56, #5b9dff) 1;
    padding-left: 16px;
}

.modal-header-image {
    flex-shrink: 0;
    max-width: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-header-image img {
    width: 100%;
    display: block;
}

/* ==========================================
   IMAGES PRINCIPALES
   ========================================== */
.modal-images {
    padding: 32px 48px;
    background: #fafafa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-images img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.modal-images img:hover {
    transform: scale(1.01);
}

/* ==========================================
   CORPS DE LA MODAL - SECTIONS
   ========================================== */
.modal-body {
    padding: 40px 48px;
}

.modal-section {
    margin-bottom: 32px;
    padding: 24px;
    border-radius: 12px;
    background: white;
    border-left: 4px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-section:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Bordures thématiques pour chaque section */
#modalContexte {
    border-image: linear-gradient(180deg, #ff6464, #ff9a9a) 1;
    background: linear-gradient(to right, rgba(255, 100, 100, 0.03), transparent 50%);
}

#modalBesoin {
    border-image: linear-gradient(180deg, #5ed9ff, #5959ff) 1;
    background: linear-gradient(to right, rgba(94, 217, 255, 0.03), transparent 50%);
}

#modalSolution {
    border-image: linear-gradient(180deg, #acff68, #68d9ff) 1;
    background: linear-gradient(to right, rgba(172, 255, 104, 0.03), transparent 50%);
}

#modalResultats {
    border-image: linear-gradient(180deg, #ffaf3b, #ff78f6) 1;
    background: linear-gradient(to right, rgba(255, 175, 59, 0.03), transparent 50%);
}

.modal-section h3 {
    font-size: 1.2em;
    color: #333;
    margin: 0 0 16px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, currentColor, transparent);
    border-radius: 2px;
    opacity: 0.3;
}

.modal-section p {
    color: #555;
    line-height: 1.8;
    margin: 0;
    font-size: 1em;
}

/* Liste dans la solution */
.modal-section ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.modal-section ul li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: #555;
    line-height: 1.7;
    font-size: 0.95em;
}

.modal-section ul li::before {
    content: '▸';
    position: absolute;
    left: 8px;
    top: 8px;
    color: #5b9dff;
    font-weight: bold;
    font-size: 1.1em;
}

/* ==========================================
   TÉMOIGNAGE
   ========================================== */
#modalTemoignage {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#modalTemoignage:hover {
    transform: none !important;
    box-shadow: none !important;
}

.modal-testimonial {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 196, 109, 0.1) 0%, rgba(179, 179, 255, 0.1) 100%);
    padding: 32px 32px 32px 64px;
    border-radius: 16px;
    border: 1px solid rgba(255, 175, 59, 0.2);
    margin: 16px 0;
}

.modal-testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6em;
    font-family: Georgia, serif;
    background: linear-gradient(180deg, #ffaf3b, #ff78f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.6;
}

.modal-testimonial p {
    margin: 0;
    font-style: italic;
    color: #444;
    line-height: 1.7;
    font-size: 1.05em;
}

/* ==========================================
   FOOTER DE LA MODAL
   ========================================== */
.modal-footer {
    padding: 28px 48px;
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.8) 0%, rgba(235, 235, 235, 0.8) 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.modal-footer .btn-action {
    margin: 0;
    padding: 12px 28px;
    font-size: 1em;
    box-shadow: 0 4px 12px rgba(255, 175, 59, 0.2);
    transition: all 0.3s ease;
}

.modal-footer .btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 175, 59, 0.3);
}

.modal-nav {
    display: flex;
    gap: 12px;
}

.modal-nav button {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-nav button:hover:not(:disabled) {
    background: linear-gradient(40deg, rgba(94, 217, 255, 0.1) 0%, rgba(89, 89, 255, 0.1) 100%);
    border-color: #5b9dff;
    color: #333;
    transform: translateX(2px);
}

.modal-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==========================================
   RESPONSIVE MODAL
   ========================================== */
@media (max-width: 768px) {
    .modal-content {
        margin: 16px auto;
        border-radius: 16px;
    }

    .modal-header,
    .modal-images,
    .modal-body,
    .modal-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .modal-header {
        padding-top: 40px;
    }

    .modal-header-text h2 {
        font-size: 1.5em;
    }

    .modal-header-text p {
        font-size: 1em;
    }

    .modal-header-content {
        flex-direction: column;
        gap: 20px;
    }

    .modal-header-image {
        max-width: 100%;
        order: -1;
    }

    .modal-section {
        padding: 20px;
    }

    .modal-testimonial {
        padding: 24px 24px 24px 48px;
    }

    .modal-testimonial::before {
        font-size: 4em;
        left: 12px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        text-align: center;
    }

    .modal-nav {
        width: 100%;
        justify-content: space-between;
    }

    .modal-nav button {
        flex: 1;
        justify-content: center;
    }
}


/* ==========================================
   17. LISTES STYLISÉES - PRESTATIONS
   ========================================== */

/* Liste principale sans puces browser */
.prestation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prestation-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Puce personnalisée : petit losange en dégradé */
.prestation-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #5b9dff 0%, #b55bff 100%);
    transform: rotate(45deg);
    border-radius: 2px;
}

/* Variante : coche pour les inclus */
.prestation-list.check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    color: #4caf50;
    font-weight: 700;
    font-size: 1.1em;
}

/* Variante : croix pour les exclus */
.prestation-list.cross li::before {
    content: '×';
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    color: #999;
    font-weight: 700;
    font-size: 1.2em;
}

/* Variante : icône info */
.prestation-list.info li::before {
    content: '📋';
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    font-size: 0.9em;
}

/* Variante : timing */
.prestation-list.time li::before {
    content: '⏱️';
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    font-size: 0.9em;
}

/* Liste avec icônes/emojis - pas de losanges */
.list-icons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-icons li {
    position: relative;
    padding-left: 0;
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Boutons de filtres */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: linear-gradient(40deg, rgba(255, 175, 59, 0.15) 0%, rgba(255, 120, 246, 0.15) 100%) !important;
    border-color: rgba(255, 175, 59, 0.5) !important;
    color: #333 !important;
    box-shadow: 0 2px 8px rgba(255, 175, 59, 0.15);
}