* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    /* padding: 5px; */
    font-size: 14px;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #fff;
    /* border-radius: 8px; */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    height: calc(100vh);
    max-height: calc(100vh);
}

.sidebar {
    width: 30%;
    min-width: 280px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 20px 25px;
    position: relative;
    user-select: text;
    overflow-y: auto;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
}

/* Ensure all sidebar content is above the background */
.sidebar > * {
    position: relative;
    z-index: 1;
}

/* Make sure links are clickable */
.sidebar a {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #3498db !important;
}

.main-content {
    width: 70%;
    padding: 20px 30px;
    background: #fff;
    overflow-y: auto;
}

.profile-section {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin: 0 auto 15px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.profile-section h1 {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 300;
}

.profile-section .title {
    font-size: 14px;
    color: #ecf0f1;
    margin-bottom: 15px;
    font-weight: 300;
}

.contact-info {
    margin-bottom: 25px;
}

.contact-info h2 {
    color: #ecf0f1;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #bdc3c7;
    font-size: 14px;
}

.contact-item .icon {
    width: 18px;
    margin-right: 12px;
    text-align: center;
}

.records-section {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #fff;
}

.records-section h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.record-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
}

.record-score {
    font-size: 14px;
    font-weight: bold;
}

.main-content h2 {
    color: #2c3e50;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.main-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #e74c3c;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.year-section {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.year-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.year-title {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: center;
}

.medal {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 6px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.medal-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.gold { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #b8860b; }
.silver { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: #666; }
.bronze { background: linear-gradient(135deg, #cd7f32, #daa520); color: #8b4513; }
.ranking { background: linear-gradient(135deg, #3498db, #2980b9); color: #fff; }

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.equipment-item {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
    font-size: 14px;
}

.equipment-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 3px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
}

.objectives-list {
    list-style: none;
    margin-bottom: 15px;
}

.objectives-list li {
    background: #fff;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid #ffe600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.experience-info {
    margin-bottom: 15px;
}

.experience-info h2 {
    color: #ecf0f1;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.experience-info div {
    color: #bdc3c7;
    margin-bottom: 10px;
    font-size: 14px;
}

/* Passion section styling */
.passion-content {
    margin-top: 20px;
}

.passion-reasons {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced from 25px */
    margin-bottom: 20px;
    margin-top: 15px;
}

.passion-item {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced from 20px */
    padding: 15px; /* Reduced from 20px */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.passion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.passion-icon {
    font-size: 14px;
    min-width: 50px; /* Reduced from 60px */
    text-align: center;
    background: white;
    border-radius: 50%;
    width: 50px; /* Reduced from 60px */
    height: 50px; /* Reduced from 60px */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.passion-text h3 {
    color: #2c3e50;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

.passion-text p {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* Sponsorship section styling */
.sponsorship-content {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* color: white; */
    /* padding: 30px; */
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); */
}

.sponsorship-content p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}

.sponsorship-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.sponsorship-benefits li {
    background: rgba(88, 161, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    border-left: 3px solid #f39c12;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.sponsorship-benefits li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* @media (max-width: 992px) {
    body {
            padding: 5px;
            font-size: 13px;
            background: white;
        }
    .sidebar {
        width: 35%;
        min-width: 250px;
    }
    
    .main-content {
        width: 65%;
    }
} */

@media (max-width: 768px) {
    body {
        padding: 0px;
        font-size: 13px;
        background: white;
    }
    
    .container {
        flex-direction: column;
        margin: 0;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
        height: auto;
        max-height: none;
    }
    
    /* Mobile PDF-like layout */
    .sidebar {
        width: 100%;
        min-width: auto;
        padding: 15px;
        background: linear-gradient(135deg, #2c3e50, #3498db);
        order: 1;
    }
    
    .sidebar::before {
        display: none;
    }
    
    .profile-section {
        margin-bottom: 15px;
    }
    
    .profile-photo {
        width: 80px;
        height: 80px;
        margin: 0 auto 10px;
        border: 3px solid white;
    }
    
    .profile-section h1 {
        font-size: 1.4em;
        margin-bottom: 5px;
    }
    
    .profile-section .title {
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    .contact-info,
    .records-section,
    .experience-info {
        margin-bottom: 15px;
    }
    
    .contact-info h2,
    .records-section h2,
    .experience-info h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
        padding-bottom: 5px;
    }
    
    .contact-item {
        margin-bottom: 8px;
        font-size: 0.9em;
    }
    
    .contact-item .icon {
        width: 16px;
        margin-right: 8px;
        font-size: 1em;
    }
    
    .records-section {
        padding: 15px;
        border-radius: 6px;
        background: rgba(255,255,255,0.1);
    }
    
    .record-item {
        padding: 8px;
        margin-bottom: 6px;
        text-align: center;
    }
    
    .record-item strong {
        display: block;
        margin-bottom: 3px;
        font-size: 0.9em;
    }
    
    .record-score {
        font-size: 1.3em;
        font-weight: bold;
    }
    
    .experience-info div {
        margin-bottom: 8px;
        font-size: 0.9em;
    }
    
    .main-content {
        width: 100%;
        padding: 15px;
        order: 2;
        overflow-y: visible;
    }
    
    .main-content h2 {
        font-size: 1.2em;
        margin-top: 10px;
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 2px solid #3498db;
    }
    
    /* Mobile achievements grid - stack vertically */
    .achievements-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .year-section {
        padding: 10px;
        border-left: 3px solid #3498db;
        background: #f8f9fa;
    }
    
    .year-title {
        font-size: 1.1em;
        margin-bottom: 8px;
        text-align: left;
        color: #2c3e50;
        font-weight: bold;
    }
    
    .medal {
        margin-bottom: 5px;
        padding: 4px;
        background: white;
        border-radius: 4px;
        font-size: 0.9em;
        align-items: center;
    }
    
    .medal-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        font-size: 0.8em;
        min-width: 20px;
    }
    
    /* Mobile equipment grid - 2 columns */
    .equipment-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .equipment-item {
        padding: 6px;
        font-size: 0.85em;
        border-left: 2px solid #3498db;
    }
    
    .equipment-item strong {
        font-size: 0.9em;
        margin-bottom: 2px;
    }
    
    /* Mobile objectives */
    .objectives-list li {
        padding: 8px;
        margin-bottom: 6px;
        font-size: 0.9em;
        border-left: 3px solid #27ae60;
    }
    
    /* Mobile passion section */
    .passion-reasons {
        gap: 10px;
        margin-bottom: 15px;
        margin-top: 10px;
    }
    
    .passion-item {
        padding: 10px;
        gap: 10px;
        flex-direction: row;
        text-align: left;
    }
    
    .passion-icon {
        font-size: 1.2em;
        min-width: 35px;
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .passion-text h3 {
        font-size: 1em;
        margin: 0;
        text-transform: none;
        letter-spacing: normal;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .passion-text p {
        font-size: 0.85em;
        line-height: 1.4;
    }
    
    /* Mobile sponsorship */
    .sponsorship-content {
        margin-top: 15px;
        margin-bottom: 8px;
    }
    
    .sponsorship-content p {
        font-size: 0.9em;
        line-height: 1.5;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .sponsorship-benefits {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .sponsorship-benefits li {
        padding: 8px;
        font-size: 0.85em;
        border-left: 2px solid #f39c12;
    }
    
    /* Mobile training section */
    .training-content h3 {
        font-size: 1em;
        margin: 10px 0 5px 0;
        text-transform: none;
        letter-spacing: normal;
        border-bottom: none;
        padding-bottom: 0;
        color: #2c3e50;
    }
    
    .training-content p {
        font-size: 0.9em;
        line-height: 1.4;
        margin-bottom: 10px;
        text-align: left;
    }
    
    /* Mobile outside archery section */
    .outside-archery {
        padding: 15px;
        margin-top: 15px;
    }
    
    .outside-content p {
        font-size: 0.9em;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .cv-button {
        padding: 12px 20px;
        font-size: 0.9em;
        border-radius: 20px;
    }
    
    /* Language switcher mobile */
    .language-switcher {
        position: fixed;
        top: 5px;
        right: 5px;
        padding: 6px;
        background-color: rgba(52, 73, 94, 0.9);
        border-radius: 6px;
        z-index: 1001;
    }
    
    .language-switcher a {
        font-size: 0.8em;
        padding: 3px 6px;
    }
}

/* Smaller phones */
@media (max-width: 480px) {
    body {
        font-size: 12px;
        padding: 0;
    }
    
    .sidebar {
        padding: 12px;
    }
    
    .main-content {
        padding: 12px;
    }
    
    .profile-photo {
        width: 70px;
        height: 70px;
    }
    
    .profile-section h1 {
        font-size: 1.3em;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .sponsorship-benefits {
        grid-template-columns: 1fr;
    }
    
    .passion-item {
        flex-direction: column;
        text-align: center;
    }
    
    .passion-icon {
        align-self: center;
    }
}

.language-switcher {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1000;
    text-align: center;
    padding: 8px;
    background-color: rgba(52, 73, 94, 0.8);
    border-radius: 8px;
}

.language-switcher a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 4px 8px;
    border: 1px solid #fff;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.language-switcher a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Outside Archery Section Styles */
.outside-archery {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
}

.outside-content p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cv-link {
    margin-top: 20px;
}

.cv-button {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cv-button:hover {
    background: linear-gradient(135deg, #2980b9, #1c5985);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.cv-button:active {
    transform: translateY(0);
}

/* Style général pour tous les h3 */
h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 15px 0 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

/* Style spécifique pour les h3 dans la sidebar */
.sidebar h3 {
    color: #ecf0f1;
    font-size: 16px;
    margin: 15px 0 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}


