/* ==========================================================================
   PARTENAIRES.CSS — Page Nos Partenaires | ESMaroc
   Design inspiré de projets.css : dark blue hero, stats cliquables, modales
   ========================================================================== */

/* ────────────────────────────────────────────
   1. HERO — identique au hero de projets.html
   ──────────────────────────────────────────── */
.pt-hero {
    position: relative;
    background-color: #0a1628;
    overflow: hidden;
}

.pt-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1628 0%, #001a5c 50%, #003399 100%);
    pointer-events: none;
}

.pt-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -55deg, transparent, transparent 40px,
        rgba(255,255,255,0.025) 40px, rgba(255,255,255,0.025) 41px
    );
}

.pt-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 110px 8% 100px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
    align-items: center;
}

.pt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #e0ab00;
    margin-bottom: 24px;
}

.pt-hero-title {
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.0;
    letter-spacing: -3px;
    margin-bottom: 28px;
}

.pt-hero-title em {
    font-style: normal;
    color: #e0ab00;
}

.pt-hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    max-width: 520px;
    border-left: 3px solid #e0ab00;
    padding-left: 20px;
}

.pt-hero-desc strong { color: #e0ab00; font-weight: 700; }

/* Stats hero droite */
.pt-hero-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 50px;
}

.pt-hero-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-family: 'Montserrat', sans-serif;
}

.pt-hero-stat:last-child { border-bottom: none; }

.pt-hero-stat--link {
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 20px 16px;
    margin: 4px -16px;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    transition: background 0.25s ease;
    width: calc(100% + 32px);
    text-align: left;
}

.pt-hero-stat--link:last-child { border-bottom: none !important; }
.pt-hero-stat--link:hover      { background: rgba(255,255,255,0.06); }

.pt-hero-stat-num {
    font-size: 3rem;
    font-weight: 900;
    color: #e0ab00;
    letter-spacing: -2px;
    line-height: 1;
    min-width: 95px;
    font-family: 'Montserrat', sans-serif;
}

.pt-hero-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
    flex: 1;
}

.pt-stat-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.2);
    transition: color 0.25s, transform 0.25s;
    display: flex;
    align-items: center;
}

.pt-hero-stat--link:hover .pt-stat-hint {
    color: #e0ab00;
    transform: translateY(2px);
}

/* ────────────────────────────────────────────
   2. MODALES (continents + pays)
   ──────────────────────────────────────────── */
.pt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.pt-modal.pt-modal-open {
    pointer-events: all;
    opacity: 1;
}

.pt-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,10,30,0.88);
    backdrop-filter: blur(4px);
}

.pt-modal-panel {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, #0a1628, #001a5c);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 55px 60px;
    max-width: 1050px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.pt-modal.pt-modal-open .pt-modal-panel {
    transform: translateY(0) scale(1);
}

.pt-modal-panel--pays { max-width: 900px; }

.pt-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.6);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.pt-modal-header { margin-bottom: 45px; }

.pt-modal-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 14px 0 12px;
}

.pt-modal-header h2 em { font-style: normal; color: #e0ab00; }
.pt-modal-header p { font-size: 1rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* Grille des cartes continents */
.pt-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pt-continent-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s;
}

.pt-continent-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(224,171,0,0.3);
}

.pt-continent-map {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    padding: 10px;
}

.pt-continent-map svg { width: 100%; height: 100%; }

.pt-continent-info { padding: 18px 22px; }

.pt-continent-name {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-continent-name i { color: #e0ab00; font-size: 0.85rem; }

.pt-continent-info p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
}

.pt-continent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pt-continent-tags span {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 9px;
    background: rgba(224,171,0,0.12);
    color: #e0ab00;
    border-radius: 2px;
    border: 1px solid rgba(224,171,0,0.2);
}

/* ── Modale pays ── */
.pt-pays-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.pt-pays-region h4 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e0ab00;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pt-pays-list { display: flex; flex-direction: column; gap: 10px; }

.pt-pays-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    border-left: 3px solid rgba(224,171,0,0.3);
    transition: background 0.2s, border-color 0.2s;
}

.pt-pays-item:hover {
    background: rgba(255,255,255,0.07);
    border-left-color: #e0ab00;
}

.pt-pays-flag {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.pt-pays-item div { display: flex; flex-direction: column; gap: 2px; }

.pt-pays-item strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.pt-pays-item span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}

/* ────────────────────────────────────────────
   3. FILTRE
   ──────────────────────────────────────────── */
.pt-filter-bar {
    background: var(--bg-light, #f8f9fa);
    border-bottom: 1px solid rgba(0,69,149,0.08);
    padding: 20px 8%;
    position: sticky;
    top: 80px;
    z-index: 50;
}

.pt-filter-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pt-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    color: #666;
    border: 1.5px solid rgba(0,69,149,0.12);
    border-radius: 30px;
    padding: 9px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-filter-btn:hover  { border-color: #004595; color: #004595; }
.pt-filter-btn.active { background: #004595; color: #fff; border-color: #004595; }

/* ────────────────────────────────────────────
   4. GRILLE PARTENAIRES
   ──────────────────────────────────────────── */
.pt-grid-section {
    padding: 60px 8% 80px;
    background: #ffffff;
}

.pt-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.pt-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid rgba(0,69,149,0.08);
    border-radius: 8px;
    padding: 22px 14px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 12px;
    cursor: pointer;
}

.pt-card:hover {
    transform: translateY(-5px);
    border-color: #e0ab00;
    box-shadow: 0 12px 30px rgba(0,69,149,0.1);
}

.pt-logo-box {
    width: 100%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-logo-box img {
    max-width: 125px;
    max-height: 62px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.pt-card:hover .pt-logo-box img { filter: grayscale(0%); }

.pt-fallback {
    font-size: 0.82rem;
    font-weight: 800;
    color: #004595;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    letter-spacing: 0.5px;
}

.pt-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 100%;
    border-top: 1px solid rgba(0,69,149,0.07);
    padding-top: 10px;
    text-align: center;
}

.pt-card-info h3 {
    font-size: 0.74rem;
    font-weight: 700;
    color: #004595;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Tags */
.pt-tag {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 9px;
    border-radius: 20px;
}

.pt-tag-intl  { background: rgba(25,4,143,0.08);  color: #19048f; }
.pt-tag-inst  { background: rgba(0,69,149,0.08);   color: #004595; }
.pt-tag-acad  { background: rgba(22,163,74,0.1);   color: #15803d; }
.pt-tag-maroc { background: rgba(224,171,0,0.12);  color: #92700a; }

/* Compteur */
.pt-count {
    max-width: 1200px;
    margin: 28px auto 0;
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 600;
}

/* ────────────────────────────────────────────
   5. CTA DEVENIR PARTENAIRE
   ──────────────────────────────────────────── */
.pt-cta-section {
    background: linear-gradient(135deg, #04284f, #0a3d6b);
    padding: 80px 8%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pt-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
}

.pt-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pt-cta-icon { font-size: 2.5rem; color: #e0ab00; margin-bottom: 8px; }

.pt-cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.pt-cta-section p {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin: 0;
}

.pt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e0ab00;
    color: #1a1a1a;
    text-decoration: none;
    padding: 15px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.pt-cta-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ────────────────────────────────────────────
   6. RESPONSIVE
   ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .pt-hero-inner { grid-template-columns: 1fr; gap: 50px; }
    .pt-hero-right {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-left: 0;
        padding-top: 35px;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 10px;
    }
    .pt-hero-stat--link {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        border-bottom: none !important;
        padding: 16px 20px;
        margin: 0;
        width: auto;
    }
    .pt-hero-stat-num { min-width: unset; }
    .pt-modal-grid { grid-template-columns: 1fr; }
    .pt-pays-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .pt-hero-inner { padding: 80px 5% 70px; }
    .pt-hero-title { font-size: 3rem; letter-spacing: -1px; }
    .pt-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .pt-grid-section { padding: 40px 5% 60px; }
    .pt-filter-bar { position: static; }
    .pt-modal-panel { padding: 35px 22px; }
    .pt-modal-header h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .pt-grid { grid-template-columns: repeat(2, 1fr); }
}
