/* CSS pour la page "C'est toi l'expert" */

:root {
    --primary-color: #803101;
    --secondary-color: #ff8a00;
    --bg-light: #EBD2BD;
    --text-dark: #010101;
    --text-muted: #4D4E4D;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.expert-page {
    background-color: #f9f9f9;
}

/* Hero Section */
.expert-hero {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(235, 210, 189, 0.9), rgba(235, 210, 189, 0.9)),
        url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80&w=2070') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.expert-hero .expert-hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.expert-hero h1 {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.expert-hero .subtitle {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.5;
}

.expert-hero .description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.expert-hero .cta-container {
    display: flex;
    gap: 20px;
}

/* Why Section */
.expert-why {
    padding: 100px 0;
    background-color: var(--white);
}

.expert-why .content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.expert-why .text-content {
    flex: 1;
}

.expert-why .image-content {
    flex: 1;
}

/* Target Audience */
.expert-target {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.target-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease;
    text-align: center;
}

.target-card:hover {
    transform: translateY(-10px);
}

.target-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Formats Section - Grid Design */
.expert-formats {
    padding: 120px 0;
    background-color: #ffffff;
    background-image: radial-gradient(var(--bg-light) 0.8px, transparent 0.8px);
    background-size: 40px 40px;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.format-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(128, 49, 1, 0.05);
    text-align: center;
    position: relative;
}

.format-card:hover {
    transform: translateY(-12px);
    border-color: var(--secondary-color);
}

.format-card .card-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 30px;
    transition: all 0.3s ease;
}

.format-card:hover .card-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(360deg);
}

.format-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.format-card p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Scroll Top Styles */
.go-top {
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 20px;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    display: flex;
}

/* Guidelines Section */
.expert-guidelines {
    padding: 100px 0;
    background: linear-gradient(to right, var(--primary-color), #a04101);
    color: var(--white);
}

.expert-guidelines h2 {
    color: var(--white);
}

.guideline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.guideline-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.guideline-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.guideline-icon {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0.9;
}

.guideline-card p {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
    color: var(--white);
}

.outline-white-btn {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.outline-white-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Themes Section */
.expert-themes {
    padding: 100px 0;
    background: var(--bg-light);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.theme-card {
    background: var(--white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-color);
}

.theme-icon {
    width: 50px;
    height: 50px;
    background: rgba(128, 49, 1, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.theme-card:hover .theme-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.theme-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.theme-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: 1fr;
    }
}

/* Participation Form */
.expert-participation {
    padding: 120px 0;
    background-color: var(--white);
}

.participation-form {
    max-width: 800px;
    margin: 50px auto 0;
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-top: 8px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.participation-form::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--bg-light) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.participation-form form {
    position: relative;
    z-index: 1;
}

.participation-form .form-group {
    margin-bottom: 20px;
}

.participation-form input,
.participation-form select,
.participation-form textarea {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.participation-form input:focus,
.participation-form select:focus,
.participation-form textarea:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(128, 49, 1, 0.05);
}

.participation-form .site-btn {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(128, 49, 1, 0.2);
}

/* Utilities */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-wrapper h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expert-hero .expert-hero-content>* {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.expert-hero .sub-heading {
    animation-delay: 0.2s;
}

.expert-hero h1 {
    animation-delay: 0.4s;
}

.expert-hero .subtitle {
    animation-delay: 0.6s;
}

.expert-hero .description {
    animation-delay: 0.8s;
}

.expert-hero .cta-container {
    animation-delay: 1s;
}

/* Effects */
.target-card {
    border: 1px solid rgba(128, 49, 1, 0.1);
}

.target-card i {
    transition: transform 0.3s ease;
}

.target-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.theme-tag:hover {
    box-shadow: 0 5px 15px rgba(128, 49, 1, 0.3);
    transform: translateY(-2px);
}

.participation-form {
    border-top: 5px solid var(--primary-color);
}

.participation-form input:focus,
.participation-form select:focus,
.participation-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(255, 138, 0, 0.1);
}

/* Benefits Section */
.expert-benefits {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.benefit-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-premium);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Cadre Section - Full Width */
.expert-cadre {
    background: var(--bg-light);
    padding: 0;
    overflow: hidden;
}

.cadre-container {
    display: flex;
    align-items: center;
    gap: 80px;
    background: var(--bg-light);
    padding: 120px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.cadre-content {
    flex: 1;
}

.cadre-visual {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cadre-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 40px;
}

.cadre-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.floating-logo {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 992px) {
    .cadre-container {
        flex-direction: column;
        padding: 50px;
        gap: 50px;
        text-align: center;
    }

    .cadre-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .expert-hero h1 {
        font-size: 40px;
    }

    .expert-hero .cta-container {
        flex-direction: column;
    }

    .expert-why .content-wrapper {
        flex-direction: column;
    }

    .guideline-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .guideline-card {
        padding: 20px 15px;
    }
}

/* Nav Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900008;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Additional Format Polish */
.format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.05) 0%, transparent 100%);
    z-index: 0;
}

.format-card>* {
    position: relative;
    z-index: 1;
}

.format-card h3 {
    font-weight: 700;
}

/* Expert News Grid Refinement */
.expert-latest .blog-grid {
    gap: 40px !important;
}

.expert-latest .cardd {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
    border-radius: 24px !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    overflow: hidden;
    position: relative;
    height: 400px;
}

.expert-latest .cardd:hover {
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(128, 49, 1, 0.15) !important;
    border-color: var(--secondary-color) !important;
}

.expert-latest .cardd .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%) !important;
    z-index: 2;
    pointer-events: none;
}

.expert-latest .cardd .content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px !important;
    background: transparent !important;
    z-index: 5;
    box-sizing: border-box;
    text-align: left;
}

.expert-latest .cardd .content h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
}

.expert-latest .cardd .content h3 a {
    color: #ffffff !important;
}

.expert-latest .cardd .content p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.expert-latest .cardd .author {
    position: absolute;
    z-index: 5;
    background: var(--secondary-color) !important;
    color: var(--white) !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 6px 14px !important;
    top: 20px !important;
    right: 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.expert-latest .cardd .category {
    font-size: 0.85rem !important;
    color: var(--secondary-color) !important;
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.expert-latest .cardd .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px !important;
    align-items: center;
}

.expert-latest .cardd .tag {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}