/* ============================================
   OPTIMISER LES IMPÔTS - OPTIMAVI
   CSS Externe avec Hero V1 Oval
   ============================================ */

/* ============================================
   ANCHOR NAVIGATION
   ============================================ */

.anchor-nav {
    background: #fff;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.anchor-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.anchor-link {
    color: #496580;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.anchor-link:hover {
    color: #FFDBBB;
    border-bottom-color: #FFDBBB;
    background: rgba(255, 219, 187, 0.1);
}

/* ============================================
   MINI PAUSE DISCRÈTE
   ============================================ */

.mini-pause {
    background: linear-gradient(135deg, #e3f2ff, #f0f8ff);
    padding: 1.5rem 0;
    margin: 3rem 0;
    border-top: 2px solid #BADDFF;
    border-bottom: 2px solid #BADDFF;
}

.mini-pause-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.mini-pause-icon {
    font-size: 1.5rem;
    animation: blink 3s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.mini-pause-content p {
    font-size: 1rem;
    color: #496580;
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

/* ============================================
   HERO V1 - SECTION PRINCIPALE
   ============================================ */

.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-gradient {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(186, 221, 255, 0.3) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: blobFloat 15s ease-in-out infinite;
}

.hero-blob-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    background: linear-gradient(135deg, #BADDFF, #FFDBBB);
}

.hero-blob-2 {
    width: 350px;
    height: 350px;
    top: 60%;
    right: 10%;
    background: linear-gradient(135deg, #FFDBBB, #ffd4a3);
    animation-delay: 2s;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: 40%;
    background: linear-gradient(135deg, #496580, #BADDFF);
    animation-delay: 4s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Hero Content (Left Side) */
.hero-content {
    padding-right: 2rem;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFDBBB, #ffd4a3);
    color: #496580;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 219, 187, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #496580;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    background: linear-gradient(135deg, #FFDBBB, #ffd4a3);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2.5rem 0;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 1.5rem;
}

.hero-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #496580, #BADDFF);
    border-radius: 2px;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #496580;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #496580, #5a7a95);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(73, 101, 128, 0.3);
}

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

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

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

/* Hero Visual (Right Side) */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-deco {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(73, 101, 128, 0.2);
}

.hero-deco-1 {
    width: 500px;
    height: 550px;
    border-radius: 50% / 60%;
    animation: floatImage 6s ease-in-out infinite;
}

.hero-deco-2 {
    width: 480px;
    height: 530px;
    border-radius: 50% / 60%;
    border-color: rgba(255, 219, 187, 0.3);
    animation: floatImage 6s ease-in-out infinite reverse;
    animation-delay: 1s;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-image-frame {
    position: relative;
    z-index: 5;
}

.hero-image-wrapper {
    width: 350px;
    height: 450px;
    border-radius: 50% / 60%;
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        inset 0 0 0 8px rgba(255, 255, 255, 0.9);
    animation: floatImage 6s ease-in-out infinite;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Badges */
.hero-floating-badge {
    position: absolute;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.hero-floating-badge-1 {
    top: 10%;
    left: -5%;
    animation: floatBadge 4s ease-in-out infinite;
}

.hero-floating-badge-2 {
    top: 50%;
    right: -10%;
    animation: floatBadge 4s ease-in-out infinite;
    animation-delay: 1.3s;
}

.hero-floating-badge-3 {
    bottom: 10%;
    left: 0%;
    animation: floatBadge 4s ease-in-out infinite;
    animation-delay: 2.6s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.badge-icon {
    font-size: 2rem;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #496580;
}

/* ============================================
   VISUAL BREAKS
   ============================================ */

.visual-break {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* ============================================
   SECTION ÉMOTIONS
   ============================================ */

.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;
}

/* ============================================
   SECTION ERREURS
   ============================================ */

.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;
}

/* ============================================
   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;
}

/* ============================================
   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, .input-group select {
    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, .input-group select: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-label {
    color: #495057;
}

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

/* ============================================
   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.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-pause {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.zen-content {
    position: relative;
    z-index: 10;
}

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

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

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

/* ============================================
   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) {
    .anchor-nav {
        top: 70px;
    }

    .anchor-container {
        padding: 0 1rem;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .anchor-link {
        font-size: 0.85rem;
        padding: 0.8rem 0.6rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        height: 500px;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 400px;
    }

    .hero-floating-badge-2 {
        right: -5%;
    }

    .emotion-grid, .problem-grid, .solutions-grid, .case-studies-grid, .remuneration-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .anchor-nav {
        top: 60px;
    }

    .anchor-container {
        padding: 0 0.5rem;
    }

    .anchor-link {
        font-size: 0.8rem;
        padding: 0.7rem 0.5rem;
    }

    .mini-pause {
        padding: 1rem 0;
        margin: 2rem 0;
    }

    .mini-pause-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .mini-pause-content p {
        font-size: 0.9rem;
    }

    .hero {
        padding: 3rem 0 4rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .hero-visual {
        height: 400px;
    }

    .hero-image-wrapper {
        width: 250px;
        height: 350px;
    }

    .hero-deco-1 {
        width: 350px;
        height: 400px;
    }

    .hero-deco-2 {
        width: 330px;
        height: 380px;
    }

    .hero-floating-badge {
        padding: 0.75rem 1rem;
    }

    .badge-icon {
        font-size: 1.5rem;
    }

    .badge-value {
        font-size: 0.95rem;
    }

    .emotion-grid, .problem-grid, .solutions-grid, .case-studies-grid, .remuneration-grid {
        grid-template-columns: 1fr;
    }

    .visual-break {
        height: 200px;
        background-attachment: scroll;
    }

    .simulator-container {
        padding: 1.5rem;
    }
}
