/* Page Test - Design moderne et punchy */

.test-page {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Hero Section */
.test-hero {
    min-height: 90vh;
    background: linear-gradient(135deg, #F5F1E8 0%, #E5DED1 100%);
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.test-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 49, 49, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(31, 180, 217, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.test-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.test-hero-left {
    position: relative;
}

.test-mathieu-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.test-mathieu-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.test-mathieu-placeholder {
    width: 100%;
    height: 500px;
    background: rgba(255, 49, 49, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.5rem;
    color: #666;
}

/* Formulaire */
.test-hero-right {
    position: relative;
}

.test-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.test-form-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF3131;
    margin-bottom: 0.5rem;
    font-family: 'Fredoka', sans-serif;
}

.test-form-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 400;
}

.test-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.test-form-group {
    display: flex;
    gap: 1rem;
}

.test-form-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: 2px solid #E0D9C8;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Avenir Next', 'Avenir', sans-serif;
    background: #FFFFFF;
    transition: all 0.3s ease;
    outline: none;
}

.test-form-input:focus {
    border-color: #FF3131;
    box-shadow: 0 0 0 4px rgba(255, 49, 49, 0.1);
    transform: translateY(-2px);
}

.test-form-btn {
    padding: 1.3rem 2.5rem;
    background: linear-gradient(135deg, #FF3131 0%, #E02A2A 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(255, 49, 49, 0.3);
}

.test-form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 49, 49, 0.4);
    background: linear-gradient(135deg, #E02A2A 0%, #FF3131 100%);
}

/* Section Carte Interactive */
.test-map-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #F5F1E8 0%, #FFFFFF 100%);
    position: relative;
}

.test-map-container {
    max-width: 1100px;
    margin: 0 auto;
}

.test-map-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FF3131 0%, #7F4FD9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Fredoka', sans-serif;
}

.test-map-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.test-map-instructions {
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    color: #1976d2;
    font-size: 16px;
    font-weight: 500;
    border: 2px solid #90caf9;
}

.test-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

.test-map-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Zones interactives invisibles par défaut */
.test-quartier-overlay {
    cursor: pointer;
    fill: transparent !important;
    stroke: transparent !important;
    stroke-width: 0 !important;
    transition: all 0.3s ease;
    pointer-events: all;
}

.test-quartier-overlay:hover {
    fill: rgba(255, 214, 102, 0.4) !important;
    stroke: #FF9800 !important;
    stroke-width: 4 !important;
    filter: drop-shadow(0 0 20px rgba(255, 152, 0, 0.6));
}

.test-quartier-overlay:active {
    fill: rgba(255, 152, 0, 0.6) !important;
}

.test-map-scale {
    opacity: 0.7;
}

.test-quartier {
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-quartier:hover {
    opacity: 1 !important;
    filter: brightness(1.2);
    stroke-width: 3;
    transform: scale(1.02);
    transform-origin: center;
}

.test-quartier-label {
    pointer-events: none;
    font-family: 'Fredoka', sans-serif;
    font-size: 14px;
}

/* Tooltip moderne */
.test-map-tooltip {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 380px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 3px solid #FFD666;
}

.test-map-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.test-tooltip-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #FFD666;
    border-bottom: 2px solid #FFD666;
    padding-bottom: 10px;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
}

.test-tooltip-section {
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
}

.test-tooltip-icon {
    display: inline-block;
    margin-right: 12px;
    font-size: 18px;
    min-width: 25px;
}

.test-tooltip-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #FFFFFF;
}

.test-tooltip-content strong {
    color: #FFD666;
}

/* Légende améliorée */
.test-map-legend {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f9f9f9 0%, #e8e8e8 100%);
    border-radius: 15px;
    border: 2px solid #ddd;
}

.test-map-legend h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
}

.test-legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.test-legend-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.test-legend-item:hover {
    transform: translateX(5px);
    border-color: #FF3131;
    box-shadow: 0 4px 12px rgba(255, 49, 49, 0.2);
}

.test-legend-color {
    width: 45px;
    height: 30px;
    margin-right: 15px;
    border: 2px solid #333;
    border-radius: 6px;
    flex-shrink: 0;
}

.test-legend-text {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.test-legend-text strong {
    color: #333;
    display: block;
    margin-bottom: 2px;
    font-family: 'Fredoka', sans-serif;
}

/* Section Cards */
.test-cards-section {
    padding: 6rem 2rem;
    background: #FFFFFF;
    position: relative;
}

.test-cards-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 2rem;
}

/* Cards avec tailles différentes */
.test-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 2.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

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

.test-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 49, 49, 0.3);
}

.test-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 0;
}

.test-card-content {
    position: relative;
    z-index: 1;
}

/* Tailles des cards */
.test-card[data-size="large"] {
    grid-column: span 6;
    grid-row: span 2;
    background: linear-gradient(135deg, #FF3131 0%, #E02A2A 100%);
    color: #FFFFFF;
}

.test-card[data-size="large"] .test-card-bg {
    background: linear-gradient(135deg, #E02A2A 0%, #FF3131 100%);
}

.test-card[data-size="medium"] {
    grid-column: span 6;
    grid-row: span 1;
}

.test-card[data-size="medium"][data-card="procuration"] {
    background: linear-gradient(135deg, #1FB4D9 0%, #1A9FC4 100%);
    color: #FFFFFF;
}

.test-card[data-size="medium"][data-card="procuration"] .test-card-bg {
    background: linear-gradient(135deg, #1A9FC4 0%, #1FB4D9 100%);
}

.test-card[data-size="medium"][data-card="inscription"] {
    background: linear-gradient(135deg, #7FD856 0%, #6BC845 100%);
    color: #FFFFFF;
}

.test-card[data-size="medium"][data-card="inscription"] .test-card-bg {
    background: linear-gradient(135deg, #6BC845 0%, #7FD856 100%);
}

.test-card[data-size="small"] {
    grid-column: span 3;
    grid-row: span 1;
}

.test-card[data-size="small"][data-card="actualites"] {
    background: linear-gradient(135deg, #FFC2E8 0%, #FFB0E0 100%);
    color: #333;
}

.test-card[data-size="small"][data-card="actualites"] .test-card-bg {
    background: linear-gradient(135deg, #FFB0E0 0%, #FFC2E8 100%);
}

.test-card[data-size="small"][data-card="don"] {
    background: linear-gradient(135deg, #7F4FD9 0%, #6B3FC0 100%);
    color: #FFFFFF;
}

.test-card[data-size="small"][data-card="don"] .test-card-bg {
    background: linear-gradient(135deg, #6B3FC0 0%, #7F4FD9 100%);
}

/* Contenu des cards */
.test-card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.test-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Fredoka', sans-serif;
    line-height: 1.2;
}

.test-card[data-size="small"] .test-card-title {
    font-size: 1.4rem;
}

.test-card-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.test-card[data-size="small"] .test-card-description {
    font-size: 0.95rem;
}

.test-card-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.test-card[data-size="large"] .test-card-link,
.test-card[data-size="medium"][data-card="procuration"] .test-card-link,
.test-card[data-size="medium"][data-card="inscription"] .test-card-link,
.test-card[data-size="small"][data-card="don"] .test-card-link {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.test-card-link:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .test-hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .test-cards-container {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .test-card[data-size="large"] {
        grid-column: span 6;
        grid-row: span 1;
    }
    
    .test-card[data-size="medium"] {
        grid-column: span 3;
    }
    
    .test-card[data-size="small"] {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .test-map-section {
        padding: 3rem 1rem;
    }
    
    .test-map-container {
        padding: 20px;
    }
    
    .test-map-title {
        font-size: 1.8rem;
    }
    
    .test-map-subtitle {
        font-size: 1rem;
    }
    
    .test-map-instructions {
        font-size: 14px;
        padding: 12px;
    }
    
    .test-map-wrapper {
        padding: 1rem;
    }
    
    .test-map-tooltip {
        max-width: 90%;
        font-size: 14px;
        padding: 20px;
    }
    
    .test-tooltip-title {
        font-size: 18px;
    }
    
    .test-tooltip-content {
        font-size: 13px;
    }
    
    .test-legend-grid {
        grid-template-columns: 1fr;
    }
    
    .test-map-legend {
        padding: 20px;
    }
    
    .test-hero {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .test-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .test-form-title {
        font-size: 2rem;
    }
    
    .test-form-group {
        flex-direction: column;
    }
    
    .test-cards-section {
        padding: 3rem 1rem;
    }
    
    .test-cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .test-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        padding: 2rem 1.5rem;
    }
    
    .test-card-icon {
        font-size: 3rem;
    }
    
    .test-card-title {
        font-size: 1.5rem;
    }
}

