/* ============================================
   SUCCESSION & TRANSMISSION - OPTIMAVI
   CSS Externe
   ============================================ */

/* Base responsive */
.visual-break {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.visual-break::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(73, 101, 128, 0.7), rgba(186, 221, 255, 0.5));
}

/* Section styling */
.emotion-box {
    background: linear-gradient(135deg, #fff9e6, #ffedd5);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #FFDBBB;
    margin: 2rem 0;
}

.emotion-box h3 {
    color: #496580;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emotion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.emotion-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.emotion-card:hover {
    transform: translateY(-5px);
}

.emotion-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.emotion-card h4 {
    color: #496580;
    margin-bottom: 0.5rem;
}

/* Problèmes section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.problem-card {
    background: linear-gradient(135deg, #ffe5e5, #fff0f0);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #ff6b6b;
}

.problem-card h3 {
    color: #c92a2a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.problem-impact {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 600;
    color: #c92a2a;
}

/* Timeline principe */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #496580, #BADDFF);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
}

.timeline-item:nth-child(even) .timeline-year {
    grid-column: 1;
    text-align: right;
}

.timeline-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.timeline-year {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #496580;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #FFDBBB;
    border: 4px solid #496580;
    border-radius: 50%;
    z-index: 2;
}

/* Solutions grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.solution-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: #FFDBBB;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.solution-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.solution-card h3 {
    color: #496580;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.solution-tag {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #34b752);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.solution-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.solution-card.active .solution-details {
    max-height: 1000px;
}

.solution-avantages, .solution-inconvenients {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.solution-avantages {
    background: #e8f5e9;
    border-left: 4px solid #28a745;
}

.solution-inconvenients {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.solution-avantages h4, .solution-inconvenients h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.solution-avantages ul, .solution-inconvenients ul {
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

/* Assurance Vie section */
.av-highlight {
    background: linear-gradient(135deg, #e3f2ff, #f0f8ff);
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 2px solid #BADDFF;
}

.av-plafond {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.av-plafond-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.av-montant {
    font-size: 3rem;
    font-weight: 900;
    color: #28a745;
    margin: 1rem 0;
}

.av-clause {
    background: #fff9e6;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #ffc107;
    margin-top: 2rem;
}

/* Groupements Forestiers */
.gf-section {
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    padding: 3rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.gf-avantage-principal {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
    text-align: center;
}

.gf-reduction {
    font-size: 4rem;
    font-weight: 900;
    color: #28a745;
    margin: 1rem 0;
}

.gf-comparaison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.gf-avantages, .gf-inconvenients {
    padding: 2rem;
    border-radius: 12px;
}

.gf-avantages {
    background: #e8f5e9;
    border: 2px solid #28a745;
}

.gf-inconvenients {
    background: #fff3e0;
    border: 2px solid #ff9800;
}

/* Simulateur succession */
.simulator-succession {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sim-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.sim-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #496580;
}

.sim-input-group input, .sim-input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.sim-input-group input:focus, .sim-input-group select:focus {
    outline: none;
    border-color: #496580;
}

.sim-result {
    background: linear-gradient(135deg, #496580, #5a7a95);
    color: #fff;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.sim-result-montant {
    font-size: 4rem;
    font-weight: 900;
    margin: 1rem 0;
}

.sim-result-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.sim-detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

/* Barème succession */
.bareme-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bareme-table th, .bareme-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.bareme-table th {
    background: linear-gradient(135deg, #496580, #5a7a95);
    color: #fff;
    font-weight: 600;
}

.bareme-table tr:hover {
    background: #f8f9fa;
}

/* Cas pratiques */
.cas-pratique {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin: 3rem 0;
}

.cas-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cas-card.sans-anticipation {
    border-left: 5px solid #ff6b6b;
}

.cas-card.avec-anticipation {
    border-left: 5px solid #28a745;
}

.cas-scenario {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.cas-resultat {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.cas-card.sans-anticipation .cas-resultat {
    background: #ffe5e5;
    color: #c92a2a;
}

.cas-card.avec-anticipation .cas-resultat {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Zen pause */
.zen-pause {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.zen-circles {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2rem auto;
}

.zen-circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: breathe 4s ease-in-out infinite;
}

.zen-circle-1 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.zen-circle-2 {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1.3s;
}

.zen-circle-3 {
    width: 260px;
    height: 260px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2.6s;
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Assurance Vie détaillée */
.av-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.av-benefit-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Groupements Forestiers process */
.gf-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.gf-step {
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    border: 2px solid #28a745;
}

.gf-step-number {
    width: 40px;
    height: 40px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 800;
    font-size: 1.2rem;
}

.gf-step h4 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.gf-step p {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gf-arrow {
    font-size: 2rem;
    color: #28a745;
    font-weight: 700;
}

/* Simulateur */
.simulator-container {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.simulator-inputs {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #496580;
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #496580;
    box-shadow: 0 0 0 3px rgba(73, 101, 128, 0.1);
}

.btn-simulate {
    background: linear-gradient(135deg, #496580, #5a7a95);
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem auto 0;
    box-shadow: 0 8px 25px rgba(73, 101, 128, 0.25);
}

.btn-simulate:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(73, 101, 128, 0.35);
}

.simulator-results {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 2px solid #e0e0e0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.05rem;
}

.result-row.highlight {
    background: #e3f2ff;
    font-weight: 600;
}

.result-row.danger {
    background: #fff3e0;
    font-weight: 600;
    color: #c62828;
}

.result-row.danger-total {
    background: linear-gradient(135deg, #ffe5e5, #fff0f0);
    font-weight: 800;
    color: #c62828;
    font-size: 1.3rem;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    margin-top: 1rem;
}

.result-label {
    color: #495057;
}

.result-value {
    font-weight: 700;
    color: #496580;
}

.result-row.danger .result-value,
.result-row.danger-total .result-value {
    color: #c62828;
}

/* Cas pratiques */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin: 3rem 0;
}

.case-study {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.case-bad {
    border-left: 8px solid #ff6b6b;
}

.case-good {
    border-left: 8px solid #28a745;
}

.case-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.case-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.case-header h3 {
    color: #496580;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.case-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.case-badge-bad {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
}

.case-badge-good {
    background: linear-gradient(135deg, #28a745, #34b752);
    color: #fff;
}

.case-situation, .case-strategy, .case-result, .case-impact {
    margin-bottom: 2rem;
}

.case-situation h4, .case-strategy h4, .case-result h4, .case-impact h4 {
    color: #496580;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-situation ul, .case-strategy ul, .case-impact ul {
    padding-left: 1.5rem;
    line-height: 2;
}

.case-calc {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.calc-row.highlight {
    background: #e3f2ff;
    padding: 0.75rem 1rem;
    margin: 0.5rem -1rem;
    border-radius: 6px;
    border: none;
}

.calc-row.danger {
    background: #fff3e0;
    padding: 0.75rem 1rem;
    margin: 0.5rem -1rem;
    border-radius: 6px;
    font-weight: 700;
    border: none;
}

.calc-row.danger-total {
    background: linear-gradient(135deg, #ffe5e5, #fff0f0);
    padding: 1rem;
    margin: 1rem -1rem 0;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #c62828;
    border: 2px solid #ff6b6b;
}

.calc-row.success {
    background: #e8f5e9;
    padding: 0.75rem 1rem;
    margin: 0.5rem -1rem;
    border-radius: 6px;
    font-weight: 700;
    color: #2e7d32;
    border: none;
}

.calc-row.success-total {
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    padding: 1rem;
    margin: 1rem -1rem 0;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #2e7d32;
    border: 2px solid #28a745;
}

/* Zen pause */
.zen-content {
    position: relative;
    z-index: 10;
}

/* Transparence & Rémunération */
.remuneration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.remuneration-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.remuneration-card:hover {
    transform: translateY(-5px);
    border-color: #496580;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.remuneration-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.remuneration-card h3 {
    color: #496580;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.remuneration-price {
    background: linear-gradient(135deg, #496580, #5a7a95);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
    margin: 1rem 0;
}

/* CTA Final */
.cta-section {
    background: linear-gradient(135deg, #496580, #5a7a95);
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
}

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

.btn-cta-primary {
    background: linear-gradient(135deg, #FFDBBB, #ffd4a3);
    color: #496580;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 219, 187, 0.4);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 219, 187, 0.6);
}

.btn-cta-secondary {
    background: transparent;
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.btn-cta-secondary:hover {
    background: #fff;
    color: #496580;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .emotion-grid, .problem-grid, .solutions-grid, .av-plafond, .gf-comparaison, .cas-pratique {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sim-inputs, .sim-result-details {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(even) .timeline-year {
        grid-column: 1;
        text-align: left;
    }
    
    .av-benefits-grid, .case-studies-grid, .remuneration-grid {
        grid-template-columns: 1fr;
    }
    
    .gf-process {
        flex-direction: column;
    }
    
    .gf-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .emotion-grid, .problem-grid, .solutions-grid, .av-plafond, .gf-comparaison, .cas-pratique {
        grid-template-columns: 1fr;
    }
    
    .visual-break {
        height: 250px;
        background-attachment: scroll;
    }
    
    .av-benefits-grid, .case-studies-grid, .remuneration-grid {
        grid-template-columns: 1fr;
    }
    
    .simulator-container {
        padding: 1.5rem;
    }
    
    .zen-circles {
        width: 200px;
        height: 200px;
    }
}
