/* ===================================
   HUMANITAID - RESPONSIVE DETAIL PAGE
   Ajouter à la fin du fichier styles_responsive_optimized.css
   =================================== */

/* ===================================
   PAGE DÉTAIL PROJET - DESKTOP
   =================================== */

.project-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.project-image-section {
    width: 100%;
}

.project-image-main {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 32px;
}

.project-info-box {
    background: #F9FAFB;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-info-item {
    display: flex;
    flex-direction: column;
}

.project-info-label {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 4px;
}

.project-info-value {
    font-size: 24px;
    font-weight: 700;
    color: #2F5233;
}

.project-progress-container {
    background: #F9FAFB;
    height: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    overflow: hidden;
}

.project-progress-bar {
    background: #D9932E;
    height: 100%;
    width: 85%;
    border-radius: 6px;
}

.project-description {
    margin-bottom: 32px;
}

.project-description h3 {
    margin-bottom: 16px;
}

.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.donation-card {
    background: white;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 24px;
}

.donation-card h3 {
    margin-bottom: 16px;
}

.amount-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.amount-btn {
    padding: 12px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: #D9932E;
    color: #D9932E;
}

.amount-btn.active {
    background: #D9932E;
    color: white;
    border-color: #D9932E;
}

.custom-amount-input {
    width: 100%;
    margin-bottom: 16px;
}

.project-info-card {
    background: white;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 24px;
}

.project-info-card h4 {
    margin-bottom: 16px;
}

.info-detail {
    margin-top: 16px;
}

.info-detail-label {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 4px;
}

.info-detail-value {
    font-weight: 600;
    margin-bottom: 16px;
}

.similar-projects-section {
    margin-top: 80px;
}

.similar-projects-title {
    margin-bottom: 48px;
    text-align: center;
}

.similar-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.similar-project-card {
    background: white;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.similar-project-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.similar-project-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.similar-project-card h4 {
    margin-bottom: 12px;
}

.similar-project-card p {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.similar-project-card .btn {
    width: 100%;
}

.no-similar-projects {
    color: #6B7280;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin-top: 32px;
    grid-column: 1 / -1;
}

/* ===================================
   RESPONSIVE - TABLET (768px)
   =================================== */
@media (max-width: 768px) {
    .project-detail-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-image-main {
        height: 350px;
        margin-bottom: 24px;
    }

    .project-info-box {
        padding: 20px;
        margin-bottom: 24px;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-info-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .project-info-value {
        font-size: 20px;
    }

    .project-sidebar {
        gap: 20px;
    }

    .donation-card,
    .project-info-card {
        padding: 20px;
    }

    .amount-options {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .amount-btn {
        padding: 10px;
        font-size: 14px;
    }

    .similar-projects-section {
        margin-top: 48px;
    }

    .similar-projects-title {
        margin-bottom: 32px;
        font-size: 26px;
    }

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

    .similar-project-image {
        height: 200px;
        margin-bottom: 12px;
    }
}

/* ===================================
   RESPONSIVE - PETITS PHONES (480px)
   =================================== */
@media (max-width: 480px) {
    .project-detail-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-image-main {
        height: 280px;
        margin-bottom: 20px;
    }

    .project-image-section {
        width: 100%;
    }

    .project-info-box {
        padding: 16px;
        margin-bottom: 20px;
        background: #F9FAFB;
        border-radius: 8px;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-info-item {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
    }

    .project-info-label {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .project-info-value {
        font-size: 18px;
    }

    .project-progress-container {
        height: 10px;
        margin-bottom: 12px;
    }

    .project-description {
        margin-bottom: 24px;
    }

    .project-description h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .project-description p {
        font-size: 14px;
        line-height: 1.5;
    }

    .project-sidebar {
        gap: 16px;
    }

    .donation-card {
        border: 1px solid #262626;
        border-radius: 12px;
        padding: 16px;
    }

    .donation-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .amount-options {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .amount-btn {
        padding: 8px;
        font-size: 12px;
        border-radius: 6px;
    }

    .custom-amount-input {
        height: 40px;
        padding: 10px 12px;
        font-size: 14px;
        margin-bottom: 12px;
    }

    .donation-card .btn {
        height: 40px;
        font-size: 14px;
        margin-bottom: 12px;
    }

    .project-info-card {
        border: 1px solid #262626;
        border-radius: 12px;
        padding: 16px;
    }

    .project-info-card h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .info-detail {
        margin-top: 12px;
    }

    .info-detail-label {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .info-detail-value {
        font-weight: 600;
        margin-bottom: 12px;
        font-size: 14px;
    }

    .similar-projects-section {
        margin-top: 48px;
    }

    .similar-projects-title {
        margin-bottom: 24px;
        font-size: 22px;
    }

    .similar-projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .similar-project-card {
        border: 1px solid #262626;
        border-radius: 12px;
        padding: 16px;
    }

    .similar-project-image {
        height: 200px;
        margin-bottom: 12px;
    }

    .similar-project-card h4 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .similar-project-card p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .similar-project-card .btn {
        height: 40px;
        font-size: 14px;
    }

    .no-similar-projects {
        font-size: 16px;
        margin-top: 24px;
    }
}

/* ===================================
   RESPONSIVE - TRÈS PETITS PHONES (360px)
   =================================== */
@media (max-width: 360px) {
    .project-detail-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-image-main {
        height: 240px;
        margin-bottom: 16px;
        border-radius: 6px;
    }

    .project-image-section {
        width: 100%;
    }

    .project-info-box {
        padding: 12px;
        margin-bottom: 16px;
        border-radius: 6px;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .project-info-label {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .project-info-value {
        font-size: 16px;
    }

    .project-progress-container {
        height: 8px;
        margin-bottom: 10px;
        border-radius: 4px;
    }

    .project-description {
        margin-bottom: 16px;
    }

    .project-description h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .project-description p {
        font-size: 13px;
        line-height: 1.4;
    }

    .project-sidebar {
        gap: 12px;
    }

    .donation-card {
        border: 1px solid #262626;
        border-radius: 8px;
        padding: 12px;
    }

    .donation-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .amount-options {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
        margin-bottom: 10px;
    }

    .amount-btn {
        padding: 6px;
        font-size: 11px;
        border-radius: 6px;
    }

    .custom-amount-input {
        height: 38px;
        padding: 8px 10px;
        font-size: 13px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .donation-card .btn {
        height: 38px;
        font-size: 13px;
        margin-bottom: 10px;
    }

    .project-info-card {
        border: 1px solid #262626;
        border-radius: 8px;
        padding: 12px;
    }

    .project-info-card h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .info-detail {
        margin-top: 10px;
    }

    .info-detail-label {
        font-size: 11px;
        margin-bottom: 1px;
    }

    .info-detail-value {
        font-weight: 600;
        margin-bottom: 10px;
        font-size: 13px;
    }

    .similar-projects-section {
        margin-top: 32px;
    }

    .similar-projects-title {
        margin-bottom: 16px;
        font-size: 20px;
    }

    .similar-projects-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .similar-project-card {
        border: 1px solid #262626;
        border-radius: 8px;
        padding: 12px;
    }

    .similar-project-image {
        height: 160px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .similar-project-card h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .similar-project-card p {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .similar-project-card .btn {
        height: 38px;
        font-size: 12px;
    }

    .no-similar-projects {
        font-size: 14px;
        margin-top: 16px;
    }
}

/* ===================================
   RESPONSIVE - EXTRÊMEMENT PETIT (< 360px)
   =================================== */
@media (max-width: 320px) {
    .project-detail-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-image-main {
        height: 200px;
        margin-bottom: 12px;
    }

    .project-info-box {
        padding: 10px;
        margin-bottom: 12px;
    }

    .project-info-grid {
        gap: 6px;
    }

    .project-info-label {
        font-size: 10px;
    }

    .project-info-value {
        font-size: 14px;
    }

    .project-description h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .project-description p {
        font-size: 12px;
    }

    .donation-card,
    .project-info-card {
        padding: 10px;
    }

    .donation-card h3,
    .project-info-card h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .amount-options {
        gap: 4px;
        margin-bottom: 8px;
    }

    .amount-btn {
        padding: 4px;
        font-size: 10px;
    }

    .custom-amount-input {
        height: 36px;
        padding: 6px 8px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .donation-card .btn,
    .similar-project-card .btn {
        height: 36px;
        font-size: 12px;
        margin-bottom: 8px;
    }

    .info-detail {
        margin-top: 8px;
    }

    .info-detail-label {
        font-size: 10px;
    }

    .info-detail-value {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .similar-projects-section {
        margin-top: 24px;
    }

    .similar-projects-title {
        margin-bottom: 12px;
        font-size: 18px;
    }

    .similar-projects-grid {
        gap: 8px;
    }

    .similar-project-card {
        padding: 8px;
    }

    .similar-project-image {
        height: 140px;
        margin-bottom: 8px;
    }

    .similar-project-card h4 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .similar-project-card p {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .no-similar-projects {
        font-size: 12px;
        margin-top: 12px;
    }
}
