/* mesures-styles.css - Styles pour la page des 15 mesures phares */

/* Hero Section pour les mesures */
.mesures-hero {
    min-height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 120px 20px 60px;
}

.mesures-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mesures-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.mesures-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.mesures-hero .hero-logo-img {
    width: 600px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 20px rgba(76, 175, 80, 0.3));
}

.mesures-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.mesures-hero .hero-subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 15px;
}

.mesures-hero .hero-description {
    font-size: 1.1rem;
    color: #d0d0d0;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.mesures-hero .hero-countdown {
    max-width: 600px;
    margin: 0 auto;
}

.mesures-hero .hero-countdown-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.mesures-hero .hero-countdown-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 25px;
}

/* Section des mesures */
.mesures-section {
    padding: 80px 20px;
    background: #1a1a1a;
}

.mesures-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.mesures-section h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.mesures-section .section-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 30px;
}

/* Barre de progression */
.mesures-progress {
    max-width: 600px;
    margin: 30px auto 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    border-radius: 6px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.progress-text {
    text-align: center;
    font-size: 1.1rem;
    color: #4CAF50;
    font-weight: 600;
}

/* Grille des mesures */
.mesures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Carte de mesure */
.mesure-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.mesure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mesure-card.revealed {
    border-color: rgba(76, 175, 80, 0.3);
}

.mesure-card.revealed::before {
    opacity: 1;
}

.mesure-card.revealed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
}

.mesure-card.hidden {
    background: linear-gradient(135deg, #2a2a2a 0%, #1c1c1c 100%);
    border-color: rgba(100, 100, 100, 0.2);
}

/* Cartes cliquables */
.mesure-card.clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mesure-card.clickable .mesure-icon {
    position: relative;
}

/* Overlay au hover */
.mesure-card.clickable .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(76, 175, 80, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    z-index: 10;
}

.mesure-card.clickable:hover .card-overlay {
    opacity: 1;
}

.mesure-card.clickable .card-overlay i {
    font-size: 2.5rem;
    color: #fff;
}

.mesure-card.clickable .card-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Icône de la mesure */
.mesure-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.mesure-icon i {
    font-size: 2rem;
    color: #fff;
}

.mesure-icon.locked {
    background: linear-gradient(135deg, #555, #444);
    box-shadow: 0 4px 15px rgba(100, 100, 100, 0.2);
}

/* Badge catégorie */
.mesure-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Contenu de la mesure */
.mesure-content {
    flex: 1;
}

.mesure-titre {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.mesure-description {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 0;
}

.mesure-locked-text {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
}

/* Numéro de la mesure */
.mesure-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid rgba(220, 53, 69, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #DC3545;
}

.mesure-card.hidden .mesure-number {
    background: rgba(100, 100, 100, 0.2);
    border-color: rgba(100, 100, 100, 0.3);
    color: #888;
}

/* Compte à rebours des mesures */
.mesure-countdown {
    margin-top: 20px;
}

.mesure-countdown .countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mesure-countdown .countdown-item {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
}

.mesure-countdown .countdown-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 3px;
}

.mesure-countdown .countdown-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    padding: 80px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-buttons .btn-primary {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #fff;
    border: 2px solid transparent;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

/* Message d'erreur */
.error-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #ff5252;
}

/* Responsive */
@media (max-width: 768px) {
    .mesures-hero {
        min-height: 60vh;
        padding: 100px 20px 40px;
    }
    
    .mesures-hero .hero-title {
        font-size: 2.2rem;
    }
    
    .mesures-hero .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .mesures-hero .hero-description {
        font-size: 1rem;
    }
    
    .mesures-hero .hero-logo-img {
        width: 90%;
        max-width: 400px;
        padding: 10px;
    }
    
    .mesures-section {
        padding: 60px 20px;
    }
    
    .mesures-section h2 {
        font-size: 2rem;
    }
    
    .mesures-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mesures-hero .hero-title {
        font-size: 1.8rem;
    }
    
    .mesure-card {
        padding: 25px;
        min-height: 260px;
    }
    
    .mesure-icon {
        width: 60px;
        height: 60px;
    }
    
    .mesure-icon i {
        font-size: 1.6rem;
    }
    
    .mesure-titre {
        font-size: 1.3rem;
    }
    
    .mesure-countdown .countdown-number {
        font-size: 1.1rem;
    }
}

/* Animation d'apparition pour les cartes révélées */
@keyframes revealCard {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mesure-card.revealed {
    animation: revealCard 0.5s ease-out;
}
