/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #231f20;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo a:hover .logo-img {
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #666666;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
    min-height: calc(100vh - 200px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #c1272d;
    letter-spacing: -1px;
}

.intro {
    font-size: 18px;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.15);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.search-clear:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #cccccc;
    font-size: 18px;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
}

.load-more-btn {
    background-color: #c1272d;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: inherit;
    display: inline-block;
    margin: 0 auto;
}

.load-more-btn:hover {
    background-color: #a01f25;
    transform: translateY(-2px);
}

.load-more-btn:active {
    transform: translateY(0);
}

.pagination-info {
    margin-top: 15px;
    color: #cccccc;
    font-size: 14px;
}

/* ============================================
   PROFILES SECTION
   ============================================ */

.profiles {
    padding: 40px 0 80px;
}

.profiles h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    display: block;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.card-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* ============================================
   PROFILE DETAIL PAGE
   ============================================ */

.profile-detail {
    padding: 60px 0;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: #cccccc;
    font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #666666;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumb span[aria-current="page"] {
    color: #cccccc;
}

.back-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 30px;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.7;
}

.profile-header {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

.profile-image-large {
    flex: 0 0 400px;
    height: 500px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.profile-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #c1272d;
    letter-spacing: -1px;
}

.profile-type {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-description {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
}

.profile-description p {
    margin-bottom: 20px;
}

.profile-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   PROFILE TAGS
   ============================================ */

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2a2627;
    color: #ffffff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   PROFILE ACTION BUTTONS
   ============================================ */

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.2s ease, opacity 0.3s ease;
    font-family: inherit;
    border: none;
    cursor: pointer;
}

.btn-action:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-action:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

.btn-download {
    background-color: #c1272d;
    color: #ffffff;
}

.btn-view {
    background-color: #20b2aa;
    color: #ffffff;
}

.btn-scalp {
    background-color: #2a2627;
    color: #ffffff;
    border: 2px solid #c1272d;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
    padding: 40px 0 80px;
    background-color: #2a2627;
}

.gallery h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
}

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

.gallery-item {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox-toggle {
    display: none;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-toggle:checked ~ .lightbox-overlay {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 80px;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    max-width: calc(100% - 160px);
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: none;
    position: relative;
    z-index: 1;
}

.lightbox-toggle#lightbox-1:checked ~ .lightbox-overlay .lightbox-image[data-index="1"],
.lightbox-toggle#lightbox-2:checked ~ .lightbox-overlay .lightbox-image[data-index="2"],
.lightbox-toggle#lightbox-3:checked ~ .lightbox-overlay .lightbox-image[data-index="3"],
.lightbox-toggle#lightbox-4:checked ~ .lightbox-overlay .lightbox-image[data-index="4"],
.lightbox-toggle#lightbox-5:checked ~ .lightbox-overlay .lightbox-image[data-index="5"],
.lightbox-toggle#lightbox-6:checked ~ .lightbox-overlay .lightbox-image[data-index="6"],
.lightbox-toggle#lightbox-7:checked ~ .lightbox-overlay .lightbox-image[data-index="7"],
.lightbox-toggle#lightbox-8:checked ~ .lightbox-overlay .lightbox-image[data-index="8"],
.lightbox-toggle#lightbox-9:checked ~ .lightbox-overlay .lightbox-image[data-index="9"],
.lightbox-toggle#lightbox-10:checked ~ .lightbox-overlay .lightbox-image[data-index="10"],
.lightbox-toggle#lightbox-11:checked ~ .lightbox-overlay .lightbox-image[data-index="11"],
.lightbox-toggle#lightbox-12:checked ~ .lightbox-overlay .lightbox-image[data-index="12"],
.lightbox-toggle#lightbox-13:checked ~ .lightbox-overlay .lightbox-image[data-index="13"],
.lightbox-toggle#lightbox-14:checked ~ .lightbox-overlay .lightbox-image[data-index="14"],
.lightbox-toggle#lightbox-15:checked ~ .lightbox-overlay .lightbox-image[data-index="15"],
.lightbox-toggle#lightbox-16:checked ~ .lightbox-overlay .lightbox-image[data-index="16"],
.lightbox-toggle#lightbox-17:checked ~ .lightbox-overlay .lightbox-image[data-index="17"] {
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    background: transparent;
    border: none;
    padding: 0;
    transition: opacity 0.3s ease;
    font-family: inherit;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    z-index: 1002;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    user-select: none;
    pointer-events: auto;
    flex-shrink: 0;
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.lightbox-toggle:checked ~ .lightbox-overlay .lightbox-prev,
.lightbox-toggle:checked ~ .lightbox-overlay .lightbox-next {
    display: flex;
}

/* ============================================
   FORM SECTION
   ============================================ */

.form-section {
    padding: 80px 0;
    max-width: 700px;
    margin: 0 auto;
}

.form-section h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #c1272d;
    text-align: center;
    letter-spacing: -1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-subtitle {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-intro {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

.report-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.required {
    color: #d32f2f;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1a1a1a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666666;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: inherit;
}

.btn-submit {
    background-color: #1a1a1a;
    color: #ffffff;
    width: 100%;
}

.btn-submit:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 0;
    margin-top: 80px;
    text-align: center;
}

footer p {
    font-size: 14px;
    color: #cccccc;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablettes et petits écrans */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .intro {
        font-size: 16px;
        padding: 0 20px;
    }

    .search-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .search-input {
        padding: 12px 45px 12px 18px;
        font-size: 15px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .back-link {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .profile-header {
        flex-direction: column;
        gap: 30px;
    }

    .profile-image-large {
        flex: 1;
        width: 100%;
        height: 400px;
    }

    .profile-info h1 {
        font-size: 32px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-section {
        padding: 40px 20px;
    }

    .report-form {
        padding: 30px 20px;
    }

    nav ul {
        gap: 20px;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .logo-img {
        height: 40px;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .intro {
        font-size: 15px;
    }

    .search-container {
        padding: 0 15px;
    }

    .search-input {
        padding: 12px 40px 12px 16px;
        font-size: 14px;
    }

    .search-clear {
        width: 28px;
        height: 28px;
        font-size: 20px;
        right: 12px;
    }

    .profiles {
        padding: 30px 0 50px;
    }

    .profiles h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-detail {
        padding: 40px 0;
    }

    .back-link {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .profile-image-large {
        height: 300px;
    }

    .profile-info h1 {
        font-size: 28px;
    }

    .profile-tags {
        gap: 8px;
        margin: 20px 0;
    }

    .tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .profile-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-action {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        justify-content: center;
    }

    .gallery {
        padding: 30px 0 50px;
    }

    .gallery h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-item {
        height: 200px;
    }

    .form-section {
        padding: 30px 15px;
    }

    .form-section h1 {
        font-size: 24px;
        white-space: normal;
    }

    .form-intro {
        font-size: 15px;
    }

    .report-form {
        padding: 25px 15px;
    }

    footer {
        padding: 30px 0;
    }

    .lightbox-content {
        padding: 0 60px;
    }

    .lightbox-image-container {
        max-width: calc(100% - 120px);
    }

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}

