/* ==========================================
   PAGES MÉTIERS - CSS Commun
   ========================================== */

/* Hero Métier Section */
.hero-metier {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 6rem 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Fond photo optionnel avec overlay bleu */
.hero-metier::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg-image, none);
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    z-index: 0;
}

.hero-metier::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 22, 35, 0.62) 0%, rgba(13, 42, 75, 0.62) 100%);
    z-index: 1;
}

.hero-metier-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 2;
}

.hero-metier-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.875rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-metier h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 900px;
}

.hero-metier-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 3rem;
    max-width: 800px;
}

.hero-metier-stats {
    display: flex;
    justify-content: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-warm);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Page Header (ancienne version - garde pour compatibilité) */
.page-header {
    margin-top: 80px;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 3.8rem;
    font-weight: 700;
    margin: 0;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(13, 42, 75, 0.08);
    backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 0.75rem 1.875rem;
    border-radius: 50px;
    font-size: 1.275rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-header h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Avantages Section - Fond Blanc */
.avantages-section {
    padding: 6rem 0 3rem;
    background: white;
    border-bottom: 1px solid #e8eef4;
}

.avantages-section .section-header {
    color: var(--text-dark);
}

.avantages-section .section-tag {
    background: rgba(13, 42, 75, 0.08);
    backdrop-filter: blur(10px);
    color: var(--primary);
}

.avantages-section .section-header h2 {
    color: var(--primary);
}

.avantages-section .section-header p {
    color: var(--text-muted);
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.avantage-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.avantage-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.avantage-card h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.avantage-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Prestations Métier Section */
.prestations-metier-section {
    padding: 3rem 0 6rem;
    background: #f8fafc;
    border-top: 1px solid #e8eef4;
}

.prestations-metier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.prestation-metier-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.prestation-metier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
    z-index: 2;
    position: relative;
}

.prestation-metier-image {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
}

/* Bouton "Voir la photo" */
.btn-voir-photo {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(13, 42, 75, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(91, 184, 255, 0.4);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
    z-index: 2;
    letter-spacing: 0.3px;
}

.btn-voir-photo:hover {
    background: rgba(59, 154, 225, 0.85);
    border-color: #5BB8FF;
}

/* Popup photo */
#photo-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#photo-overlay.open {
    display: flex;
}

#photo-overlay .photo-popup {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    animation: popupIn 0.25s ease;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

#photo-overlay img {
    display: block;
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
}

#photo-overlay .photo-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

#photo-overlay .photo-close:hover {
    background: #e74c3c;
}

#photo-overlay .photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.prestation-metier-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(13, 42, 75, 0.4) 100%);
    pointer-events: none;
}

.prestation-metier-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.prestation-metier-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.prestation-metier-content h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.prestation-metier-content > p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.prestation-metier-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prestation-metier-content li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 0.9rem;
}

.prestation-metier-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
}

.card-detail-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: .85rem 2rem;
    border-top: 1px solid #eef3f8;
    font-size: .82rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: gap .2s;
}
.card-detail-footer:hover { gap: 10px; }
.card-detail-arrow { font-size: 1rem; transition: transform .2s; }
.card-detail-footer:hover .card-detail-arrow { transform: translateX(3px); }

/* Cas d'usage Section — fond bleu navy */
.cas-usage-section {
    padding: 6rem 0;
    background: var(--primary);
    border-top: none;
}

.cas-usage-section .section-header {
    color: white;
}

.section-tag-warm {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.875rem;
    border-radius: 50px;
    font-size: 1.275rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cas-usage-section .section-header h2 {
    color: white;
}

.cas-usage-section .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

.cas-usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.cas-usage-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2rem 2rem 2rem 2.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid rgba(91, 184, 255, 0.6);
    transition: all 0.3s ease;
}

.cas-usage-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.13);
    border-left-color: var(--accent-light);
}

.cas-usage-item h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
}

.cas-usage-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.95rem;
}
/* Responsive */
@media (max-width: 1024px) {
    .avantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .prestations-metier-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prestation-metier-image {
        height: 200px;
    }

    .cas-usage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-metier {
        padding: 4rem 2rem;
    }

    .hero-metier h1 {
        font-size: 2.5rem;
    }

    .hero-metier-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .page-header {
        padding: 3rem 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .avantages-section,
    .prestations-metier-section {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .avantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .prestation-metier-content {
        padding: 2rem;
    }

    .prestation-metier-content h3 {
        font-size: 1.5rem;
    }

    .cas-usage-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
