/* Section Impact - Projet Individual */
/* Fichier: user/themes/regard-sur/css/projet-individual-04-impact.css */

/* ===== SECTION IMPACT ===== */

/* Introduction narrative */
.impact-intro {
    margin-bottom: 4rem;
    text-align: center;
}

.impact-intro-text {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.6;
    color: #EE7900;
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
}

/* Grande mÃ©trique principale - Effet "waouh" */
.impact-metrique-principale {
    margin-bottom: 6rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.4) 0%, rgba(28, 28, 28, 0.6) 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    border: 1px solid rgba(238, 121, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.impact-metrique-principale::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #EE7900 0%, #ff8f1a 50%, #EE7900 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.metrique-titre {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f9f9f9;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

.metrique-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Conteneur pour contrÃ´ler la hauteur maximale des barres */
.barres-wrapper {
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 2rem 0;
    position: relative;
}

.grandes-barres {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3rem;
    height: 100%;
    width: 100%;
}

.grande-barre-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 80px;
    height: 100%;
    justify-content: flex-end;
    transition: all 0.4s ease;
}

.grande-barre-item.highlight {
    transform: scale(1.05);
}

/* Barre avec hauteur dynamique - IMPORTANT: ne pas dÃ©finir de height ici */
.grande-barre {
    width: 60px;
    min-height: 20px;
    border-radius: 8px 8px 0 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* La hauteur sera dÃ©finie inline via le Twig */
}

.grande-barre.bar-initial {
    background: linear-gradient(180deg, #ff6b6b 0%, #e55353 100%);
}

.grande-barre.bar-objectif {
    background: linear-gradient(180deg, #ffd93d 0%, #f4c430 100%);
}

.grande-barre.bar-resultat {
    background: linear-gradient(180deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 30px rgba(76, 175, 80, 0.4);
    position: relative;
}

.grande-barre.bar-resultat::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: 0;
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.3) 0%, transparent 100%);
    border-radius: 10px 10px 0 0;
    z-index: -1;
}

.barre-valeur {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f9f9f9;
    margin-top: 0.5rem;
}

.barre-valeur.resultat {
    color: #4CAF50;
    font-size: 2.2rem;
}

.barre-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(249, 249, 249, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.metrique-description {
    font-size: 1.2rem;
    color: rgba(249, 249, 249, 0.8);
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tableau comparatif dÃ©taillÃ© avec barres verticales */
.impact-tableau-section {
    margin-bottom: 5rem;
    background: rgba(42, 42, 42, 0.3);
    border-radius: 16px;
    padding: 3rem 2rem;
    border: 1px solid rgba(238, 121, 0, 0.1);
}

.tableau-titre {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f9f9f9;
    margin-bottom: 2.5rem;
    text-align: center;
}

.tableau-comparatif {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tableau-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(238, 121, 0, 0.1);
    border-radius: 12px;
    font-weight: 700;
    color: #EE7900;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tableau-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    gap: 1rem;
    padding: 1.5rem 1.5rem;
    background: rgba(249, 249, 249, 0.02);
    border-radius: 12px;
    align-items: center;
    transition: all 0.3s ease;
}

.tableau-row:hover {
    background: rgba(238, 121, 0, 0.05);
    transform: translateY(-2px);
}

.tableau-cell {
    font-size: 1rem;
    color: #f9f9f9;
    text-align: center;
}

.tableau-cell.metric-label {
    font-weight: 600;
    text-align: left;
    color: #EE7900;
}

.tableau-cell.result {
    font-weight: 700;
    color: #4CAF50;
    font-size: 1.1rem;
}

/* Barres verticales de progression */
.progress-bars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bars-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    width: 100%;
    max-width: 120px;
}

.bar {
    width: 18px;
    min-height: 8px;
    border-radius: 3px 3px 0 0;
    transition: all 0.4s ease;
    position: relative;
    cursor: help;
}

.bar-initial {
    background: linear-gradient(180deg, #ff6b6b 0%, #e55353 100%);
}

.bar-objectif {
    background: linear-gradient(180deg, #ffd93d 0%, #f4c430 100%);
}

.bar-resultat {
    background: linear-gradient(180deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.bars-legend {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.legend-initial { color: #ff6b6b; }
.legend-objectif { color: #ffd93d; }
.legend-resultat { color: #4CAF50; }

/* Trois cartes mÃ©triques */
.impact-cartes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.carte-metrique {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.8) 0%, rgba(28, 28, 28, 0.9) 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(238, 121, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.carte-metrique:hover {
    transform: translateY(-8px);
    border-color: rgba(238, 121, 0, 0.4);
    box-shadow: 0 20px 40px rgba(238, 121, 0, 0.1);
}

.carte-metrique::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EE7900 0%, #ff8f1a 100%);
    transition: all 0.4s ease;
}

.carte-metrique:hover::before {
    height: 6px;
}

.carte-icon {
    font-size: 3rem;
    color: #EE7900;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.carte-donnee {
    font-size: 2.8rem;
    font-weight: 900;
    color: #f9f9f9;
    margin-bottom: 1rem;
    line-height: 1;
}

.carte-texte {
    font-size: 1.1rem;
    color: rgba(249, 249, 249, 0.8);
    font-weight: 500;
}

/* Axe business */
.impact-business {
    margin-bottom: 4rem;
}

.business-content {
    background: rgba(42, 42, 42, 0.4);
    border-radius: 16px;
    padding: 3rem;
    border-left: 6px solid #EE7900;
}

.business-content h3 {
    color: #EE7900;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    margin-top: 2.5rem;
}

.business-content h3:first-child {
    margin-top: 0;
}

.business-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(249, 249, 249, 0.9);
    margin-bottom: 1.5rem;
}

/* TÃ©moignage mis en valeur */
.impact-temoignage {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 2px solid rgba(238, 121, 0, 0.2);
}

.temoignage-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(238, 121, 0, 0.05) 0%, rgba(42, 42, 42, 0.3) 100%);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(238, 121, 0, 0.15);
    position: relative;
}

.temoignage-quote {
    position: relative;
    margin-bottom: 2.5rem;
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(238, 121, 0, 0.3);
    margin-bottom: 1.5rem;
}

.temoignage-text {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    color: #f9f9f9;
    font-weight: 500;
    margin: 0;
}

.temoignage-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.temoignage-auteur {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.auteur-info {
    text-align: left;
}

.auteur-nom {
    font-size: 1.1rem;
    font-weight: 700;
    color: #EE7900;
    margin-bottom: 0.5rem;
}

.auteur-note {
    display: flex;
    gap: 3px;
}

.auteur-note .fas.fa-star {
    color: #ffd93d;
    font-size: 1rem;
}

.auteur-note .fas.fa-star.star-empty {
    color: rgba(255, 217, 61, 0.2);
}

/* Fallback pour contenu markdown */
.impact-fallback {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(249, 249, 249, 0.9);
}

.impact-fallback h3 {
    color: #EE7900;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* ===== RESPONSIVE - SECTION IMPACT ===== */

/* Responsive - Tablette */
@media (max-width: 1024px) {
    .grandes-barres {
        height: 250px;
        gap: 2rem;
    }
    
    .grande-barre {
        width: 50px;
    }
    
    .barre-valeur {
        font-size: 1.5rem;
    }
    
    .barre-valeur.resultat {
        font-size: 1.8rem;
    }
    
    .metrique-titre {
        font-size: 1.8rem;
    }

    .impact-cartes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tableau-header,
    .tableau-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .tableau-cell {
        text-align: left;
        padding: 0.5rem 0;
    }
    
    .progress-bars {
        margin-top: 1rem;
        align-items: flex-start;
    }
    
    .bars-container {
        height: 60px;
        max-width: 100px;
    }
    
    .business-content {
        padding: 2rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .impact-metrique-principale {
        padding: 3rem 2rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .grandes-barres {
        height: 200px;
        gap: 1.5rem;
    }
    
    .grande-barre {
        width: 40px;
    }
    
    .barre-valeur {
        font-size: 1.3rem;
    }
    
    .barre-valeur.resultat {
        font-size: 1.6rem;
    }
    
    .metrique-titre {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .metrique-description {
        font-size: 1rem;
    }

    .impact-intro-text {
        font-size: 1.2rem;
    }
    
    .impact-tableau-section {
        padding: 2rem 1.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .tableau-titre {
        font-size: 1.5rem;
    }
    
    .carte-metrique {
        padding: 2rem 1.5rem;
    }
    
    .carte-donnee {
        font-size: 2.2rem;
    }
    
    .temoignage-container {
        padding: 2rem 1.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .temoignage-text {
        font-size: 1.1rem;
    }
    
    .business-content {
        padding: 1.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        border-left-width: 4px;
    }
}
